/* IBM Plex Sans/Mono — SIL OFL 1.1 (IBM). Self-hosted: no third-party font requests. Subsets: latin, latin-ext, cyrillic. */
/* Plex Sans: Google ships ONE variable file per subset (wght axis) — one @font-face per subset, weight range 100 700. Was 4 identical files × 3 subsets (review 02.11, ~137 KB per cold page). */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/IBMPlexMono-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/IBMPlexMono-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/IBMPlexMono-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/IBMPlexMono-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/IBMPlexMono-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/IBMPlexMono-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 Sans';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/IBMPlexSans-var-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/IBMPlexSans-var-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: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/IBMPlexSans-var-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;
}

/* rbgrid.io — design system v1 (rbgrid-site:root, 2026-11-01).
   Direction (operator): light theme of the RBgrid web-app design system (@rbgrid/design-system tokens 2026-10-12),
   main nav in the header, left sidebar ONLY for documentation navigation.
   Token values are copied verbatim from rbgrid-app/design-system/src/tokens.ts — do not drift; changes go through rbgrid-dev:webapp.
   IBM Plex @font-face is prepended to this file by the build (assets/fonts/fonts.css). */

/* ---------- 1. Tokens (webapp DS: palettes.light / palettes.dark) ---------- */
:root {
  --bg:            #f3f5f8;
  --surface:       #ffffff;
  --raised:        #f8fafc;
  --border:        #dde2e9;
  --border-strong: #a9b3c1;
  --ink:           #111827;
  --ink-muted:     #4b5563;
  --primary:       #1d4ed8;
  --on-primary:    #ffffff;
  --primary-soft:  rgba(29, 78, 216, .08);
  --focus:         #1d4ed8;
  --export:        #0d9488;
  --solar:         #d97706;
  --solar-ink:     #b45309;
  --warn:          #a16207;
  --warn-soft:     rgba(161, 98, 7, .09);
  --crit:          #b91c1c;
  --online:        #047857;
  --chart-grid:    #e8ecf1;
  --shadow-pop:    0 8px 24px rgba(17, 24, 39, .12);
  /* site-only tokens (placeholder state — dev builds only, release refuses to ship them) */
  --ph-bg:   #fff0f5;
  --ph-ink:  #a3104a;
  --ph-line: #e58ab0;
  /* site-only (UI review 02.11): DS --border-strong is 1.9–2.1:1 — too faint for control outlines (WCAG 1.4.11 wants 3:1) */
  --border-control: #848d9b;
  --primary-hover:  #1e40af;
  --bezel:          #111827;   /* phone frame around the mobile hero shot — never a text token */
  --photo-mat:      var(--raised);
  --lh-card: 1.6;

  /* type — DS type.family + scale (px values from DS, made fluid only for display sizes) */
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-display-xl: clamp(1.875rem, 1.5rem + 1.9vw, 3rem); /* DS displayXl 56/60, capped at 48 so the CTA stays in the first screen */
  --fs-display:    clamp(1.75rem, 1.4rem + 1.3vw, 2.25rem); /* DS display 36/40 */
  --fs-title:      1.375rem;  /* 22 */
  --fs-heading:    1rem;      /* 16 */
  --fs-body:       1rem;      /* site body 16 (DS app body 14 is too small for long docs) */
  --fs-sm:         .875rem;   /* 14 */
  --fs-card:       .9375rem;  /* 15 — card body text: 14 was too dense for long paragraphs (operator 2026-11-02) */
  --fs-label:      .75rem;    /* 12 */
  --lh: 1.6;

  /* space / radius — DS */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 6px; --r-control: 8px; --r-card: 12px; --r-pill: 999px;
  --maxw: 76rem;
  --measure: 70ch;
  --header-h: 72px;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418; --surface: #191d23; --raised: #222831; --border: #2a2f3a; --border-strong: #3b4250;
    --ink: #f9fafb; --ink-muted: #9ca3af; --primary: #60a5fa; --on-primary: #0b1220; --primary-soft: rgba(96, 165, 250, .14);
    --focus: #93c5fd; --export: #2dd4bf; --solar: #f59e0b; --solar-ink: #f59e0b; --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .13);
    --crit: #f87171; --online: #34d399; --chart-grid: #242a33; --shadow-pop: 0 8px 24px rgba(0, 0, 0, .45);
    --ph-bg: #2b1020; --ph-ink: #ff9cc6; --ph-line: #7a2c4f;
    --border-control: #6b7280; --primary-hover: #93c5fd; --bezel: #05070a; --photo-mat: transparent;
    color-scheme: dark;
  }
}
@media (min-width: 640px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/var(--lh) var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0 0 var(--s4); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-title); line-height: 1.27; }
h3, .h-sm { font-size: var(--fs-heading); line-height: 1.375; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); font-size: .875em; font-synthesis: none; }  /* Plex Mono ships 400/500 only — no faux bold */
pre code { font-size: inherit; }
strong, b { font-weight: 600; }
body > main { flex: 1 0 auto; }
:not(pre) > code { background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-sm); padding: .05em .35em; }
img, svg { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s2); top: -100px; z-index: 100; background: var(--surface); color: var(--ink); padding: var(--s2) var(--s4); border-radius: var(--r-control); box-shadow: var(--shadow-pop); }
.skip-link:focus { top: var(--s2); }
main:focus { outline: none; }
.muted { color: var(--ink-muted); }
.label { font: 500 var(--fs-label)/1.33 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }  /* one overline style site-wide (review 02.11) */
.label code, .scope-line code { font-size: .95em; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--s7); }
.section-head { max-width: var(--measure); margin-bottom: var(--s5); }
.section-head p { color: var(--ink-muted); }
.split { display: grid; gap: var(--s5); }
@media (min-width: 880px) { .split { grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: start; } }
.split > * { min-width: 0; }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }

/* ---------- 4. Header — main navigation lives HERE (operator) ----------
   rb-family header (operator 2026-11-02): STRUCTURE and feel of rbamp.com's header (large wordmark left, plain-text menu
   with carets, classic drop panels, one button right) — rendered in OUR DS tokens, no rbamp fonts/colours. */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 51; background: var(--surface); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: -.02em; }
