/**
 * SG Lead Pro — Documentation & Knowledge Base Stylesheet
 * Clean, modern, Stripe/Tailwind/Linear-inspired documentation UI.
 */

:root {
  --docs-primary: #0F172A;
  --docs-accent: #2563EB;
  --docs-accent-hover: #1D4ED8;
  --docs-accent-light: #EFF6FF;
  --docs-bg: #FFFFFF;
  --docs-content-bg: #FFFFFF;
  --docs-border: #E2E8F0;
  --docs-border-light: #F1F5F9;
  --docs-text-main: #1E293B;
  --docs-text-muted: #64748B;
  --docs-text-light: #94A3B8;
  --docs-code-bg: #F8FAFC;
  --docs-header-h: 60px;
  --docs-sidebar-w: 275px;
  --docs-toc-w: 220px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.docs-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--docs-bg);
  color: var(--docs-text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

/* ── Top Header ─────────────────────────────────────────── */
.docs-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--docs-header-h);
  background: #FFFFFF;
  border-bottom: 1px solid var(--docs-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.docs-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

#mobile-menu-toggle {
  background: transparent;
  border: 1px solid var(--docs-border);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--docs-text-main);
  cursor: pointer;
  display: none;
}

@media (max-width: 991.98px) {
  #mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

.docs-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.docs-header-brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.docs-brand-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

.docs-brand-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--docs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.docs-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--docs-accent-light);
  color: var(--docs-accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.docs-search-bar {
  width: 380px;
  max-width: 100%;
  position: relative;
  margin: 0 16px;
}

.docs-search-input {
  width: 100%;
  height: 36px;
  background: #F8FAFC;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  padding: 0 36px 0 34px;
  font-size: 13px;
  color: var(--docs-text-main);
  transition: all 0.15s ease;
}

.docs-search-input:focus {
  background: #FFFFFF;
  border-color: var(--docs-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.docs-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--docs-text-light);
  font-size: 13px;
  pointer-events: none;
}

.docs-search-kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #FFFFFF;
  border: 1px solid var(--docs-border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  color: var(--docs-text-muted);
  font-family: 'DM Mono', monospace;
  pointer-events: none;
}

.docs-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.docs-btn-default {
  background: #F8FAFC;
  border-color: var(--docs-border);
  color: var(--docs-text-main);
}

.docs-btn-default:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: var(--docs-primary);
}

.docs-btn-primary {
  background: var(--docs-accent);
  border-color: var(--docs-accent);
  color: #FFFFFF;
  font-weight: 600;
}

.docs-btn-primary:hover {
  background: var(--docs-accent-hover);
  border-color: var(--docs-accent-hover);
  color: #FFFFFF;
}

/* ── App Shell Layout ───────────────────────────────────── */
.docs-shell {
  display: flex;
  min-height: calc(100vh - var(--docs-header-h));
  position: relative;
  background: #FFFFFF;
}

/* ── Left Sidebar ───────────────────────────────────────── */
.docs-sidebar {
  width: var(--docs-sidebar-w);
  flex-shrink: 0;
  background: #FFFFFF;
  border-right: 1px solid var(--docs-border);
  height: calc(100vh - var(--docs-header-h));
  position: sticky;
  top: var(--docs-header-h);
  overflow-y: auto;
  padding: 16px 12px 40px;
  box-sizing: border-box;
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}
.docs-sidebar::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.docs-filter-box {
  margin-bottom: 14px;
  position: relative;
}

.docs-filter-input {
  width: 100%;
  height: 32px;
  padding: 0 10px 0 28px;
  border: 1px solid var(--docs-border);
  border-radius: 6px;
  font-size: 12.5px;
  background: #F8FAFC;
  color: var(--docs-text-main);
  transition: all 0.15s ease;
}

.docs-filter-input:focus {
  outline: none;
  border-color: var(--docs-accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.docs-master-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #F8FAFC;
  border: 1px solid var(--docs-border);
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.15s ease;
}

.docs-master-link:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.docs-master-link.active {
  background: var(--docs-accent-light);
  border-color: rgba(37, 99, 235, 0.3);
}

.docs-category-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--docs-text-light);
  padding: 12px 8px 4px;
  margin-top: 4px;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: all 0.12s ease;
  margin-bottom: 2px;
  line-height: 1.35;
}

