/* Sky Patrol V3 docs stylesheet. GENERATED by tools/docs/build_docs.py: tokens from site/static/v1/css/tokens.css,
   docs styles from tools/docs/assets/docs.src.css. Edit those, not this file. */
@font-face{font-family:"Open Sans";font-style:normal;font-weight:300 800;font-display:swap;src:url(fonts/OpenSans-latin-var.woff2) format("woff2")}
/* Sky Patrol V3 design tokens (SPEC §10.11; restyled to the Sky Patrol V2 look 2026-11-12, LOOKV2.md).
   V2 palette (Bootswatch "Yeti": nav #333, primary #008cba, page #efefef, borders #d1d1d1,
   Open Sans) with minimal AA fixes: white text sits on #007fa9 (V2 #008cba is 3.85:1), on #258472
   (V2 message #2fa790 is 2.98:1) and on #e91c23 (V2 error #ed1c24 is 4.38:1); WARN #f18f01 keeps its
   colour with dark text; grey secondary text is #767676 / #6b6b6b (V2 #999 is 2.85:1). Text pairs checked for WCAG AA (P1 palette/ui_contrast.json);
   band colours checked with the dataviz validator (P1 palette/palette_validation.json).
   Theme: OS preference by default; <html data-theme="light|dark"> wins both ways. */



