/* Documentation owns its layout; colors come from the shared light/dark theme. */
.docs-hub { background: var(--bg); }
.docs-hub .docs-shell { display: grid; grid-template-columns: 242px minmax(0, 760px) 190px; gap: 48px; max-width: 1440px; margin: 0 auto; padding: 112px 32px 0; align-items: start; }
.docs-hub .docs-sidebar { position: sticky; top: 94px; height: calc(100dvh - 112px); overflow-y: auto; padding: 0 20px 40px 0; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.docs-menu > summary { display: none; }
.docs-nav-group { margin: 0 0 25px; }
.docs-hub .docs-nav-label { color: var(--ink); font: 600 12px/1.6 var(--sans, Inter, sans-serif); margin: 0 0 9px; letter-spacing: .025em; }
.docs-sidebar nav a { display: block; padding: 6px 11px; border-radius: 6px; color: var(--ink-soft); text-decoration: none; font-size: 13px; line-height: 1.6; border-left: 2px solid transparent; }
.docs-sidebar nav a:hover { background: var(--bg-subtle); color: var(--ink); }
.docs-sidebar nav a[aria-current="page"] { background: var(--accent-surface); color: var(--brand-deep); border-left-color: var(--brand); font-weight: 600; }
.docs-nav-children { margin: 4px 0 8px 12px; border-left: 1px solid var(--border); padding-left: 8px; }
.docs-nav-disclosure > summary { padding: 6px 11px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; cursor: pointer; border-radius: 6px; }
.docs-nav-disclosure > summary:hover { background: var(--bg-subtle); color: var(--ink); }
.docs-nav-disclosure > summary::marker { color: var(--ink-faint); font-size: 10px; }
.docs-sidebar nav .docs-nested-link { font-size: 12px; padding-top: 4px; padding-bottom: 4px; }
.docs-sidebar-support { display: block; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--ink-soft); font-size: 12px; }
.docs-article { min-width: 0; padding: 0 0 64px; }
.docs-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; font-size: 12px; color: var(--ink-faint); margin: 0 0 29px; }
.docs-breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.docs-article-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.docs-kicker { font: 600 11px/1.5 var(--sans, Inter, sans-serif); text-transform: uppercase; letter-spacing: .11em; color: var(--brand-deep); }
.docs-article-tools > div { display: flex; gap: 8px; align-items: center; }
.docs-hub .docs-article-tools :is(button, a), .docs-code-head button { border: 1px solid var(--border); border-radius: 6px; background: var(--bg-elevated); color: var(--ink-soft); font: 500 11px/1.4 var(--sans, Inter, sans-serif); padding: 7px 10px; text-decoration: none; cursor: pointer; }
.docs-article-tools :is(button, a):hover { border-color: var(--brand); color: var(--brand-deep); }
.docs-hub .docs-article-header h1 { font-family: var(--display, Fraunces, Georgia, serif); font-size: clamp(34px, 3.3vw, 50px); font-weight: 450; line-height: 1.12; letter-spacing: -.035em; margin: 0 0 20px; color: var(--ink); }
.docs-hub .docs-deck { font-size: 17px; line-height: 1.8; color: var(--ink-soft); margin: 0; max-width: 65ch; }
.docs-article-header { padding-bottom: 30px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.docs-hub #main .docs-section { margin: 0 0 38px; padding: 0; background: transparent; border: 0; min-height: 0; scroll-margin-top: 110px; }
.docs-hub #main .docs-section h2 { font: 550 23px/1.35 var(--display, Fraunces, Georgia, serif); letter-spacing: -.02em; margin: 0 0 16px; }
.docs-section h2 a { color: var(--ink); text-decoration: none; }
.docs-section h2 a span { color: var(--ink-faint); opacity: 0; font-family: var(--sans, Inter, sans-serif); font-size: 15px; }
.docs-section h2 a:hover span, .docs-section h2 a:focus-visible span { opacity: 1; }
.docs-hub #main .docs-section p { font-size: 14px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 16px; }
.docs-section p a, .docs-help a { color: var(--brand-deep); text-underline-offset: 3px; }
.docs-section :not(pre) > code { background: var(--bg-subtle); color: var(--ink); border: 1px solid var(--border-faint); border-radius: 4px; padding: 1px 4px; font-size: .85em; overflow-wrap: anywhere; }
.docs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.docs-card { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 20px 36px 20px 18px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-elevated); text-decoration: none; transition: border-color .15s, background .15s; }
.docs-card:hover { border-color: var(--brand); background: var(--accent-surface); }
.docs-card strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.docs-card > span:not(.docs-card-icon) { font-size: 12px; line-height: 1.7; color: var(--ink-soft); }
.docs-card-icon { position: absolute; top: 16px; right: 16px; color: var(--brand); font-size: 17px; }
.docs-table { max-width: 100%; overflow: auto; border: 1px solid var(--border); border-radius: 8px; margin: 18px 0; background: var(--bg-elevated); }
.docs-table table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.75; }
.docs-table :is(th, td) { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--border-faint); vertical-align: top; }
.docs-table th { background: var(--bg-subtle); font-size: 11px; color: var(--ink); font-weight: 600; }
.docs-table td { color: var(--ink-soft); }
.docs-table td:first-child { color: var(--ink); font-weight: 500; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table a { color: var(--brand-deep); text-underline-offset: 3px; }
.docs-code { margin: 20px 0; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--code-bg); }
.docs-code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--bg-subtle); border-bottom: 1px solid var(--border); color: var(--ink-soft); font: 11px/1.5 var(--mono, 'JetBrains Mono', monospace); }
.docs-hub .docs-code pre { margin: 0; padding: 19px; max-width: 100%; overflow: auto; color: var(--code-ink); font: 11.5px/1.9 var(--mono, 'JetBrains Mono', monospace); background: transparent; white-space: pre; tab-size: 2; }
.docs-code pre code { color: inherit; font: inherit; background: none; padding: 0; border: 0; }
.docs-ai-hint .docs-code pre, #setup-prompt .docs-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.docs-section { scroll-margin-top: 110px; }
.docs-note { margin: 20px 0; padding: 15px 18px; border-left: 3px solid var(--brand); border-radius: 0 6px 6px 0; color: var(--ink-soft); background: var(--accent-surface); font-size: 13px; line-height: 1.8; }
.docs-note a { color: var(--brand-deep); }
.docs-toc { position: sticky; top: 112px; padding-left: 20px; border-left: 1px solid var(--border); max-height: calc(100dvh - 145px); overflow: auto; }
.docs-toc nav > p { margin: 0 0 13px; font-size: 11px; font-weight: 600; color: var(--ink); }
.docs-toc a { display: block; color: var(--ink-faint); font-size: 11px; line-height: 1.6; text-decoration: none; padding: 5px 0; }
.docs-toc a:hover, .docs-toc a[aria-current="location"] { color: var(--brand-deep); }
.docs-toc .docs-toc-support { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 18px; color: var(--ink-soft); }
.docs-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; border-top: 1px solid var(--border); margin-top: 54px; padding-top: 24px; }
.docs-pagination a { display: flex; flex-direction: column; gap: 5px; color: var(--ink); text-decoration: none; border: 1px solid var(--border); border-radius: 8px; padding: 15px; }
.docs-pagination a:last-child { text-align: right; }
.docs-pagination a:hover { border-color: var(--brand); }
.docs-pagination small { font-size: 10px; color: var(--ink-faint); }
.docs-pagination strong { font-size: 13px; font-weight: 500; }
.docs-help { font-size: 12px; color: var(--ink-faint); margin-top: 28px; }
.docs-copy-status { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 100; background: var(--bg-elevated); color: var(--ink); border: 1px solid var(--border); border-radius: 8px; padding: 10px 18px; box-shadow: var(--shadow-md); font-size: 13px; max-width: 90vw; }
.docs-copy-status:empty { display: none; }
.docs-hub :is(a, button, summary, pre, .docs-table):focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
@media (min-width: 1001px) { .docs-menu:not([open]) > :not(summary) { display: block; } }
@media (max-width: 1250px) { .docs-hub .docs-shell { grid-template-columns: 220px minmax(0, 760px); gap: 38px; } .docs-toc { display: none; } }
@media (max-width: 1000px) {
  .docs-hub .docs-shell { display: block; padding: 92px 24px 0; max-width: 800px; }
  .docs-hub .docs-sidebar { position: relative; top: auto; height: auto; overflow: visible; padding: 0; margin: 0 0 30px; }
  .docs-menu { border: 1px solid var(--border); border-radius: 8px; background: var(--bg-elevated); }
  .docs-menu > summary { display: flex; justify-content: space-between; gap: 10px; padding: 15px; cursor: pointer; color: var(--ink); font-size: 13px; list-style: none; }
  .docs-menu > summary::-webkit-details-marker { display: none; }
  .docs-menu-hint { color: var(--ink-faint); font-size: 11px; }
  .docs-menu[open] > nav { padding: 20px 15px 0; max-height: 55dvh; overflow: auto; border-top: 1px solid var(--border); }
  .docs-menu .docs-sidebar-support { margin: 0; padding: 15px; }
  .docs-sidebar nav a { padding-top: 9px; padding-bottom: 9px; }
  .docs-sidebar nav .docs-nested-link { padding-top: 8px; padding-bottom: 8px; }
  .docs-hub .docs-article-header h1 { font-size: 39px; }
  .docs-hub .docs-deck { font-size: 16px; }
}
@media (max-width: 520px) {
  .docs-hub .docs-shell { padding-left: 18px; padding-right: 18px; }
  .docs-hub .docs-article-header h1 { font-size: 35px; }
  .docs-cards { grid-template-columns: 1fr; }
  .docs-card { padding-top: 16px; padding-bottom: 16px; }
  .docs-breadcrumb { font-size: 11px; margin-bottom: 24px; }
  .docs-article-tools { flex-wrap: wrap; }
  .docs-table :is(th, td) { padding: 10px; }
  .docs-pagination { gap: 9px; }
  .docs-pagination a { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .docs-card { transition: none; } }
.docs-ai-hint { margin: 22px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; line-height: 1.65; }
.docs-ai-hint a { text-decoration: underline; text-underline-offset: 3px; }
.docs-ai-hint pre { white-space: pre-wrap; overflow-wrap: anywhere; }
