/* Public docs surface — layered on the existing Help Center treatment. */
.docs-index-body { min-height: 100vh; }
.docs-index-body .top-nav { padding: 0 32px; }
.docs-index-body .nav-left { gap: 20px; }
.docs-index-body .nav-section-label { color: var(--muted); font-size: 13px; }
.docs-index-body .nav-right { display: flex; align-items: center; gap: 8px; }
.docs-index-body .skip-link { position: absolute; top: 0; left: 16px; z-index: 101; transform: translateY(-150%); padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font-weight: 600; }
.docs-index-body .skip-link:focus { transform: translateY(0); }
.docs-hero { border-bottom: 1px solid var(--border); background: radial-gradient(circle at 80% 0%, rgba(56,189,248,0.12), transparent 40%), var(--bg); padding: 72px 24px 64px; }
.docs-hero-inner { max-width: 1120px; margin: 0 auto; }
.docs-eyebrow { color: var(--accent); font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.docs-hero h1 { max-width: 760px; font-size: clamp(34px, 6vw, 58px); letter-spacing: -1.8px; line-height: 1.03; margin-bottom: 18px; }
.docs-hero p { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.docs-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.docs-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 15px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); font-size: 13px; font-weight: 600; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.docs-button:hover { border-color: var(--accent); background: var(--accent-glow); color: var(--text); }
.docs-button-primary { border-color: var(--accent); background: var(--accent); color: #071522; }
.docs-button-primary:hover { background: var(--accent-hover); color: #071522; }
.docs-content { max-width: 1120px; margin: 0 auto; padding: 52px 24px 80px; }
.docs-section { margin-bottom: 44px; }
.docs-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.docs-section-heading h2 { font-size: 22px; letter-spacing: -0.4px; }
.docs-section-heading span { color: var(--muted); font-size: 12px; }
.docs-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.docs-card { display: flex; flex-direction: column; min-height: 178px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; transition: border-color 0.18s, transform 0.18s, background 0.18s; }
.docs-card:hover { border-color: rgba(56,189,248,0.45); background: var(--surface2); transform: translateY(-2px); }
.docs-card-icon { font-size: 24px; margin-bottom: 16px; }
.docs-card h3 { color: var(--text); font-size: 16px; line-height: 1.3; margin-bottom: 8px; }
.docs-card p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.docs-card-arrow { color: var(--accent); font-size: 18px; margin-top: auto; padding-top: 18px; }
.docs-card-feature { grid-column: span 2; border-color: rgba(56,189,248,0.32); background: linear-gradient(135deg, rgba(56,189,248,0.09), var(--surface) 55%); }
.docs-card-feature .docs-card-kicker { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.docs-card-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; font-size: 13px; }
.docs-card-links a { font-weight: 600; }
.docs-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.docs-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* Guide actions and article-specific layout. */
.docs-main { max-width: 980px; }
.docs-main .article-title { max-width: 780px; }
.docs-main .article-subtitle { max-width: 820px; }
.docs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.docs-action { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12px; font-weight: 600; }
.docs-action:hover { border-color: var(--accent); background: var(--accent-glow); color: var(--text); }
.docs-toc { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin: 0 0 28px; }
.docs-toc-title { color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.docs-toc ol { columns: 2; margin: 0 0 0 20px; }
.docs-toc li { break-inside: avoid; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.docs-toc a { color: var(--accent); }
.docs-main .article-body h2 { scroll-margin-top: 80px; }
.docs-main .article-body h3 { scroll-margin-top: 80px; }
.docs-main .article-body .feature-table { min-width: 640px; }
.docs-main .article-body .table-wrap { overflow-x: auto; }
.docs-main .article-body .step { break-inside: avoid; }
.docs-main .article-body .code-block { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.docs-main .article-body .prompt-block { color: #bde7fa; }
.docs-roadmap-stage { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin: 14px 0; break-inside: avoid; }
.docs-roadmap-stage h3 { margin-top: 0; }
.docs-checklist { list-style: none; margin-left: 0 !important; padding-left: 0; }
.docs-checklist li { padding-left: 28px; position: relative; }
.docs-checklist li::before { content: '□'; position: absolute; left: 0; color: var(--accent); font-size: 18px; line-height: 1.45; }
.docs-inline-note { color: var(--muted); font-size: 13px; }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }

@media (max-width: 900px) {
  .docs-index-body .top-nav { padding: 0 16px; }
  .docs-index-body .nav-divider, .docs-index-body .nav-section-label { display: none; }
  .docs-index-body .nav-right .btn-ghost { display: none; }
  .docs-hero { padding: 52px 16px 48px; }
  .docs-content { padding: 40px 16px 60px; }
  .docs-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-card-feature { grid-column: span 2; }
  .docs-toc ol { columns: 1; }
}

@media (max-width: 600px) {
  .docs-hero h1 { font-size: 36px; }
  .docs-hero p { font-size: 16px; }
  .docs-index-grid { grid-template-columns: 1fr; }
  .docs-card-feature { grid-column: span 1; }
  .docs-main { padding-top: 28px; }
  .docs-main .article-body .feature-table { min-width: 560px; }
}

@media print {
  @page { margin: 0.65in; }
  html { scroll-behavior: auto; }
  body { background: #fff !important; color: #111 !important; }
  .top-nav, #helpSidebar, #sidebarOverlay, .mobile-menu-btn, .docs-actions, .article-nav { display: none !important; }
  .help-layout { display: block; max-width: none; padding: 0; }
  .docs-main { max-width: none; padding: 0; }
  .article-meta { margin-bottom: 12px; }
  .article-category { color: #333 !important; background: #fff !important; border-color: #999 !important; }
  .article-title, .article-body h2, .article-body h3, .article-body strong, .docs-toc-title { color: #111 !important; }
  .article-subtitle, .article-body p, .article-body li, .callout-text, .step-desc { color: #333 !important; }
  .article-subtitle { border-color: #bbb !important; }
  .docs-toc, .callout, .step, .docs-roadmap-stage, .table-wrap { background: #fff !important; border-color: #999 !important; }
  .docs-toc a, .article-body a { color: #111 !important; text-decoration: underline; }
  .docs-toc li { color: #333 !important; }
  .code-block { background: #f7f7f7 !important; color: #111 !important; border-color: #999 !important; white-space: pre-wrap !important; overflow-wrap: anywhere; }
  .feature-table th, .feature-table td { color: #111 !important; border-color: #bbb !important; }
  .feature-table tr:hover td { background: transparent !important; }
  .docs-main .article-body h2 { break-after: avoid; }
  .callout, .step, .docs-roadmap-stage, .table-wrap { break-inside: avoid; }
}