.brand-mark { width: 26px; height: 26px; color: var(--primary); }
.i-ext { display: inline-block; width: .75em; height: .75em; margin-left: .3em; vertical-align: .02em; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-control); background: none; border: 0; cursor: pointer; color: var(--ink); }
.nav-toggle:hover { background: var(--raised); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.site-nav ul { list-style: none; }
/* family menu: plain text links (rbamp.com style), current section = primary colour + underline bar */
.site-nav a, .nav-sub-toggle { display: flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; font: 500 var(--fs-body)/1.3 var(--sans); padding: 8px 12px; border-radius: var(--r-control); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.site-nav a:hover, .nav-sub-toggle:hover { color: var(--primary); }
.site-nav a[aria-current="page"], .has-sub[data-current] > .nav-sub-toggle { color: var(--primary); }
.nav-main > li > a[aria-current="page"], .nav-main > .has-sub[data-current] > .nav-sub-toggle { position: relative; border-radius: 0; }
.nav-main > li > a[aria-current="page"]::after, .nav-main > .has-sub[data-current] > .nav-sub-toggle::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--primary); }
.i-chev { width: 12px; height: 12px; transition: transform .15s; }
.nav-sub-toggle[aria-expanded="true"] .i-chev { transform: rotate(180deg); }
.nav-sub a { white-space: normal; border-radius: var(--r-control); font-size: var(--fs-sm); padding: 8px 14px; }
.nav-sub a:hover { background: var(--raised); color: var(--ink); }
.nav-sub a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-sub-h { display: block; padding: 10px 14px 4px; font: 500 var(--fs-label)/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.nav-sub-group ul { padding-left: var(--s2); }
/* Where to buy = the family's single right-hand button, kept low-emphasis (outline) — a trip to the store, not a cart */
.nav-quiet a { border: 1px solid var(--border-control); color: var(--ink); font: 600 var(--fs-sm)/1 var(--sans); min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-control); }
.nav-quiet a:hover { border-color: var(--primary); color: var(--primary); }
/* flat-pillar nav = 7 items + GitHub + 2 buttons → burger below 1240px; 1240–1319 runs with tighter item padding (review 02.11: 1280 laptops kept the burger) */
@media (max-width: 1239.98px) {
  .header-row { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; padding-bottom: var(--s3); }            /* no-JS: full list visible, stacked */
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; position: absolute; left: 0; right: 0; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-pop); padding: var(--s3) max(var(--gutter), env(safe-area-inset-right, 0px)) var(--s4) max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .nav-main { display: grid; gap: 2px; }
  .site-nav a, .nav-sub-toggle { font-size: var(--fs-body); padding: 12px 14px; width: 100%; justify-content: space-between; }
  .nav-sub { padding-left: var(--s3); }
  .js .nav-sub-toggle[aria-expanded="false"] + .nav-sub { display: none; }   /* accordion */
  .nav-quiet { margin-top: var(--s2); }
  .site-nav .nav-quiet a, .site-nav .nav-demo a { width: auto; display: inline-flex; justify-content: center; font-size: var(--fs-body); }
  .site-nav a.ext, .site-nav .nav-demo a { justify-content: flex-start; gap: 6px; }
  .js .site-nav.open { max-width: 30rem; margin-left: auto; border-left: 1px solid var(--border); }
}
body.nav-open { overflow: hidden; }
@media (min-width: 1240px) and (max-width: 1319.98px) { .nav-main > li > a, .nav-main > li > .nav-sub-toggle { padding-inline: 8px; } .header-row { gap: var(--s4) !important; } .brand { font-size: 1.375rem; } }
@media (min-width: 1240px) {
  .nav-toggle { display: none; }
  .nav-main { display: flex; align-items: center; gap: 4px; }
  .header-row { gap: var(--s6); }
  .site-nav { flex: 1; display: flex; }
  .nav-main { flex: 1; }
  .nav-main > li > a, .nav-main > li > .nav-sub-toggle { min-height: var(--header-h); }
  .nav-main > .nav-quiet > a { min-height: 40px; }
  .nav-main > .nav-right { margin-left: auto; }
  .nav-main > .nav-quiet { margin-left: var(--s2); }
  .has-sub { position: relative; }
  .nav-sub { display: none; position: absolute; top: 100%; left: 0; min-width: 15rem; padding: var(--s2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-pop); z-index: 60; }
  .nav-sub-wide { min-width: 19rem; max-height: calc(100vh - var(--header-h) - var(--s5)); overflow-y: auto; }
  .nav-sub-toggle[aria-expanded="true"] + .nav-sub { display: block; }
  html:not(.js) .has-sub:hover > .nav-sub, html:not(.js) .has-sub:focus-within > .nav-sub { display: block; }
  .nav-quiet { margin-left: var(--s3); }
}

/* ---------- 5. Buttons (DS radius.control 8) ---------- */
.cta-stack { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: var(--s2); min-height: 44px; padding: 10px var(--s5); border-radius: var(--r-control); font: 600 var(--fs-card)/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-control); }
.btn-secondary:hover { border-color: var(--ink-muted); background: var(--raised); }
/* outbound store buttons show their destination domain — "this goes to rbamp.com", not a cart here (marketing note) */
.btn-domain { font: 500 var(--fs-label)/1 var(--mono); opacity: .85; padding-left: var(--s2); margin-left: var(--s1); border-left: 1px solid currentColor; }
@media (max-width: 479.98px) { .cta-stack .btn { flex: 1 1 100%; } }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- 6. Surfaces (DS Card / StatusChip / SettingRow) ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s5); }
.card p, .step p { font-size: var(--fs-card); line-height: var(--lh-card); }
.card > :last-child { margin-bottom: 0; }
.card + p { margin-top: var(--s3); }
.card p + p, .step p + p, .fn p + p { margin-top: var(--s3); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 var(--fs-label)/1.2 var(--sans); padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid currentColor; color: var(--ink-muted); }
.chip-live { color: var(--online); }
.chip-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rows { margin: 0; display: grid; }
.row { display: grid; gap: var(--s1) var(--s5); padding: var(--s4) 0; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }
@media (min-width: 640px) { .row { grid-template-columns: 10rem 1fr; } }
.row dt { font: 500 var(--fs-sm)/1.5 var(--mono); color: var(--ink-muted); }
.row dd { margin: 0; }
.row dd p { margin: 0 0 var(--s2); }
.row dd p:last-child { margin: 0; }

/* ---------- 7. Hero (home) ---------- */
.hero { padding-block: var(--s6) var(--s6); }
.hero-grid { display: grid; gap: var(--s4) var(--s7); align-items: start; }
.hero-grid > div:first-child .hero-lede { margin-bottom: 0; }
.hero-scope, .hero-cta { grid-column: 1 / -1; }
.hero-scope .scope-line { max-width: none; margin: 0; }
@media (min-width: 960px) { .hero-scope .scope-line ul { grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s6); } }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s7); } }
.eyebrow { font: 500 var(--fs-label)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: var(--s3); }
.hero-h1 { font-size: var(--fs-display-xl); letter-spacing: -.02em; line-height: 1.07; margin-bottom: var(--s4); }
.hero-lede { font-size: 1.125rem; color: var(--ink-muted); margin-bottom: var(--s5); max-width: 62ch; }
.hero-lede p { margin-bottom: var(--s2); }
.licence-condition { font-size: var(--fs-body); color: var(--ink); }
.lede { font-size: 1.125rem; color: var(--ink-muted); max-width: var(--measure); }

/* app screenshot slot (images come from rbgrid-dev:webapp + content:rbgrid) */
.shot { margin: 0; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-pop); }
.shot img { width: 100%; height: auto; }
.shot-pending { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: var(--s5); background: repeating-linear-gradient(135deg, var(--raised) 0 12px, var(--surface) 12px 24px); }
.shot-pending .ph { font-size: var(--fs-label); }

/* ---------- 8. Scope-line (🔴 above first CTA; DS PanelCard look; never collapsed) ---------- */
.scope-line { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s4) var(--s5); margin: 0 0 var(--s5); font-size: var(--fs-sm); max-width: 44rem; }
.scope-line ul { list-style: none; display: grid; gap: var(--s3); }
.scope-line li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s3); align-items: start; }
.scope-line .i { width: 20px; height: 20px; color: var(--primary); margin-top: 1px; }
.scope-platform span { font-weight: 600; }

/* ---------- 9. Function grid (DS EntityCard-like tiles; NOT numbered — not a sequence) ---------- */
.fn-grid { list-style: none; display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 600px) { .fn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fn-grid { grid-template-columns: repeat(3, 1fr); } }
.fn { display: grid; grid-template-columns: 32px 1fr; gap: var(--s3); align-items: start; padding: var(--s4); font-size: var(--fs-card); line-height: var(--lh-card); }
.fn-i { width: 32px; height: 32px; border-radius: var(--r-control); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.fn-i svg { width: 18px; height: 18px; }
.fn-tariff { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }

/* ToU-zone motif: the tariff engine is the #1 differentiator (IA §0) — decorative strip, aria-hidden */
.tou { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; margin: var(--s4) 0 var(--s2); }
.tou i { height: 10px; border-radius: 2px; background: var(--primary); }
.tou i.z2 { background: var(--export); } .tou i.z3 { background: var(--solar-ink); } .tou i.z4 { background: var(--crit); }
.tou-axis { display: flex; justify-content: space-between; font: 400 var(--fs-label)/1 var(--mono); color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* ---------- 10. Docs shell — left sidebar = DOCUMENTATION navigation only (operator) ---------- */
.docs-shell { display: grid; gap: var(--s6); padding-block: var(--s6); }
@media (min-width: 1024px) { .docs-shell { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s7); } }
@media (min-width: 1280px) { .docs-shell.has-toc { grid-template-columns: 15rem minmax(0, 1fr) 13rem; } }
.docs-sidebar { font-size: var(--fs-sm); }
@media (min-width: 1024px) { .docs-sidebar { position: sticky; top: calc(var(--header-h) + var(--s5)); max-height: calc(100vh - var(--header-h) - var(--s6)); overflow-y: auto; } }
.docs-sidebar .grp { font: 500 var(--fs-label)/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin: var(--s5) 0 var(--s2) 14px; }
.docs-sidebar .grp:first-child { margin-top: 0; }
.docs-sidebar ul { list-style: none; display: grid; gap: 1px; }
.docs-sidebar a { display: block; padding: 6px 14px; border-radius: var(--r-control); color: var(--ink-muted); text-decoration: none; }
.docs-sidebar a:hover { color: var(--ink); background: var(--raised); }
.docs-sidebar a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
@media (max-width: 1023.98px) { .docs-sidebar { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); padding: var(--s3); } }