:root {
  color-scheme: light;
  --bg: #efefef;
  --surface: #ffffff;
  --surface-2: #f9f9f9;
  --surface-3: #eeeeee;
  --border: #d1d1d1;
  --border-strong: #c1c1c1;
  --border-input: #949494;
  --text: #222222;
  --text-2: #6b6b6b;
  --text-3: #767676;
  --text-on-accent: #ffffff;
  --nav-bg: #333333;
  --nav-bg-2: #2a2a2a;
  --nav-text: #ffffff;
  --nav-text-2: #cccccc;
  --nav-hover: #006687;
  --accent: #0072a3;
  --accent-hover: #006687;
  --accent-soft: #e3f2f8;
  --accent-soft-2: #cfe8f3;
  --brand: #008cba;
  --focus: #008cba;
  --info: #258472;
  --info-soft: #e4f3ef;
  --warning: #f18f01;
  --warning-soft: #fdf1df;
  --warning-text: #222222;
  --danger: #c4161c;
  --danger-soft: #fbe7e7;
  --ok: #1b7a68;
  --band-g: #6250d6;
  --band-V: #1baf7a;
  --nondet: #7b8590;
  --grid: #e6e6e6;
  --axis: #5c6670;
  --plot-frame: #b9bec4;
  --plot-bg: #ffffff;
  --cam-1: #2a78d6; --cam-2: #eb6834; --cam-3: #1baf7a; --cam-4: #eda100;
  --cam-5: #e87ba4; --cam-6: #008300; --cam-7: #6250d6; --cam-8: #e34948;

  /* V2 component colours (LOOKV2.md) */
  --v2-title: #333333;
  --v2-primary: #007fa9; --v2-primary-hover: #006687; --v2-primary-line: #008cba;
  --v2-info: #258472; --v2-info-line: #2fa790;
  --v2-warn: #f18f01; --v2-warn-text: #222222;
  --v2-error: #e91c23; --v2-error-line: #ed1c24;
  --v2-debug: #2b4680;
  --v2-tab: #ffffff; --v2-tab-active: #f0f0f0; --v2-tab-hover: #dcdcdc; --v2-tab-line: #c1c1c1;
  --v2-btn: #e7e7e7; --v2-btn-hover: #dcdcdc; --v2-btn-line: #cccccc;
  --v2-zebra: #f9f9f9; --v2-row-hover: #f5f5f5; --v2-tfoot: #eeeeee;
  --v2-formbody: #efefef;
  --v2-strip: #e0e0e0;
  --v2-tile: #474747; --v2-tile-line: #616161; --v2-tile-text: #ffffff;

  --font-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fs-11: 0.6875rem; --fs-12: 0.75rem; --fs-13: 0.8125rem; --fs-14: 0.875rem; --fs-15: 0.9375rem;
  --fs-16: 1rem; --fs-18: 1.125rem; --fs-20: 1.25rem; --fs-24: 1.5rem; --fs-32: 2rem; --fs-40: 2.5rem;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --radius: 0px; --radius-lg: 0px; --radius-pill: 999px;
  --shadow: none;
  --shadow-pop: 0 2px 6px rgb(0 0 0 / .10), 0 12px 32px rgb(0 0 0 / .14);
  --content-max: 1400px;
  --col-max: min(85%, 1400px);
  --gutter: 15px;
  --nav-h: 47px;
  --dur: 120ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121212; --surface: #1c1c1c; --surface-2: #222222; --surface-3: #2a2a2a;
    --border: #3a3a3a; --border-strong: #4a4a4a; --border-input: #7a7a7a;
    --text: #e6e6e6; --text-2: #a8a8a8; --text-3: #9a9a9a; --text-on-accent: #0e1013;
    --nav-bg: #262626; --nav-bg-2: #1e1e1e; --nav-text: #f0f0f0; --nav-text-2: #b8b8b8; --nav-hover: #006687;
    --accent: #36b3e0; --accent-hover: #4cc3ee; --accent-soft: #15303b; --accent-soft-2: #1b3d4b; --focus: #4cc3ee;
    --info: #258472; --info-soft: #12302b; --warning: #ffb547; --warning-soft: #33280f; --warning-text: #1f2328;
    --danger: #ff6b6b; --danger-soft: #3a1c1e; --ok: #4fc3a1;
    --band-g: #9085e9; --band-V: #199e70; --nondet: #7d8692;
    --grid: #2a2a2a; --axis: #a8a8a8; --plot-frame: #3a3a3a; --plot-bg: #1c1c1c;
    --cam-1: #3987e5; --cam-2: #d95926; --cam-3: #199e70; --cam-4: #c98500;
    --cam-5: #d55181; --cam-6: #008300; --cam-7: #9085e9; --cam-8: #e66767;
    --v2-title: #e6e6e6;
    --v2-tab: #1c1c1c; --v2-tab-active: #262626; --v2-tab-hover: #303030; --v2-tab-line: #444444;
    --v2-btn: #2e2e2e; --v2-btn-hover: #3a3a3a; --v2-btn-line: #4a4a4a;
    --v2-zebra: #212121; --v2-row-hover: #282828; --v2-tfoot: #262626;
    --v2-formbody: #262626; --v2-strip: #2a2a2a;
    --v2-tile: #333333; --v2-tile-line: #4f4f4f;
    --shadow-pop: 0 2px 6px rgb(0 0 0 / .5), 0 12px 32px rgb(0 0 0 / .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121212; --surface: #1c1c1c; --surface-2: #222222; --surface-3: #2a2a2a;
  --border: #3a3a3a; --border-strong: #4a4a4a; --border-input: #7a7a7a;
  --text: #e6e6e6; --text-2: #a8a8a8; --text-3: #9a9a9a; --text-on-accent: #0e1013;
  --nav-bg: #262626; --nav-bg-2: #1e1e1e; --nav-text: #f0f0f0; --nav-text-2: #b8b8b8; --nav-hover: #006687;
  --accent: #36b3e0; --accent-hover: #4cc3ee; --accent-soft: #15303b; --accent-soft-2: #1b3d4b; --focus: #4cc3ee;
  --info: #258472; --info-soft: #12302b; --warning: #ffb547; --warning-soft: #33280f; --warning-text: #1f2328;
  --danger: #ff6b6b; --danger-soft: #3a1c1e; --ok: #4fc3a1;
  --band-g: #9085e9; --band-V: #199e70; --nondet: #7d8692;
  --grid: #2a2a2a; --axis: #a8a8a8; --plot-frame: #3a3a3a; --plot-bg: #1c1c1c;
  --cam-1: #3987e5; --cam-2: #d95926; --cam-3: #199e70; --cam-4: #c98500;
  --cam-5: #d55181; --cam-6: #008300; --cam-7: #9085e9; --cam-8: #e66767;
  --v2-title: #e6e6e6;
  --v2-tab: #1c1c1c; --v2-tab-active: #262626; --v2-tab-hover: #303030; --v2-tab-line: #444444;
  --v2-btn: #2e2e2e; --v2-btn-hover: #3a3a3a; --v2-btn-line: #4a4a4a;
  --v2-zebra: #212121; --v2-row-hover: #282828; --v2-tfoot: #262626;
  --v2-formbody: #262626; --v2-strip: #2a2a2a;
  --v2-tile: #333333; --v2-tile-line: #4f4f4f;
  --shadow-pop: 0 2px 6px rgb(0 0 0 / .5), 0 12px 32px rgb(0 0 0 / .5);
}
@media (max-width: 760px) { :root { --col-max: 100%; } }
@media (prefers-reduced-motion: reduce) { :root { --dur: 0ms; } }

/* ---------------------------------------------------------------- docs styles
   Uses only the shared site tokens above (colours, type scale, spacing). Syntax
   colours are the one docs-specific palette; every pair is >= 4.5:1 on --code-bg. */
:root {
  --code-bg: #f6f8fa; --code-border: #d8dee4; --code-text: #1f2328;
  --t-c: #57606a; --t-s: #0a3069; --t-n: #0550ae; --t-k: #cf222e; --t-b: #8250df; --t-p: #116329;
  --sidebar-w: 256px; --toc-w: 224px; --article-max: 880px;
  --pending: #b35900; --pending-bg: #fff4e5;
  --m-get: #0072a3; --m-post: #1b7a68; --m-delete: #c4161c; --m-text: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --code-bg: #0d1117; --code-border: #2e333b; --code-text: #e6e8eb;
    --t-c: #8b949e; --t-s: #a5d6ff; --t-n: #79c0ff; --t-k: #ff7b72; --t-b: #d2a8ff; --t-p: #7ee787;
    --pending: #ffb547; --pending-bg: #2b2112;
    --m-get: #36b3e0; --m-post: #3fb59e; --m-delete: #ff6b6b; --m-text: #0e1013;
  }
}
:root[data-theme="dark"] {
  --code-bg: #0d1117; --code-border: #2e333b; --code-text: #e6e8eb;
  --t-c: #8b949e; --t-s: #a5d6ff; --t-n: #79c0ff; --t-k: #ff7b72; --t-b: #d2a8ff; --t-p: #7ee787;
  --pending: #ffb547; --pending-bg: #2b2112;
  --m-get: #36b3e0; --m-post: #3fb59e; --m-delete: #ff6b6b; --m-text: #0e1013;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font-sans); font-size: 16px; -webkit-font-smoothing: antialiased;
  color: var(--text); background: var(--bg); scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; min-width: 320px; }
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -48px; z-index: 50; background: var(--accent); color: var(--text-on-accent);
  padding: 8px 12px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
