/**
 * VJInfotech Docs Desk - Modern, Simple, Minimalist Documentation CSS
 * Clean, distraction-free aesthetic inspired by Stripe & Tailwind Docs
 *
 * @package VJInfotech_Docs
 */

/* ==========================================================================
   1. Shell & Global Typography
   ========================================================================== */
.vji-docs-shell {
  width: 100%;
  color: #334155;
  font-family: var(--vji-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  line-height: 1.6;
  padding: 24px 0 28px;
}

.vji-docs-shell a {
  text-decoration: none;
  color: inherit;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

/* SVG Icon Outlines Guarantee */
.vji-icon-svg,
.vji-preset-icon,
.vji-cat-card__icon svg,
.vji-hub-prod-icon svg,
.vji-sidebar-tree__head-icon svg,
.vji-hero__breadcrumb svg,
.vji-scope-pill svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: inline-block !important;
  vertical-align: middle !important;
  box-sizing: content-box !important;
  overflow: visible !important;
}

.vji-icon-svg path,
.vji-icon-svg polyline,
.vji-icon-svg line,
.vji-icon-svg polygon,
.vji-icon-svg circle,
.vji-icon-svg rect,
.vji-icon-svg ellipse,
.vji-preset-icon path,
.vji-preset-icon polyline,
.vji-preset-icon line,
.vji-preset-icon polygon,
.vji-preset-icon circle,
.vji-preset-icon rect,
.vji-preset-icon ellipse,
.vji-cat-card__icon svg *,
.vji-hub-prod-icon svg *,
.vji-sidebar-tree__head-icon svg * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: inherit !important;
}

/* Breadcrumbs */
.vji-docs-shell .vji-breadcrumbs,
.vji-docs-shell nav.vji-breadcrumbs,
.vji-docs-shell .vji-breadcrumbs:not(:has(.rank-math-breadcrumb, .vji-breadcrumb-trail)) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.vji-breadcrumb-trail {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.vji-crumb-link {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms ease;
}

.vji-crumb-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.vji-breadcrumbs .vji-sep {
  color: #cbd5e1;
  font-size: 11px;
}

.vji-crumb-current {
  color: #0f172a;
  font-weight: 600;
}

/* ==========================================================================
   2. Clean Header Bar (Product Page & Single Reader)
   ========================================================================== */
.vji-docs-header-bar,
.vji-docs-reader-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
}

.vji-docs-reader-bar {
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 28px;
}

.vji-docs-product-title {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 4px 0 6px;
}

.vji-docs-product-lead {
  font-size: 14.5px;
  color: #64748b;
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
}

/* Sleek Minimal Search Input */
.vji-docs-header-search,
.vji-reader-search {
  width: 290px;
  flex-shrink: 0;
  position: relative;
}

.vji-searchform--sleek .vji-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  transition: all 150ms ease;
}

.vji-searchform--sleek .vji-search-wrap:focus-within {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.vji-search-ico {
  color: #94a3b8;
  margin-right: 8px;
  flex-shrink: 0;
}

.vji-searchform--sleek input[type="search"] {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: #0f172a;
  padding: 2px 0;
}

.vji-searchform--sleek input[type="search"]::placeholder {
  color: #94a3b8;
}

.vji-search-shortcut {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 6px;
  flex-shrink: 0;
}

.vji-docs-shell .vji-container,
.vji-docs-shell .vji-container--wide {
  max-width: var(--vji-container-max, 1240px);
  padding: 0 1.5rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  width: 100%;
}

/* ==========================================================================
   3. Main Documentation Grid Layouts
   ========================================================================== */
.vji-docs-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 48px;
  align-items: flex-start;
}

.vji-docs-layout--single {
  grid-template-columns: 280px minmax(0, 1fr) 220px;
  gap: 40px;
  align-items: flex-start;
}

/* Mobile Drawer Trigger */
.vji-mobile-nav-trigger {
  display: none;
  margin-bottom: 20px;
}

.vji-btn-mobile-sidebar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

/* ==========================================================================
   4. Sleek Minimalist Left Sidebar
   ========================================================================== */
.vji-clean-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 12px;
}

.vji-sidebar-product-label {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.vji-sidebar-hub-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 8px;
  transition: color 150ms ease;
}

