/* Documentation-only shell; marketing tokens and components stay untouched. */
.cn-docs { color: var(--text-body); background: var(--surface-page); min-height: 100vh; font: 400 15px/1.65 var(--font-body); }
.cn-docs a { color: var(--brand-600); text-decoration: none; }
.cn-docs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cn-docs :focus-visible { outline: 2px solid var(--brand-600); outline-offset: 3px; }
.cn-docs-header { height: 72px; position: sticky; top: 0; z-index: 2500; background: var(--surface-page); border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; gap: 40px; padding: 0 max(28px,calc((100vw - 1390px)/2)); }
/* the wordmark is a lockup, not a link style: never underlined, in any state.
   Must out-specify `.cn-docs a:hover` (0,2,1), so it is qualified with `a`. */
.cn-docs a.cn-docs-brand,
.cn-docs a.cn-docs-brand:hover,
.cn-docs a.cn-docs-brand:focus,
.cn-docs a.cn-docs-brand:active { text-decoration: none; }
.cn-docs-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text-body) !important; font: 500 20px/1 var(--font-display); }
.cn-docs-brand span { letter-spacing: var(--tracking-display); }
.cn-docs-brand svg { flex: none; }
.cn-docs-header nav { display: flex; align-items: center; gap: 24px; height: 100%; font-size: 14px; }
/* right-hand actions. --gray-1000 / --surface-page invert per theme, so the
   button is dark-on-light in light mode and light-on-dark in dark mode. */