/* ---------- 11. Page head + guide layout (get-started) ---------- */
.page-head { padding-block: var(--s7) var(--s5); }
.page-head h1 { max-width: 48rem; }
.guide { display: grid; gap: var(--s6); padding-bottom: var(--s7); }
@media (min-width: 1000px) { .guide { grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--s7); } .guide-aside { order: 2; position: sticky; top: calc(var(--header-h) + var(--s5)); align-self: start; } }
.checklist { list-style: none; display: grid; gap: var(--s3); font-size: var(--fs-card); line-height: var(--lh-card); }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ""; position: absolute; left: 6px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--border-control); }
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s3); }
.step { counter-increment: step; position: relative; padding: var(--s5) var(--s5) var(--s5) calc(var(--s5) + 44px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.step::before { content: counter(step); position: absolute; left: var(--s5); top: var(--s5); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font: 500 var(--fs-sm)/1 var(--mono); }
.step-h { font-size: 1.0625rem; line-height: 1.35; margin-bottom: var(--s2); padding-top: 4px; }
pre { background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-control); padding: var(--s4); overflow-x: auto; font-size: var(--fs-sm); line-height: 1.55; }
.next-grid { list-style: none; display: grid; gap: var(--s3); }
@media (min-width: 720px) { .next-grid { grid-template-columns: repeat(3, 1fr); } }
.card-link { display: block; height: 100%; color: var(--ink); text-decoration: none; font-weight: 600; }
.card-link::after { content: " →"; color: var(--primary); }
.card-link:hover { border-color: var(--primary); }

/* ---------- 12. Where to buy — an exit to other stores, not a shop: no price, no cart ---------- */
.wtb-list { list-style: none; display: grid; gap: var(--s3); margin-top: var(--s4); }
@media (min-width: 720px) { .wtb-list { grid-template-columns: repeat(2, 1fr); } }
.wtb-item { display: flex; flex-direction: column; gap: var(--s4); justify-content: space-between; }
.wtb-sku { font: 500 var(--fs-label)/1 var(--mono); color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s2); }
.wtb-name { font-weight: 600; margin: 0; }
.wtb-item .btn { align-self: flex-start; }
.outbound-pending { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s5); border: 1px dashed var(--ph-line); border-radius: var(--r-control); color: var(--ph-ink); background: var(--ph-bg); font: 500 var(--fs-sm)/1.3 var(--mono); }