.vji-sidebar-hub-back:hover {
  color: #4f46e5;
}

.vji-sidebar-product-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.vji-sidebar-prod-name {
  font-weight: 700;
  color: #0f172a;
}

.vji-prod-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}

.vji-clean-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vji-nav-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0 0 8px 10px;
}

.vji-nav-cat-icon {
  display: inline-flex;
  align-items: center;
  color: #6366f1;
  flex-shrink: 0;
}

.vji-nav-group-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vji-nav-item {
  position: relative;
}

.vji-nav-link {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.4;
  transition: background-color 150ms ease, color 150ms ease;
  word-break: break-word;
  text-decoration: none;
}

.vji-nav-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.vji-nav-item.is-active .vji-nav-link {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 600;
  border-left: 3px solid #4f46e5;
  border-radius: 0 6px 6px 0;
}

.vji-badge-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: #ede9fe;
  color: #6d28d9;
  flex-shrink: 0;
  margin-left: 6px;
}

/* ==========================================================================
   5. Clean Topic & Section Layouts (Product Archive Page)
   ========================================================================== */

/* Quick Start Banner */
.vji-doc-quickstart-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.vji-quickstart-banner--compact {
  padding: 12px 18px;
  gap: 14px;
  margin-bottom: 20px;
  background: #f8faff;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
}

.vji-quickstart-banner--compact .vji-quickstart-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.vji-quickstart-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.vji-quickstart-banner--compact .vji-quickstart-pill {
  font-size: 10px;
  padding: 1px 6px;
  background: #eef2ff;
  border-radius: 4px;
  margin-bottom: 0;
}

.vji-quickstart-banner--compact .vji-quickstart-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.vji-quickstart-banner--compact .vji-quickstart-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.vji-quickstart-banner--compact .vji-quickstart-btn {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 6px;
}

.vji-quickstart-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #ffffff;
  color: #4f46e5;
  border: 1px solid #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.08);
}

.vji-quickstart-content {
  flex: 1;
  min-width: 0;
}

.vji-quickstart-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4f46e5;
  margin-bottom: 4px;
}

.vji-quickstart-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
  line-height: 1.35;
}

.vji-quickstart-desc {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

.vji-quickstart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4f46e5;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: all 150ms ease;
}

.vji-quickstart-btn:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* Product Hero Section */
.vji-product-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 30px;
}

.vji-breadcrumbs--center {
  justify-content: center;
  margin-bottom: 12px;
}

.vji-back-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  transition: color 150ms ease;
}

.vji-back-hub-link:hover {
  color: #4f46e5;
}

.vji-product-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4f46e5;
  margin-bottom: 12px;
}

.vji-prod-badge-name {
  color: #3730a3;
}

.vji-prod-badge-count {
  font-size: 11px;
  background: #ffffff;
  color: #4f46e5;
  padding: 1px 7px;
  border-radius: 9999px;
  border: 1px solid #c7d2fe;
}

.vji-product-hero-title {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.vji-product-hero-sub {
  font-size: 15.5px;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

.vji-product-search-box {
  margin: 0 auto;
}

/* Quick Jump Category Pills Below Search */
.vji-product-quick-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.vji-quick-pill-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.vji-quick-jump-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  transition: all 150ms ease;
  text-decoration: none;
}

.vji-quick-jump-pill:hover {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #c7d2fe;
  transform: translateY(-1px);
}

/* Main Product Content Area & Aligned Category Grid */
.vji-product-content-area {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}


/* Aligned 2-Column Topic Grid: Fits all laptops and screens without horizontal overflow */
.vji-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 24px;
  align-items: stretch;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .vji-cat-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.vji-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 22px;
  transition: all 150ms ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.vji-cat-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.vji-cat-card__top {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.vji-cat-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  min-width: 0;
}

.vji-cat-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vji-cat-card__title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.vji-cat-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
  min-width: 0;
}

.vji-cat-card__count {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.vji-cat-card__articles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.vji-cat-article-item {
  margin: 0;
  min-width: 0;
}

.vji-cat-article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 120ms ease;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.vji-cat-article-link:hover {
  background: #f8fafc;
  border-color: #f1f5f9;
}

.vji-art-bullet {
  color: #94a3b8;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 120ms ease;
}

.vji-cat-article-link:hover .vji-art-bullet {
  color: #4f46e5;
}

.vji-art-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 120ms ease;
}