kbd { font: 600 11px/1 var(--font-mono); padding: 3px 5px; border-radius: 3px; border: 1px solid var(--border-input);
  color: inherit; background: transparent; }

/* ------------------------------------------------------------------ top bar (mirrors site-core app.css) */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: var(--nav-bg); color: var(--nav-text); }
.nav__in { max-width: calc(var(--content-max) + 2 * var(--gutter, 24px)); margin: 0 auto; height: 100%; display: flex;
  align-items: center; gap: var(--s1); padding: 0 var(--gutter, 24px); }
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--nav-text); text-decoration: none; margin-right: var(--s3);
  white-space: nowrap; height: 100%; }
.nav__brand:hover { color: var(--nav-text); }
.nav__brand img { height: 28px; width: auto; }
.nav__brand b { font-weight: 300; font-size: var(--fs-20); letter-spacing: .01em; }
.badge-v3 { font: 700 11px/1 var(--font-sans); letter-spacing: .06em; padding: 4px 6px; border-radius: 3px;
  background: var(--brand, #008cba); color: #fff; }
.nav__links { display: flex; height: 100%; }
.nav__link { color: var(--nav-text); text-decoration: none; font-size: var(--fs-14); padding: 0 12px; height: 100%; display: flex;
  align-items: center; white-space: nowrap; transition: background var(--dur); }
.nav__link:hover, .nav__link[aria-current="page"] { background: var(--nav-hover); color: var(--nav-text); }
.nav__spacer { flex: 1; min-width: 8px; }
.nav__search { position: relative; width: 300px; max-width: 34vw; margin: 0 4px 0 0; }
.nav__search svg { position: absolute; left: 10px; top: 9px; width: 16px; height: 16px; color: var(--nav-text-2, #c9ced4); pointer-events: none; }
.nav__search input { width: 100%; height: 34px; padding: 0 10px 0 32px; font: 400 var(--fs-13) var(--font-sans);
  color: var(--nav-text); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .22); border-radius: var(--radius); }
.nav__search input::placeholder { color: var(--nav-text-2, #c9ced4); opacity: 1; }
.nav__search input:focus { outline: 2px solid var(--focus); outline-offset: 1px; background: rgb(255 255 255 / .12); }
.nav__icon { display: inline-grid; place-items: center; background: none; border: 1px solid transparent; color: var(--nav-text);
  height: 34px; min-width: 34px; border-radius: var(--radius); padding: 0 6px; cursor: pointer; }
.nav__icon:hover { border-color: rgb(255 255 255 / .3); }
.nav__icon svg { width: 18px; height: 18px; }
.nav__menu-btn { display: none; }

/* ------------------------------------------------------------------ shell */
.shell { max-width: calc(var(--content-max) + 2 * var(--gutter, 24px)); margin: 0 auto; padding: var(--s5) var(--gutter, 24px) var(--s7);
  display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w); gap: var(--s6);
  align-items: start; }
.sidebar { position: sticky; top: calc(var(--nav-h) + var(--s5)); max-height: calc(100vh - var(--nav-h) - 48px);
  overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.navgroup { margin: 0 0 var(--s4); }
.navlabel { font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-2); margin: 0 0 6px; }
.sidebar ul, .toc ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a { display: block; padding: 5px 10px; border-left: 3px solid transparent; color: var(--text);
  text-decoration: none; font-size: var(--fs-14); border-radius: 0 var(--radius) var(--radius) 0; }
.sidebar li a:hover { background: var(--surface-3); color: var(--text); }
.sidebar li a[aria-current] { border-left-color: var(--accent); background: var(--accent-soft); color: var(--text);
  font-weight: 600; }
.site-only { display: none; }

/* docs search */
.docsearch { position: relative; margin: 0 0 var(--s4); }
.docsearch input { width: 100%; height: 36px; padding: 0 34px 0 12px; font: 400 var(--fs-14) var(--font-sans);
  color: var(--text); background: var(--surface); border: 1px solid var(--border-input); border-radius: var(--radius); }
.docsearch input::placeholder { color: var(--text-2); opacity: 1; }
.docsearch kbd { position: absolute; right: 9px; top: 10px; color: var(--text-2); pointer-events: none; }
.docsearch ul { position: absolute; left: 0; top: 40px; width: min(440px, calc(100vw - 32px)); z-index: 40;
  list-style: none; margin: 0; padding: 4px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); max-height: 60vh; overflow: auto; }
.docsearch li a { display: block; padding: 7px 10px; border-radius: var(--radius); text-decoration: none; color: var(--text); }
.docsearch li[aria-selected="true"] a, .docsearch li a:hover { background: var(--accent-soft); }
.docsearch li .h { display: block; font-weight: 600; font-size: var(--fs-14); }
.docsearch li .pg { color: var(--text-2); font-size: var(--fs-12); font-weight: 400; }
.docsearch li .x { display: block; color: var(--text-2); font-size: var(--fs-12); line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.docsearch li mark { background: none; color: inherit; font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--accent); }
.docsearch li.empty { padding: 10px; color: var(--text-2); font-size: var(--fs-13); }

/* ------------------------------------------------------------------ article */
.article { min-width: 0; max-width: var(--article-max); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--s6) 40px var(--s5); box-shadow: var(--shadow); outline: none; }
.article > h1 { font-weight: 300; font-size: var(--fs-32); line-height: 1.2; margin: 0 0 var(--s2); letter-spacing: -.005em; }
.article > h1 b, .article > h1 strong { font-weight: 600; }
.lead { font-size: 1.0625rem; color: var(--text-2); margin: 0 0 var(--s3); line-height: 1.55; }
.meta-line { font-size: var(--fs-12); color: var(--text-2); margin: 0 0 var(--s5); padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border); }
.meta-line code { font-size: 11px; }
.article h2 { font-size: 1.375rem; font-weight: 600; line-height: 1.3; margin: var(--s6) 0 var(--s3);
  padding-top: var(--s4); border-top: 1px solid var(--border); }
.article > h2:first-of-type, .article .meta-line + h2 { border-top: 0; padding-top: 0; margin-top: var(--s4); }
.article h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; margin: var(--s5) 0 var(--s2); }
.article h4 { font-size: var(--fs-14); font-weight: 700; margin: var(--s4) 0 var(--s2); }
.article p, .article li { font-size: 0.9375rem; }
.article p { margin: 0 0 var(--s3); }
.article ul, .article ol { margin: 0 0 var(--s3); padding-left: 1.4em; }
.article li { margin: 2px 0; }
.article li > ul, .article li > ol { margin: 2px 0 4px; }
.article dl { margin: 0 0 var(--s3); }
.article dt { font-weight: 600; font-size: 0.9375rem; }
.article dd { margin: 0 0 var(--s2) var(--s4); font-size: 0.9375rem; }
.anchor { margin-left: 8px; color: var(--text-2); text-decoration: none; font-weight: 400; opacity: 0;
  transition: opacity var(--dur); }