/* ---------- 13. Blog ---------- */
.post { padding-block: var(--s6) var(--s7); }
.post-head { max-width: var(--measure); margin-bottom: var(--s5); }
.post .prose h3 { margin-top: var(--s5); }
.post .prose ul { padding-left: 1.25rem; margin-bottom: var(--s4); display: grid; gap: var(--s2); }
.post .prose a { word-break: break-word; }
.post-list { list-style: none; display: grid; gap: var(--s3); max-width: 48rem; }
.post-item a { display: grid; gap: var(--s1); padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); text-decoration: none; color: var(--ink); }
.post-item a:hover, .post-item a:focus-visible { border-color: var(--primary); }
.post-item a:visited .post-title { color: color-mix(in srgb, var(--ink) 78%, var(--primary)); }
.post-date { font: 400 var(--fs-label)/1 var(--mono); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.post-title { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.page-head + .section { padding-top: 0; }
.breadcrumbs { padding-top: var(--s4); font-size: .8125rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); color: var(--ink-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--border-strong); }
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- 14. 404 ---------- */
.notfound { min-height: 50vh; }
.nf-code { font: 500 clamp(4rem, 10vw, 7rem)/1 var(--mono); color: var(--ink-muted); margin-bottom: var(--s4); }

/* ---------- 15. Footer (licence line wraps, never truncates — keeps "MIT" beside "rbAmp libraries") ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: var(--s7) calc(var(--s7) + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-sm); margin-top: var(--s7); }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); } .footer-brand { grid-column: auto; } }
.footer-family { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s6); }
.footer-family::before { content: ""; flex: 1 0 100%; height: 1px; background: var(--border); margin-bottom: var(--s3); }
.footer-family-label { font: 500 var(--fs-label)/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.site-footer .family-switch { list-style: none; display: inline-flex; flex-direction: row; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); }
.family-item { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--s4); border-radius: var(--r-pill); font: 500 var(--fs-sm)/1 var(--mono); color: var(--ink-muted); text-decoration: none; }
a.family-item:hover { color: var(--primary); background: var(--raised); }
.family-item.is-current { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--border-strong); }
.footer-h { font: 500 var(--fs-label)/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; display: grid; gap: var(--s2); }
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-licence { color: var(--ink-muted); margin-top: var(--s3); max-width: 46ch; overflow-wrap: break-word; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-muted); cursor: pointer; text-align: left; }
.linklike:hover { color: var(--ink); text-decoration: underline; }

/* ---------- 16. Consent banner (variant A) ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--shadow-pop); padding-block: var(--s4) calc(var(--s4) + env(safe-area-inset-bottom, 0px)); }
.consent[hidden] { display: none; }
.consent-row { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; justify-content: space-between; }
.consent p { margin: 0; font-size: var(--fs-sm); max-width: 70ch; flex: 1 1 32ch; min-width: 0; }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 479.98px) { .consent-actions { width: 100%; } .consent-actions .btn { flex: 1 1 0; } }

/* ---------- 17. Placeholders — unmistakable; release build refuses to ship them ---------- */
.ph { background: var(--ph-bg); color: var(--ph-ink); outline: 1px dashed var(--ph-line); outline-offset: 1px; border-radius: 3px; padding: 0 .3em; font: 500 .8em/1.5 var(--mono); letter-spacing: 0; text-transform: none; word-break: break-word; }
.ph-block { display: block; padding: var(--s4); min-height: 4.5rem; }
h1 .ph, h2 .ph { font-size: .55em; vertical-align: middle; }

@media print { .site-header, .site-footer, .skip-link, .consent { display: none; } body { background: #fff; color: #000; } }

/* ---------- 18. Screenshot slot — linked to the live demo ---------- */
.shot-link { display: block; }
.shot-link:hover img { opacity: .96; }
.shot picture, .shot img { display: block; width: 100%; height: auto; }

/* ---------- 19. Documentation pages (docs-shell: left = docs nav, centre = article, right = on-this-page) ---------- */
.doc-body { min-width: 0; }
.doc-body h1 { margin-bottom: var(--s5); }
.doc-prose { max-width: 68ch; }
.doc-prose h2 { margin-top: var(--s7); padding-top: var(--s2); border-top: 1px solid var(--border); }
.doc-prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.doc-prose h3 { margin-top: var(--s5); }
.doc-prose h4 { margin: var(--s5) 0 var(--s2); font-size: var(--fs-card); font-weight: 600; line-height: 1.4; color: var(--ink); }
.doc-prose h5 { margin: var(--s4) 0 var(--s1); font: 600 var(--fs-sm)/1.4 var(--sans); color: var(--ink); }
.doc-prose ul, .doc-prose ol { padding-left: 1.4rem; margin: 0 0 var(--s4); display: grid; gap: var(--s1); }
.doc-prose li > ul, .doc-prose li > ol { margin: var(--s1) 0 0; }
.doc-prose blockquote { margin: 0 0 var(--s4); padding: var(--s2) var(--s4); border-left: 3px solid var(--border-strong); color: var(--ink-muted); }
.doc-prose blockquote > :last-child, .callout > :last-child { margin-bottom: 0; }
.doc-prose a { word-break: break-word; }
.doc-prose hr { border: 0; border-top: 1px solid var(--border); margin: var(--s6) 0; }
.table-wrap { overflow-x: auto; margin: 0 0 var(--s5); border: 1px solid var(--border); border-radius: var(--r-control); background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
.table-wrap th, .table-wrap td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { background: var(--raised); font-weight: 600; white-space: nowrap; }
.code { position: relative; margin: 0 0 var(--s5); }
.code pre { margin: 0; }
.code-lang { position: absolute; top: 6px; right: 10px; font: 500 var(--fs-label)/1 var(--mono); color: var(--ink-muted); }
.callout { border-radius: var(--r-control); padding: var(--s3) var(--s4); margin: 0 0 var(--s5); font-size: var(--fs-sm); border: 1px solid var(--border); border-left-width: 3px; background: var(--surface); }
.callout p { max-width: var(--measure); }
.callout p:last-child { margin: 0; }
.step .callout { margin: var(--s4) 0 0; }
.callout-info { border-left-color: var(--primary); }
.callout-ok { border-left-color: var(--online); }
.callout-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout-danger { border-left-color: var(--crit); }
.callout > p:first-of-type strong:first-child { display: inline; }
.doc-toc { display: none; font-size: var(--fs-sm); }
@media (min-width: 1280px) { .doc-toc { display: block; position: sticky; top: calc(var(--header-h) + var(--s5)); align-self: start; max-height: calc(100vh - var(--header-h) - var(--s6)); overflow-y: auto; } }
.doc-toc ul { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.doc-toc a { display: block; padding: 4px 12px; color: var(--ink-muted); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.doc-toc a:hover { color: var(--ink); border-left-color: var(--border-strong); }
.doc-toc a[aria-current="true"] { color: var(--primary); border-left-color: var(--primary); }
.table-wrap thead:not(:has(th:not(:empty))) { display: none; }
.doc-prose :not(pre) > code { overflow-wrap: anywhere; }
.doc-prose td code, .doc-prose th code { overflow-wrap: normal; white-space: nowrap; }

/* ---------- 14. Wave-1 landing components (PAGE_MOCKUPS_wave1, 2026-11-02) ---------- */
.section-tight { padding-block: var(--s5); }
.section-band { background: var(--surface); border-block: 1px solid var(--border); }
.section-more { margin-top: var(--s5); }
.note { color: var(--ink-muted); font-size: var(--fs-sm); max-width: var(--measure); }
.two-col { display: grid; gap: var(--s6); }
@media (min-width: 880px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--s7); } }
.two-col > * { min-width: 0; }
.split-media { align-items: center; }
@media (min-width: 880px) { .split.split-media { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .tour-flip .split-media > :first-child { order: 2; } }
.shot-pair { display: grid; gap: var(--s4); margin-bottom: var(--s5); }
@media (min-width: 720px) { .shot-pair:not(.shot-pair-stack) { display: flex; align-items: flex-start; } .shot-pair:not(.shot-pair-stack) > .shot { flex: var(--ar, 1) 1 0; min-width: 0; } }
.shot-pair .shot { box-shadow: none; }
.shot-photo { box-shadow: none; background: var(--photo-mat); }
/* module photos are transparent cutouts (svc-media 02.11): no mat needed; portrait shots capped so the card doesn't grow tall */
.module .shot-photo { display: grid; place-items: center; border: 0; }
.module .shot-photo img { width: auto; max-width: 100%; max-height: 220px; }
.shot-photo img { aspect-ratio: auto; object-fit: contain; }
.shot-diagram.shot-pending, .shot-photo.shot-pending { box-shadow: none; }

/* landing hero (no full scope-line unless the page needs it) */
.hero-landing .hero-note { color: var(--ink-muted); font-size: var(--fs-sm); max-width: 62ch; margin-bottom: var(--s5); }
.hero-source .hero-lede { max-width: 70ch; }

/* §2 What you need */
.need-strip { display: grid; gap: var(--s4); }
.need-strip h2 { margin: 0; }
@media (min-width: 720px) { .need-strip { grid-template-columns: 1fr auto; grid-template-areas: "h link" "list list"; align-items: baseline; column-gap: var(--s5); } .need-strip h2 { grid-area: h; } .need-list { grid-area: list; } .need-link { grid-area: link; } }
.need-list { list-style: none; display: grid; gap: var(--s3); font-size: var(--fs-card); }
@media (min-width: 720px) { .need-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); } }
.need-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); align-items: start; min-width: 0; }
.need-i { width: 28px; height: 28px; display: grid; place-items: center; color: var(--primary); }
.need-i svg { width: 22px; height: 22px; }
.need-price { font-weight: 600; }
.need-link { margin: 0; }

/* §3 three pillars */
.paths { list-style: none; display: grid; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 760px) { .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.path-card { display: flex; flex-direction: column; gap: var(--s2); height: 100%; color: var(--ink); text-decoration: none; transition: border-color .15s; }
a.path-card:hover, a.path-card:focus-visible, .card-link:focus-visible, .scenario:focus-visible { border-color: var(--primary); }
a.path-card, .card-link, .scenario, .post-item a { box-shadow: 0 1px 2px rgb(17 24 39 / .06); }
.path-i { width: 40px; height: 40px; border-radius: var(--r-control); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: var(--s2); }
.path-i svg { width: 22px; height: 22px; }
.path-h { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.path-b { font-size: var(--fs-card); line-height: var(--lh-card); color: var(--ink-muted); flex: 1; }
.path-go { font-weight: 600; color: var(--primary); }
.path-go::after { content: " →"; }

/* §6 demo scenarios — chip links (no-JS deep-links) */
.scenarios { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 var(--s5); }
.chip-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s4); border-radius: var(--r-pill); border: 1px solid var(--border-control); background: var(--surface); color: var(--ink); font: 500 var(--fs-sm)/1 var(--sans); text-decoration: none; }
.chip-link:hover { border-color: var(--primary); color: var(--primary); }
.chip-link.is-default { border-color: color-mix(in srgb, var(--primary) 70%, var(--border)); background: var(--primary-soft); color: var(--primary); }

/* §7 how it is built — numbered captions */
.how-steps { list-style: none; display: grid; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 760px) { .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how-steps .label { font-family: var(--mono); color: var(--ink-muted); margin-bottom: var(--s2); }
.unlike { display: grid; gap: var(--s3); }
@media (min-width: 760px) { .unlike { grid-template-columns: 1fr 1fr; } }
.unlike .card { margin: 0; font-size: var(--fs-card); line-height: var(--lh-card); border-left: 3px solid var(--border-strong); }

/* closing CTA card */
.next-card { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: center; justify-content: space-between; }
.next-card h2 { margin: 0 0 var(--s2); }
.next-card .cta-stack { align-items: center; }
.latest { margin: 0; color: var(--ink-muted); font-size: var(--fs-sm); display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* /webapp screen tour */
.tour-index { padding-block: var(--s3); border-block: 1px solid var(--border); background: var(--surface); position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 40; overflow-x: auto; }
.tour-index ol { list-style: none; display: flex; gap: var(--s1); white-space: nowrap; }
.tour-index a { display: block; padding: 6px 12px; border-radius: var(--r-pill); color: var(--ink-muted); text-decoration: none; font: 500 var(--fs-sm)/1.3 var(--sans); }
.tour-index a:hover { color: var(--primary); background: var(--raised); }
.tour-row + .tour-row { border-top: 1px solid var(--border); }
.facts { list-style: none; display: grid; gap: var(--s2); margin: var(--s4) 0; font-size: var(--fs-card); }
.facts li { position: relative; padding-left: var(--s5); }
.facts li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--border-control); }
.facts-grid { margin-top: var(--s5); }
@media (min-width: 760px) { .facts-grid { grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s6); } }
.tour-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.filmstrip { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: var(--s3); overflow-x: auto; padding-bottom: var(--s3); margin-bottom: var(--s5); counter-reset: wiz; scroll-snap-type: x mandatory; }
.filmstrip li { display: grid; gap: var(--s2); scroll-snap-align: start; font-size: var(--fs-sm); counter-increment: wiz; }
.filmstrip li > span::before { content: counter(wiz) " · "; font-family: var(--mono); color: var(--ink-muted); }
.filmstrip .shot { box-shadow: none; }
.modes { border-left: 3px solid var(--border-strong); }