.docs-nav-link:hover {
  background: #F1F5F9;
  color: var(--docs-primary);
}

.docs-nav-link.active {
  background: var(--docs-accent-light);
  color: var(--docs-accent);
  font-weight: 600;
}

.docs-nav-link .nav-num {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  background: #F1F5F9;
  color: var(--docs-text-muted);
  padding: 1px 5px;
  border-radius: 4px;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.docs-nav-link.active .nav-num {
  background: #DBEAFE;
  color: var(--docs-accent);
  font-weight: 600;
}

.docs-nav-link .nav-icon {
  font-size: 13px;
  flex-shrink: 0;
  color: var(--docs-text-light);
}

.docs-nav-link.active .nav-icon {
  color: var(--docs-accent);
}

.docs-nav-link .nav-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* ── Central Main Content ───────────────────────────────── */
.docs-content-wrapper {
  flex: 1;
  min-width: 0;
  padding: 36px 44px 70px;
  display: flex;
  justify-content: center;
}

.docs-article {
  max-width: 820px;
  width: 100%;
}

/* ── Breadcrumbs & Meta Bar ─────────────────────────────── */
.docs-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--docs-text-muted);
  margin-bottom: 12px;
}

.docs-breadcrumbs a {
  color: var(--docs-text-muted);
  text-decoration: none;
}

.docs-breadcrumbs a:hover {
  color: var(--docs-accent);
}

.docs-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.docs-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 5px;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid var(--docs-border);
}

.docs-pill-accent {
  background: var(--docs-accent-light);
  color: var(--docs-accent);
  border-color: rgba(37, 99, 235, 0.2);
}

/* ── Typography & Markdown Elements ─────────────────────── */
.docs-article h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0F172A;
  margin: 0 0 16px;
  line-height: 1.3;
}

.docs-article h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0F172A;
  margin: 38px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--docs-border);
  position: relative;
}

.docs-article h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1E293B;
  margin: 24px 0 10px;
}

.docs-article h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
  margin: 18px 0 8px;
}

.docs-heading .heading-anchor {
  position: absolute;
  left: -18px;
  opacity: 0;
  color: var(--docs-accent);
  text-decoration: none;
  font-weight: normal;
  transition: opacity 0.15s ease;
}

.docs-heading:hover .heading-anchor {
  opacity: 1;
}

.docs-article p {
  font-size: 14.5px;
  color: #334155;
  margin: 0 0 16px;
  line-height: 1.7;
}

.docs-article ul, .docs-article ol {
  font-size: 14.5px;
  color: #334155;
  margin: 0 0 18px;
  padding-left: 22px;
}

.docs-article li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.docs-article hr {
  border: none;
  border-top: 1px solid var(--docs-border);
  margin: 32px 0;
}

.docs-article blockquote {
  border-left: 3px solid var(--docs-accent);
  background: #F8FAFC;
  padding: 10px 16px;
  margin: 18px 0;
  border-radius: 0 6px 6px 0;
  color: #475569;
  font-style: italic;
}

.docs-article blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables */
.docs-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13.5px;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.docs-article th {
  background: #F8FAFC;
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  color: #334155;
  border-bottom: 2px solid var(--docs-border);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.docs-article td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--docs-border-light);
  color: #475569;
  vertical-align: top;
  line-height: 1.55;
}

.docs-article tr:last-child td {
  border-bottom: none;
}

.docs-article tr:nth-child(even) td {
  background: #FAFBFC;
}

.docs-article tr:hover td {
  background: #F1F5F9;
}