.vji-cat-article-link:hover .vji-art-title {
  color: #4f46e5;
}

.vji-art-arrow {
  color: #cbd5e1;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 120ms ease;
}

.vji-cat-article-link:hover .vji-art-arrow {
  opacity: 1;
  color: #4f46e5;
  transform: translateX(0);
}

.vji-cat-card__footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #f1f5f9;
}

.vji-cat-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #4f46e5;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 120ms ease;
}

.vji-cat-more-btn:hover {
  background: #eef2ff;
  color: #3730a3;
}

.vji-card-more-item.is-hidden {
  display: none !important;
}

/* Refined Tags & Badges */
.vji-tag {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.vji-tag--pro { background: #f5f3ff; color: #7c3aed; border: 1px solid #ede9fe; }
.vji-tag--recommended { background: #fffbeb; color: #b45309; border: 1px solid #fef3c7; }
.vji-tag--updated { background: #f0f9ff; color: #0284c7; border: 1px solid #e0f2fe; }
.vji-tag--new { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }

.vji-docs-footer-help {
  margin-top: 24px;
  margin-bottom: 0;
  padding: 14px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #475569;
  box-sizing: border-box;
}

.vji-docs-footer-help--center {
  justify-content: center;
  margin-top: 24px;
}

.vji-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4f46e5;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 6px;
  transition: all 150ms ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.vji-help-link:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ==========================================================================
   6. Single Article Reading Experience (Focus & Clarity)
   ========================================================================== */
.vji-docs-reader-view {
  padding-top: 12px;
  padding-bottom: 48px;
}

.vji-docs-reader-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.vji-reader-nav-left {
  flex: 1;
  min-width: 0;
}

.vji-reader-nav-left .vji-breadcrumbs {
  margin-bottom: 0 !important;
}

.vji-reader-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.vji-reader-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  transition: all 150ms ease;
  white-space: nowrap;
  text-decoration: none;
}

.vji-reader-back-btn:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: #f8fafc;
  transform: translateX(-1px);
}

.vji-docs-reader-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 48px;
  align-items: flex-start;
  max-width: 1160px;
  margin: 0 auto;
}

.vji-docs-reader-main {
  min-width: 0;
}

.vji-docs-reader-toc {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Related Guides Section */
.vji-related-guides-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #f1f5f9;
}

.vji-related-heading {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
}

.vji-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vji-related-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  transition: all 150ms ease;
}

.vji-related-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.vji-related-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.vji-related-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  transition: color 150ms ease;
}

.vji-related-card:hover .vji-related-title {
  color: #4f46e5;
}

.vji-related-snippet {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 10px;
  line-height: 1.45;
  flex-grow: 1;
}

.vji-related-arrow {
  font-size: 12px;
  font-weight: 600;
  color: #4f46e5;
}

/* ==========================================================================
   6. Single Article Reading Experience (Focus & Clarity)
   ========================================================================== */
.vji-article-doc {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 36px 40px;
}

.vji-article-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.vji-article-pre-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.vji-article-cat {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4f46e5;
}

.vji-article-main-title {
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 14px;
}

.vji-article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #64748b;
}

.vji-byline-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vji-dot-sep {
  color: #cbd5e1;
}

.vji-btn-copy-url {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.vji-btn-copy-url:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* Article Prose Typography */
.vji-doc-prose {
  font-size: 15.5px;
  color: #334155;
  line-height: 1.75;
}

.vji-doc-prose h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 36px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
  scroll-margin-top: 90px;
}

.vji-doc-prose h3 {
  font-size: 16.5px;
  font-weight: 600;
  color: #0f172a;
  margin: 24px 0 10px;
  scroll-margin-top: 90px;
}

.vji-doc-prose p {
  margin-bottom: 18px;
}

.vji-doc-prose ul,
.vji-doc-prose ol {
  margin: 0 0 20px 22px;
}

.vji-doc-prose li {
  margin-bottom: 6px;
}