/* /hardware */
.price-rows { margin: 0 0 var(--s4); }
.price-rows div { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: baseline; }
.price-rows dt { color: var(--ink-muted); font-size: var(--fs-sm); }
.price-rows dd { margin: 0; font-weight: 600; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.kit-grid { list-style: none; display: grid; gap: var(--s4); }
@media (min-width: 720px) { .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .kit-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .kit { grid-column: span 2; } .kit:nth-child(3n+4):nth-last-child(2), .kit:nth-child(3n+5):last-child { grid-column: span 3; } }
.kit > .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.kit { display: flex; flex-direction: column; gap: var(--s3); }
.kit .shot { box-shadow: none; margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s2); border-width: 0 0 1px; border-radius: var(--r-card) var(--r-card) 0 0; }
.kit h3, .module h3, .api-cols h3, .wtb-name { font-size: 1.0625rem; line-height: 1.35; }
.kit h3 { margin: 0; }
.kit-config { margin: 0; font-size: var(--fs-card); color: var(--ink-muted); }
.kit-meta { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.kit-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.kit-caveat { margin: 0; font-size: var(--fs-sm); padding: var(--s2) var(--s3); border-radius: var(--r-control); background: var(--raised); }
.kit > .kit-links { margin-top: auto; }
.kit-links { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; }
.configurator { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: center; justify-content: space-between; border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.configurator > div { flex: 1 1 32ch; min-width: 0; max-width: var(--measure); }
.configurator h2 { margin-bottom: var(--s2); }
.module-grid { list-style: none; display: grid; gap: var(--s4); margin-bottom: var(--s4); }
@media (min-width: 880px) { .module-grid { grid-template-columns: 1fr 1fr; } }
.module { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 560px) { .module { grid-template-columns: 160px minmax(0, 1fr); } }
.module .shot { border-radius: var(--r-control); }
.ali-line { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--ink-muted); }
.faq { display: grid; gap: var(--s2); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-control); padding: 0 var(--s4); }
.faq summary { cursor: pointer; padding: var(--s3) 0; font-weight: 600; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: var(--s3); }
.faq details p { font-size: var(--fs-card); line-height: var(--lh-card); }

/* /source */
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.licence-card { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.licence-name { font-size: var(--fs-card); line-height: var(--lh-card); max-width: var(--measure); }
.licence-table th[scope="row"] { font-weight: 600; width: 38%; }
.licence-sep th, .licence-sep td { border-top: 2px solid var(--border-strong); }
.licence-motive { margin: var(--s4) 0 0; font-size: var(--fs-card); }
.api-cols { list-style: none; display: grid; gap: var(--s3); margin-bottom: var(--s4); }
@media (min-width: 760px) { .api-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .api-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .api-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.api-path { margin-bottom: var(--s2); }
.api-path code { font-size: var(--fs-sm); color: var(--ink); background: var(--raised); padding: 2px 8px; border-radius: var(--r-control); }
.api-cols h3 { margin-bottom: var(--s2); }

/* /integrations */
.entity-cols { display: grid; gap: var(--s4); margin: var(--s4) 0; }
@media (min-width: 560px) { .entity-cols { grid-template-columns: 1fr 1fr; } }
.entity-cols h3 { margin-bottom: var(--s2); }
/* home: scope-line from the deck (2 items) · scenario list · release chip */
.scope-line-home ul { grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-scope .scope-line-home ul { grid-template-columns: 2fr 3fr; } }
.scenario-list { display: grid; gap: var(--s2); }
.scenario { display: grid; gap: 2px; padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--r-control); background: var(--surface); color: var(--ink); text-decoration: none; }
.scenario:hover { border-color: var(--primary); }
.scenario.is-default { border-color: color-mix(in srgb, var(--primary) 70%, var(--border)); background: var(--primary-soft); }
.scenario-name { font-weight: 600; }
.scenario-desc { font-size: var(--fs-sm); color: var(--ink-muted); }
.chip-link-sm { text-decoration: none; color: var(--primary); }
.chip-link-sm::after { content: " →"; }
.module-link { color: var(--primary); text-decoration: none; }
.module-link:hover { color: var(--primary); text-decoration: underline; }
.module-link::after { content: " ↗"; font-size: .8em; color: var(--ink-muted); }
.badges li { font: 500 var(--fs-label)/1 var(--mono); padding: 6px 10px; border: 1px solid var(--border-control); border-radius: var(--r-control); background: var(--surface); }
.repo-tree { list-style: none; display: grid; gap: var(--s2); margin: 0; padding: var(--s4); background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-control); font-size: var(--fs-sm); }
.repo-tree li { padding-left: var(--s4); position: relative; }
.repo-tree li::before { content: "├"; position: absolute; left: 0; font-family: var(--mono); color: var(--ink-muted); }
.repo-tree li:last-child::before { content: "└"; }
.repo-tree code { color: var(--ink); }
@media (min-width: 760px) { .api-cols-2 { grid-template-columns: 1fr 1fr; } }
.badge-tag:empty { display: none; }
/* short pages: support / contact / releases / legacy */
.short-page { display: grid; gap: var(--s4); }
.short-page > * { max-width: 48rem; }
.short-page h1 { margin-bottom: 0; }
.short-links, .release-list { list-style: none; display: grid; gap: var(--s3); }
@media (min-width: 640px) { .short-links { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.release-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) var(--s4); padding-block: var(--s4); }
.release-list a { display: flex; gap: var(--s3); align-items: baseline; text-decoration: none; color: var(--ink); font-weight: 600; }
.release-list a:hover .rel-name { color: var(--primary); }
.rel-tag { font: 500 var(--fs-sm)/1 var(--mono); color: var(--primary); }
.release-list time { font: 400 var(--fs-label)/1 var(--mono); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.release-legacy summary { cursor: pointer; color: var(--ink-muted); font-size: var(--fs-sm); padding-block: var(--s2); }
.release-legacy summary::marker { color: var(--ink-muted); }
.docs-hub { display: grid; gap: var(--s5); }
.docs-hub h2.label { margin-bottom: var(--s2); }
.hub-list { list-style: none; display: grid; gap: var(--s2); }
@media (min-width: 640px) { .hub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.release-legacy { display: grid; gap: var(--s2); margin-top: var(--s4); } .release-legacy .label a { color: var(--ink-muted); } .roadmap { border-left: 3px solid var(--border-strong); }
@media (max-width: 1239.98px) { .nav-main > li > a[aria-current="page"], .nav-main > .has-sub[data-current] > .nav-sub-toggle { box-shadow: none; border-radius: var(--r-control); background: var(--primary-soft); } .nav-main > li > a[aria-current="page"]::after, .nav-main > .has-sub[data-current] > .nav-sub-toggle::after { display: none; } }

/* hardware illustrations (svc-media A/B/C) + numbered callouts */
.shot-illus { box-shadow: none; background: var(--surface); }
.illus-toggle { gap: 2px; padding: 3px; margin: var(--s3); border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); }
.illus-toggle:not([hidden]) { display: inline-flex; }
.illus-toggle[hidden] { display: none; }
.illus-toggle button { border: 0; background: none; min-height: 32px; padding: 6px 12px; border-radius: var(--r-pill); font: 500 var(--fs-label)/1 var(--sans); color: var(--ink-muted); cursor: pointer; }
.illus-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--border-strong); }
@media (pointer: coarse) { .illus-toggle button { min-height: 44px; } }
.callouts { list-style: none; counter-reset: co; display: grid; gap: var(--s2); margin: var(--s3) 0 0; font-size: var(--fs-sm); color: var(--ink-muted); }
@media (min-width: 720px) { .callouts { grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s5); } }
.callouts li { counter-increment: co; display: grid; grid-template-columns: 22px 1fr; gap: var(--s2); align-items: start; }
.callouts li::before { content: counter(co); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 500 11px/1 var(--mono); background: var(--primary); color: var(--on-primary); margin-top: 1px; }
.illus-block { display: grid; gap: var(--s2); }
.kit .illus-block .shot { margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) 0; border-width: 0 0 1px; border-radius: var(--r-card) var(--r-card) 0 0; }
.doc-figure { margin: var(--s5) 0; }
.illus-variants { position: relative; }
.illus-variants .illus-toggle { position: absolute; top: var(--s3); left: var(--s3); margin: 0; z-index: 1; box-shadow: var(--shadow-pop); }
.kit .callouts { grid-template-columns: 1fr; }