/* Clean Light Document Boxes (No Dark Coding Boxes) */
.docs-article pre {
  background: #F8FAFC;
  color: #0F172A;
  padding: 14px 18px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 16px 0;
  position: relative;
  border: 1px solid var(--docs-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.docs-article code {
  font-family: inherit;
  font-size: 13px;
  background: #F1F5F9;
  color: #0F172A;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.docs-article pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-weight: normal;
}

.docs-copy-btn {
  display: none !important;
}

/* ── Rich GitHub-Style Alert Callouts ─────────────────────── */
.docs-callout {
  border-radius: 8px;
  padding: 12px 16px;
  margin: 18px 0;
  border-left: 4px solid;
  background: #FFFFFF;
  border: 1px solid var(--docs-border);
  border-left-width: 4px;
}

.docs-callout .callout-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.docs-callout .callout-body p {
  font-size: 13.5px;
  margin-bottom: 6px;
  line-height: 1.55;
  color: #334155;
}

.docs-callout .callout-body p:last-child {
  margin-bottom: 0;
}

.docs-callout-note {
  border-left-color: #3B82F6 !important;
  background: #EFF6FF;
}
.docs-callout-note .callout-header { color: #1D4ED8; }

.docs-callout-tip {
  border-left-color: #10B981 !important;
  background: #ECFDF5;
}
.docs-callout-tip .callout-header { color: #047857; }

.docs-callout-important {
  border-left-color: #8B5CF6 !important;
  background: #F5F3FF;
}
.docs-callout-important .callout-header { color: #6D28D9; }

.docs-callout-warning {
  border-left-color: #F59E0B !important;
  background: #FFFBEB;
}
.docs-callout-warning .callout-header { color: #B45309; }

.docs-callout-caution {
  border-left-color: #EF4444 !important;
  background: #FEF2F2;
}
.docs-callout-caution .callout-header { color: #B91C1C; }

/* ── Bottom Chapter Navigation (Previous / Next) ────────── */
.docs-bottom-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--docs-border);
}

.docs-nav-card {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  background: #FFFFFF;
  text-decoration: none;
  transition: all 0.15s ease;
}

.docs-nav-card:hover {
  border-color: var(--docs-accent);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.06);
  transform: translateY(-1px);
}

.docs-nav-card .nav-direction {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--docs-text-muted);
  margin-bottom: 2px;
}

.docs-nav-card .nav-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
}

.docs-nav-card.next {
  text-align: right;
  grid-column: 2;
}

/* ── Right Sticky Table of Contents ("On This Page") ─────── */
.docs-toc {
  width: var(--docs-toc-w);
  flex-shrink: 0;
  height: calc(100vh - var(--docs-header-h));
  position: sticky;
  top: var(--docs-header-h);
  overflow-y: auto;
  padding: 32px 14px 40px;
  box-sizing: border-box;
}

.docs-toc::-webkit-scrollbar {
  width: 3px;
}
.docs-toc::-webkit-scrollbar-thumb {
  background: #E2E8F0;
  border-radius: 3px;
}

.docs-toc-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--docs-text-light);
  margin-bottom: 12px;
}

.docs-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--docs-border);
}

.docs-toc-item {
  margin-bottom: 2px;
}

.docs-toc-link {
  display: block;
  font-size: 12px;
  color: var(--docs-text-muted);
  text-decoration: none;
  line-height: 1.4;
  padding: 4px 0 4px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  transition: all 0.12s ease;
}

.docs-toc-link:hover {
  color: var(--docs-primary);
}

.docs-toc-link.active {
  color: var(--docs-accent);
  border-left-color: var(--docs-accent);
  font-weight: 600;
}

/* ── Feedback Widget ────────────────────────────────────── */
.docs-feedback-box {
  margin-top: 36px;
  padding: 14px 18px;
  background: #F8FAFC;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.docs-feedback-btn {
  border: 1px solid var(--docs-border);
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
}

.docs-feedback-btn:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

/* ── Mobile & Responsive Tweaks ─────────────────────────── */
@media (max-width: 1200px) {
  .docs-toc {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .docs-sidebar {
    position: fixed;
    top: var(--docs-header-h);
    left: -100%;
    z-index: 1040;
    transition: left 0.2s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }

  .docs-sidebar.open {
    left: 0;
  }

  .docs-content-wrapper {
    padding: 20px 16px 50px;
  }

  .docs-search-bar {
    width: 200px;
  }
}

@media (max-width: 640px) {
  .docs-bottom-nav {
    grid-template-columns: 1fr;
  }
  .docs-nav-card.next {
    grid-column: 1;
    text-align: left;
  }
}

/* ── AI Spotlight Search Modal (Ctrl + K) ─────────────────── */
.docs-spotlight-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 20px;
  animation: docsSpotlightFadeIn 0.15s ease-out;
}