.vji-doc-prose strong {
  color: #0f172a;
}

.vji-doc-prose a {
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vji-doc-prose a:hover {
  color: #3730a3;
}

/* Callouts (Subtle & Clean) */
.vji-doc-callout {
  border-left: 3px solid;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.vji-doc-callout--tip {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}

.vji-doc-callout--warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.vji-doc-callout--info {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #075985;
}

/* Code Blocks */
.vji-doc-prose pre {
  position: relative;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--vji-font-mono, monospace);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 20px 0;
}

.vji-doc-prose code {
  font-family: var(--vji-font-mono, monospace);
  font-size: 0.9em;
  background: #f1f5f9;
  color: #dc2626;
  padding: 2px 5px;
  border-radius: 4px;
}

.vji-doc-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.vji-code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.vji-code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.vji-code-copy-btn.is-copied {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

/* Video Frame */
.vji-doc-video-frame {
  margin-bottom: 28px;
  border-radius: 10px;
  overflow: hidden;
}

.vji-doc-video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

/* Minimalist Feedback Row */
.vji-article-feedback {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.vji-feedback-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
}

.vji-feedback-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vji-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  user-select: none;
}

.vji-vote-btn:hover {
  border-color: #6366f1;
  color: #4f46e5;
  background: #f8fafc;
}

.vji-vote-btn--yes.is-voted {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(34, 197, 94, 0.1);
}

.vji-vote-btn--no.is-voted {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.1);
}

.vji-vote-num {
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 7px;
  background: #f1f5f9;
  border-radius: 10px;
  color: #475569;
  transition: all 0.15s ease-in-out;
}

.vji-vote-btn--yes.is-voted .vji-vote-num {
  background: #dcfce7;
  color: #166534;
}

.vji-vote-btn--no.is-voted .vji-vote-num {
  background: #fee2e2;
  color: #991b1b;
}

.vji-feedback-reply {
  display: none;
  width: 100%;
  font-size: 13px;
  color: #15803d;
  font-weight: 500;
  padding: 7px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  animation: vjiFadeIn 0.2s ease-in-out;
}

/* Pager Navigation */
.vji-article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.vji-pager-link {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.vji-pager-link:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  text-decoration: none !important;
}

.vji-pager-link--empty {
  display: none !important;
}

.vji-pager-link--next {
  text-align: right;
}

.vji-pager-direction {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.vji-pager-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

/* ==========================================================================
   7. Sleek Right Table of Contents (TOC)
   ========================================================================== */
.vji-toc-panel {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.vji-toc-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 12px;
}

.vji-toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 1px solid #e2e8f0;
}

.vji-toc-item {
  position: relative;
}

.vji-toc-link {
  display: block;
  padding: 3px 0 3px 12px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
}

.vji-toc-link:hover {
  color: #0f172a;
}

.vji-toc-item.is-active .vji-toc-link {
  color: #4f46e5;
  font-weight: 600;
  border-left: 2px solid #4f46e5;
  margin-left: -1px;
}

.vji-toc-item--h3 .vji-toc-link {
  padding-left: 20px;
  font-size: 12px;
}

.vji-toc-help-link {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.vji-toc-help-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.vji-toc-help-link a:hover {
  color: #4f46e5;
}

/* ==========================================================================
   8. Clean Main Hub (`/docs/`) Styles
   ========================================================================== */
.vji-hub-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.vji-hub-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4f46e5;
  margin-bottom: 8px;
}

.vji-hub-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.vji-hub-sub {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 28px;
}

.vji-hub-search-box {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.vji-searchform--hero .vji-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 6px 6px 6px 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.vji-searchform--hero .vji-search-wrap:focus-within {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.vji-searchform--hero input[type="search"] {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  color: #0f172a;
}

.vji-btn-hero-search {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.vji-btn-hero-search:hover {
  background: #4338ca;
}

.vji-hub-scope-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.vji-scope-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 150ms ease;
  user-select: none;
}

.vji-scope-pill input {
  display: none !important;
}

.vji-scope-pill:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.vji-scope-pill.is-active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
  font-weight: 600;
}

/* ==========================================================================
   Search Results Page Styling
   ========================================================================== */
.vji-search-hero {
  margin-bottom: 40px;
}

.vji-search-page-title {
  margin: 0 0 10px;
}

.vji-search-page-sub {
  margin-bottom: 24px;
}

.vji-search-results-canvas {
  max-width: 880px;
  margin: 0 auto;
}

.vji-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vji-search-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  transition: all 150ms ease;
  display: flex;
  flex-direction: column;
}