/* illustrations sized to their real aspect (trimmed canvas): the figure hugs the drawing, text takes the freed width */
.hardware .hero-grid { align-items: center; }
@media (min-width: 960px) { .hardware .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.illus-block .shot-illus { width: 100%; }
.doc-figures { display: grid; gap: var(--s5); margin: var(--s5) 0; }
@media (min-width: 1100px) { .doc-figures { grid-template-columns: 1fr 1fr; } }
.doc-figures .doc-figure { margin: 0; }
.doc-figures .callouts { grid-template-columns: 1fr; }

/* click-to-zoom */
.zoom-link { display: block; position: relative; cursor: zoom-in; }
.zoom-hint { position: absolute; right: var(--s3); bottom: var(--s3); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow-pop); opacity: .9; transition: opacity .15s, transform .15s; }
.zoom-hint svg { width: 18px; height: 18px; }
.zoom-link:hover .zoom-hint, .zoom-link:focus-visible .zoom-hint { opacity: 1; transform: scale(1.06); }
.zoom { padding: 0; border: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; background: transparent; }
.zoom::backdrop { background: rgb(10 12 16 / .86); }
.zoom-box { width: 100%; height: 100%; overflow: auto; cursor: grab; overscroll-behavior: contain; }
.zoom-box.dragging { cursor: grabbing; }
.zoom-box img { display: block; max-width: none; height: auto; margin: auto; background: var(--surface); }
.zoom-box.fit { display: grid; place-items: center; overflow: hidden; cursor: default; padding: max(56px, 4vh) max(16px, 3vw); box-sizing: border-box; }
.zoom-box.fit img { max-width: calc(100vw - 2 * max(16px, 3vw)); max-height: calc(100dvh - 2 * max(56px, 4vh)); width: auto; height: auto; object-fit: contain; margin: 0; border-radius: var(--r-card); box-shadow: 0 20px 60px rgb(0 0 0 / .4); }
.zoom-box:not(.fit) img { cursor: zoom-out; }
.zoom-close { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); right: max(12px, env(safe-area-inset-right, 0px)); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-pop); }
.zoom-close svg { width: 20px; height: 20px; }

/* variants stacked in one grid cell: the figure always holds the larger variant's box → no jump on toggle or while the other loads */
.illus-variants { display: grid; }
.illus-variants > .illus-v { grid-area: 1 / 1; visibility: hidden; }
.illus-variants > .illus-v.is-on { visibility: visible; }
.illus-variants > .illus-toggle { grid-area: 1 / 1; }
.illus-v img[loading="lazy"] { content-visibility: auto; }
.doc-figures { align-items: start; }

/* header Demo = outline button on the right, before GitHub (deck nav.demo; review: top conversion) */
.nav-demo a { border: 1px solid color-mix(in srgb, var(--primary) 70%, var(--border)); background: var(--primary-soft); color: var(--primary); font: 600 var(--fs-sm)/1 var(--sans); min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-control); }
@media (min-width: 1240px) { .nav-main > .nav-demo > a { min-height: 40px; } .nav-main > .nav-demo { margin-right: var(--s1); } }
.nav-demo a:hover { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); color: var(--primary); }

/* Home hero above the fold (review C5): scope-line stays VISIBLE and ABOVE the first CTA (charter §4, SITE_IA §0 "not collapsed") —
   we win the space by tightening the rhythm, and on narrow screens the screenshot moves below the buttons. */
.page-home .hero { padding-block: var(--s5) var(--s5); }
.page-home .hero-grid { row-gap: var(--s4); }
.page-home .hero-h1 { margin-bottom: var(--s3); }
.page-home .hero-lede p { margin-bottom: var(--s1); }
.page-home .hero-scope .scope-line { padding: var(--s3) var(--s4); }
.page-home .hero-scope .scope-line ul { gap: var(--s2) var(--s5); }
@media (max-width: 959.98px) {
  .page-home .hero-grid > .shot { order: 3; }          /* text → scope → CTA → screenshot */
  .page-home .hero-scope { order: 1; } .page-home .hero-cta { order: 2; }
  .page-home .hero-grid > div:first-child { order: 0; }
}
@media (max-width: 599.98px) {
  .page-home .hero { padding-top: var(--s4); }
  .page-home .hero-scope .scope-line { padding: var(--s3); }
  .page-home .hero-scope .scope-line li { line-height: 1.45; }
  .page-home .hero-lede { font-size: 1.0625rem; }
}
.energy-card { margin-top: var(--s5); }
.energy-card h3 { margin-bottom: var(--s3); }
.energy-table th[scope="row"] { font-weight: 500; width: 45%; }
.api-cols .facts { margin-bottom: 0; }
main p code, main li code, .callout code { overflow-wrap: anywhere; word-break: break-word; }
/* legal pages: reading column + TOC, no docs sidebar */
.legal-shell { display: grid; gap: var(--s6); padding-block: var(--s6); }
@media (min-width: 1100px) { .legal-shell.has-toc { grid-template-columns: minmax(0, 1fr) 14rem; } .legal-shell .doc-toc { display: block; position: sticky; top: calc(var(--header-h) + var(--s5)); align-self: start; } }
.legal-shell .doc-body { max-width: var(--measure); }
.demo-block { display: grid; gap: var(--s4); }
.demo-block > * { max-width: none; }
.demo-block p { max-width: var(--measure); }
.step-cta { margin: var(--s4) 0 0; }
@media (min-width: 1100px) { .demo-block .scenario-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 760px) { .demo-block .scenario-list { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); } }
.shot-anim { box-shadow: none; }
.module-ph { width: 100%; aspect-ratio: 1; border-radius: var(--r-control); background: repeating-linear-gradient(135deg, var(--raised) 0 10px, var(--surface) 10px 20px); }
@media (max-width: 599.98px) {
  .page-home .hero .shot-illus[data-asset="shot-overview-flat"] { max-width: 300px; justify-self: center; border-radius: 28px; padding: 8px; background: var(--bezel); box-shadow: 0 0 0 1px var(--border-strong); }
  .page-home .hero .shot-illus[data-asset="shot-overview-flat"] img { border-radius: 20px; }
  .page-home .hero .shot-illus[data-asset="shot-overview-flat"] .zoom-hint { display: none; }
}
.kit-ct { margin: 0; }
.figcap { margin: 0; font-size: var(--fs-sm); color: var(--ink-muted); } .kit .illus-block .figcap { padding-top: var(--s2); }
/* set cards: an image block (with or without caption) bleeds to the card edges like a bare shot */
.kit > .illus-block { margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s2); gap: 0; }
.kit > .illus-block > .shot { margin: 0; border-width: 0 0 1px; border-radius: var(--r-card) var(--r-card) 0 0; }
.kit > .illus-block > .figcap, .kit > .illus-block > .callouts { padding: var(--s3) var(--s5) 0; }
.kit .kit-price { font-weight: 500; font-size: var(--fs-card); line-height: 1.5; }
.which-card { margin-top: var(--s4); border-left: 3px solid var(--border-strong); } .which-card h3 { margin-bottom: var(--s2); } .which-card p:last-child { margin: 0; }