h2:hover .anchor, h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
code, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
:not(pre) > code { font-size: .86em; background: var(--surface-3); border-radius: 3px; padding: .1em .35em;
  overflow-wrap: anywhere; }
a > code { color: inherit; }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-13); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s5) 0; }
.math { font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math", Georgia, serif; font-size: 1.02em;
  font-style: normal; white-space: nowrap; }
.eq { display: block; overflow-x: auto; margin: 0 0 var(--s3); padding: 10px 14px; background: var(--surface-2);
  border-left: 3px solid var(--border-input); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math", Georgia, serif; font-size: 1rem; line-height: 1.7; }
.eq var, .math var { font-style: italic; }

/* ------------------------------------------------------------------ code blocks */
.code { position: relative; margin: 0 0 var(--s4); border: 1px solid var(--code-border); border-radius: var(--radius-lg);
  background: var(--code-bg); overflow: hidden; }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 400 13px/1.55 var(--font-mono); color: var(--code-text);
  tab-size: 4; }
.code pre code { font: inherit; background: none; padding: 0; white-space: pre; }
.code-cap { font-size: var(--fs-12); color: var(--text-2); padding: 7px 90px 7px 14px; border-bottom: 1px solid var(--code-border);
  background: var(--surface-2); overflow-wrap: anywhere; }