.cn-docs-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; font-size: 14px; }
.cn-docs-actions > a:first-child { color: var(--text-muted); }
.cn-docs-actions > a:first-child:hover { color: var(--text-body); text-decoration: none; }
.cn-docs-openapp { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 5px; background: var(--gray-1000); color: var(--surface-page) !important; font-weight: 500; white-space: nowrap; }
.cn-docs-openapp:hover { text-decoration: none; opacity: .88; }
.cn-docs-openapp span { opacity: .7; }
.cn-docs-header nav a { color: var(--text-muted); height: 100%; display: flex; align-items: center; }
.cn-docs-header nav a[aria-current] { color: var(--text-body); box-shadow: inset 0 -2px var(--brand-600); }
.cn-docs-search { margin-left: auto; position: relative; width: 280px; flex-shrink: 0; }
.cn-docs-search input { width: 100%; background: var(--surface-sunken); border: 1px solid var(--gray-300); border-radius: 5px; padding: 9px 58px 9px 12px; font: 400 13px/1.4 var(--font-body); color: var(--text-body); }
.cn-docs-search kbd { position: absolute; right: 10px; top: 10px; pointer-events: none; font: 11px/18px var(--font-mono); color: var(--text-muted); }
.cn-docs-results { position: absolute; top: calc(100% + 8px); right: 0; width: min(420px,calc(100vw - 40px)); max-height: 65vh; overflow: auto; background: var(--surface-page); border: 1px solid var(--gray-300); border-radius: 5px; box-shadow: 0 8px 24px #0b011410; }
.cn-docs-results p { margin: 0; padding: 10px 14px; font-size: 12px; color: var(--text-muted); }
.cn-docs-results a { display: block; padding: 10px 14px; border-top: 1px solid var(--gray-200); }
.cn-docs-results a:hover { background: var(--surface-sunken); }
.cn-docs-results strong, .cn-docs-results span { display: block; }
.cn-docs-results strong { font-size: 14px; font-weight: 500; }
.cn-docs-results span { font-size: 12px; color: var(--text-muted); }
.cn-docs-layout { display: grid; grid-template-columns: 230px minmax(0,710px) 180px; gap: 48px; max-width: 1320px; margin: 0 auto; padding: 40px 28px 64px; align-items: start; }
.cn-docs-sidebar, .cn-docs-toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow-y: auto; scrollbar-width: thin; }
.cn-docs-group { margin-bottom: 25px; }
.cn-docs-group h2 { font: 500 13px/1.4 var(--font-body); color: var(--text-body); margin: 0 0 9px; }
.cn-docs-group a { display: block; font-size: 13px; line-height: 1.45; padding: 7px 12px; margin-left: 1px; border-left: 1px solid var(--gray-200); color: var(--text-muted); }
.cn-docs-group a[aria-current] { color: var(--brand-600); border-left: 2px solid var(--brand-600); background: var(--surface-sunken); font-weight: 500; }
.cn-docs-article { min-width: 0; outline: none; }
.cn-docs-article .cn-docs-breadcrumb { margin: 0 0 10px; font-size: 13px; color: var(--brand-600); }
.cn-docs-article h1 { font: 500 36px/1.2 var(--font-display); letter-spacing: -.025em; margin: 0 0 18px; }
.cn-docs-article h2 { font: 500 24px/1.3 var(--font-display); letter-spacing: -.018em; margin: 32px 0 14px; scroll-margin-top: 104px; }
.cn-docs-article h3 { font: 500 18px/1.4 var(--font-display); margin: 0 0 6px; }
.cn-docs-article p { margin: 0 0 14px; color: var(--text-muted); }
.cn-docs-article ul, .cn-docs-article ol { margin: 12px 0 18px; padding-left: 22px; }
.cn-docs-article li { padding-left: 3px; margin: 7px 0; }
.cn-docs-article .cn-docs-lead { font-size: 16px; }
.cn-docs-callout { margin: 20px 0; padding: 12px 16px; background: var(--surface-sunken); border: 1px solid var(--gray-200); border-left: 2px solid var(--brand-600); border-radius: 3px; color: var(--text-muted); font-size: 14px; }
.cn-docs-callout > strong { display: block; margin-bottom: 4px; color: var(--text-body); font: 500 12px/1.5 var(--font-mono); text-transform: uppercase; }
.cn-docs-steps > li { padding-left: 12px; margin: 0 0 22px; }
.cn-docs-steps > li::marker { color: var(--brand-600); font-family: var(--font-mono); font-size: 13px; }
.cn-docs-faq details { border-bottom: 1px solid var(--gray-200); padding: 14px 0; }
.cn-docs-faq summary { cursor: pointer; font-weight: 500; }
.cn-docs-faq p { margin: 12px 0 0; }
.cn-docs-next-links li { margin: 10px 0; }
.cn-docs-pagination { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--gray-200); margin-top: 40px; padding-top: 22px; }
.cn-docs-pagination a { font-size: 14px; }
.cn-docs-pagination a:last-child { text-align: right; }
.cn-docs-pagination span { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.cn-docs-toc h2 { font: 500 12px/1.5 var(--font-body); margin: 0 0 12px; }
.cn-docs-toc a { display: block; border-left: 1px solid var(--gray-200); padding: 6px 0 6px 14px; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.cn-docs-toc a[aria-current] { color: var(--brand-600); border-color: var(--brand-600); }
.cn-docs pre { overflow-x: auto; padding: 16px; background: var(--surface-sunken); border: 1px solid var(--gray-200); border-radius: 4px; font: 13px/1.6 var(--font-mono); }
.cn-docs-menu { display: none; }
.cn-docs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cn-docs-skip { position: fixed; top: -100px; left: 16px; z-index: 2600; background: var(--surface-page); padding: 12px; }
.cn-docs-skip:focus { top: 8px; }
@media(max-width:1180px) { .cn-docs-layout { grid-template-columns: 220px minmax(0,710px); gap: 36px; } .cn-docs-toc { display: none; } .cn-docs-header { gap: 24px; } .cn-docs-search { width: 260px; } }
@media(max-width:800px) {
 .cn-docs-header { height: auto; min-height: 110px; flex-wrap: wrap; gap: 16px; padding: 16px 20px; }
 .cn-docs-header nav { gap: 18px; margin-left: auto; } .cn-docs-header nav a { font-size: 12px; }
 .cn-docs-search { width: 100%; } .cn-docs-brand { font-size: 18px; }
 .cn-docs-layout { display: block; padding: 16px 24px 48px; }
 .cn-docs-sidebar { position: static; max-height: none; overflow: visible; }
 .cn-docs-menu { display: flex; width: 100%; justify-content: space-between; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--gray-200); font: 500 13px/1.5 var(--font-body); color: var(--text-body); cursor: pointer; }
 .cn-docs-menu span { color: var(--brand-600); } #docs-navigation { display: none; padding-top: 20px; } #docs-navigation.is-open { display: block; max-height: 55vh; overflow: auto; }
 .cn-docs-article { padding-top: 24px; } .cn-docs-article h1 { font-size: 32px; } .cn-docs-article h2 { scroll-margin-top: 160px; }
}
@media(max-width:460px) { .cn-docs-header nav { margin-left: 0; } .cn-docs-header { gap: 12px; } .cn-docs-article h2 { scroll-margin-top: 190px; } }

.cn-docs #docs-title:focus { outline: none; }

.cn-docs-article p code { font: 13px/1.6 var(--font-mono); color: var(--text-body); background: var(--surface-sunken); border: 1px solid var(--gray-200); border-radius: 3px; padding: 2px 4px; }
.cn-docs-article p + h3 { margin-top: 22px; }
