/* Documentation uses its own compact rhythm; marketing pages keep public.css. */
.docs-page {
    --background: #fff;
    --docs-ink: #18181b;
    --docs-muted: #52525b;
    --docs-line: #e4e4e7;
    --docs-soft: #f4f4f5;
    --docs-canvas: #fff;
    background: var(--docs-canvas) !important;
    color: var(--docs-ink);
    font-weight: 400;
    font-size: 0.9375rem;
}
.docs-page main { background: var(--docs-canvas); }
.docs-page [hidden] { display: none !important; }
.docs-page a { color: inherit; }
.docs-page :is(a, button, input, summary):focus-visible { outline: 2px solid var(--docs-ink); outline-offset: 4px; }
.docs-page :is(h1, h2, h3, p) { color: inherit; }
:where(.docs-page) :is(button, input) { font: inherit; }
.docs-page button { cursor: pointer; }
.docs-page .public-skip-link { z-index: 2000; }
.docs-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--docs-line); background: var(--docs-canvas); }
.docs-header-inner { max-width: 1480px; height: 64px; padding: 0 32px; margin: auto; display: flex; gap: 24px; align-items: center; }
.docs-brand { display: flex; flex-shrink: 0; }
.docs-brand img { display: block; width: 120px; height: auto; }
.docs-header-label { border-left: 1px solid var(--docs-line); padding-left: 24px; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.docs-header-search, .docs-search-trigger { margin-left: auto; width: 290px; min-height: 36px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--docs-line); border-radius: 7px; background: var(--docs-soft); }
.docs-header-search input { border: 0; background: transparent; width: 100%; min-width: 0; padding: 7px 12px; }
.docs-header-search button { border: 0; background: transparent; padding: 5px 12px; }
.docs-search-trigger { justify-content: space-between; padding: 6px 10px; text-align: left; color: var(--docs-muted); font-size: 0.8125rem; }
.docs-search-label-short { display: none; }
.docs-search-trigger kbd { border: 1px solid var(--docs-line); border-radius: 4px; background: var(--docs-canvas); color: var(--docs-muted); font: inherit; font-size: 0.6875rem; padding: 1px 5px; white-space: nowrap; }
.docs-header-links { margin-left: auto; display: flex; gap: 20px; font-size: 0.8125rem; white-space: nowrap; }
.docs-header-links a { text-decoration: none; }
.docs-header-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.docs-shell { max-width: 1480px; margin: auto; padding: 0 32px; display: grid; grid-template-columns: 224px minmax(0, 720px) 192px; gap: 48px; justify-content: space-between; align-items: start; }
.docs-sidebar, .docs-toc { position: sticky; top: 64px; max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; padding: 32px 0; scrollbar-width: thin; }
.docs-sidebar { padding-right: 12px; }
.docs-navigation { font-size: 0.8125rem; }
.docs-navigation ul, .docs-toc ol { list-style: none; padding: 0; margin: 0; }
.docs-nav-home, .docs-navigation li a { display: block; border-radius: 5px; padding: 7px 10px; text-decoration: none; line-height: 1.45; }
.docs-nav-home { margin-bottom: 24px; }
.docs-nav-group { margin-bottom: 24px; }
.docs-nav-group p { margin: 0 0 6px; padding: 0 10px; font-weight: 600; }
.docs-navigation li a { color: var(--docs-muted); }
.docs-navigation a:hover, .docs-navigation a.is-active { background: var(--docs-soft); color: var(--docs-ink); }
.docs-navigation a.is-active { font-weight: 600; }
.docs-mobile-menu { display: none; }
.docs-content { min-width: 0; padding: 32px 0 72px; }
.docs-shell-hub .docs-content { grid-column: 2 / -1; max-width: 960px; }
.docs-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 0.8125rem; color: var(--docs-muted); }
.docs-breadcrumb a { text-decoration: none; }
.docs-breadcrumb a:hover { text-decoration: underline; }
.docs-breadcrumb [aria-current] { color: var(--docs-ink); }
.docs-article-header { margin-bottom: 32px; }
.docs-article-header .docs-eyebrow { margin-bottom: 10px; font-size: 0.8125rem; font-weight: 500; color: var(--docs-muted); }
.docs-page .docs-article-header h1 { max-width: none; margin: 0 0 16px; font-size: clamp(1.8rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.2; }
.docs-article-header > p:not(.docs-eyebrow) { font-size: 1rem; line-height: 1.75; color: var(--docs-muted); margin: 0; max-width: 72ch; }
.docs-article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 0.75rem; color: var(--docs-muted); }
.docs-article-meta a { text-underline-offset: 3px; }
.docs-section { margin-top: 40px; scroll-margin-top: 88px; }
.docs-page .docs-section h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.4; margin: 0 0 16px; }
.docs-section h2 > a { text-decoration: none; }
.docs-heading-anchor { opacity: 0; margin-left: 8px; color: var(--docs-muted); font-weight: 400; }
.docs-section h2 a:hover .docs-heading-anchor, .docs-section h2 a:focus-visible .docs-heading-anchor { opacity: 1; }
.docs-section p, .docs-section li { line-height: 1.8; }
.docs-section p { margin: 0 0 16px; }
.docs-section ul, .docs-section ol { padding-left: 24px; margin: 16px 0; }
.docs-section li + li { margin-top: 8px; }
.docs-section a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #a1a1aa; }
.docs-section a:hover { text-decoration-color: var(--docs-ink); }
.docs-steps li { padding-left: 6px; }
.docs-steps li::marker { font-weight: 600; }
.docs-section-links { display: grid; gap: 8px; margin-top: 20px; font-size: 0.875rem; }
.docs-toc { font-size: 0.75rem; }
.docs-toc nav > p { font-size: 0.8125rem; font-weight: 600; margin: 0 0 12px; }
.docs-toc li { margin-bottom: 9px; }
.docs-toc a { display: block; color: var(--docs-muted); text-decoration: none; line-height: 1.6; padding-left: 12px; border-left: 1px solid var(--docs-line); }
.docs-toc a:hover, .docs-toc a[aria-current] { color: var(--docs-ink); border-left-color: var(--docs-ink); }
.docs-inline-toc { display: none; border-bottom: 1px solid var(--docs-line); padding-bottom: 16px; margin-bottom: 24px; font-size: 0.875rem; }
.docs-inline-toc summary { cursor: pointer; }
.docs-inline-toc ol { padding-left: 20px; margin: 16px 0 0; }
.docs-inline-toc li { margin: 8px 0; }
.docs-inline-toc a { color: var(--docs-muted); text-underline-offset: 4px; }
.docs-faq details { border-bottom: 1px solid var(--docs-line); padding: 16px 0; }
.docs-faq summary { cursor: pointer; line-height: 1.6; font-weight: 500; }
.docs-faq details p { color: var(--docs-muted); margin: 12px 0 0; }
.docs-related ul, .docs-sources ul { list-style: none; padding: 0; }
.docs-related li, .docs-sources li { padding: 12px 0; }
.docs-related li p, .docs-sources li p { margin: 4px 0 0; font-size: 0.8125rem; color: var(--docs-muted); }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.docs-pager a { display: grid; gap: 6px; border: 1px solid var(--docs-line); border-radius: 8px; padding: 16px; text-decoration: none; }
.docs-pager a:hover { background: var(--docs-soft); }
.docs-pager a[rel="next"] { text-align: right; }
.docs-pager small { font-size: 0.75rem; color: var(--docs-muted); }
.docs-pager strong { font-size: 0.875rem; font-weight: 500; }
.docs-hub-search { display: flex; gap: 8px; border: 1px solid var(--docs-line); border-radius: 8px; padding: 6px; background: var(--docs-canvas); margin-bottom: 32px; }
.docs-hub-search input { flex: 1; min-width: 0; border: 0; border-radius: 4px; padding: 8px 10px; color: var(--docs-ink); background: transparent; }
.docs-hub-search button { border: 0; border-radius: 5px; background: var(--docs-ink); color: white; font-size: 0.8125rem; padding: 8px 16px; }
.docs-hub-search input::placeholder { color: var(--docs-muted); opacity: 1; }
.docs-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 36px 0 48px; }
.docs-entry { padding: 24px; border: 1px solid var(--docs-line); border-radius: 10px; }
.docs-entry-number { display: block; color: var(--docs-muted); font-size: 0.75rem; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.docs-page .docs-entry h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 12px; }
.docs-entry p { color: var(--docs-muted); font-size: 0.875rem; line-height: 1.7; margin-bottom: 20px; }
.docs-entry ul, .docs-entry ol { padding-left: 20px; font-size: 0.8125rem; line-height: 1.6; margin: 0 0 24px; }
.docs-entry li + li { margin-top: 12px; }
.docs-entry a { text-decoration: none; }
.docs-entry a:hover { text-decoration: underline; text-underline-offset: 4px; }
.docs-text-link { font-size: 0.8125rem; font-weight: 500; }
.docs-footer { border-top: 1px solid var(--docs-line); font-size: 0.75rem; color: var(--docs-muted); }
.docs-footer > div { max-width: 1480px; margin: auto; padding: 24px 32px; display: flex; justify-content: space-between; gap: 20px; }
.docs-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.docs-footer a { text-decoration: none; }
.docs-search-dialog { width: min(680px, calc(100% - 32px)); max-height: min(80dvh, 800px); margin: 10dvh auto auto; border: 1px solid var(--docs-line); border-radius: 12px; padding: 20px; background: var(--docs-canvas); color: var(--docs-ink); box-shadow: 0 16px 64px #0002; }
.docs-search-dialog::backdrop { background: #0006; }
.docs-search-dialog[open] { display: flex; flex-direction: column; }
.docs-dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.docs-page .docs-dialog-top h2 { margin: 0; font-size: 0.875rem; font-weight: 600; }
.docs-dialog-top button { border: 1px solid var(--docs-line); border-radius: 4px; padding: 3px 8px; background: var(--docs-canvas); font-size: 0.75rem; }
.docs-search-dialog .docs-hub-search { flex-shrink: 0; margin-bottom: 12px; }
.docs-dialog-results { overflow-y: auto; min-height: 80px; }
.docs-search-hint { color: var(--docs-muted); font-size: 0.875rem; padding: 12px 0; }
.docs-results-heading { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; font-size: 0.8125rem; margin-bottom: 12px; }
.docs-results-heading p { margin: 0; overflow-wrap: anywhere; }
.docs-results-heading p span { color: var(--docs-muted); }
.docs-results-heading > a { color: var(--docs-muted); text-underline-offset: 3px; }
.docs-search-results > ul { list-style: none; margin: 0; padding: 0; }
.docs-search-results li a { display: grid; gap: 6px; padding: 16px 12px; border-bottom: 1px solid var(--docs-line); text-decoration: none; border-radius: 5px; }
.docs-search-results li a:hover, .docs-search-results li a:focus-visible { background: var(--docs-soft); }
.docs-search-results li small { font-size: 0.75rem; color: var(--docs-muted); }
.docs-search-results li strong { font-size: 0.9375rem; font-weight: 600; }
.docs-search-results li a > span { color: var(--docs-muted); font-size: 0.8125rem; line-height: 1.7; }
.docs-search-empty { padding: 32px 12px; }
.docs-page .docs-search-empty h2 { font-size: 1.125rem; font-weight: 600; }
.docs-search-empty p { color: var(--docs-muted); font-size: 0.875rem; line-height: 1.7; }
@media (max-width: 1279.98px) {
    .docs-shell { grid-template-columns: 208px minmax(0, 720px); gap: 40px; }
    .docs-toc { display: none; }
    .docs-inline-toc { display: block; }
}
@media (max-width: 1023.98px) {
    .docs-shell { grid-template-columns: minmax(0, 1fr); padding: 0 24px; max-width: 800px; gap: 0; }
    .docs-shell-hub .docs-content { grid-column: auto; }
    .docs-sidebar { display: none; }
    .docs-mobile-menu { display: block; border-bottom: 1px solid var(--docs-line); padding: 16px 0; }
    .docs-mobile-menu > summary { cursor: pointer; font-size: 0.875rem; font-weight: 500; }
    .docs-mobile-menu > summary span { float: right; }
    .docs-mobile-menu .docs-navigation { margin-top: 20px; }
    .docs-header-inner { padding: 0 24px; gap: 16px; }
    .docs-header-label { padding-left: 16px; }
    .docs-search-trigger, .docs-header-search { width: 240px; }
}
@media (max-width: 639.98px) {
    .docs-header-inner { padding: 0 16px; gap: 12px; height: 60px; }
    .docs-brand img { width: 96px; }
    .docs-header-label, .docs-header-links a:first-child, .docs-search-trigger kbd, .docs-search-label-full { display: none; }
    .docs-search-label-short { display: inline; }
    .docs-header-links { font-size: 0.75rem; }
    .docs-search-trigger { width: auto; font-size: 0.75rem; min-height: 36px; }
    .docs-header-search { width: 120px; }
    .docs-header-search input { font-size: 0.75rem; }
    .docs-shell { padding: 0 20px; }
    .docs-mobile-menu > summary { min-height: 44px; padding: 10px 0; }
    .docs-mobile-menu nav a { min-height: 44px; }
    .docs-inline-toc summary { min-height: 44px; padding: 10px 0; }
    .docs-content { padding-top: 24px; padding-bottom: 48px; }
    .docs-breadcrumb { margin-bottom: 24px; }
    .docs-entry-grid { grid-template-columns: 1fr; }
    .docs-entry-grid { gap: 16px; margin-top: 28px; }
    .docs-entry { padding: 20px; }
    .docs-hub-search input { font-size: 0.875rem; padding-left: 6px; }
    .docs-hub-search button { padding: 8px 12px; }
    .docs-hub-search button span { display: none; }
    .docs-footer > div { padding: 24px 20px; flex-direction: column; }
    .docs-search-dialog { padding: 16px; margin-top: 24px; max-height: calc(100dvh - 48px); }
    .docs-pager { gap: 10px; }
    .docs-pager a { padding: 12px; }
    .docs-section, .docs-faq { scroll-margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) { .docs-page { scroll-behavior: auto; } }