@keyframes docsSpotlightFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.docs-spotlight-card {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: docsSpotlightScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes docsSpotlightScaleIn {
  from { transform: scale(0.96) translateY(-10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.docs-spotlight-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.docs-spotlight-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.docs-spotlight-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: #0F172A;
  padding: 0;
  font-family: inherit;
}

.docs-spotlight-input::placeholder {
  color: #94A3B8;
  font-size: 14px;
}

.docs-spotlight-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.docs-spotlight-clear-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.docs-spotlight-clear-btn:hover {
  color: #64748B;
}

.docs-spotlight-send-btn {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
  line-height: 1.4;
}

.docs-spotlight-send-btn:hover {
  background: linear-gradient(135deg, #4338CA, #6D28D9);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
  color: #FFFFFF;
}

.docs-spotlight-send-btn:active {
  transform: translateY(0);
}

.docs-spotlight-send-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.docs-spotlight-badge-esc {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  background: #E2E8F0;
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.5px;
}


.docs-spotlight-body {
  overflow-y: auto;
  max-height: calc(85vh - 120px);
  padding: 18px;
  flex: 1;
}

.docs-spotlight-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.docs-spotlight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.docs-spotlight-chip {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.docs-spotlight-chip:hover {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: #4338CA;
  transform: translateY(-1px);
}

.docs-spotlight-ai-card {
  background: #F8FAFC;
  border: 1px solid #E0E7FF;
  border-left: 3px solid #6366F1;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06);
}

.docs-spotlight-ai-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #EEF2F6;
}

.docs-ai-icon-pill {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.docs-spotlight-ai-answer {
  font-size: 13px;
  color: #1E293B;
  line-height: 1.65;
}

.docs-spotlight-ai-answer p {
  margin-bottom: 8px;
}

.docs-spotlight-ai-answer ul, .docs-spotlight-ai-answer ol {
  padding-left: 18px;
  margin-bottom: 8px;
}

.docs-spotlight-ai-answer li {
  margin-bottom: 4px;
}

.docs-spotlight-ai-answer strong {
  color: #0F172A;
}

.docs-spotlight-recs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-spotlight-rec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  text-decoration: none;
  background: #FFFFFF;
  transition: all 0.15s ease;
}

.docs-spotlight-rec-item:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateX(3px);
}

.docs-spotlight-rec-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #EEF2FF;
  color: #4F46E5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.docs-spotlight-rec-title {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.3;
}

.docs-spotlight-rec-summary {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.3;
  margin-top: 2px;
}

.docs-spotlight-rec-arrow {
  color: #94A3B8;
  font-size: 14px;
  margin-left: auto;
  transition: transform 0.15s ease;
}

.docs-spotlight-rec-item:hover .docs-spotlight-rec-arrow {
  color: #4F46E5;
  transform: translateX(3px);
}

.docs-spotlight-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
}

/* Shimmer Box */
.docs-spotlight-shimmer-box {
  padding: 12px 6px;
}

.docs-shimmer-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: docsShimmer 1.5s infinite;
  margin-bottom: 10px;
}

.docs-shimmer-w80 { width: 80%; }
.docs-shimmer-w100 { width: 100%; }
.docs-shimmer-w60 { width: 60%; }

@keyframes docsShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Header Trigger Enhancements */
.docs-search-bar.cursor-pointer {
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 36px;
  background: #F8FAFC;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  padding: 0 10px 0 34px;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}

.docs-search-bar.cursor-pointer:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.docs-search-bar.cursor-pointer .docs-search-placeholder {
  flex: 1;
  font-size: 13px;
  color: #64748B;
  margin-left: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-search-bar.cursor-pointer .docs-search-kbd {
  position: static;
  transform: none;
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  color: #64748B;
  background: #FFFFFF;
  border: 1px solid var(--docs-border);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.2;
}


.docs-mobile-search-btn {
  background: transparent;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  color: #0F172A;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

