/* Omega Terminal Docs. The site's black-and-white world: black ground, neutral greys, white type. Green appears only as a
   connection status, the way the terminal shows it. */
/* ——— type, served from this site (SIL Open Font License 1.1: /assets/fonts/OFL-*.txt). Archivo is variable in width and
   weight; IBM Plex Sans is variable in weight; IBM Plex Mono is 400/500/600. Each file covers one script subset. ——— */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 800; font-stretch: 100% 125%; font-display: swap; src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 800; font-stretch: 100% 125%; font-display: swap; src: url("/assets/fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-stretch: 100%; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-stretch: 100%; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-stretch: 100%; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-stretch: 100%; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-stretch: 100%; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-stretch: 100%; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-stretch: 100%; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-stretch: 100%; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-stretch: 100%; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #000; --bg-1: #060606; --bg-2: #0b0b0b; --panel: #0e0e0e; --panel-2: #141414; --chrome: #1b1b1b; --control: #262626;
  --line: #222; --line-2: #343434; --text: #ededed; --text-2: #c2c2c2; --muted: #8f8f8f; --faint: #5c5c5c; --up: #3fb27f;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --top: 56px; --side: 272px; --pad: 56px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 24px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(255, 255, 255, .22); color: #fff; }
/* focus rings are for the keyboard only: docs.js marks <html data-input="key"> after Tab, arrows or Enter, and "pointer"
   after any click or tap, so a clicked link or button never keeps a ring */
:focus, :focus-visible { outline: none; }
html[data-input="key"] :focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 3px; }
html { -webkit-tap-highlight-color: transparent; }

