/* Documentation uses the site's existing amber, graphite, and theme tokens. */
.docs-body { font-size: 15px; }
.docs-body [hidden] { display: none !important; }
.docs-header-inner { max-width: 1480px; min-height: 72px; margin: auto; padding: 0 32px; display: flex; align-items: center; gap: 18px; }
.docs-brand-label { border-left: 1px solid var(--border-strong); padding-left: 18px; color: var(--text-3); text-decoration: none; font-size: 14px; }
.docs-header .brand-name { font-size: 19px; }
.docs-search-trigger { display: flex; align-items: center; gap: 10px; margin-left: auto; width: min(350px, 28vw); min-height: 38px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text-3); font: 13px var(--font); cursor: pointer; text-align: left; }
.docs-search-trigger:hover { border-color: var(--border-strong); color: var(--text-2); }
.docs-search-trigger svg, .docs-header-links svg { width: 16px; height: 16px; flex-shrink: 0; }
.docs-search-trigger kbd { margin-left: auto; white-space: nowrap; }
.docs-header-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 13px; font-weight: 600; }
.docs-header-links a { display: inline-flex; gap: 7px; align-items: center; color: var(--text-2); text-decoration: none; }
.docs-header-links a:hover { color: var(--brand); }
.docs-header .icon-button { width: 36px; height: 36px; flex-shrink: 0; }
.docs-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr) 210px; gap: 48px; max-width: 1440px; padding: 0 32px; margin: 0 auto; }
.docs-sidebar { position: sticky; top: 72px; align-self: start; height: calc(100dvh - 72px); overflow-y: auto; border-right: 1px solid var(--border); padding-right: 24px; }
.docs-sidebar > summary { display: none; }
.docs-sidebar-inner { padding: 30px 0 24px; }
.docs-space-label { display: flex; align-items: start; gap: 10px; padding: 0 8px 28px; color: var(--text-2); font-size: 12px; font-weight: 700; line-height: 1.5; }
.docs-space-label svg { width: 19px; height: 19px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.docs-space-label small { display: block; font-size: 11px; color: var(--text-3); font-weight: 500; margin-top: 3px; }
.docs-nav-group + .docs-nav-group { margin-top: 26px; }
.docs-nav-group > p { color: var(--text-3); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 0 10px; margin-bottom: 8px; }
.docs-nav-group ul, .docs-toc ul { margin: 0; padding: 0; list-style: none; }
.docs-nav-group li + li { margin-top: 3px; }
.docs-nav-group a { display: block; color: var(--text-2); text-decoration: none; padding: 8px 10px; border-radius: 7px; font-size: 12.5px; line-height: 1.5; }
.docs-nav-group a:hover { background: var(--surface); color: var(--text); }
.docs-nav-group a[aria-current="page"] { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-weight: 700; box-shadow: inset 2px 0 var(--brand); }
.docs-sidebar-footer { display: flex; justify-content: space-between; align-items: center; margin: 32px 10px 0; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-3); text-decoration: none; font-size: 11px; }
.docs-sidebar-footer svg { width: 13px; height: 13px; }
.docs-main { min-width: 0; max-width: 760px; padding: 34px 0 24px; width: 100%; }
.docs-main:focus { outline: none; }
.docs-breadcrumb { display: flex; align-items: center; gap: 7px; color: var(--text-3); font-size: 11px; margin-bottom: 34px; }
.docs-breadcrumb a { color: var(--text-3); text-decoration: none; }
.docs-breadcrumb a:hover { color: var(--brand); }
.docs-breadcrumb svg { width: 12px; height: 12px; }
.docs-article-header { padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.docs-category { color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 12px; }
.docs-article-header h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.2; font-weight: 800; letter-spacing: -.035em; }
.docs-description { color: var(--text-2); font-size: 16px; line-height: 1.8; margin-top: 16px; }
.docs-reading-time { display: block; margin-top: 18px; color: var(--text-3); font-size: 11px; }
.docs-prose { color: var(--text-2); font-size: 14px; line-height: 1.85; overflow-wrap: break-word; }
.docs-prose p + p { margin-top: 16px; }
.docs-prose > h2 { color: var(--text); font-size: 22px; line-height: 1.35; margin: 42px 0 18px; scroll-margin-top: 94px; position: relative; }
.docs-prose > h2:first-child { margin-top: 0; }
.docs-prose strong { color: var(--text); font-weight: 700; }
.docs-prose a:not(.docs-card):not(.docs-heading-link) { color: var(--brand); text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 4px; }
.docs-prose a:hover { text-decoration-color: currentColor; }
.docs-prose ul, .docs-prose ol { margin: 18px 0; padding-left: 24px; }
.docs-prose li + li { margin-top: 10px; }
.docs-prose li::marker { color: var(--text-3); }
.docs-prose .docs-intro { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 18px; }
.docs-heading-link { margin-left: 10px; color: var(--text-3); text-decoration: none; font-size: .85em; font-weight: 500; opacity: 0; }
h2:hover .docs-heading-link, .docs-heading-link:focus-visible { opacity: 1; }
.docs-prose :not(pre) > code { font-size: .84em; padding: 3px 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; color: var(--text); overflow-wrap: anywhere; }
.docs-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 30px; }
.docs-card { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 21px; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text); text-decoration: none; background: var(--surface); transition: border-color .15s ease, background .15s ease; }
.docs-card:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.docs-card-icon { color: var(--brand); margin-bottom: 6px; }
.docs-card-icon svg { width: 22px; height: 22px; }
.docs-card strong { font-size: 13px; line-height: 1.5; padding-right: 16px; }
.docs-card p { font-size: 12px; line-height: 1.7; color: var(--text-3); }
.docs-card-arrow { position: absolute; top: 25px; right: 20px; color: var(--text-3); }
.docs-card-arrow svg { width: 16px; height: 16px; }
.docs-code { margin: 22px 0; border: 1px solid var(--border-strong); border-radius: 9px; overflow: hidden; background: var(--code-bg); }
.docs-code-bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--border); background: var(--surface); font-size: 11px; color: var(--text-3); }
.docs-copy { padding: 3px 8px; border: 1px solid var(--border); border-radius: 5px; color: var(--text-2); background: var(--surface-2); font: 11px var(--font); cursor: pointer; }
.docs-copy:hover { color: var(--text); border-color: var(--border-strong); }
.docs-code pre { overflow-x: auto; margin: 0; padding: 18px; font: 11.5px/1.9 var(--mono); color: var(--text-2); tab-size: 2; }
.docs-code pre code { font: inherit; }
.docs-callout { display: flex; align-items: start; gap: 12px; padding: 18px 20px; margin: 26px 0; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; font-size: 12.5px; line-height: 1.8; }
.docs-callout-icon { color: var(--brand); padding-top: 3px; flex-shrink: 0; }
.docs-callout-icon svg { width: 18px; height: 18px; }
.docs-callout p { margin-top: 5px; }
.docs-callout-warning { background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.docs-table-wrap { width: 100%; overflow-x: auto; margin: 22px 0; border: 1px solid var(--border); border-radius: 8px; }
.docs-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; line-height: 1.7; }
.docs-table-wrap th { background: var(--surface); color: var(--text); font-weight: 600; }
.docs-table-wrap th, .docs-table-wrap td { padding: 11px 14px; vertical-align: top; }
.docs-table-wrap td { border-top: 1px solid var(--border); }
.docs-table-wrap td:first-child { color: var(--text-2); }
.docs-table-wrap code { white-space: normal; }
.docs-flow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 0; margin-top: 16px; }
.docs-flow span { padding: 10px 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 7px; font-size: 11px; color: var(--text); text-align: center; }
.docs-flow b { color: var(--brand); font-weight: 400; }
.docs-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--border); }
.docs-pager a { position: relative; border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; text-decoration: none; }
.docs-pager a:hover { border-color: var(--brand); }
.docs-pager span { color: var(--text-3); font-size: 11px; }
.docs-pager strong { font-size: 12px; font-weight: 600; line-height: 1.7; padding-right: 22px; }
.docs-pager svg { position: absolute; right: 16px; top: 26px; width: 16px; height: 16px; color: var(--text-3); }
.docs-pager-previous svg { transform: rotate(180deg); }
.docs-page-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 26px 0 10px; color: var(--text-3); font-size: 10px; }
.docs-page-footer a { display: flex; gap: 6px; align-items: center; text-decoration: none; }
.docs-page-footer svg { width: 12px; height: 12px; }
.docs-toc { position: sticky; top: 112px; align-self: start; margin-top: 72px; padding-left: 20px; border-left: 1px solid var(--border); max-height: calc(100dvh - 145px); overflow-y: auto; }
.docs-toc > p { font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 12px; }
.docs-toc li + li { margin-top: 9px; }
.docs-toc li a { display: block; font-size: 11px; color: var(--text-3); text-decoration: none; line-height: 1.7; }
.docs-toc li a:hover, .docs-toc li a[aria-current="location"] { color: var(--brand); }
.docs-toc-home { display: flex; align-items: center; gap: 7px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-3); text-decoration: none; font-size: 10px; }
.docs-toc-home svg { width: 12px; height: 12px; }
.docs-body kbd { font: 10px var(--mono); padding: 3px 5px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface-2); color: var(--text-3); }
.docs-search-dialog { width: min(680px, calc(100vw - 32px)); padding: 0; max-height: min(660px, calc(100dvh - 64px)); margin: 10vh auto auto; border: 1px solid var(--border-strong); border-radius: 13px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); overflow: hidden; }
.docs-search-dialog::backdrop { background: rgba(0, 0, 0, .68); backdrop-filter: blur(4px); }
.docs-search-dialog[open] { display: flex; flex-direction: column; }
.docs-search-input-row { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.docs-search-input-row > svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }
.docs-search-input-row input { flex: 1; width: 0; min-height: 30px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 15px var(--font); }
.docs-search-input-row input::placeholder { color: var(--text-3); }
.docs-search-input-row input:focus-visible { outline: none; }
.docs-search-close { display: grid; place-items: center; width: 28px; height: 28px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; }
.docs-search-close svg { width: 18px; height: 18px; }
.docs-search-status { color: var(--text-3); font-size: 12px; padding: 14px 20px 10px; }
.docs-search-results { overflow-y: auto; padding: 0 10px 12px; min-height: 80px; overscroll-behavior: contain; }
.docs-search-result { display: block; padding: 13px 12px; text-decoration: none; border-radius: 7px; margin-top: 3px; }
.docs-search-result:hover, .docs-search-result.is-selected { background: var(--surface-2); }
.docs-search-result small { display: block; color: var(--brand); font-size: 10px; margin-bottom: 3px; }
.docs-search-result strong { display: block; color: var(--text); font-size: 13px; }
.docs-search-result p { color: var(--text-3); font-size: 11px; line-height: 1.75; margin-top: 4px; }
.docs-search-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding: 12px 20px; color: var(--text-3); font-size: 10px; }
@media (min-width: 1001px) and (max-width: 1240px) {
  .docs-layout { grid-template-columns: 216px minmax(0, 1fr); gap: 38px; }
  .docs-toc { display: none; }
  .docs-main { max-width: 820px; }
}
@media (max-width: 1000px) {
  .docs-layout { display: block; padding: 0 24px; }
  .docs-main { max-width: 760px; margin: auto; padding-top: 24px; }
  .docs-toc { display: none; }
  .docs-sidebar { position: relative; top: auto; height: auto; max-width: 760px; margin: auto; padding-right: 0; border: 0; border-bottom: 1px solid var(--border); overflow: visible; }
  .docs-sidebar > summary { display: flex; justify-content: space-between; align-items: center; min-height: 54px; color: var(--text-2); font-size: 12px; cursor: pointer; list-style: none; }
  .docs-sidebar > summary::-webkit-details-marker { display: none; }
  .docs-sidebar > summary svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .15s ease; }
  .docs-sidebar[open] > summary svg { transform: rotate(-90deg); }
  .docs-sidebar-inner { padding-top: 12px; padding-bottom: 22px; }
  .docs-sidebar-inner > nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .docs-nav-group + .docs-nav-group { margin-top: 0; }
  .docs-space-label, .docs-sidebar-footer { display: none; }
  .docs-header-inner { padding: 0 24px; gap: 14px; }
  .docs-header-links a:first-child { display: none; }
  .docs-search-trigger { width: 210px; }
  .docs-breadcrumb { margin-bottom: 28px; }
}
@media (max-width: 640px) {
  .docs-header-inner { min-height: 64px; padding: 0 18px; gap: 12px; }
  .docs-header .brand-name { font-size: 17px; }
  .docs-header .brand img { width: 29px; height: 29px; }
  .docs-header .brand { gap: 7px; }
  .docs-brand-label { padding-left: 12px; font-size: 12px; }
  .docs-header-links { display: none; }
  .docs-search-trigger { width: 34px; min-height: 34px; padding: 8px; justify-content: center; border: 0; background: transparent; }
  .docs-search-trigger span, .docs-search-trigger kbd { display: none; }
  .docs-layout { padding: 0 20px; }
  .docs-article-header h1 { font-size: 30px; }
  .docs-description { font-size: 14px; }
  .docs-prose { font-size: 13px; }
  .docs-prose > h2 { font-size: 19px; scroll-margin-top: 82px; }
  .docs-card-grid { gap: 10px; }
  .docs-card { padding: 16px; }
  .docs-card strong { padding-right: 0; font-size: 12px; }
  .docs-card p { font-size: 11px; }
  .docs-card-arrow { top: 20px; right: 16px; }
  .docs-callout { padding: 15px; gap: 10px; font-size: 12px; }
  .docs-code pre { padding: 14px; font-size: 10.5px; }
  .docs-table-wrap th, .docs-table-wrap td { padding: 10px; font-size: 11px; }
  .docs-flow { flex-wrap: wrap; justify-content: start; }
  .docs-pager { gap: 10px; }
  .docs-pager a { padding: 14px; }
  .docs-pager strong { padding-right: 0; font-size: 11px; }
  .docs-pager svg { top: 14px; right: 14px; width: 12px; height: 12px; }
  .docs-page-footer { flex-wrap: wrap; font-size: 10px; }
  .docs-search-dialog { margin-top: 24px; max-height: calc(100dvh - 48px); }
  .docs-search-input-row { padding: 15px; gap: 10px; }
  .docs-search-input-row input { font-size: 13px; }
  .docs-search-footer { padding: 12px; font-size: 9px; }
}
@media (max-width: 359px) { .docs-card-grid { grid-template-columns: 1fr; } .docs-brand-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .docs-card, .docs-sidebar > summary svg { transition: none; } }