.code-cap code { background: none; padding: 0; font-size: 11.5px; }
.code-cap a { font-family: var(--font-mono); font-size: 11.5px; }
.code-cap .rec, .code-cap .ill { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; }
.code-cap .rec { color: var(--m-post); }
.code-cap .lang { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; }
.code-cap .ill { color: var(--pending); }
.copy { position: absolute; top: 6px; right: 6px; font: 600 var(--fs-12) var(--font-sans); padding: 3px 9px;
  border-radius: var(--radius); border: 1px solid var(--code-border); background: var(--surface); color: var(--text-2);
  cursor: pointer; opacity: .9; min-height: 26px; }
.copy:hover { color: var(--text); border-color: var(--border-input); opacity: 1; }
.copy.done { color: var(--m-post); border-color: var(--m-post); }
.t-c { color: var(--t-c); font-style: italic; } .t-s { color: var(--t-s); } .t-n { color: var(--t-n); }
.t-k { color: var(--t-k); } .t-b { color: var(--t-b); } .t-p { color: var(--t-p); }

.codetabs { margin: 0 0 var(--s4); }
.codetabs [role="tablist"] { display: flex; gap: 2px; border-bottom: 1px solid var(--code-border); margin-bottom: -1px;
  position: relative; z-index: 1; overflow-x: auto; }
.codetabs [role="tab"] { font: 600 var(--fs-13) var(--font-sans); color: var(--text-2); background: transparent;
  border: 1px solid transparent; border-bottom: 0; padding: 7px 14px; border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer; white-space: nowrap; min-height: 32px; }
.codetabs [role="tab"]:hover { color: var(--text); }
.codetabs [role="tab"][aria-selected="true"] { color: var(--text); background: var(--code-bg);
  border-color: var(--code-border); box-shadow: inset 0 2px 0 var(--accent); }
.codetabs .code { border-top-left-radius: 0; margin: 0; }

/* ------------------------------------------------------------------ tables */
.tablewrap { overflow-x: auto; margin: 0 0 var(--s4); border: 1px solid var(--border); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
th, td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface-2); font-weight: 700; border-bottom: 2px solid var(--border); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--surface-2); }
tbody th { font-weight: 600; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td code, th code { white-space: nowrap; }
td.wrap code { white-space: normal; }
table.params th:first-child { white-space: nowrap; }
table.params td:nth-child(3) { min-width: 140px; }
table.params .req { display: block; font: 600 10.5px var(--font-sans); color: var(--danger); text-transform: uppercase;
  letter-spacing: .05em; margin-top: 2px; }
table.params .where { color: var(--text-2); }
table.params .ty { font-family: var(--font-mono); font-size: 12px; color: var(--text); }
table.params .fmt, table.params .rng { color: var(--text-2); font-size: 12px; }
table.params .ex { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; }
table.params a.pa { text-decoration: none; color: inherit; }
table.params tr:target { background: var(--accent-soft); }

/* ------------------------------------------------------------------ API operations */
.method { display: inline-block; min-width: 54px; text-align: center; font: 700 11px/1 var(--font-mono);
  letter-spacing: .04em; padding: 5px 6px; border-radius: 4px; color: var(--m-text); background: var(--m-get);
  vertical-align: 2px; }
.method.m-post { background: var(--m-post); }
.method.m-delete { background: var(--m-delete); }
.op { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s4) var(--s4) var(--s2);
  margin: 0 0 var(--s4); background: var(--surface); scroll-margin-top: calc(var(--nav-h) + 16px); }
.op:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.article .op h3.op-title { margin: 0 0 6px; font-size: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.op-title .path { font-size: 15px; font-weight: 600; background: none; padding: 0; overflow-wrap: anywhere; }
.op-title .pv { color: var(--accent); }
.op-summary { font-weight: 600; margin: 0 0 6px !important; }
.op-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--s3) !important; }
.mchip { font-size: var(--fs-12); border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px;
  background: var(--surface-2); color: var(--text-2); }
.mchip b { color: var(--text); font-weight: 600; margin-right: 2px; }
.responses { list-style: none; padding: 0 !important; }
.responses li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 3px 0; }
.st { font: 700 12px var(--font-mono); padding: 1px 6px; border-radius: 3px; border: 1px solid; }
.st.ok { color: var(--m-post); border-color: var(--m-post); }
.st.bad { color: var(--danger); border-color: var(--danger); }
.media { color: var(--text-2); font-size: var(--fs-12); font-weight: 400; }
table.endpoints td:first-child { width: 70px; }