/* ---------- 20. UI review 2026-11-02 (4-agent audit: colour, layout, type, a11y/perf) ---------- */
/* Home, phones: scope-line stays visible and above the CTA (charter §4) — we win space by dropping the icon column, not by hiding text */
@media (max-width: 599.98px) {
  .page-home .hero-scope .scope-line li { grid-template-columns: 1fr; }
  .page-home .hero-scope .scope-line .i { display: none; }
  .page-home .hero-scope .scope-line { font-size: .8125rem; }
  .page-home .hero-scope .scope-line li { line-height: 1.4; }
  .page-home .hero-lede { font-size: 1rem; }
}
/* get-started steps, phones: number above the heading so the text gets the full card width (was ~22 chars/line) */
@media (max-width: 599.98px) {
  .step { padding: var(--s4); }
  .step::before { position: static; margin-bottom: var(--s2); }
}
/* zoom affordance: hover-capable devices show it on hover/focus only (it covered labels in the art); smaller on phones */
@media (hover: hover) { .zoom-hint { opacity: 0; } .zoom-link:hover .zoom-hint, .zoom-link:focus-visible .zoom-hint { opacity: 1; } }
@media (max-width: 599.98px) { .zoom-hint { width: 28px; height: 28px; right: var(--s2); bottom: var(--s2); } .zoom-hint svg { width: 14px; height: 14px; } }
.zoom-link:hover img { outline: 2px solid var(--primary); outline-offset: -2px; }
/* /webapp anchor bar: full-bleed band, no native scrollbar, edge fade, anchors land below it */
.tour-index { scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.tour-index::-webkit-scrollbar { display: none; }
.tour-index ol { mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.tour-index a[aria-current="true"] { color: var(--primary); background: var(--primary-soft); }
html:has(.tour-index) { scroll-padding-top: calc(var(--header-h) + 56px + var(--s4)); }
/* docs on < 1024: the sidebar collapses into a <details> menu above the article (works without JS) */
.docs-nav-m > summary { display: none; }
@media (max-width: 1023.98px) {
  .docs-nav-m > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); cursor: pointer; min-height: 44px; font-weight: 600; list-style: none; }
  .docs-nav-m > summary::-webkit-details-marker { display: none; }
  .docs-nav-m > summary::after { content: "▾"; color: var(--ink-muted); }
  .docs-nav-m[open] > summary { margin-bottom: var(--s2); border-bottom: 1px solid var(--border); }
  .docs-nav-m[open] > summary::after { content: "▴"; }
  .docs-nav-m .docs-nav-current { font-weight: 400; color: var(--ink-muted); margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* consent banner visible → focused elements must not hide under it (WCAG 2.4.11) */
html.consent-open { scroll-padding-bottom: 180px; }
@media (min-width: 600px) { html.consent-open { scroll-padding-bottom: 100px; } }
/* phones: comfortable tap targets in the footer and breadcrumbs (44px recommended) */
@media (max-width: 599.98px) {
  .site-footer li a, .site-footer .linklike { display: inline-block; padding-block: 10px; }
  .site-footer ul { gap: 0; }
  .breadcrumbs a { display: inline-block; padding-block: 8px; }
}
/* reduced motion: no UI transitions either (loops already swap to a poster in <picture>) */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* code highlighting: no red error boxes (lexer misses on bodies), AA colours for comments/numbers on --raised */
.code .hl .err, pre.hl .err { border: 0; color: inherit; background: none; }
.code .hl .c, .code .hl .c1, .code .hl .cm, .code .hl .cs, .code .hl .ch, .code .hl .cp, .code .hl .cpf, .code .hl .go { color: var(--ink-muted); }
.code .hl .m, .code .hl .mi, .code .hl .mf, .code .hl .mh, .code .hl .mo { color: var(--online); }
pre:focus-visible { outline-offset: 0; }
/* /hardware hero: text → scope → CTA in the left column, illustration on the right across all rows; phones: art below the CTA */
@media (min-width: 960px) {
  .hardware .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-areas: "txt media" "scope media" "cta media"; grid-template-rows: auto auto 1fr; align-items: start; row-gap: var(--s4); }
  .hardware .hero-grid > div:first-child { grid-area: txt; }
  .hardware .hero-grid > .illus-block { grid-area: media; }
  .hardware .hero-scope { grid-area: scope; }
  .hardware .hero-cta { grid-area: cta; }
  .hardware .hero-scope .scope-line ul { grid-template-columns: 1fr; }
}
@media (max-width: 959.98px) {
  .hardware .hero-grid > div:first-child { order: 0; } .hardware .hero-scope { order: 1; } .hardware .hero-cta { order: 2; } .hardware .hero-grid > .illus-block { order: 3; }
}
/* /hardware hero: the price line is a sentence, not a headline — 16/500 reads better than four lines of 18/600 and lifts the CTA */
.hardware .hero { padding-top: var(--s5); }
.hardware .price-rows dd { font-size: var(--fs-body); font-weight: 500; line-height: 1.55; }
.hardware .hero-h1 { margin-bottom: var(--s3); }
.hardware .hero .callouts { grid-template-columns: 1fr; }
/* set cards: the three-phase card carries the drawing + 5 callouts; stretching the row to it left ~450px voids in its neighbours → cards keep their own height */
.kit-grid { align-items: start; }
/* support/contact cards: human label first, the raw address as a quiet mono line */
.card-link:has(.card-link-label) { display: grid; gap: var(--s1); }
.card-link-url { font: 400 var(--fs-sm)/1.4 var(--mono); color: var(--ink-muted); overflow-wrap: anywhere; }
.card-link:has(.card-link-label)::after { content: none; }
.card-link-label::after { content: " →"; color: var(--primary); }
/* blog post foot: back to the list + older/newer post (review 02.11: the post ended in a raw GitHub URL) */
.post-foot { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: stretch; margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border); max-width: var(--measure); }
.post-foot-back { align-self: center; font-weight: 600; text-decoration: none; margin-right: auto; }
.post-foot-step { display: grid; gap: 2px; padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--r-control); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.post-foot-step:hover { border-color: var(--primary); }
/* docs foot: previous / next in sidebar order */
.doc-pager { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border); max-width: 68ch; }
.doc-pager a { display: grid; gap: 2px; padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--r-control); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; max-width: 48%; }
.doc-pager a:hover { border-color: var(--primary); }
.doc-pager .next { margin-left: auto; text-align: right; }
/* animation pause/play (WCAG 2.2.2) */
.shot-anim { position: relative; }
.anim-toggle { position: absolute; z-index: 1; right: var(--s3); top: var(--s3); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-pop); }
.anim-toggle[hidden] { display: none; }
.anim-toggle svg { width: 14px; height: 14px; }
.anim-toggle .i-play, .anim-toggle[aria-pressed="true"] .i-pause { display: none; }
.anim-toggle[aria-pressed="true"] .i-play { display: block; }
@media (pointer: coarse) { .anim-toggle { width: 44px; height: 44px; } }
.shot + .figcap { margin-top: var(--s3); max-width: var(--measure); }

