/* Documentation workbench: controls and content share one visual language. */
.docs-workbench,.docs-reader{--doc-bg:#faf9f7;--doc-panel:#fff;--doc-soft:#f3f2ef;--doc-ink:#242428;--doc-muted:#626269;--doc-line:#e4e2dc;--doc-accent:#79591d;--doc-selected:#f5eddc;--doc-code:#f5f4f1;--doc-code-ink:#29292e;--reader-accent:var(--doc-accent);--reader-tint:var(--doc-selected);--reader-rule:var(--doc-line)}
[data-theme="dark"] :is(.docs-workbench,.docs-reader){--doc-bg:#101113;--doc-panel:#17181b;--doc-soft:#222328;--doc-ink:#f0f0f2;--doc-muted:#b8b9c1;--doc-line:#38393f;--doc-accent:#e3c581;--doc-selected:#332c1f;--doc-code:#1d1e23;--doc-code-ink:#ececf0}
.docs-workbench{background:var(--doc-bg);color:var(--doc-ink);padding-top:var(--header-height);font-family:var(--font-sans)}
.docs-workbench main{max-width:1480px;margin:auto;padding:38px 48px 24px}
.docs-workbench button,.docs-workbench input,.docs-workbench select,.api-explorer button,.api-explorer input,.api-explorer select{font:inherit}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.workbench-intro{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:30px}
.workbench-location{display:flex;gap:10px;font-size:12px;color:var(--doc-muted);margin-bottom:17px}.workbench-location a{color:inherit;text-decoration:none}
.workbench-intro h1{font-size:34px;font-weight:650;line-height:1.3;letter-spacing:-.025em;color:var(--doc-ink);margin:0 0 9px}.workbench-intro h1>span{font-size:24px;font-weight:450;margin-left:12px}
.workbench-intro p{font-size:14px;color:var(--doc-muted);margin:0;line-height:1.7}
.workbench-guide-link{display:flex;gap:30px;align-items:center;color:var(--doc-ink);font-size:13px;text-decoration:none;padding:14px 0;border-bottom:1px solid var(--doc-line)}.workbench-guide-link:hover{color:var(--doc-accent)}
.api-explorer{border:1px solid var(--doc-line);border-radius:12px;background:var(--doc-panel);overflow:hidden;text-align:left;font-size:14px;line-height:1.5;color:var(--doc-ink)}
.api-explorer [hidden]{display:none!important}.api-explorer a{text-decoration:none}.api-explorer button{cursor:pointer}
.explorer-platforms{display:flex;align-items:stretch;border-bottom:1px solid var(--doc-line);padding:0 22px;gap:26px;min-height:76px}
.explorer-platforms>button{display:flex;align-items:center;gap:10px;background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:14px 2px;margin-bottom:-1px;color:var(--doc-muted);transition:color .18s,border-color .18s}
.explorer-platforms>button[aria-selected="true"]{color:var(--doc-ink);border-bottom-color:var(--doc-accent)}.explorer-platforms strong{font-size:18px;font-weight:650;letter-spacing:-.02em}.explorer-platforms button>span:last-child{font-size:12px}.platform-symbol{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:var(--doc-soft);color:var(--doc-accent);font:600 17px var(--font-mono)}.explorer-platforms button[aria-selected="true"] .platform-symbol{background:var(--doc-accent);color:var(--doc-panel)}
.explorer-hint{margin-left:auto;align-self:center;font-size:11px;color:var(--doc-muted)}
.explorer-toolbar{display:flex;border-bottom:1px solid var(--doc-line);gap:12px;padding:15px 20px;align-items:center;background:var(--doc-panel)}
.explorer-search{display:flex;align-items:center;gap:10px;flex:1;border:1px solid var(--doc-line);border-radius:7px;background:var(--doc-bg);padding:0 13px;min-width:0;transition:border-color .18s,background .18s}.explorer-search:focus-within{border-color:var(--doc-accent);background:var(--doc-panel)}.explorer-search>span{font-size:26px;color:var(--doc-muted);line-height:1}.explorer-search input{width:100%;min-width:0;border:0;background:transparent;outline:none;color:var(--doc-ink);height:42px;font-size:13px;box-shadow:none}.explorer-search input::placeholder{color:var(--doc-muted)}.explorer-search kbd{border:1px solid var(--doc-line);border-radius:3px;padding:1px 7px;color:var(--doc-muted);font:12px var(--font-mono)}
.explorer-kind select{height:44px;border:1px solid var(--doc-line);border-radius:7px;padding:0 28px 0 12px;background:var(--doc-panel);color:var(--doc-ink);font-size:12px;cursor:pointer}
.explorer-workspace{display:grid;grid-template-columns:200px minmax(300px,1fr) 320px;min-height:480px;position:relative}
.explorer-categories{border-right:1px solid var(--doc-line);padding:18px 12px;max-height:540px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--doc-line) transparent;background:var(--doc-bg)}
.explorer-label{display:block;padding:0 10px 12px;font-size:11px;color:var(--doc-muted)}
.explorer-categories button{display:flex;align-items:center;gap:8px;justify-content:space-between;width:100%;text-align:left;background:none;border:0;border-radius:5px;color:var(--doc-muted);font-size:12px;padding:9px 10px;line-height:1.6;transition:background .15s,color .15s;margin-bottom:2px}.explorer-categories small{font:10px var(--font-mono);color:var(--doc-muted)}
.explorer-categories button:hover{background:var(--doc-soft);color:var(--doc-ink)}.explorer-categories button[aria-pressed="true"]{background:var(--doc-selected);color:var(--doc-accent);font-weight:600}.explorer-categories button[aria-pressed="true"] small{color:var(--doc-accent)}
.explorer-all{display:block;font-size:11px;padding:18px 10px 0;margin-top:12px;border-top:1px solid var(--doc-line);color:var(--doc-muted)}
.explorer-results{min-width:0}.explorer-result-heading{height:43px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;color:var(--doc-muted);font-size:11px;border-bottom:1px solid var(--doc-line)}.explorer-result-heading>span:last-child{font-size:10px}
.explorer-list{margin:0!important;padding:0!important;list-style:none!important;max-height:497px;min-height:360px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--doc-line) transparent;overscroll-behavior:contain}
.explorer-list li{display:flex;align-items:stretch;position:relative;margin:0!important;padding:0!important;border-bottom:1px solid var(--doc-line);min-height:64px;transition:background .16s}.explorer-list li:last-child{border:0}.explorer-list li:hover{background:var(--doc-bg)}.explorer-list li.is-selected{background:var(--doc-selected)}
.explorer-list li>a{min-width:0;flex:1;padding:11px 20px;display:flex;flex-direction:column;gap:5px;color:var(--doc-ink)!important;line-height:1.4}.explorer-list code{background:none!important;border:0!important;padding:0!important;font:500 13px/1.45 var(--font-mono);overflow-wrap:anywhere;letter-spacing:-.015em;color:var(--doc-ink)}.explorer-list a>span{font-size:11px;color:var(--doc-muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.explorer-list a:hover code{color:var(--doc-accent)}
.explorer-list button{flex:0 0 44px;border:0;border-radius:0;background:none;color:var(--doc-muted);font-size:20px;transition:background .16s,color .16s}.explorer-list button:hover,.explorer-list button[aria-pressed="true"]{color:var(--doc-accent)}
.explorer-preview{border-left:1px solid var(--doc-line);padding:0 22px 22px;background:var(--doc-bg);min-width:0;max-height:540px;overflow:auto;scrollbar-width:thin}
.explorer-preview-bar{display:flex;align-items:center;justify-content:space-between;min-height:44px;font-size:11px;color:var(--doc-muted);border-bottom:1px solid var(--doc-line);margin-bottom:22px}.explorer-preview-bar>button{display:none;background:none;border:0;color:var(--doc-ink);font-size:25px;width:36px;height:36px}
.api-peek-category{color:var(--doc-accent);font-size:11px}.api-peek h3{font:500 20px/1.4 var(--font-mono)!important;color:var(--doc-ink);margin:10px 0!important;overflow-wrap:anywhere;letter-spacing:-.02em}.api-peek>p{font-size:13px!important;color:var(--doc-muted);line-height:1.75!important;margin:8px 0 20px!important}
.api-peek-code{border-radius:7px;background:var(--doc-code);color:var(--doc-code-ink);margin:22px 0 18px;overflow:hidden}.api-peek-code>div{display:flex;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #d5ede320;font-size:10px;color:#afc7bb}.api-peek-code pre{font:12px/1.85 var(--font-mono)!important;white-space:pre-wrap;overflow-wrap:anywhere;background:transparent!important;margin:0!important;padding:15px!important;border:0!important;border-radius:0!important;color:var(--doc-code-ink)!important}.api-peek-code code{font:inherit!important;color:inherit!important;padding:0!important;background:none!important}.api-peek-note{font-size:12px!important}.api-peek-open{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;background:var(--doc-accent);color:var(--doc-panel)!important;border-radius:6px;font-size:12px;transition:filter .15s}.api-peek-open:hover{filter:brightness(.92)}.api-peek-open>span{font-size:17px}
.api-peek-sections{display:flex;flex-wrap:wrap;gap:14px;margin-top:16px}.api-peek-sections a{font-size:11px;color:var(--doc-muted)!important}.api-peek-sections a:hover{color:var(--doc-accent)!important}
.api-peek-example{font-size:12px;margin:16px 0}.api-peek-example summary{cursor:pointer;min-height:30px;color:var(--doc-accent)}.api-peek-example pre{max-height:200px;overflow:auto;padding:12px!important;font:11px/1.7 var(--font-mono)!important;color:var(--doc-ink);background:var(--doc-soft);border-radius:5px}
.explorer-empty{padding:42px 22px;color:var(--doc-muted);font-size:13px}.explorer-empty strong{color:var(--doc-ink);font-size:16px}.explorer-empty p{line-height:1.8}.explorer-empty button{border:1px solid var(--doc-line);border-radius:5px;padding:8px 12px;background:var(--doc-panel);color:var(--doc-accent)}
.explorer-footer{display:flex;justify-content:space-between;gap:20px;padding:14px 20px;border-top:1px solid var(--doc-line);font-size:11px;color:var(--doc-muted)}.explorer-footer a{color:var(--doc-accent)}
.workbench-learning{display:grid;grid-template-columns:1fr 1fr 1fr;gap:42px;margin:65px 0 48px;scroll-margin-top:90px}.learning-intro{padding-top:4px}.learning-mark{font:34px/1 var(--font-mono);color:var(--doc-accent)}.learning-intro h2{font-size:25px;letter-spacing:-.025em;font-weight:550;margin:20px 0 10px;color:var(--doc-ink)}.learning-intro p,.learning-track p{font-size:13px;line-height:1.9;color:var(--doc-muted);max-width:32ch}.learning-track h3{font-size:18px;font-weight:600;color:var(--doc-ink);margin:0 0 8px}.learning-track ol{list-style:none;padding:0;margin:22px 0 0;border-top:1px solid var(--doc-line)}.learning-track li{border-bottom:1px solid var(--doc-line);margin:0;padding:0}.learning-track a{display:flex;justify-content:space-between;gap:12px;padding:14px 0;color:var(--doc-ink);font-size:12px;text-decoration:none;transition:color .16s}.learning-track a:hover{color:var(--doc-accent)}.learning-track a>span:last-child{transition:transform .18s}.learning-track a:hover>span:last-child{transform:translateX(4px)}
.workbench-footer{display:flex;align-items:center;gap:25px;padding:24px 0;border-top:1px solid var(--doc-line);font-size:11px;color:var(--doc-muted)}.workbench-footer>span{color:var(--doc-ink);font-weight:600}.workbench-footer p{margin:0}.workbench-footer a{margin-left:auto;color:inherit;text-decoration:none}
:is(.docs-workbench,.api-explorer) :is(a,button,select):focus-visible{outline:2px solid var(--doc-accent);outline-offset:-3px}
@media(max-width:1250px){.docs-workbench main{padding:32px}.explorer-workspace{grid-template-columns:180px minmax(280px,1fr) 285px}.explorer-preview{padding:0 18px 18px}.workbench-intro h1{font-size:30px}.workbench-intro h1>span{font-size:22px}}
@media(max-width:1100px){.explorer-workspace{grid-template-columns:185px minmax(0,1fr)}.explorer-preview{display:none}.explorer-preview.is-open{display:block;position:absolute;inset:0 0 0 auto;width:360px;z-index:5;border-left:1px solid var(--doc-line);box-shadow:-6px 0 20px #0002;max-height:100%;background:var(--doc-panel)}.explorer-preview-bar>button{display:block}.explorer-hint{display:none}.workbench-guide-link{font-size:12px;gap:12px}.workbench-learning{gap:26px}.learning-intro h2{font-size:22px}}
@media(max-width:700px){.docs-workbench main{padding:22px 16px 18px}.workbench-intro{display:block;margin-bottom:22px}.workbench-location{font-size:11px;margin-bottom:12px}.workbench-intro h1{font-size:28px;line-height:1.4}.workbench-intro h1>span{display:block;font-size:19px;margin:2px 0 0;font-weight:450}.workbench-intro p{font-size:12px}.workbench-guide-link{margin-top:12px;border:0;padding:5px 0;color:var(--doc-accent);justify-content:flex-start}.api-explorer{border-radius:9px}.explorer-platforms{padding:0 16px;gap:23px;min-height:62px}.explorer-platforms strong{font-size:16px}.platform-symbol{width:26px;height:26px;font-size:15px;border-radius:6px}.explorer-platforms button>span:last-child{display:none}.explorer-toolbar{padding:12px;gap:8px}.explorer-search{padding:0 9px;gap:6px}.explorer-search input{font-size:12px;height:40px}.explorer-search kbd{display:none}.explorer-kind select{max-width:92px;padding-left:9px;height:42px}.explorer-workspace{display:block;min-height:0}.explorer-categories{display:flex;gap:7px;overflow:auto;max-height:none;padding:10px 12px;border-right:0;border-bottom:1px solid var(--doc-line);scrollbar-width:none}.explorer-categories button{width:auto;flex-shrink:0;white-space:nowrap;padding:7px 10px;margin:0;font-size:11px;min-height:36px}.explorer-label,.explorer-all{display:none}.explorer-categories small{font-size:9px}.explorer-result-heading{padding:0 16px;height:38px}.explorer-list{max-height:424px;min-height:0}.explorer-list li>a{padding:11px 16px}.explorer-list code{font-size:12px}.explorer-list a>span{font-size:11px}.explorer-preview.is-open{width:100%;inset:0;border-left:0;box-shadow:none;max-height:100%;z-index:5}.explorer-preview-bar{position:sticky;top:0;background:var(--doc-panel);z-index:1}.explorer-footer{display:block;padding:12px 15px;font-size:11px}.explorer-footer>span{display:none}.workbench-learning{display:block;margin:42px 0 30px}.learning-intro{margin-bottom:28px}.learning-intro h2{font-size:23px;margin:14px 0 8px}.learning-intro p,.learning-track p{max-width:48ch}.learning-track{margin-top:28px}.learning-track ol{margin-top:16px}.learning-track a{min-height:46px;align-items:center;padding:10px 0}.workbench-footer{flex-wrap:wrap;gap:12px}.workbench-footer p{order:3;width:100%;line-height:1.8}.workbench-footer a{font-size:11px}}
@media(prefers-reduced-motion:reduce){:is(.docs-workbench,.api-explorer) *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Reader: a stable directory, a readable document, and local orientation. */
.docs-page.docs-reader{--reader-accent:var(--doc-accent);--reader-tint:var(--doc-selected);--reader-rule:var(--doc-line);--docs-directory-width:17rem;--docs-toc-width:10rem;background:var(--doc-panel);color:var(--doc-ink)}
.docs-reader .docs-platform-layout{max-width:1600px}
.docs-reader .docs-platform-sidebar{background:var(--doc-bg);border-color:var(--doc-line);padding:24px 18px 64px}
.docs-reader .docs-platform-content-grid{padding:26px 34px 96px 42px;gap:40px}
.docs-reader .docs-breadcrumb{margin-bottom:32px;font-size:12px;color:var(--doc-muted)}
.docs-reader .docs-reader-header{margin-bottom:28px;padding-bottom:22px;border-color:var(--doc-line)}
.docs-reader .reader-eyebrow{font-size:12px;color:var(--doc-accent);letter-spacing:0;margin-bottom:14px}.reader-eyebrow a{color:inherit;text-decoration:none}
.docs-reader .docs-reader-header h1{font-size:32px;color:var(--doc-ink);margin-bottom:16px;line-height:1.35;letter-spacing:-.025em}
.docs-reader .docs-reader-header .reader-function-title{font-family:var(--font-mono);font-size:clamp(23px,2.35vw,34px);font-weight:550}
.docs-reader .reader-intro{font-size:15px;color:var(--doc-muted);line-height:1.85;margin-bottom:18px}
.reader-quick-links{display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap;font-size:12px}.reader-quick-links a{color:var(--doc-accent);text-decoration:none;border-bottom:1px solid transparent;min-height:32px;display:flex;align-items:center}.reader-quick-links a:hover{border-color:currentColor}.reader-quick-links button{margin-left:auto;background:none;border:0;color:var(--doc-muted);font:inherit;cursor:pointer;min-height:36px}.reader-quick-links button:hover{color:var(--doc-accent)}
.docs-reader .docs-article{color:var(--doc-ink);font-size:15px;line-height:1.9}
/* Static reading pages should be legible at first paint; feedback stays on controls. */
.docs-reader .docs-platform-main .docs-article.active{animation:none}
.docs-reader .docs-article h2{font-size:21px;margin:34px 0 14px;color:var(--doc-ink)}
.docs-reader .docs-article h3{font-size:17px;color:var(--doc-ink)}
.docs-reader .docs-article p{margin:10px 0 16px}.docs-reader .docs-article a{color:var(--doc-accent)}
.docs-reader .docs-article pre{background:var(--doc-soft);border-color:var(--doc-line);border-radius:8px;font-size:13px;line-height:1.85;padding:20px 22px;color:var(--doc-ink)}
.docs-reader .docs-article table{border-radius:6px;border-color:var(--doc-line);font-size:13px;line-height:1.8}.docs-reader .docs-article th{background:var(--doc-soft);color:var(--doc-muted);font-size:12px}.docs-reader .docs-article td{border-color:var(--doc-line)}
.docs-reader .docs-article blockquote{border-left:2px solid var(--doc-accent);background:var(--doc-soft);padding:12px 18px;margin:24px 0;color:var(--doc-muted);font-size:13px}
.docs-reader .docs-article-meta{border-color:var(--doc-line);color:var(--doc-muted);font-size:12px;background:transparent}
.docs-reader .docs-toc{top:94px}.docs-reader .docs-toc__title{font-size:12px;color:var(--doc-muted)}.docs-reader .reader-outline-list a{font-size:12px;padding:7px 0;color:var(--doc-muted)}.docs-reader .reader-outline-list a[aria-current]{color:var(--doc-accent);font-weight:600}
.reader-start-link{display:flex;align-items:center;justify-content:space-between;text-decoration:none;color:var(--doc-ink);font-size:13px;padding:10px 4px;margin-bottom:14px}
.reader-nav-search{display:block;margin-bottom:20px}.reader-nav-search input{border:1px solid var(--doc-line);background:var(--doc-panel);color:var(--doc-ink);border-radius:6px;width:100%;padding:10px 12px;font-size:12px;outline:none}.reader-nav-search input:focus{border-color:var(--doc-accent);box-shadow:0 0 0 2px var(--doc-selected)}
.reader-function-groups{display:grid;gap:12px}.reader-function-groups details>summary{font-size:12px;font-weight:600;cursor:pointer;list-style:none;display:flex;align-items:center;padding:9px 3px;color:var(--doc-ink)}.reader-function-groups details>summary::before{content:'›';margin-right:9px;transform:rotate(0);transition:transform .16s}.reader-function-groups details[open]>summary::before{transform:rotate(90deg)}.reader-function-groups summary span{margin-left:auto;font-size:10px;color:var(--doc-muted);font-weight:400}
.reader-function-groups details>div{display:grid;gap:2px;border-left:1px solid var(--doc-line);margin-left:6px;padding:3px 0 3px 8px}.reader-function-groups a{padding:7px 9px;border-radius:4px;line-height:1.6;color:var(--doc-muted);text-decoration:none;font-size:11px;overflow-wrap:anywhere;min-height:32px}.reader-function-groups a:hover{background:var(--doc-soft);color:var(--doc-ink)}.reader-function-groups a[aria-current]{background:var(--doc-selected);color:var(--doc-accent)}.reader-function-groups [hidden]{display:none!important}
.docs-directory-page .docs-platform-sidebar,.docs-directory-page .docs-toc,.docs-directory-page .docs-article-meta,.docs-directory-page .reader-mobile-bar{display:none!important}.docs-reader.docs-directory-page .docs-platform-content-grid{margin-left:0;max-width:1480px;margin-right:auto;margin-left:auto;display:block;padding:32px 48px 80px}.docs-directory-page .docs-platform-main{max-width:none}.docs-directory-page .docs-reader-header{margin-bottom:24px}.docs-directory-page .docs-reader-header h1{font-family:var(--font-sans)}.docs-directory-page .reader-intro{max-width:none}.docs-directory-page .docs-article .api-explorer p{margin:0}.docs-directory-page .docs-article .api-explorer h3{margin:0}.docs-directory-page .docs-article .api-explorer pre{margin:0;background:var(--doc-code);color:var(--doc-code-ink);padding:17px;font-size:12px;border:0}.docs-directory-page .docs-article .explorer-list{list-style:none;margin:0;padding:0}.docs-directory-page .docs-article .explorer-list li{margin:0}.docs-directory-page .docs-article .explorer-list a{color:var(--doc-ink);text-decoration:none;border:0}.docs-directory-page .docs-breadcrumb{margin-bottom:20px}
@media(min-width:901px) and (max-width:1180px){.docs-page.docs-reader{--docs-directory-width:15rem}.docs-reader .docs-platform-content-grid{grid-template-columns:minmax(0,1fr);padding:26px 32px 80px;gap:0}.docs-reader .docs-toc{display:none!important}}
@media(max-width:900px){.docs-reader .docs-platform-content-grid{margin-left:0;max-width:100%;padding:24px 24px 70px;display:block}.docs-reader .docs-platform-sidebar{width:292px;padding-top:30px}.docs-reader .docs-toc{display:none!important}.docs-reader .docs-breadcrumb{margin-bottom:26px}.docs-reader .docs-reader-header h1{font-size:28px}.docs-reader .docs-reader-header .reader-function-title{font-size:24px}.docs-reader.docs-directory-page .docs-platform-content-grid{padding:24px 20px 60px}.docs-reader .reader-mobile-bar{background:var(--doc-bg);border-color:var(--doc-line)}.reader-quick-links button{margin-left:0}.docs-reader .docs-article pre{font-size:12px;padding:18px}.docs-reader .docs-article :is(h2,h3,h4,[id]){scroll-margin-top:126px}}
@media(prefers-reduced-motion:reduce){.reader-function-groups summary::before{transition:none}}

/* Final interaction and reading refinements. */
.explorer-search input:focus,.explorer-search input:focus-visible{outline:none!important;box-shadow:none!important}.explorer-search:focus-within{box-shadow:0 0 0 2px var(--doc-selected)}
.explorer-list code{font-size:14px}.explorer-list a>span{font-size:12px}
.api-peek-code pre{white-space:pre;overflow-wrap:normal;overflow-x:auto;scrollbar-width:thin}.api-peek-code code{white-space:pre}
.docs-reader .docs-article table{display:table;width:100%;table-layout:auto}.docs-reader .docs-article :is(td,th){overflow-wrap:anywhere}
.reader-function-groups a{font-size:12px}.reader-function-groups summary{min-height:40px}
@media(max-width:1100px){.explorer-preview.is-open{position:fixed;inset:72px 20px 20px auto;width:min(420px,calc(100vw - 40px));max-height:none;border:1px solid var(--doc-line);border-radius:10px;z-index:220;box-shadow:0 0 0 100vmax #0c181d66,0 18px 70px #0003;animation:preview-enter .2s ease-out}.explorer-preview-bar{position:sticky;top:0;background:var(--doc-panel);z-index:1}}
@media(max-width:700px){.explorer-list code{font-size:13px}.explorer-list a>span{font-size:12px}.explorer-preview.is-open{inset:auto 8px 8px;width:auto;max-height:calc(100dvh - 80px);min-height:380px;padding:0 20px 24px}.explorer-toolbar{align-items:stretch}.explorer-kind select{height:100%}.docs-reader .docs-article table{display:block;overflow:auto;table-layout:auto}.docs-reader .docs-article td{min-width:7rem}}
@keyframes preview-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

.api-parameters{margin:22px 0 36px;border-top:1px solid var(--doc-line)}.api-parameter{display:grid;grid-template-columns:minmax(110px,24%) minmax(0,1fr);gap:24px;padding:21px 0;border-bottom:1px solid var(--doc-line)}.api-parameter dt{position:sticky;top:95px;align-self:start;font-size:13px;overflow-wrap:anywhere}.api-parameter dt code{color:var(--doc-accent)!important;background:var(--doc-selected)!important}.api-parameter dd{margin:0;min-width:0}.docs-reader .api-parameter dd>p:first-child{margin-top:0}.docs-reader .api-parameter dd>p:last-child{margin-bottom:0}.api-parameter dd>p{font-size:14px;line-height:1.9}.api-parameter dd>p+p{color:var(--doc-muted)}@media(max-width:700px){.api-parameter{grid-template-columns:1fr;gap:9px;padding:19px 0}.api-parameter dt{position:static}.api-parameter dd>p{font-size:14px}}

.reader-node-title{grid-column:2;display:block;font-size:14px;line-height:1.7;min-height:32px;color:var(--doc-ink)}.docs-reader .reader-diagram{border-color:var(--doc-line);background:var(--doc-bg)}.docs-reader .reader-diagram-nodes li{border-color:var(--doc-line)}.docs-reader .reader-diagram-nodes li:hover{background:transparent}.docs-reader .reader-diagram-caption{color:var(--doc-muted)}


/* QuantX documentation: shared brand, readable themes, task-first navigation. */
:is(.docs-workbench,.docs-reader){--color-text:var(--doc-ink);--color-text-emphasis:var(--doc-ink);--color-text-primary:var(--doc-ink);--color-text-secondary:var(--doc-muted);--color-text-tertiary:var(--doc-muted);--color-surface:var(--doc-panel);--color-surface-secondary:var(--doc-soft);--reader-accent:var(--doc-accent);--reader-tint:var(--doc-selected);-webkit-font-smoothing:antialiased}
.docs-workbench main{max-width:1320px;padding:36px 40px 28px}
.workbench-intro{margin-bottom:24px}.workbench-intro h1{font-size:32px}.workbench-intro h1>span{color:var(--doc-muted);font-size:24px}.workbench-location{font-size:13px}.workbench-location a:hover{color:var(--doc-accent)}
.workbench-entrances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid var(--doc-line);border-radius:10px;background:var(--doc-panel);margin:0 0 32px;overflow:hidden}
.workbench-entrances a{position:relative;padding:20px 24px;text-decoration:none;color:var(--doc-ink);border-right:1px solid var(--doc-line);transition:background .15s}.workbench-entrances a:last-child{border:0}.workbench-entrances a:hover{background:var(--doc-selected)}
.entrance-icon{display:block;color:var(--doc-accent);font:18px var(--font-mono);margin-bottom:12px}.workbench-entrances strong{font-size:16px;font-weight:600;display:block;margin-bottom:6px}.workbench-entrances p{color:var(--doc-muted);font-size:13px;line-height:1.7;margin:0}.entrance-arrow{position:absolute;right:24px;top:23px;color:var(--doc-accent)}
.workbench-api-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:0 0 14px;scroll-margin-top:88px}.workbench-api-heading h2{font-size:20px;margin:0;color:var(--doc-ink)}.workbench-api-heading p{font-size:13px;color:var(--doc-muted);margin:0}
.api-explorer{border-radius:10px}.explorer-workspace{grid-template-columns:220px minmax(0,1fr);min-height:400px}.explorer-platforms{min-height:66px}.explorer-categories{max-height:460px}.explorer-list{max-height:417px;min-height:350px}.explorer-categories button{font-size:13px;padding:11px 10px}.explorer-categories small{font-size:12px}.explorer-label,.explorer-result-heading,.explorer-result-heading>span:last-child,.explorer-hint,.explorer-footer{font-size:12px}.explorer-list a>span{font-size:13px}.explorer-list button{flex-basis:68px;font-size:12px}.explorer-list li.is-selected{background:var(--doc-panel)}.explorer-list li:hover{background:var(--doc-selected)}
.explorer-preview{display:none}.explorer-preview.is-open{display:block;position:fixed;inset:80px 24px 24px auto;width:min(460px,calc(100vw - 48px));max-height:none;z-index:220;background:var(--doc-panel);border:1px solid var(--doc-line);border-radius:12px;box-shadow:0 0 0 100vmax #0008,0 18px 70px #0004;animation:preview-enter .2s ease-out}.explorer-preview-bar{position:sticky;top:0;background:var(--doc-panel);z-index:1;font-size:13px}.explorer-preview-bar>button{display:block}.api-peek-code>div{color:var(--doc-muted);border-color:var(--doc-line)}
.docs-reader .docs-breadcrumb{opacity:1}.docs-reader .reader-return-links{margin-bottom:10px}.docs-reader .reader-intro{color:var(--doc-muted)}.docs-reader .reader-paths a[aria-current="page"]{background:var(--doc-selected)!important;color:var(--doc-accent)!important}.docs-reader .reader-platform-switch a[aria-current]{border-color:var(--doc-accent);color:var(--doc-accent)}
.docs-reader .docs-article :is(strong,h4){color:var(--doc-ink)}.docs-reader .docs-article :not(pre)>code{color:var(--doc-accent);background:var(--doc-selected)}.docs-reader .docs-article pre{padding-top:42px}.docs-reader .reader-diagram :is(.reader-figure-label,.reader-node-number){font-size:12px;color:var(--doc-accent)}.docs-reader .reader-diagram-caption,.docs-reader .reader-diagram-flow,.docs-reader .reader-diagram-flow small{font-size:12px;color:var(--doc-muted)}.docs-reader .reader-diagram figcaption>strong{color:var(--doc-ink)}
.docs-reader .reader-outline-list a,.reader-function-groups a,.reader-function-groups details>summary{font-size:13px}.reader-function-groups summary span{font-size:12px}.reader-nav-search input::placeholder{color:var(--doc-muted);opacity:1}
@media(max-width:900px){.docs-workbench main{padding:28px 24px}.workbench-entrances a{padding:18px}.entrance-arrow{right:18px}.workbench-api-heading p{max-width:50%;text-align:right}}
@media(max-width:700px){.docs-workbench main{padding:24px 16px}.workbench-intro h1{font-size:28px}.workbench-entrances{grid-template-columns:1fr;margin-bottom:26px}.workbench-entrances a{padding:14px 18px 14px 54px;border-right:0;border-bottom:1px solid var(--doc-line)}.entrance-icon{position:absolute;left:18px;top:17px;margin:0;font-size:16px}.workbench-entrances strong{font-size:14px;margin-bottom:3px}.workbench-entrances p{font-size:12px;padding-right:12px}.entrance-arrow{top:17px}.workbench-api-heading{display:block}.workbench-api-heading p{max-width:none;text-align:left;margin-top:7px}.explorer-workspace{display:block;min-height:0}.explorer-categories{max-height:none}.explorer-categories button{font-size:12px;padding:7px 10px}.explorer-categories small{font-size:11px}.explorer-preview.is-open{inset:auto 8px 8px;width:auto;max-height:calc(100dvh - 80px);min-height:380px;padding:0 20px 24px}.workbench-learning{margin-top:40px}}
/* GitHub dark comments need a brighter tone on the documentation code surface. */
[data-theme="dark"] .docs-reader .shiki span[style*="--shiki-dark:#6A737D" i]{color:#adb4c1!important}

/* Keep platform documentation within the learning navigation. */
.docs-learning-nav{position:fixed;top:var(--header-height);left:0;right:0;z-index:90;height:48px;display:flex;align-items:center;padding:0 28px;gap:36px;background:var(--color-surface-secondary);border-bottom:1px solid var(--color-border);color:var(--color-text-emphasis)}
.docs-learning-nav a{text-decoration:none;color:inherit;font-size:13px}.docs-learning-brand{width:200px;flex-shrink:0;font-size:18px!important;font-weight:600}.docs-learning-brand span{font-size:12px;color:var(--color-text-secondary);margin-left:8px;font-weight:400}.docs-learning-nav>div{display:flex;height:100%;gap:30px}.docs-learning-nav>div>a{display:flex;align-items:center;border-bottom:2px solid transparent}.docs-learning-nav a[aria-current]{border-color:var(--color-text-emphasis)}
.docs-hub{padding-top:calc(var(--header-height) + 48px)}.docs-reader{padding-top:calc(var(--header-height) + 48px)}.docs-reader .docs-platform-sidebar{top:calc(var(--header-height) + 48px);height:calc(100dvh - var(--header-height) - 48px)}.docs-reader .docs-toc{top:calc(var(--header-height) + 72px)}.docs-reader .reader-mobile-bar{top:calc(var(--header-height) + 48px)}.docs-reader .docs-article :is(h2,h3,h4,[id]){scroll-margin-top:calc(var(--header-height) + 96px)}
@media(min-width:1024px){.docs-learning-nav>div{display:grid;grid-template-columns:repeat(4,1fr);width:460px;gap:0;justify-items:center;margin:auto}}
@media(max-width:760px){.docs-learning-nav{height:88px;padding:0 20px;display:block}.docs-learning-brand{height:40px;display:flex;align-items:center}.docs-learning-nav>div{height:48px;gap:0;justify-content:space-between}.docs-learning-nav>div>a{font-size:12px}.docs-hub{padding-top:calc(var(--header-height) + 88px)}.docs-reader{padding-top:calc(var(--header-height) + 132px)}.docs-reader .reader-mobile-bar{top:calc(var(--header-height) + 88px)}.docs-reader .docs-platform-sidebar{top:calc(var(--header-height) + 132px);height:calc(100dvh - var(--header-height) - 132px)}}

@media(min-width:761px){.docs-learning-nav{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:0}.docs-learning-brand{width:auto;justify-self:start;display:flex;align-items:center;line-height:1.2}.docs-learning-nav>div{grid-column:2;margin:0;justify-self:center;align-items:stretch}}

/* Phones: the learning sections sit in one 48px row beside the wordmark, so the reader keeps
   more of the screen and headings are no longer covered after an anchor jump. */
@media(max-width:760px){.docs-learning-nav{display:flex;height:48px;gap:12px;padding:0 16px}.docs-learning-brand{width:auto;height:auto;font-size:16px!important}.docs-learning-brand span{display:none}.docs-learning-nav>div{flex:1;height:100%;justify-content:space-around}.docs-hub{padding-top:calc(var(--header-height) + 48px)}.docs-reader .reader-mobile-bar{top:calc(var(--header-height) + 48px)}.docs-reader .docs-platform-sidebar{top:calc(var(--header-height) + 95px);height:calc(100dvh - var(--header-height) - 95px)}.docs-reader .docs-article :is(h2,h3,h4,[id]){scroll-margin-top:calc(var(--header-height) + 112px)}}

/* Same bar as the learning pages: white with a hairline, wordmark aligned to the header logo. */
.docs-learning-nav{background:var(--color-surface)}
@media(min-width:761px){.docs-learning-nav{padding-inline:max(28px,calc((100% - 1120px) / 2 + 21px))}}

/* ==========================================================================
   Bold pass (2026-10-25): the API workbench as a console. Oversized title, numbered
   entrances, and the explorer recoloured through its own --doc-* variables.
   ========================================================================== */
body.docs-workbench .workbench-intro { align-items: end; margin: 28px 0 44px; }
body.docs-workbench .workbench-location { margin-bottom: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }
body.docs-workbench .workbench-intro h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin: 0 0 14px; font-size: clamp(44px, 6.4vw, 92px); font-weight: 650; line-height: 1; letter-spacing: -.045em; }
body.docs-workbench .workbench-intro h1 > span { margin: 0; color: transparent; font-size: .62em; font-weight: 600; letter-spacing: -.03em; -webkit-text-stroke: 1px var(--qx-line-strong, #d6d5cf); }
body.docs-workbench .workbench-intro p { font-size: var(--qx-lead, 17px); }
body.docs-workbench .workbench-guide-link { min-height: var(--qx-control, 44px); padding: 0 18px; border: 1px solid var(--qx-line-strong, #d6d5cf); border-radius: 999px; transition: background-color .2s ease, color .2s ease; }
body.docs-workbench .workbench-guide-link:hover { border-color: var(--qx-solid); background: var(--qx-solid); color: var(--qx-on-solid); }

/* Entrances: three cards with outlined numerals and a filling arrow. */
body.docs-workbench .workbench-entrances { gap: 12px; margin-bottom: 72px; overflow: visible; border: 0; border-radius: 0; background: none; }
body.docs-workbench .workbench-entrances a { display: flex; flex-direction: column; min-height: 188px; padding: 24px 26px; overflow: hidden; border: 0; border-radius: 24px; background: var(--color-surface-secondary); transition: translate .45s cubic-bezier(.22, 1.2, .36, 1), background-color .3s ease; }
body.docs-workbench .workbench-entrances a:hover { translate: 0 -5px; background: var(--qx-paper-hover, #efeee9); }
body.docs-workbench .workbench-entrances .entrance-icon { color: transparent; font: 600 56px/1 var(--font-mono); letter-spacing: -.05em; -webkit-text-stroke: 1px var(--qx-line-strong, #d6d5cf); transition: -webkit-text-stroke-color .3s ease; }
body.docs-workbench .workbench-entrances a:hover .entrance-icon { -webkit-text-stroke-color: var(--doc-accent); }
body.docs-workbench .workbench-entrances strong { margin-top: auto; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
body.docs-workbench .workbench-entrances .entrance-arrow { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--qx-line-strong, #d6d5cf); border-radius: 50%; font-size: 14px; transition: background-color .3s ease, color .3s ease, border-color .3s ease, rotate .45s cubic-bezier(.22, 1.2, .36, 1); }
body.docs-workbench .workbench-entrances a:hover .entrance-arrow { border-color: var(--qx-solid); background: var(--qx-solid); color: var(--qx-on-solid); rotate: 45deg; }

body.docs-workbench .workbench-api-heading { align-items: end; margin-bottom: 20px; }
body.docs-workbench .workbench-api-heading h2 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.035em; }
body.docs-workbench .workbench-api-heading p { font-family: var(--font-mono); font-size: 12px; }

/* The explorer: a dark console with a measuring grid. */
body.docs-workbench .api-explorer {
  --doc-bg: #0f1216;
  --doc-panel: #0f1216;
  --doc-soft: #171b21;
  --doc-ink: #f1f3f5;
  --doc-muted: #98a1ad;
  --doc-line: #ffffff16;
  --doc-accent: #8fc2e8;
  --doc-selected: #8fc2e81c;
  --doc-code: #171b21;
  --doc-code-ink: #e7eaee;
  --color-text: #d6dae0;
  --color-text-emphasis: #f1f3f5;
  --color-text-secondary: #98a1ad;
  --qx-solid: #f1f3f5;
  --qx-solid-hover: #d5d9e0;
  --qx-on-solid: #0f1216;
  border: 0;
  border-radius: 28px;
  background: #0f1216 linear-gradient(#ffffff06 1px, transparent 1px) 0 0 / 100% 28px;
  color: #d6dae0;
  box-shadow: 0 40px 80px -48px #0f1216cc;
}
body.docs-workbench .api-explorer .explorer-platforms { background: transparent; }
body.docs-workbench .api-explorer .platform-symbol { background: #8fc2e8; color: #0f1216; }
body.docs-workbench .api-explorer .explorer-toolbar { padding: 20px 22px; }
body.docs-workbench .api-explorer .explorer-search { min-height: 56px; border-color: #ffffff1f; border-radius: 16px; background: #ffffff08; }
body.docs-workbench .api-explorer .explorer-search:focus-within { border-color: #8fc2e8; background: #ffffff0d; box-shadow: 0 0 0 4px #8fc2e81f; }
body.docs-workbench .api-explorer .explorer-search input { height: 54px; font: 15px/1.4 var(--font-mono); caret-color: #8fc2e8; }
body.docs-workbench .api-explorer .explorer-search input::placeholder { color: #6f7884; }
body.docs-workbench .api-explorer .explorer-search kbd { border-color: #ffffff2e; background: transparent; color: #98a1ad; }
body.docs-workbench .api-explorer .explorer-kind select { min-height: 56px; border-color: #ffffff1f; border-radius: 16px; background-color: #ffffff08; color: #f1f3f5; }
body.docs-workbench .api-explorer .explorer-kind select option { background: #171b21; color: #f1f3f5; }
body.docs-workbench .api-explorer .explorer-categories { background: transparent; }
body.docs-workbench .api-explorer .explorer-categories button { border-radius: 10px; font-size: 13px; }
body.docs-workbench .api-explorer .explorer-categories small { font-family: var(--font-mono); }
body.docs-workbench .api-explorer .explorer-list li { border-color: #ffffff0f; }
body.docs-workbench .api-explorer .explorer-list li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: #8fc2e8; transform: scaleY(0); transition: transform .3s cubic-bezier(.22, 1.2, .36, 1); }
body.docs-workbench .api-explorer .explorer-list li:is(:hover, .is-selected)::before { transform: scaleY(1); }
body.docs-workbench .api-explorer .explorer-list li:hover { background: #ffffff06; }
body.docs-workbench .api-explorer .explorer-list li.is-selected { background: #8fc2e80f; }
body.docs-workbench .api-explorer .explorer-list code { color: #e7eaee; font-size: 14px; }
body.docs-workbench .api-explorer .explorer-list li:hover code { color: #fff; }
body.docs-workbench .api-explorer [data-api-preview] { color: #8fc2e8; }
body.docs-workbench .api-explorer [data-api-preview] > span { padding: 4px 10px; border: 1px solid #8fc2e840; border-radius: 999px; }
body.docs-workbench .api-explorer [data-api-preview][aria-pressed="true"] > span { border-color: #8fc2e8; background: #8fc2e81f; }
body.docs-workbench .api-explorer .explorer-preview { background: #12161b; }
body.docs-workbench .api-explorer .api-peek h3 { color: #f1f3f5; font-family: var(--font-mono); }
body.docs-workbench .api-explorer .api-peek-code { border: 1px solid #ffffff14; }
body.docs-workbench .api-explorer .api-peek-open { background: #f1f3f5; color: #0f1216; }
body.docs-workbench .api-explorer .api-peek-open:hover { background: #d5d9e0; }
body.docs-workbench .api-explorer .explorer-footer { border-color: #ffffff12; background: transparent; color: #98a1ad; }
body.docs-workbench .api-explorer .explorer-footer a { color: #8fc2e8; }
body.docs-workbench .api-explorer :is(a, button, input, select, summary):focus-visible { outline-color: #8fc2e8; }

/* Learning: the bracket mark at display size. */
body.docs-workbench .workbench-learning { margin-top: 96px; }
body.docs-workbench .learning-mark { color: transparent; font: 600 clamp(64px, 7vw, 104px)/1 var(--font-mono); letter-spacing: -.04em; -webkit-text-stroke: 1px var(--doc-accent); }
body.docs-workbench .learning-intro h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.035em; }
body.docs-workbench .learning-track ol a { transition: padding-left .35s cubic-bezier(.22, 1.2, .36, 1), color .2s ease; }
body.docs-workbench .learning-track ol a:hover { padding-left: 8px; color: var(--doc-accent); }

@media (max-width: 760px) {
  body.docs-workbench .workbench-entrances { grid-template-columns: 1fr; margin-bottom: 48px; }
  body.docs-workbench .workbench-entrances a { min-height: 132px; }
  body.docs-workbench .workbench-entrances .entrance-icon { font-size: 40px; }
  body.docs-workbench .api-explorer { border-radius: 22px; }
  body.docs-workbench .api-explorer .explorer-toolbar { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body.docs-workbench :is(.workbench-entrances a, .workbench-entrances .entrance-arrow, .learning-track ol a, .api-explorer .explorer-list li::before) { transition: none; }
}
[data-theme="dark"] body.docs-workbench .api-explorer { background-color: #0b0d10; box-shadow: 0 0 0 1px #ffffff1a, 0 40px 80px -48px #000000cc; }

/* Header shell (2026-10-25): the section bar starts at the top of the screen as one frosted band;
   the floating header pill sits inside it and the tabs run along its bottom edge, so page content
   never shows above or between the two rows. */
body .docs-learning-nav{top:0;box-sizing:border-box;height:calc(var(--header-height) + 48px);padding-top:var(--header-height);border-bottom:1px solid var(--qx-line,#e6e5e0);background:color-mix(in srgb,var(--color-surface) 94%,transparent);-webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5)}
@media(max-width:760px){body .docs-learning-nav{height:calc(var(--header-height) + 48px)}}