/* ------------------------------------------------------------------ callouts and pending markers */
.callout { border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--surface-2);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 12px 16px; margin: 0 0 var(--s4); }
.callout > :last-child { margin-bottom: 0; }
.callout .ct { display: block; font-weight: 700; font-size: var(--fs-13); margin-bottom: 4px; }
.callout.warn { border-left-color: var(--warning); }
.callout.ok { border-left-color: var(--m-post); }
.callout.cite { border: 1px solid var(--accent); border-left-width: 1px; border-radius: var(--radius-lg); padding: 0;
  overflow: hidden; background: var(--surface); }
.callout.cite .ct { margin: 0; background: var(--accent); color: var(--text-on-accent); padding: 9px var(--s4); font-size: var(--fs-14); }
.callout.cite p { padding: 12px var(--s4) 0; }
.callout.cite p:last-child { padding-bottom: 12px; }
[data-pending="ben"] { background: var(--pending-bg); outline: 1.5px dashed var(--pending); outline-offset: 1px;
  border-radius: 3px; }
[data-pending="ben"]::before { content: "Pending decision"; display: inline-block; font: 700 10px/1.3 var(--font-sans);
  letter-spacing: .06em; text-transform: uppercase; color: var(--pending); border: 1px solid var(--pending);
  border-radius: 3px; padding: 1px 5px; margin-right: 6px; vertical-align: 1px; }
div[data-pending="ben"], p[data-pending="ben"], ul[data-pending="ben"] { padding: 8px 12px; }
div[data-pending="ben"]::before { display: table; margin-bottom: 6px; }

/* ------------------------------------------------------------------ launch scope ("coming soon") */
.soon { display: inline-block; font: 700 10px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--info); border: 1px solid var(--info); border-radius: 3px; padding: 1px 5px; vertical-align: 1px;
  white-space: nowrap; }
.mchip.soon { font-size: var(--fs-12); letter-spacing: 0; text-transform: none; }
section.op[data-launch="soon"] { border-style: dashed; }
.callout.soon-box { border-left-color: var(--info); }

/* ------------------------------------------------------------------ cards and quick start */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3); margin: 0 0 var(--s5); }
.card { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px;
  background: var(--surface); color: var(--text); text-decoration: none; transition: border-color var(--dur), box-shadow var(--dur); }
a.card:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.card h3, .card .ch { margin: 0 0 4px; font-size: var(--fs-16); font-weight: 600; color: var(--accent); }
.card p { margin: 0; font-size: var(--fs-13); color: var(--text-2); line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(124px, 100%), 1fr)); gap: var(--s2); margin: 0 0 var(--s5); }
.fact { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 14px; background: var(--surface-2); }
.fact .l { display: block; font-size: var(--fs-12); color: var(--text-2); }
.fact .v { display: block; font-size: var(--fs-20); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 40px; margin: 0 0 var(--s4); }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--text-on-accent); font: 700 13px/26px var(--font-sans); text-align: center; }
.steps > li > :first-child { margin-top: 2px; }

/* ------------------------------------------------------------------ diagrams */
.bytes { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 var(--s2); font-size: var(--fs-12); }
.bytes > div { border: 1px solid var(--border-input); margin: 0 -1px -1px 0; padding: 8px 10px 6px; min-width: 64px;
  background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.bytes b { font-family: var(--font-mono); font-size: 12.5px; }
.bytes span { color: var(--text-2); font-family: var(--font-mono); font-size: 11px; }
.bytes .magic { background: var(--accent-soft); }
.bytes .hdr { flex: 2 1 160px; background: var(--surface-2); }
.bytes .pad { background: repeating-linear-gradient(135deg, var(--surface-3) 0 4px, var(--surface) 4px 8px); min-width: 54px; }
.bytes .col { flex: 1 1 90px; }
.bytes .col.sh { background: linear-gradient(var(--surface), var(--surface)) padding-box; }
.diagram-cap { font-size: var(--fs-12); color: var(--text-2); margin: 0 0 var(--s4) !important; }
.bits { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; margin: 0 0 6px; }
.bits > div { border: 1px solid var(--border-input); border-radius: 4px; padding: 6px 0 5px; text-align: center;
  font: 600 11px/1.25 var(--font-mono); background: var(--surface-3); color: var(--text-2); min-width: 0; }
.bits > div small { display: block; font: 400 9.5px/1.2 var(--font-sans); letter-spacing: .02em; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 1px; }
.bits .g-stored { background: var(--accent-soft); color: var(--text); border-color: var(--accent); }
.bits .g-position { background: var(--pending-bg); color: var(--text); border-color: var(--pending); border-style: dashed; }
.bits .g-decile { background: var(--surface); color: var(--text); border-color: var(--text-2); border-style: dotted; border-width: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-12); color: var(--text-2); margin: 0 0 var(--s4); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--border-input); }
.legend i.g-stored { background: var(--accent-soft); border-color: var(--accent); }
.legend i.g-position { background: var(--pending-bg); border: 1px dashed var(--pending); }
.legend i.g-decile { background: var(--surface); border: 2px dotted var(--text-2); }
.legend i.g-none { background: var(--surface-3); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: 0; margin-right: 4px; }
.swatch.g { background: var(--band-g); } .swatch.V { background: var(--band-V); }