/* generated by src/tools/docs.py — Pygments token colours (light: friendly, dark: github-dark) */
pre { line-height: 125%; }
td.linenos .normal { color: #666666; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: #666666; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.hl .hll { background-color: #ffffcc }
.hl {  }
.hl .c { color: #60a0b0; font-style: italic } /* Comment */
.hl .err { border: 1px solid #FF0000 } /* Error */
.hl .k { color: #007020; font-weight: bold } /* Keyword */
.hl .o { color: #666666 } /* Operator */
.hl .ch { color: #60a0b0; font-style: italic } /* Comment.Hashbang */
.hl .cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */
.hl .cp { color: #007020 } /* Comment.Preproc */
.hl .cpf { color: #60a0b0; font-style: italic } /* Comment.PreprocFile */
.hl .c1 { color: #60a0b0; font-style: italic } /* Comment.Single */
.hl .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */
.hl .gd { color: #A00000 } /* Generic.Deleted */
.hl .ge { font-style: italic } /* Generic.Emph */
.hl .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.hl .gr { color: #FF0000 } /* Generic.Error */
.hl .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.hl .gi { color: #00A000 } /* Generic.Inserted */
.hl .go { color: #888888 } /* Generic.Output */
.hl .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
.hl .gs { font-weight: bold } /* Generic.Strong */
.hl .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.hl .gt { color: #0044DD } /* Generic.Traceback */
.hl .kc { color: #007020; font-weight: bold } /* Keyword.Constant */
.hl .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
.hl .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
.hl .kp { color: #007020 } /* Keyword.Pseudo */
.hl .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
.hl .kt { color: #902000 } /* Keyword.Type */
.hl .m { color: #40a070 } /* Literal.Number */
.hl .s { color: #4070a0 } /* Literal.String */
.hl .na { color: #4070a0 } /* Name.Attribute */
.hl .nb { color: #007020 } /* Name.Builtin */
.hl .nc { color: #0e84b5; font-weight: bold } /* Name.Class */
.hl .no { color: #60add5 } /* Name.Constant */
.hl .nd { color: #555555; font-weight: bold } /* Name.Decorator */
.hl .ni { color: #d55537; font-weight: bold } /* Name.Entity */
.hl .ne { color: #007020 } /* Name.Exception */
.hl .nf { color: #06287e } /* Name.Function */
.hl .nl { color: #002070; font-weight: bold } /* Name.Label */
.hl .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
.hl .nt { color: #062873; font-weight: bold } /* Name.Tag */
.hl .nv { color: #bb60d5 } /* Name.Variable */
.hl .ow { color: #007020; font-weight: bold } /* Operator.Word */
.hl .w { color: #bbbbbb } /* Text.Whitespace */
.hl .mb { color: #40a070 } /* Literal.Number.Bin */
.hl .mf { color: #40a070 } /* Literal.Number.Float */
.hl .mh { color: #40a070 } /* Literal.Number.Hex */
.hl .mi { color: #40a070 } /* Literal.Number.Integer */
.hl .mo { color: #40a070 } /* Literal.Number.Oct */
.hl .sa { color: #4070a0 } /* Literal.String.Affix */
.hl .sb { color: #4070a0 } /* Literal.String.Backtick */
.hl .sc { color: #4070a0 } /* Literal.String.Char */
.hl .dl { color: #4070a0 } /* Literal.String.Delimiter */
.hl .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
.hl .s2 { color: #4070a0 } /* Literal.String.Double */
.hl .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
.hl .sh { color: #4070a0 } /* Literal.String.Heredoc */
.hl .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
.hl .sx { color: #c65d09 } /* Literal.String.Other */
.hl .sr { color: #235388 } /* Literal.String.Regex */
.hl .s1 { color: #4070a0 } /* Literal.String.Single */
.hl .ss { color: #517918 } /* Literal.String.Symbol */
.hl .bp { color: #007020 } /* Name.Builtin.Pseudo */
.hl .fm { color: #06287e } /* Name.Function.Magic */
.hl .vc { color: #bb60d5 } /* Name.Variable.Class */
.hl .vg { color: #bb60d5 } /* Name.Variable.Global */
.hl .vi { color: #bb60d5 } /* Name.Variable.Instance */
.hl .vm { color: #bb60d5 } /* Name.Variable.Magic */
.hl .il { color: #40a070 } /* Literal.Number.Integer.Long */
@media (prefers-color-scheme: dark) {
pre { line-height: 125%; }
td.linenos .normal { color: #6e7681; background-color: #0d1117; padding-left: 5px; padding-right: 5px; }
span.linenos { color: #6e7681; background-color: #0d1117; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #e6edf3; background-color: #6e7681; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #e6edf3; background-color: #6e7681; padding-left: 5px; padding-right: 5px; }
.hl .hll { background-color: #6e7681 }
.hl {  color: #e6edf3 }
.hl .c { color: #8b949e; font-style: italic } /* Comment */
.hl .err { color: #f85149 } /* Error */
.hl .esc { color: #e6edf3 } /* Escape */
.hl .g { color: #e6edf3 } /* Generic */
.hl .k { color: #ff7b72 } /* Keyword */
.hl .l { color: #a5d6ff } /* Literal */
.hl .n { color: #e6edf3 } /* Name */
.hl .o { color: #ff7b72; font-weight: bold } /* Operator */
.hl .x { color: #e6edf3 } /* Other */
.hl .p { color: #e6edf3 } /* Punctuation */
.hl .ch { color: #8b949e; font-style: italic } /* Comment.Hashbang */
.hl .cm { color: #8b949e; font-style: italic } /* Comment.Multiline */
.hl .cp { color: #8b949e; font-weight: bold; font-style: italic } /* Comment.Preproc */
.hl .cpf { color: #8b949e; font-style: italic } /* Comment.PreprocFile */
.hl .c1 { color: #8b949e; font-style: italic } /* Comment.Single */
.hl .cs { color: #8b949e; font-weight: bold; font-style: italic } /* Comment.Special */
.hl .gd { color: #ffa198; background-color: #490202 } /* Generic.Deleted */
.hl .ge { color: #e6edf3; font-style: italic } /* Generic.Emph */
.hl .ges { color: #e6edf3; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.hl .gr { color: #ffa198 } /* Generic.Error */
.hl .gh { color: #79c0ff; font-weight: bold } /* Generic.Heading */
.hl .gi { color: #56d364; background-color: #0f5323 } /* Generic.Inserted */
.hl .go { color: #8b949e } /* Generic.Output */
.hl .gp { color: #8b949e } /* Generic.Prompt */
.hl .gs { color: #e6edf3; font-weight: bold } /* Generic.Strong */
.hl .gu { color: #79c0ff } /* Generic.Subheading */
.hl .gt { color: #ff7b72 } /* Generic.Traceback */
.hl .g-Underline { color: #e6edf3; text-decoration: underline } /* Generic.Underline */
.hl .kc { color: #79c0ff } /* Keyword.Constant */
.hl .kd { color: #ff7b72 } /* Keyword.Declaration */
.hl .kn { color: #ff7b72 } /* Keyword.Namespace */
.hl .kp { color: #79c0ff } /* Keyword.Pseudo */
.hl .kr { color: #ff7b72 } /* Keyword.Reserved */
.hl .kt { color: #ff7b72 } /* Keyword.Type */
.hl .ld { color: #79c0ff } /* Literal.Date */
.hl .m { color: #a5d6ff } /* Literal.Number */
.hl .s { color: #a5d6ff } /* Literal.String */
.hl .na { color: #e6edf3 } /* Name.Attribute */
.hl .nb { color: #e6edf3 } /* Name.Builtin */
.hl .nc { color: #f0883e; font-weight: bold } /* Name.Class */
.hl .no { color: #79c0ff; font-weight: bold } /* Name.Constant */
.hl .nd { color: #d2a8ff; font-weight: bold } /* Name.Decorator */
.hl .ni { color: #ffa657 } /* Name.Entity */
.hl .ne { color: #f0883e; font-weight: bold } /* Name.Exception */
.hl .nf { color: #d2a8ff; font-weight: bold } /* Name.Function */
.hl .nl { color: #79c0ff; font-weight: bold } /* Name.Label */
.hl .nn { color: #ff7b72 } /* Name.Namespace */
.hl .nx { color: #e6edf3 } /* Name.Other */
.hl .py { color: #79c0ff } /* Name.Property */
.hl .nt { color: #7ee787 } /* Name.Tag */
.hl .nv { color: #79c0ff } /* Name.Variable */
.hl .ow { color: #ff7b72; font-weight: bold } /* Operator.Word */
.hl .pm { color: #e6edf3 } /* Punctuation.Marker */
.hl .w { color: #6e7681 } /* Text.Whitespace */
.hl .mb { color: #a5d6ff } /* Literal.Number.Bin */
.hl .mf { color: #a5d6ff } /* Literal.Number.Float */
.hl .mh { color: #a5d6ff } /* Literal.Number.Hex */
.hl .mi { color: #a5d6ff } /* Literal.Number.Integer */
.hl .mo { color: #a5d6ff } /* Literal.Number.Oct */
.hl .sa { color: #79c0ff } /* Literal.String.Affix */
.hl .sb { color: #a5d6ff } /* Literal.String.Backtick */
.hl .sc { color: #a5d6ff } /* Literal.String.Char */
.hl .dl { color: #79c0ff } /* Literal.String.Delimiter */
.hl .sd { color: #a5d6ff } /* Literal.String.Doc */
.hl .s2 { color: #a5d6ff } /* Literal.String.Double */
.hl .se { color: #79c0ff } /* Literal.String.Escape */
.hl .sh { color: #79c0ff } /* Literal.String.Heredoc */
.hl .si { color: #a5d6ff } /* Literal.String.Interpol */
.hl .sx { color: #a5d6ff } /* Literal.String.Other */
.hl .sr { color: #79c0ff } /* Literal.String.Regex */
.hl .s1 { color: #a5d6ff } /* Literal.String.Single */
.hl .ss { color: #a5d6ff } /* Literal.String.Symbol */
.hl .bp { color: #e6edf3 } /* Name.Builtin.Pseudo */
.hl .fm { color: #d2a8ff; font-weight: bold } /* Name.Function.Magic */
.hl .vc { color: #79c0ff } /* Name.Variable.Class */
.hl .vg { color: #79c0ff } /* Name.Variable.Global */
.hl .vi { color: #79c0ff } /* Name.Variable.Instance */
.hl .vm { color: #79c0ff } /* Name.Variable.Magic */
.hl .il { color: #a5d6ff } /* Literal.Number.Integer.Long */
}