.vji-search-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.vji-search-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.vji-search-card__prod {
  font-weight: 700;
  color: #4f46e5;
}

.vji-search-card__cat {
  font-weight: 600;
  color: #64748b;
}

.vji-search-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.35;
}

.vji-search-card__title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 150ms ease;
}

.vji-search-card__title a:hover {
  color: #4f46e5;
}

.vji-search-card__excerpt {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}

mark.vji-highlight {
  background: #fef08a;
  color: #713f12;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.vji-search-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f8fafc;
  font-size: 12.5px;
}

.vji-search-card__readtime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
}

.vji-search-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
  transition: transform 150ms ease, color 150ms ease;
}

.vji-search-card__link:hover {
  color: #3730a3;
  transform: translateX(3px);
}

/* No Results State */
.vji-search-no-results {
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  max-width: 600px;
  margin: 0 auto;
}

.vji-no-results-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.vji-no-results-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.vji-no-results-sub {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 24px;
  line-height: 1.5;
}

.vji-btn-browse {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #4f46e5;
  color: #ffffff !important;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.vji-btn-browse:hover {
  background: #4338ca;
}

/* Hub Product Cards Grid */
.vji-hub-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.vji-hub-prod-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 150ms ease;
}

.vji-hub-prod-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.vji-hub-prod-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.vji-hub-prod-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vji-hub-prod-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.vji-hub-prod-count {
  font-size: 12px;
  color: #64748b;
}

.vji-hub-prod-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 18px;
  line-height: 1.5;
}

.vji-hub-article-links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.vji-hub-article-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 500;
}

.vji-hub-article-links li a span:first-child {
  color: #94a3b8;
  font-size: 12px;
}

.vji-hub-article-links li a:hover {
  color: #4f46e5;
}

.vji-hub-prod-footer {
  padding-top: 16px;
  border-top: 1px solid #f8fafc;
}

.vji-hub-browse-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
}

.vji-hub-browse-link:hover {
  text-decoration: underline;
}

/* Hub Popular Guides Section */
.vji-hub-popular-section {
  margin-bottom: 56px;
}

.vji-hub-section-heading {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px;
}

.vji-hub-popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.vji-hub-guide-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 150ms ease;
}

.vji-hub-guide-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.vji-guide-item-meta {
  margin-bottom: 6px;
}

.vji-guide-prod {
  font-size: 11px;
  font-weight: 600;
  color: #4f46e5;
}

.vji-guide-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.35;
}

.vji-guide-item-snippet {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.vji-hub-footer-help {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   9. Predictive Search Live Dropdown
   ========================================================================== */
.vji-live-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
  text-align: left;
  padding: 6px 0;
}

.vji-live-result-item {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-bottom: 1px solid #f8fafc;
}

.vji-live-result-item:hover,
.vji-live-result-item.is-selected {
  background: #f8fafc;
}

.vji-live-result-meta {
  font-size: 10.5px;
  font-weight: 600;
  color: #4f46e5;
  margin-bottom: 2px;
}

.vji-live-result-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

.vji-live-result-snippet {
  font-size: 12px;
  color: #64748b;
}

.vji-live-search-footer {
  padding: 8px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.vji-live-search-footer a {
  font-size: 12px;
  font-weight: 600;
  color: #4f46e5;
}

.vji-live-no-results {
  padding: 18px 14px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

/* ==========================================================================
   10. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .vji-docs-reader-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .vji-docs-reader-toc {
    display: none;
  }
  .vji-doc-quickstart-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .vji-cat-grid {
    grid-template-columns: 1fr;
  }
  .vji-related-grid {
    grid-template-columns: 1fr;
  }
  .vji-docs-reader-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .vji-reader-nav-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .vji-reader-search {
    width: 100%;
  }
  .vji-article-doc {
    padding: 24px 20px;
  }
}