/* ------------------------------------------------------------------ toc and pager */
.toc { position: sticky; top: calc(var(--nav-h) + var(--s5)); max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto;
  font-size: var(--fs-13); scrollbar-width: thin; }
.toc li a { display: block; padding: 3px 0 3px 10px; border-left: 2px solid var(--border); color: var(--text-2);
  text-decoration: none; line-height: 1.4; }
.toc li.l3 a { padding-left: 22px; font-size: var(--fs-12); }
.toc li a:hover { color: var(--text); }
.toc li a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.prevnext { display: flex; gap: var(--s3); margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--border); }
.pn { flex: 1; display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 14px;
  text-decoration: none; font-weight: 600; font-size: var(--fs-14); }
.pn span { display: block; font-size: var(--fs-12); font-weight: 400; color: var(--text-2); }
.pn.next { text-align: right; margin-left: auto; }
.pn:hover { border-color: var(--accent); }

/* ------------------------------------------------------------------ footer (mirrors site-core app.css) */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.site-footer__in { max-width: calc(var(--content-max) + 2 * var(--gutter, 24px)); margin: 0 auto; padding: var(--s5) var(--gutter, 24px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5); font-size: var(--fs-13); color: var(--text-2); }
.site-footer p { margin: 0 0 var(--s2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.logos { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: flex-end; }
.logos img { height: 44px; width: auto; background: #fff; border-radius: 6px; padding: 4px; border: 1px solid var(--border); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1240px) {
  .shell { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: inline-grid; }
  .shell { display: block; padding: var(--s3) var(--gutter, 16px) var(--s6); }
  .sidebar { position: fixed; z-index: 35; top: var(--nav-h); left: 0; right: 0; max-height: calc(100vh - var(--nav-h));
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: var(--s4);
    display: none; }
  .sidebar.open { display: block; }
  .site-only { display: block; }
  .docsearch ul { width: 100%; }
  .article { padding: var(--s5) var(--s4) var(--s4); border-radius: var(--radius-lg); }
  .article > h1 { font-size: var(--fs-24); }
  .article h2 { font-size: 1.25rem; }
  .site-footer__in { grid-template-columns: minmax(0, 1fr); }
  .logos { justify-content: flex-start; }
  .code-cap { padding-right: 70px; }
  .bits { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .prevnext { flex-direction: column; }
  .pn.next { text-align: left; margin-left: 0; }
}
@media (max-width: 760px) {
  .nav__search { display: none; }
  .nav__brand b { font-size: var(--fs-18); }
}
@media (max-width: 520px) {
  .article { padding: var(--s4) var(--s3) var(--s3); margin: 0 -4px; }
  .op { padding: var(--s3) var(--s3) var(--s1); }
  th, td { padding: 6px 8px; }
  .code pre { padding: 12px; font-size: 12.5px; }
}
@media print {
  .nav, .sidebar, .toc, .site-footer, .copy, .prevnext, .skip { display: none !important; }
  .shell { display: block; padding: 0; }
  .article { border: 0; box-shadow: none; max-width: none; padding: 0; }
  .codetabs [role="tabpanel"][hidden] { display: block !important; }
}

/* ------------------------------------------------------------------ V2 look (look-shell, 2026-11-12, LOOKV2.md)
   Same header, white column and colours as the site (static/v1/css/app.css). This block and the 72x45 header
   logo also need to go into tools/docs/assets/docs.src.css and the build_docs.py page template, or a docs
   rebuild drops them. */
.nav__in { max-width: none; padding: 0 var(--gutter) 0 4px; gap: 4px; }
.nav__brand { gap: 6px; margin-right: 10px; }
.nav__brand img { width: 72px; height: 45px; }
.nav__brand b { font-size: var(--fs-16); }
.badge-v3 { font-weight: 600; letter-spacing: .04em; padding: 3px 5px; border-radius: 2px; background: var(--v2-primary); color: #fff; }
.nav__link { font-weight: 300; padding: 0 8px 3px; margin: 1px 4px; height: calc(100% - 2px); }
.nav__link:hover { background: var(--nav-hover); }
.nav__link[aria-current="page"] { background: none; font-weight: 400; box-shadow: inset 0 -3px 0 var(--v2-primary-line); }
.nav__link[aria-current="page"]:hover { background: var(--nav-hover); }
.nav__search input { border-radius: 0; }
.shell { max-width: var(--col-max); background: var(--surface); padding: 15px var(--gutter) 30px; }
.article { border: 0; border-radius: 0; box-shadow: none; padding: 0 0 var(--s5); }
.article > h1 { font-size: 24px; font-weight: 300; color: var(--v2-title); margin: 0 0 12px; padding: 2px 0 9px; border-bottom: 1px solid var(--border); }
.sidebar li a { border-radius: 0; }
.sidebar li a[aria-current] { border-left-color: var(--v2-primary-line); }
.tablewrap { border-radius: 0; }
table { font-size: var(--fs-12); }
th, td { padding: 8px; }
thead th { background: var(--surface); }
tbody tr:nth-child(odd) { background: var(--v2-zebra); }
tbody tr:hover { background: var(--v2-row-hover); }
.code, .callout, .fact, .docsearch input, .docsearch ul { border-radius: 0; }
.callout.cite { border-color: var(--v2-primary-line); border-radius: 0; }
.callout.cite .ct { background: var(--v2-primary); color: #fff; padding: 10px 15px; }
.fact { background: var(--surface); }
.fact .v { font-weight: 400; }
.site-footer { border: 0; background: transparent; }
.site-footer__in { max-width: var(--col-max); background: var(--surface); border-top: 1px solid var(--border); padding: 15px var(--gutter) 20px;
  font-size: var(--fs-12); }
.logos img { border-radius: 0; }
@media (max-width: 960px) {
  .shell { padding: 12px var(--gutter) 24px; }
  .article { padding: 0 0 var(--s4); }
  .article > h1 { font-size: 22px; }
}
@media (max-width: 760px) { .nav__brand b { font-size: var(--fs-16); } }
@media (max-width: 520px) { .article { padding: 0 0 var(--s3); margin: 0; } }

/* Fun V3 mark (Ben, 2026-11-13): big bold red, tilted, with a starburst glint; wiggles on hover. */
.badge-v3 { position: relative; display: inline-block; margin-left: 5px; padding: 0; background: none; border-radius: 0;
  font: italic 800 26px/1 var(--font-sans); letter-spacing: -.02em; color: #ff3b30; transform: rotate(-7deg);
  text-shadow: 0 0 10px rgba(255,59,48,.55), 1px 1px 0 #7a0c06; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.badge-v3::after { content: "\2726"; position: absolute; top: -7px; right: -9px; font: normal 400 11px/1 var(--font-sans); color: #ffd54a;
  text-shadow: 0 0 6px #ffd54a; animation: v3-glint 2.4s ease-in-out infinite; }
.nav__brand:hover .badge-v3 { transform: rotate(6deg) scale(1.18); }
@keyframes v3-glint { 0%,100% { opacity: .25; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.25) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .badge-v3, .badge-v3::after { animation: none; transition: none; } }
.v3-mark { font-weight: 800; font-style: italic; color: #d6001c; font-size: 1.25em; }
:root[data-theme="dark"] .v3-mark { color: #ff5a4f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .v3-mark { color: #ff5a4f; } }

/* Footer without logos (Ben, 2026-11-13): one tidy centred column. */
.site-footer__in { display: block; grid-template-columns: none; text-align: center; padding: 14px var(--gutter) 18px; font-size: 12px; }
.site-footer p { max-width: 760px; margin: 0 auto 8px; }
.site-footer nav { justify-content: center; margin-bottom: 8px; }
.site-footer .release-line { justify-content: center; opacity: .8; }

/* External version tabs in the header (V1.5, V2). */
.nav__link--ext small { font-size: 11px; opacity: .7; margin-left: 2px; }
.nav__link--ext::after { content: "\2197"; font-size: 10px; margin-left: 3px; opacity: .6; }
@media (max-width: 1250px) { .nav__link--ext small { display: none; } }

/* Team and acknowledgments. */
.team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.25rem 0}
.team-card{padding:1.2rem;border:1px solid var(--border);border-radius:6px;background:var(--surface-2)}
.team-card h3{margin:0 0 .5rem}.team-card p{margin:.45rem 0}.team-card--lead{grid-column:1/-1;display:flex;gap:1.25rem;align-items:center}
.team-card img{border-radius:6px;flex:none;object-fit:cover}.team-card .team-credit{font-size:.75rem;color:var(--text-2);margin-top:.75rem}
@media(max-width:620px){.team-grid{grid-template-columns:1fr}.team-card--lead{flex-direction:column;align-items:flex-start}.team-card img{width:112px;height:112px}}