/* ——— top bar ——— */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 18px; padding: 0 20px; background: rgba(0, 0, 0, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.brand { width: calc(var(--side) - 38px); flex: none; display: flex; align-items: center; gap: 10px; font: 600 15px var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 18px; height: auto; }
.brand .bar { width: 1px; height: 16px; background: var(--line-2); margin: 0 2px; }
.brand .dk { font: 500 13.5px var(--sans); color: var(--muted); letter-spacing: 0; }
.srch { position: relative; flex: 0 1 360px; min-width: 0; }
.srch input { width: 100%; height: 34px; padding: 0 44px 0 34px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg-2); color: var(--text); font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.srch input::placeholder { color: var(--faint); }
.srch input:focus { border-color: var(--muted); box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
.srch input::-webkit-search-cancel-button { display: none; }
.srch > svg { position: absolute; left: 11px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.srch kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 20px; min-width: 20px; display: grid; place-items: center; padding: 0 5px; border: 1px solid var(--line-2); border-radius: 3px; font: 500 11px var(--mono); color: var(--faint); pointer-events: none; }
.srch input:not(:placeholder-shown) + kbd { display: none; }
.top-sp { flex: 1; }
.site-link { display: inline-flex; align-items: center; gap: 0; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: color .2s, border-color .2s; }
.site-link:hover { color: var(--text); border-color: var(--muted); }
.site-link i { font-style: normal; margin-left: 8px; }
.site-link .full { white-space: pre; }
.menu-btn { display: none; width: 38px; height: 38px; flex: none; border: 1px solid var(--line-2); border-radius: 4px; background: none; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { width: 15px; height: 1.5px; background: var(--text); box-shadow: 0 5px 0 var(--text), 0 -5px 0 var(--text); transition: box-shadow .2s, transform .2s; }
.menu-btn[aria-expanded="true"] span { box-shadow: none; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { content: ""; display: block; width: 15px; height: 1.5px; background: var(--text); transform: rotate(-90deg); }

/* ——— sidebar ——— */
.side { position: fixed; z-index: 30; top: var(--top); bottom: 0; left: 0; width: var(--side); overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 48px 18px; border-right: 1px solid var(--line); background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.side .srch-slot:empty { display: none; }
.side .srch-slot { margin: 2px 0 14px; }
.side .srch-slot .srch { flex: none; }
.grp + .grp { margin-top: 18px; }
.grp h6 { margin: 0 0 4px; padding: 0 10px; font: 500 11px/28px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.side a { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 5px 10px; border-radius: 4px; color: var(--muted); font-size: 14px; line-height: 1.35; transition: color .15s, background .15s; }
.side a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.side a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 2px 0 0 var(--text); }
.side a .tg { margin-left: auto; flex: none; height: 18px; display: inline-flex; align-items: center; padding: 0 7px; border: 1px solid var(--line-2); border-radius: 9px; font: 500 10px var(--mono); letter-spacing: .03em; color: var(--faint); }
.side a mark { background: rgba(255, 255, 255, .16); color: var(--text); border-radius: 2px; padding: 0 1px; }
.side .none { padding: 8px 10px; font-size: 13.5px; color: var(--faint); }
.side .sfoot { margin: 26px 10px 0; padding-top: 16px; border-top: 1px solid var(--line); font: 500 11.5px/1.6 var(--mono); color: var(--faint); }
.scrim { position: fixed; inset: var(--top) 0 0 0; z-index: 25; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .25s; }

/* ——— page grid ——— */
.main { margin-left: var(--side); padding: calc(var(--top) + 44px) var(--pad) 96px; display: grid; grid-template-columns: minmax(0, 720px) 196px; gap: 64px; justify-content: start; min-height: 100vh; }
.main.wide { grid-template-columns: minmax(0, 1080px); }
.main.wide .toc { display: none; }
.art { min-width: 0; }
.toc { position: sticky; top: calc(var(--top) + 44px); align-self: start; padding-top: 4px; }
.toc h6 { margin: 0 0 10px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.toc button { display: block; width: 100%; padding: 5px 0 5px 12px; border: 0; border-left: 1px solid var(--line); background: none; text-align: left; font-size: 13px; line-height: 1.4; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.toc button:hover { color: var(--text); }
.toc button.on { color: var(--text); border-left-color: var(--text); }
@media (max-width: 1379px) { .main { grid-template-columns: minmax(0, 760px); } .toc { display: none; } }

/* ——— article type ——— */
.crumb { display: flex; align-items: center; gap: 8px; font: 500 12px var(--mono); color: var(--faint); margin-bottom: 18px; }
.crumb i { font-style: normal; color: var(--line-2); }
.h1 { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 720; font-size: clamp(34px, 4.2vw, 50px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.art .lede { margin: 20px 0 0; max-width: 60ch; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 500 12px var(--mono); color: var(--muted); }
.meta .lg { height: 22px; width: auto; }
.meta .lg.sq { border-radius: 4px; }
.meta .lg-schwab { height: 38px; } .meta .lg-webull { height: 19px; } .meta .lg-topstepx { height: 20px; } .meta .lg-kalshi { height: 21px; } .meta .lg-polymarket { height: 24px; } .meta .lg-ibkr { height: 26px; }
.meta .sp { flex: 1; }
.meta a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.meta a:hover { color: var(--text); }
.chk { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.chk::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.soon { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 11px; font: 500 11px var(--mono); color: var(--text); white-space: nowrap; }
.art h2 { margin: 52px 0 14px; font: 600 21px/1.3 var(--sans); letter-spacing: -.01em; color: var(--text); scroll-margin-top: calc(var(--top) + 24px); }
.art h3 { margin: 28px 0 8px; font: 600 16px/1.4 var(--sans); color: var(--text); }
.art p { margin: 0 0 14px; color: var(--text-2); max-width: 66ch; }
.art p a, .art .need a, .art .steps a, .art td a { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.art p a:hover, .art .need a:hover, .art .steps a:hover, .art td a:hover { text-decoration-color: var(--text); }
.art b, .art strong { color: var(--text); font-weight: 600; }
.art code { font: 500 .88em var(--mono); color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; overflow-wrap: anywhere; }
/* a label exactly as the provider's screen shows it */
.ui { font-weight: 500; color: #fff; background: #161616; border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.path { color: var(--faint); }
.path .ui + i, .path i { font-style: normal; color: var(--faint); padding: 0 4px; }

/* bulleted needs, on hairlines */
.need { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.need li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.need li::before { content: ""; position: absolute; left: 5px; top: 21px; width: 6px; height: 6px; background: var(--muted); border-radius: 1px; }

/* the numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps > li { counter-increment: st; position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 16px; padding-bottom: 24px; }
.steps > li::before { content: counter(st, decimal-leading-zero); grid-row: 1 / span 9; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: var(--bg); font: 500 11.5px var(--mono); color: var(--muted); position: relative; z-index: 1; transition: color .2s, border-color .2s, background .2s; }
.steps > li::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; width: 1px; background: var(--line); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps .st { margin: 3px 0 4px; font: 600 16px/1.45 var(--sans); color: var(--text); }
.steps p { margin: 0 0 6px; }
.steps .slot:not(:empty) { margin-top: 12px; }
/* steps that play a screen (Schwab) */
.steps.play > li { cursor: pointer; }
.steps.play > li .st { transition: color .2s; }
.steps.play > li:hover::before { border-color: var(--muted); color: var(--text); }
.steps.play > li.on::before { background: var(--text); border-color: var(--text); color: #000; font-weight: 600; }
.steps.play > li.done::before { border-color: var(--muted); color: var(--text); }
.steps button.st { all: unset; display: block; cursor: pointer; margin: 3px 0 4px; font: 600 16px/1.45 var(--sans); color: var(--text); }
html[data-input="key"] .steps button.st:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }
.steps.play > li:not(.on) button.st { color: var(--text-2); }
.steps.play > li:hover button.st { color: var(--text); }

/* callouts: one line, kept rare */
.note { margin: 18px 0; padding: 12px 16px; border: 1px solid var(--line); border-left: 2px solid var(--muted); border-radius: 0 4px 4px 0; background: var(--bg-1); color: var(--text-2); font-size: 14.5px; max-width: 66ch; }
.note b { color: var(--text); }

/* tables */
.tbl { overflow-x: auto; margin: 6px 0 14px; border: 1px solid var(--line); border-radius: 6px; scrollbar-width: thin; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 10px 14px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--text); font-weight: 600; min-width: 9.5em; }
.tbl td .lg { height: 15px; width: auto; display: inline-block; vertical-align: middle; }
.tbl td .lg.sq { border-radius: 3px; }
.tbl td .lg-schwab { height: 30px; } .tbl td .lg-webull { height: 15px; } .tbl td .lg-topstepx { height: 16px; } .tbl td .lg-kalshi { height: 17px; } .tbl td .lg-polymarket { height: 20px; } .tbl td .lg-ibkr { height: 20px; }
.tbl td a.lnk { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.tbl td a.lnk:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* where the key goes in Omega Terminal */
.omega { margin: 8px 0 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.omega .path { font-size: 15px; }
.omw { position: relative; height: 312px; border-radius: 6px; overflow: hidden; }
.omw .wf { inset: 0; }

/* sources, dated */
.src { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); }
.src .chk { font: 500 12px var(--mono); color: var(--text); }
.src .chk::before { background: var(--up); box-shadow: 0 0 0 3px rgba(63, 178, 127, .14); }
.src h3 { margin: 18px 0 8px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.src ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.src li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); transition: color .15s; }
.src li a:hover { color: var(--text); }
.src li a span { font: 500 11.5px var(--mono); color: var(--faint); white-space: nowrap; }
.src li a b { font-weight: 500; color: inherit; }

/* previous / next */
.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 40px; }
.pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; transition: border-color .2s, background .2s; min-width: 0; }
.pager a:hover { border-color: var(--line-2); background: var(--bg-1); }
.pager a span { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.pager a b { font: 600 15px var(--sans); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager a.nx { text-align: right; grid-column: 2; }

/* ——— getting started: the route data takes ——— */
.route { position: relative; margin: 8px 0 6px; padding: 26px 22px 22px; border: 1px solid var(--line); border-radius: 8px; background: radial-gradient(120% 90% at 50% 0%, #0b0b0b, #030303); display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto; gap: 0 0; align-items: center; overflow: hidden; }
.rt-node { position: relative; z-index: 1; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); min-width: 0; }
.rt-node .k { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.rt-node b { font: 600 15px/1.3 var(--sans); color: var(--text); }
.rt-node em { font: 500 11.5px var(--mono); font-style: normal; color: var(--muted); }
.rt-node.d { border-color: var(--muted); box-shadow: 0 0 0 4px rgba(255, 255, 255, .03); }
.rt-node.d b { display: flex; align-items: center; gap: 8px; }
.rt-node.d b svg { width: 14px; height: auto; }
.rt-keys { display: flex; align-items: center; gap: 7px; margin-top: 4px; font: 500 11.5px var(--mono); color: var(--text); }
.rt-keys svg { width: 12px; height: 12px; color: var(--muted); }
.rt-wire { position: relative; height: 54px; display: flex; align-items: center; justify-content: center; min-width: 0; }
.rt-wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.rt-wire i { position: absolute; top: 50%; left: 0; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--text); box-shadow: 0 0 10px rgba(255, 255, 255, .5); animation: rt-flow 2.4s linear infinite; }
.rt-wire i:nth-child(2) { animation-delay: .8s; } .rt-wire i:nth-child(3) { animation-delay: 1.6s; }
.rt-wire span { position: relative; z-index: 1; margin-top: -34px; padding: 0 8px; background: #070707; font: 500 10.5px var(--mono); color: var(--muted); white-space: nowrap; }
@keyframes rt-flow { from { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { left: calc(100% - 6px); opacity: 0; } }
.rt-off { grid-column: 3; display: grid; justify-items: start; gap: 0; margin-top: 0; position: relative; }
.rt-off::before { content: ""; width: 1px; height: 26px; margin-left: 24px; background: repeating-linear-gradient(180deg, var(--line-2) 0 3px, transparent 3px 6px); }
.rt-off .rt-node { border-style: dashed; border-color: var(--line-2); background: transparent; }
.rt-off .rt-node b { color: var(--muted); font-weight: 500; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .rt-wire i { animation: none; left: 50%; } }

/* ——— the wireframes: generic screens in the site's style, nobody's brand ——— */
.sgw { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
.sgw > .steps { min-width: 0; }
.sg-aside { position: sticky; top: calc(var(--top) + 28px); min-width: 0; }
.win { background: var(--panel); border: 1px solid #000; border-radius: 6px; box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .05); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.win-bar { height: 28px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 0 0 11px; background: var(--chrome); border-bottom: 1px solid #0d0c0a; font: 500 11.5px var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; }
.win-bar .t { color: var(--text); }
.win-bar .m { font: 500 11px var(--mono); color: var(--faint); }
.win-bar .m b { color: var(--text); font-weight: 500; }
.win-bar .sp { flex: 1; }
.win-ctl { display: flex; height: 100%; }
.win-ctl i { width: 34px; height: 100%; display: grid; place-items: center; }
.win-ctl i::before { content: ""; width: 9px; height: 9px; border: 1px solid var(--faint); border-radius: 1px; }
.win-ctl i:first-child::before { height: 0; border-width: 1px 0 0; }
.win-ctl i:last-child::before { border: 0; width: 10px; height: 10px; background: linear-gradient(45deg, transparent 46%, var(--faint) 46%, var(--faint) 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, var(--faint) 46%, var(--faint) 54%, transparent 54%); }
.sg-stage { position: relative; height: 412px; background: var(--bg-1); overflow: hidden; }
.sg-ctl { height: 44px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px; border-top: 1px solid var(--line); background: var(--bg-2); }
.sg-ctl button { height: 28px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--panel); color: var(--text); font: 500 12.5px var(--sans); cursor: pointer; white-space: nowrap; }
.sg-ctl button:hover:not(:disabled) { background: var(--panel-2); }
.sg-ctl button:disabled { opacity: .35; cursor: default; }
.sg-ctl button.pri { background: var(--text); border-color: var(--text); color: #000; font-weight: 600; }
.sg-dots { flex: 1; display: flex; gap: 4px; min-width: 0; }
.sg-dots i { flex: 1; height: 2px; background: var(--line-2); cursor: pointer; position: relative; }
.sg-dots i::before { content: ""; position: absolute; inset: -8px 0; }
.sg-dots i.done { background: var(--muted); } .sg-dots i.on { background: var(--text); }
.sg-cur { position: absolute; z-index: 9; left: 0; top: 0; width: 18px; height: 22px; pointer-events: none; opacity: 0; transform-origin: 0 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); transition: opacity .2s; }
.sg-cur.mv { transition: transform .62s cubic-bezier(.45, 0, .2, 1), opacity .2s; }

.wf { position: absolute; inset: 16px; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 6px; background: #090909; overflow: hidden; font-family: var(--sans); animation: wf-in .4s var(--ease) both; }
@keyframes wf-in { from { opacity: 0; transform: translateY(10px); } }
.wf-url { height: 32px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--chrome); border-bottom: 1px solid #000; }
.wf-url > i { width: 8px; height: 8px; border-radius: 50%; background: var(--control); flex: none; }
.wf-url .bx { flex: 0 1 380px; min-width: 0; margin-left: 10px; height: 20px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border-radius: 10px; background: var(--bg-2); font: 500 11px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.wf-url .bx svg { width: 10px; height: 10px; flex: none; color: var(--faint); }
.wf-top { height: 38px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.wf-top .sp { flex: 1; }
.w-logo { width: 62px; height: 12px; border-radius: 2px; background: var(--control); flex: none; }
.w-av { width: 22px; height: 22px; border-radius: 50%; background: var(--control); flex: none; }
.w-tab { position: relative; height: 38px; display: inline-flex; align-items: center; transition: color .2s; }
.w-tab.on { color: var(--text); }
.w-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); }
.wf-pg { position: relative; flex: 1; min-height: 0; display: flex; }
.wf-main { flex: 1; min-width: 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.wf-main.c { align-items: center; }
.wf-main > * { flex-shrink: 0; }
.w-crumb { font: 500 11px var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-h { margin: 0; font: 600 18px/1.2 var(--sans); color: var(--text); letter-spacing: -.01em; }
.w-s { font: 500 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.w-p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.w-bar { height: 7px; border-radius: 2px; background: var(--control); }
.w-bars { display: grid; gap: 8px; }
.w-card { width: min(360px, 100%); display: flex; flex-direction: column; gap: 12px; }
.w-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.w-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; min-width: 0; transition: border-color .25s, background .25s; }
.w-box.hi { border-color: var(--muted); background: rgba(255, 255, 255, .03); }
.w-box b { font: 600 12.5px/1.3 var(--sans); color: var(--text); }
.w-fld { display: grid; gap: 5px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.w-in { height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--bg-2); font: 500 12px var(--mono); color: var(--text); white-space: nowrap; overflow: hidden; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.w-in.tall { height: 52px; align-items: flex-start; padding-top: 8px; white-space: normal; line-height: 1.45; font-size: 10.5px; color: var(--muted); overflow: hidden; }
.w-in .ph { color: var(--faint); font-family: var(--sans); }
.w-in .sp { flex: 1; }
.w-fld.focus .w-in { border-color: var(--muted); box-shadow: 0 0 0 3px rgba(255, 255, 255, .07); }
.w-red { flex: 0 1 190px; min-width: 30px; height: 8px; border-radius: 2px; background: repeating-linear-gradient(90deg, #3a3a3a 0 6px, #2c2c2c 6px 9px); opacity: 0; transition: opacity .25s; }
.w-red.on { opacity: 1; }
.w-btn { align-self: flex-start; height: 32px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 3px; background: var(--text); color: #000; font: 600 12.5px var(--sans); white-space: nowrap; transition: transform .12s, background .2s, opacity .2s; }
.w-btn.gh { background: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.w-btn.sm { height: 24px; padding: 0 10px; font-size: 11.5px; }
.w-btn.full { align-self: stretch; justify-content: center; }
.w-btn.off { background: var(--control); color: var(--muted); }
.press { transform: scale(.94) !important; }
.w-chk { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 3px; font-size: 12.5px; color: var(--muted); transition: border-color .2s, color .2s; min-width: 0; white-space: nowrap; }
.w-chk > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.w-chk i { width: 14px; height: 14px; flex: none; border-radius: 3px; border: 1.5px solid var(--faint); position: relative; transition: background .15s, border-color .15s; }
.w-chk.on { border-color: var(--line-2); color: var(--text); }
.w-chk.on i { background: var(--text); border-color: var(--text); }
.w-chk.on i::after { content: ""; position: absolute; left: 3.5px; top: .5px; width: 3.5px; height: 7px; border: solid #000; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.w-chk em { margin-left: auto; font: 500 11px var(--mono); font-style: normal; color: var(--faint); }
.w-pill { display: inline-flex; align-items: center; gap: 6px; height: 21px; padding: 0 9px; border-radius: 11px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 10.5px var(--mono); color: var(--muted); white-space: nowrap; transition: color .3s, box-shadow .3s, background .3s; }
.w-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); transition: background .3s; }
.w-pill.ok { color: var(--up); box-shadow: inset 0 0 0 1px rgba(63, 178, 127, .45); background: rgba(63, 178, 127, .07); }
.w-pill.ok::before { background: var(--up); }
.w-pill.wait::before { animation: w-blink 1s steps(1) infinite; background: var(--text); }
@keyframes w-blink { 50% { opacity: .2; } }
.w-tb { display: grid; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; min-width: 0; }
.w-tb > div { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) 70px; gap: 10px; align-items: center; height: 38px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.w-tb > div > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.w-tb > div:last-child { border-bottom: 0; }
.w-tb > .th { height: 28px; font: 600 9.5px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); background: var(--bg-2); }
.w-tb b { font-weight: 500; color: var(--text); }
.w-prog { display: grid; gap: 7px; font: 500 11px var(--mono); color: var(--faint); }
.w-prog > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.w-prog i { display: block; height: 3px; border-radius: 2px; background: var(--control); position: relative; overflow: hidden; }
.w-prog i b { position: absolute; inset: 0; background: var(--muted); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.5s var(--ease); }
.w-prog.run i b { transform: scaleX(1); }
.w-key { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.w-toast { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 3px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 11.5px var(--sans); color: var(--text); white-space: nowrap; }
.w-toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); flex: none; }
.w-hide { opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.w-hide.show { opacity: 1; transform: none; }
.w-gone.hide { display: none; }
.w-omp { flex: none; width: 210px; margin: 22px 22px 0 0; align-self: flex-start; border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel); overflow: hidden; }
.w-omp .hd { height: 26px; display: flex; align-items: center; gap: 7px; padding: 0 10px; background: var(--chrome); border-bottom: 1px solid #000; font: 500 11px var(--sans); color: var(--text); white-space: nowrap; }
.w-omp .hd svg { width: 10px; height: auto; }
.w-omp .bd { display: grid; gap: 8px; padding: 10px; }
.w-omp .w-crumb { font-size: 10.5px; }
/* Omega's own Connections window */
.wf.om { background: var(--panel); }
.om-bar { height: 28px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 0 0 11px; background: var(--chrome); border-bottom: 1px solid #000; font: 500 11.5px var(--sans); color: var(--text); white-space: nowrap; overflow: hidden; }
.om-bar svg { width: 11px; height: auto; flex: none; }
.om-bar .m { font: 500 11px var(--mono); color: var(--faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.om-bar .sp { flex: 1; }
.om-list { width: 172px; flex: none; border-right: 1px solid var(--line); background: var(--bg-2); padding: 8px 0; overflow: hidden; }
.om-list .h { padding: 2px 10px 6px; font: 600 9px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.om-list > div:not(.h) { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; font: 500 12px var(--sans); color: var(--muted); white-space: nowrap; }
.om-list > div.on { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 2px 0 0 var(--text); }
.om-list .ms { margin-left: auto; font: 500 10.5px var(--mono); color: var(--faint); }
.om-list .sn { margin-left: auto; font: 500 9.5px var(--mono); color: var(--faint); }
.cn-mk { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 3px; background: var(--control); border: 1px solid var(--line-2); font: 600 7.5px var(--mono); letter-spacing: .02em; color: var(--muted); font-style: normal; }
.cn-st { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); transition: background .3s, box-shadow .3s; flex: none; }
.cn-st.wait { background: var(--text); box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
.cn-st.ok { background: var(--up); box-shadow: 0 0 0 3px rgba(63, 178, 127, .14); }
.om-head { display: flex; align-items: center; gap: 10px; }
.om-head .cn-mk { width: 30px; height: 30px; font-size: 10px; border-radius: 4px; }
.om-head b { display: block; font: 600 16px var(--sans); color: var(--text); }
.om-head em { display: block; margin-top: 2px; font: 600 9px var(--sans); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--faint); }
.om-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 12px; color: var(--faint); }
.om-facts b { font: 500 11.5px var(--mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-facts b.up { color: var(--up); }
.om-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }

/* ——— narrower screens ——— */
@media (max-width: 1239px) {
  .main.wide { grid-template-columns: minmax(0, 760px); }
  .sgw { grid-template-columns: minmax(0, 1fr); }
  .sg-aside { display: none; }
  .sg-stage { height: 380px; }
}
@media (max-width: 1100px) { :root { --pad: 40px; } }
@media (max-width: 900px) {
  :root { --side: 300px; --pad: 16px; --top: 54px; }
  .top { padding: 0 12px; gap: 10px; }
  .brand { width: auto; }
  .top > .srch { display: none; }
  .menu-btn { display: inline-flex; order: -1; }
  .site-link { padding: 0 10px; font-size: 13px; }
  .site-link .full { display: none; }
  .side { transform: translateX(-100%); transition: transform .3s var(--ease); width: min(var(--side), 86vw); box-shadow: 30px 0 60px -20px rgba(0, 0, 0, .9); }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .main { margin-left: 0; padding-top: calc(var(--top) + 28px); padding-bottom: 72px; }
  .art .lede { font-size: 16.5px; }
  .srch kbd { display: none; }
  .art h2 { margin-top: 44px; font-size: 19px; }
  .route { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .rt-wire { height: 64px; }
  .rt-wire::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .rt-wire i { left: 50%; top: 0; margin: 0 0 0 -3px; animation-name: rt-flow-v; }
  .rt-wire { justify-content: flex-start; }
  .rt-wire span { margin: 0 0 0 calc(50% + 14px); background: transparent; }
  @keyframes rt-flow-v { from { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { top: calc(100% - 6px); opacity: 0; } }
  .rt-off { grid-column: 1; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager a.nx { grid-column: 1; }
}
@media (max-width: 600px) {
  .om-list { display: none; }
  .wf { inset: 10px; }
  .wf-main { padding: 16px 14px; gap: 12px; }
  .w-omp { display: none; }
  .w-cards { grid-template-columns: minmax(0, 1fr); }
  .w-cards .w-box:not(.hi) { display: none; }
  .w-hide-s { display: none !important; }
  .om-row { grid-template-columns: minmax(0, 1fr); }
  .sg-stage { height: 340px; }
  .sg-ctl { gap: 10px; padding: 0 10px; }
  .src li a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  /* small tables become stacked rows: name and link on top, the detail under them */
  .tbl.stack thead { display: none; }
  .tbl.stack table, .tbl.stack tbody { display: block; }
  .tbl.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
  .tbl.stack tr:last-child { border-bottom: 0; }
  .tbl.stack td { padding: 0; border: 0; min-width: 0; }
  .tbl.stack td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 13.5px; }
  .tbl.stack td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; font-size: 13.5px; }
  .tbl.stack td .soon { display: none; }
  .meta { gap: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ——— the Strategy language guide: code, the function reference, lists from the reference ——— */
.code { position: relative; margin: 10px 0 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-1); }
.code[data-l]::before { content: attr(data-l); display: block; padding: 7px 14px; border-bottom: 1px solid var(--line); font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.code pre { margin: 0; padding: 13px 14px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.code code, .art .code code { display: block; padding: 0; border: 0; background: none; font: 400 12.8px/1.62 var(--mono); color: var(--text-2); white-space: pre; overflow-wrap: normal; tab-size: 2; }
.code i { font-style: normal; }
.code i.c { color: var(--faint); } .code i.s { color: #d8d8d8; } .code i.n { color: #cfcfcf; } .code i.k { color: #fff; font-weight: 500; }
.art ul.dl, .art ol.ol { margin: 4px 0 16px; padding: 0; list-style: none; border-top: 1px solid var(--line); max-width: 72ch; }
.art ul.dl > li, .art ol.ol > li { position: relative; padding: 9px 0 9px 24px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.art ul.dl > li::before { content: ""; position: absolute; left: 5px; top: 19px; width: 5px; height: 5px; background: var(--muted); border-radius: 1px; }
.art ol.ol { counter-reset: ol; } .art ol.ol > li { counter-increment: ol; padding-left: 30px; }
.art ol.ol > li::before { content: counter(ol); position: absolute; left: 0; top: 10px; width: 20px; font: 500 11.5px/1.9 var(--mono); color: var(--faint); text-align: right; }
.art ul.dl.sub { margin: 8px 0 0; border-top: 0; } .art ul.dl.sub > li { border-bottom: 0; padding: 4px 0 4px 18px; font-size: 14.5px; } .art ul.dl.sub > li::before { top: 14px; width: 4px; height: 4px; }
.art .tbl td code { white-space: normal; }
.soon.pv { color: var(--text); border-color: var(--muted); }
.stamp-line { font: 500 12px var(--mono); color: var(--faint); }
.fn { margin: 22px 0 30px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--top) + 24px); }
.art .fn h3 { margin: 0 0 6px; } .art .fn h3 code { font-size: 15px; padding: 2px 7px; }
.art .fn-meta { margin: 0 0 10px; font: 500 11.5px var(--mono); color: var(--faint); }
.fn-ret { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0 0 12px; font-size: 14px; color: var(--text-2); }
.fn-ret dt { font: 500 11px/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.fn-ret dd { margin: 0; min-width: 0; }
.tbl.fn-t td:first-child { min-width: 0; white-space: nowrap; } .tbl.fn-t { margin-bottom: 10px; }
.clog { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.clog > li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cl-h { font: 500 12px var(--mono); color: var(--faint); margin-bottom: 4px; } .cl-h b { color: var(--text); font-weight: 600; }
.clog ul { margin: 0; padding: 0 0 0 16px; color: var(--text-2); font-size: 14.5px; } .clog ul li { margin: 2px 0; }
.todo { margin: 6px 0 14px; padding: 14px 16px; border: 1px dashed var(--muted); border-radius: 6px; font-size: 14.5px; color: var(--text-2); }
.todo b { font: 600 12px var(--mono); letter-spacing: .04em; color: var(--text); } .art .todo p { margin: 6px 0 0; }
/* a section the Ask panel or a link pointed at */
.art .hl { animation: hl 2.6s var(--ease); border-radius: 6px; }
@keyframes hl { 0%, 55% { background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 12px rgba(255, 255, 255, .06); } 100% { background: transparent; box-shadow: 0 0 0 12px transparent; } }
/* comparison table: phones stack each row under its label */
.tbl.cmp td:first-child { width: 22%; }
@media (max-width: 600px) {
  .tbl.cmp thead { display: none; }
  .tbl.cmp table, .tbl.cmp tbody, .tbl.cmp tr, .tbl.cmp td { display: block; }
  .tbl.cmp tr { padding: 12px 14px; border-bottom: 1px solid var(--line); } .tbl.cmp tr:last-child { border-bottom: 0; }
  .tbl.cmp td { padding: 3px 0; border: 0; width: auto; } .tbl.cmp td:first-child { width: auto; padding-bottom: 6px; }
  .tbl.cmp td[data-l]::before { content: attr(data-l); display: block; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
  .fn-ret { grid-template-columns: minmax(0, 1fr); gap: 2px; } .fn-ret dd { margin-bottom: 6px; }
  .code code, .art .code code { font-size: 12px; }
}

/* ——— Ask the Docs ——— */
:root { --ask-w: 400px; }
.ask-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 11px; border: 1px solid var(--line-2); border-radius: 4px; background: none; color: var(--text); font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s; }
.ask-btn:hover { border-color: var(--muted); }
.ask-btn[aria-expanded="true"] { background: var(--text); border-color: var(--text); color: #000; }
.ask-btn svg { width: 15px; height: 15px; }
.ask-btn kbd { height: 18px; display: grid; place-items: center; padding: 0 5px; border: 1px solid var(--line-2); border-radius: 3px; font: 500 10.5px var(--mono); color: var(--faint); }
.ask-btn[aria-expanded="true"] kbd { border-color: rgba(0, 0, 0, .25); color: rgba(0, 0, 0, .6); }
.ask { position: fixed; z-index: 45; top: var(--top); right: 0; bottom: 0; width: var(--ask-w); display: flex; flex-direction: column; background: var(--bg-1); border-left: 1px solid var(--line); }
.ask-hd { height: 46px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ask-hd b { font-weight: 600; } .ask-hd .sp { flex: 1; }
.ask-ic { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 4px; background: none; color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.ask-ic:hover { color: var(--text); background: rgba(255, 255, 255, .06); } .ask-ic svg { width: 16px; height: 16px; }
/* one indeterminate bar, the house white, never red */
.ask-bar { position: relative; height: 2px; flex: none; overflow: hidden; background: var(--line); }
.ask-bar i { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: var(--text); animation: askbar 1.15s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes askbar { to { left: 100%; } }
.ask-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; font-size: 14px; line-height: 1.6; }
.ask-sugg { display: grid; gap: 6px; }
.ask-sugg button { text-align: left; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); color: var(--text-2); font-size: 13.5px; line-height: 1.4; cursor: pointer; transition: border-color .15s, color .15s; }
.ask-sugg button:hover { border-color: var(--line-2); color: var(--text); }
.ask .m { margin: 0 0 16px; }
.ask .m.u { display: flex; justify-content: flex-end; }
.ask .m.u p { margin: 0; max-width: 88%; padding: 8px 12px; border-radius: 8px 8px 2px 8px; background: var(--control); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.ask .md { color: var(--text-2); overflow-wrap: anywhere; }
.ask .md p { margin: 0 0 9px; } .ask .md p.h { color: var(--text); font-weight: 600; margin-top: 12px; }
.ask .md b { color: var(--text); font-weight: 600; }
.ask .md ul, .ask .md ol { margin: 0 0 9px; padding-left: 18px; } .ask .md li { margin: 2px 0; }
.ask .md code { font: 500 .88em var(--mono); color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
.ask .md pre { margin: 6px 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: #050505; overflow-x: auto; }
.ask .md pre code { display: block; padding: 0; border: 0; background: none; font: 400 12px/1.55 var(--mono); color: var(--text-2); white-space: pre; }
.ask .md a { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.ask .md a:hover { text-decoration-color: var(--text); }
.ask-pg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ask-pg a { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 12px; font: 500 11.5px var(--sans); color: var(--text-2); }
.ask-pg a:hover { border-color: var(--muted); color: var(--text); }
.ask-nav { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg-2); color: var(--muted); font-size: 12.5px; }
.ask-nav svg { width: 13px; height: 13px; flex: none; } .ask-nav b { color: var(--text); font-weight: 500; }
.ask-err { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.ask-retry { margin-left: 6px; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 4px; background: none; color: var(--text); font-size: 12.5px; cursor: pointer; }
.ask-in { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.ask-in textarea { flex: 1; min-width: 0; resize: none; max-height: 132px; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2); color: var(--text); font: 400 14px/1.45 var(--sans); outline: none; transition: border-color .2s; }
.ask-in textarea:focus { border-color: var(--muted); } .ask-in textarea::placeholder { color: var(--faint); } .ask-in textarea:disabled { opacity: .6; }
.ask-send { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 6px; background: var(--text); color: #000; cursor: pointer; }
.ask-send svg { width: 16px; height: 16px; } .ask-send:disabled { opacity: .35; cursor: default; }
.ask-send.stop { background: var(--control); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .ask-bar i { animation: none; left: 0; width: 100%; opacity: .5; } .art .hl { animation: none; } }
.ask-btn { flex: none; }
.art code.nw { white-space: nowrap; overflow-wrap: normal; }

/* ——— navigation: top tabs, a sidebar tree per tab, breadcrumbs, a footer for dates and sources ——— */
:root { --bar: 56px; --tabs: 44px; --top: calc(var(--bar) + var(--tabs)); }
.top { height: var(--bar); border-bottom: 0; }
.tabs { position: fixed; z-index: 39; top: var(--bar); left: 0; right: 0; height: var(--tabs); display: flex; align-items: stretch; gap: 26px; padding: 0 28px; background: rgba(0, 0, 0, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.tabs a { position: relative; display: flex; align-items: center; font-size: 14px; color: var(--muted); white-space: nowrap; transition: color .15s; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); font-weight: 500; }
.tabs a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); border-radius: 2px 2px 0 0; }
.side { padding: 20px 14px 48px 16px; }
.side .sfoot:empty, .side-tabs { display: none; }
#nav { display: grid; gap: 2px; }
.side .it { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 400 14.5px/1.35 var(--sans); text-align: left; cursor: pointer; transition: color .15s, background .15s; }
.side .it:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.side .it[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .09); font-weight: 500; box-shadow: none; }
.side .it .tg { margin-left: auto; flex: none; height: 18px; display: inline-flex; align-items: center; padding: 0 7px; border: 1px solid var(--line-2); border-radius: 9px; font: 500 10.5px var(--sans); color: var(--faint); }
.side .par { position: relative; display: flex; align-items: center; }
.side .par .it { padding-right: 38px; }
.side .tw { position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center; border: 0; border-radius: 5px; background: none; color: var(--faint); cursor: pointer; }
.side .tw:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.side .tw svg { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.side .par .lbl { color: var(--text-2); }
.side .branch.open > .par .tw svg { transform: rotate(90deg); }
.side .kids-nav { display: none; margin: 2px 0 6px 18px; padding-left: 8px; border-left: 1px solid var(--line-2); }
.side .branch.open > .kids-nav { display: grid; gap: 2px; }
.side .kids-nav .it { min-height: 34px; font-size: 14px; }
.side .kids-nav .it[aria-current="page"] { box-shadow: -9px 0 0 -8px var(--text); }
.side .hits { display: grid; gap: 2px; }
.side .hit { flex-direction: column; align-items: flex-start; gap: 1px; }
.side .hit .cr { font-size: 12px; color: var(--faint); }
.side mark { background: rgba(255, 255, 255, .16); color: var(--text); border-radius: 2px; padding: 0 1px; }
.side .none { padding: 8px 10px; font-size: 14px; color: var(--faint); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font: 400 13.5px var(--sans); color: var(--faint); }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--text); }
.crumb [aria-current] { color: var(--text-2); }
.crumb i { font-style: normal; color: var(--line-2); }
.h1 .soon { position: relative; top: -.5em; margin-left: 14px; height: 22px; vertical-align: middle; font: 500 11.5px var(--sans); letter-spacing: 0; }
.art .lede { margin-top: 14px; }
.art > section:first-of-type > h2 { margin-top: 40px; }
.art > section:first-of-type > span + * { margin-top: 32px; }
.src { margin-top: 72px; }
.src .chk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font: 400 13px var(--sans); color: var(--muted); }
.src .chk::before { background: var(--faint); box-shadow: none; }
.src .chk .pv { color: var(--text-2); }
.src h3 { margin: 18px 0 6px; font: 600 13px var(--sans); letter-spacing: 0; text-transform: none; color: var(--text-2); }
/* a parent page's children */
.kids { list-style: none; margin: 32px 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kids li + li { border-top: 1px solid var(--line); }
.kids a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; transition: background .15s; }
.kids a:hover { background: var(--bg-1); }
.kids .lg { width: 64px; height: 22px; object-fit: contain; object-position: left center; flex: none; }
.kids .lg.sq { width: 64px; height: 30px; }
.kids .kn { display: grid; gap: 2px; min-width: 0; flex: 1; }
.kids .kn b { font: 600 15.5px var(--sans); color: var(--text); }
.kids .kn em { justify-self: start; font-style: normal; font: 500 11px var(--sans); color: var(--faint); border: 1px solid var(--line-2); border-radius: 9px; padding: 0 7px; margin: 2px 0; }
.kids .kn span { font-size: 14px; color: var(--muted); }
.kids i { font-style: normal; color: var(--faint); font-size: 18px; }
@media (max-width: 900px) {
  :root { --tabs: 0px; --bar: 54px; }
  .tabs { display: none; }
  .side .side-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 16px; }
  .side-tabs a { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 13.5px; color: var(--muted); text-align: center; }
  .side-tabs a.on { background: var(--text); border-color: var(--text); color: #000; font-weight: 500; }
  .top { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) { .kids .lg { display: none; } .kids a { padding: 14px 16px; } }

/* ——— Ask the Docs: a round launcher bottom right; a compact panel above it (full screen on phones) ——— */
.ask-fab { position: fixed; z-index: 47; right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: var(--panel-2); color: var(--text); cursor: pointer; box-shadow: 0 8px 28px rgba(0, 0, 0, .7); transition: border-color .2s, background .2s; }
.ask-fab:hover { border-color: var(--muted); background: var(--control); }
.ask-fab svg { width: 18px; height: 18px; }
.ask { top: auto; left: auto; right: calc(20px + env(safe-area-inset-right)); bottom: calc(76px + env(safe-area-inset-bottom)); width: 384px; height: min(620px, calc(100vh - var(--top) - 104px)); z-index: 46; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, .75); }
@media (max-width: 600px) {
  .ask { inset: 0; width: auto; height: auto; z-index: 60; border: 0; border-radius: 0; box-shadow: none; padding-bottom: env(safe-area-inset-bottom); }
  .ask-hd { height: var(--bar); }
  body.ask-open { overflow: hidden; }
  body.ask-open .ask-fab { display: none; }
  .ask-fab { right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .ask-in textarea { font-size: 16px; }
}
/* labels in sentence case, never uppercase mono */
.toc h6, .tbl th, .fn-ret dt, .code[data-l]::before, .tbl.cmp td[data-l]::before { font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.toc h6 { color: var(--muted); }
body.nav-open .ask-fab { display: none; }
