/* AskWearables site. Hand-written, no framework, system fonts, light and dark. */

:root {
  --bg: #f7f6f2;
  --surface: #fcfcfb;
  --surface-2: #f2f0ea;
  --fg: #1c1d21;
  --fg-muted: #5c5f68;
  --line: #e2dfd6;
  --accent: #0f6e63;
  --accent-fg: #ffffff;
  --accent-soft: #e2f1ee;
  --warn: #8a4b00;
  --warn-soft: #fdf1df;
  --code-bg: #f4f2ec;
  --zone-public: #eef3fb;
  --zone-identity: #f5eefa;
  --zone-request: #fdf5e6;
  --zone-protected: #e9f5ef;
  --zone-public-line: #9db4d8;
  --zone-identity-line: #bfa1d6;
  --zone-request-line: #d9b46e;
  --zone-protected-line: #84c0a2;
  --get: #1d6fd1;
  --post: #0f7a4f;
  --delete: #b3261e;
  --c-a: #2a78d6;
  --c-b: #eb6834;
  --c-c: #1baf7a;
  --grid: #ebe9e3;
  --axis: #c9c6bd;
  --good: #146c43;
  --bad: #a3261d;
  --tip-bg: #1c1d21;
  --tip-fg: #f6f5f1;
  --radius: 10px;
  --max: 1040px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --surface: #1a1c20;
    --surface-2: #22252a;
    --fg: #e9e9ec;
    --fg-muted: #a3a6ae;
    --line: #30333a;
    --accent: #5cc8b8;
    --accent-fg: #0c1514;
    --accent-soft: #163330;
    --warn: #f3b766;
    --warn-soft: #33260f;
    --code-bg: #1e2025;
    --zone-public: #17202e;
    --zone-identity: #221a2b;
    --zone-request: #2a2216;
    --zone-protected: #142a20;
    --zone-public-line: #4b6690;
    --zone-identity-line: #7b5a96;
    --zone-request-line: #8f7340;
    --zone-protected-line: #3f8a66;
    --get: #7db2f2;
    --post: #63cf9d;
    --delete: #f08a82;
    --bg: #121211;
    --surface: #1a1a19;
    --surface-2: #242422;
    --line: #33332f;
    --code-bg: #20201e;
    --c-a: #3987e5;
    --c-b: #d95926;
    --c-c: #199e70;
    --grid: #2a2a27;
    --axis: #4a4a45;
    --good: #5fd39a;
    --bad: #f08a82;
    --tip-bg: #f2f1ec;
    --tip-fg: #1a1a19;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font);
  overflow-wrap: break-word;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { line-height: 1.25; margin: 1.8em 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-top: 0.4em; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }
p, ul, ol { margin: 0 0 1em; }
li { margin: 0.25em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
small, .muted { color: var(--fg-muted); }

code, pre, kbd { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code { background: var(--code-bg); border: 1px solid var(--line); border-radius: 5px; padding: 0.08em 0.35em; overflow-wrap: anywhere; }
pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 0 0 1.2em;
  max-width: 100%;
}
pre code { font-size: 0.84rem; }
.code-label { font: 600 0.75rem/1 var(--font); text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); margin: 1em 0 0.4em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 6px 10px; z-index: 10; }

/* ---------- header and footer ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .inner { max-width: var(--max); margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; font-size: 1.05rem; }
.lockup { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-mark .bm-tile { fill: var(--accent); }
.brand-mark .bm-glyph { fill: none; stroke: var(--accent-fg); }
/* Parent brand: the SportsVision artwork at its own aspect ratio (1600 x 343), never recoloured or cropped. */
.parent { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-muted); text-decoration: none; font-size: 0.78rem; padding: 4px 0 4px 14px; border-left: 1px solid var(--line); }
.parent:hover { color: var(--fg); }
.sv-logo { display: inline-flex; flex: none; }
.sv-logo img { display: block; height: 15px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.95rem; }
.site-nav a { color: var(--fg-muted); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); text-decoration: underline; }

.site-footer { border-top: 1px solid var(--line); margin-top: 64px; background: var(--surface); }
.site-footer .inner { max-width: var(--max); margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 0.9rem; color: var(--fg-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--fg-muted); }

/* ---------- landing ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.hero { padding: 56px 0 24px; max-width: 760px; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0; }
.lede { font-size: 1.18rem; color: var(--fg-muted); max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn:hover { text-decoration: none; filter: brightness(1.05); }

section.block { padding: 24px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }

.flow { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 10px; }
.flow li { counter-increment: step; position: relative; padding: 12px 16px 12px 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.flow li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.flow .who { font-weight: 600; }

.note { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); padding: 12px 16px; border-radius: 6px; margin: 1.2em 0; }
.note.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.note > :last-child { margin-bottom: 0; }

.banner { background: var(--warn-soft); color: var(--fg); border: 1px solid var(--warn); border-radius: var(--radius); padding: 14px 18px; margin: 16px 0 24px; }
.banner strong { color: var(--warn); }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
td.wrap code { white-space: normal; }

/* ---------- architecture diagram ---------- */

figure.diagram { margin: 16px 0 8px; }
.diagram-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 8px; }
.diagram svg { display: block; width: 100%; min-width: 620px; height: auto; }
figure.diagram figcaption { font-size: 0.9rem; color: var(--fg-muted); margin-top: 8px; }
.arch text { font-family: var(--font); fill: var(--fg); }
.arch .zone-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--fg-muted); }
.arch .zone { stroke-width: 1.5; stroke-dasharray: 6 4; }
.arch .z-public { fill: var(--zone-public); stroke: var(--zone-public-line); }
.arch .z-identity { fill: var(--zone-identity); stroke: var(--zone-identity-line); }
.arch .z-request { fill: var(--zone-request); stroke: var(--zone-request-line); }
.arch .z-protected { fill: var(--zone-protected); stroke: var(--zone-protected-line); }
.arch .worker { fill: var(--surface); stroke: var(--fg-muted); stroke-width: 1.4; }
.arch .actor { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.2; }
.arch .store { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 3 3; }
.arch .w-name { font-size: 15px; font-weight: 700; }
.arch .w-sub { font-size: 11.5px; fill: var(--fg-muted); }
.arch .s-text { font-size: 11.5px; fill: var(--fg-muted); }
.arch .edge { fill: none; stroke: var(--fg-muted); stroke-width: 1.6; }
.arch .edge.bind { stroke: var(--accent); }
.arch .edge-label { font-size: 11px; fill: var(--fg-muted); }
.arch .arrowhead { fill: var(--fg-muted); }
.arch .arrowhead.bind { fill: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.85rem; color: var(--fg-muted); margin-top: 8px; }
.legend .sw { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--fg-muted); vertical-align: middle; margin-right: 6px; }
.legend .sw.bind { border-top-color: var(--accent); }

/* ---------- docs layout ---------- */

.docs { max-width: var(--max); margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.docs-nav { position: sticky; top: 0; align-self: start; padding: 28px 0; font-size: 0.93rem; max-height: 100vh; overflow-y: auto; }
.docs-nav h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); margin: 0 0 8px; }
.docs-nav ul { list-style: none; padding: 0; margin: 0 0 20px; }
.docs-nav li { margin: 0; }
.docs-nav a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--fg-muted); text-decoration: none; }
.docs-nav a:hover { background: var(--surface-2); color: var(--fg); }
.docs-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.docs main { padding: 28px 0 0; min-width: 0; }
.docs main > h1:first-child { margin-top: 0; }
.toc { font-size: 0.92rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin: 0 0 24px; }
.toc ol, .toc ul { margin: 0; padding-left: 20px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.95rem; }

@media (max-width: 820px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-nav { position: static; max-height: none; padding: 16px 0 0; border-bottom: 1px solid var(--line); }
  .docs-nav ul { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
  .docs-nav a { padding: 4px 10px; background: var(--surface); border: 1px solid var(--line); }
}

/* ---------- API reference ---------- */

.op { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; margin: 0 0 20px; }
.op h3 { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--mono); font-size: 1rem; word-break: break-all; }
.op h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); margin: 1.2em 0 0.4em; }
.op .summary { margin: 0 0 8px; }
.method { display: inline-block; font: 700 0.75rem/1 var(--font); letter-spacing: 0.04em; padding: 5px 8px; border-radius: 5px; color: var(--surface); }
.method.get { background: var(--get); }
.method.post { background: var(--post); }
.method.delete { background: var(--delete); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.tag { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-muted); }
.tag.signed { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.req { color: var(--warn); font-size: 0.8rem; font-weight: 600; }
.type { font-family: var(--mono); font-size: 0.82rem; color: var(--fg-muted); }

/* ---------- print and motion ---------- */

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .docs-nav { display: none; }
  .docs { display: block; }
  a { color: inherit; }
}

/* Tables that stack into labelled rows on a phone. */
@media (max-width: 600px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack th[scope="row"], table.stack td { display: block; border: 0; padding: 4px 14px; white-space: normal; }
  table.stack th[scope="row"] { background: none; font-size: 1rem; padding-top: 8px; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-muted); }
}

/* ---------- landing, v2 ---------- */

.fine { font-size: 0.85rem; color: var(--fg-muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-band { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 48px; }
.hero-copy h1 { margin-top: 0.3em; }
.hero-copy .lede { font-size: 1.12rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; padding-bottom: 32px; } }


section.block > .eyebrow { margin-top: 24px; }
section.block > .eyebrow + h2 { margin-top: 0.3em; }
.card.problem h3 { margin-bottom: 0.4em; }


.how-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 820px) { .how-grid { grid-template-columns: minmax(0, 1fr); } }
.flowfig { margin: 0; }
.flowsvg { display: block; width: 100%; height: auto; max-width: 420px; margin: 0 auto; }
.flowsvg text { font-family: var(--font); fill: var(--fg); }
.flowsvg .f-zone { fill: var(--surface-2); stroke: var(--line); }
.flowsvg .f-prot { fill: var(--zone-protected); stroke: var(--zone-protected-line); }
.flowsvg .f-zs { font-size: 10.5px; font-style: italic; fill: var(--fg-muted); }
.flowsvg .f-zl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; fill: var(--fg-muted); }
.flowsvg .f-box { fill: var(--surface); stroke: var(--fg-muted); stroke-width: 1.2; }
.flowsvg .f-plan { stroke: var(--c-a); stroke-width: 1.6; }
.flowsvg .f-in { fill: var(--surface-2); stroke: var(--line); }
.flowsvg .f-in.f-good { fill: var(--accent-soft); stroke: var(--accent); }
.flowsvg .f-t { font-size: 14px; font-weight: 700; }
.flowsvg .f-t.f-sm { font-size: 12.5px; }
.flowsvg .f-s { font-size: 11.5px; fill: var(--fg-muted); }
.flowsvg .f-em { fill: var(--accent); font-weight: 600; }
.flowsvg .f-line { stroke: var(--fg-muted); stroke-width: 1.6; fill: none; }
.flowsvg .f-ret { stroke: var(--accent); stroke-width: 2; fill: none; }
.flowsvg .f-head { fill: var(--fg-muted); }
.flowsvg .f-head.ret { fill: var(--accent); }
.flowsvg .f-n { fill: var(--fg); }
.flowsvg .f-n.ret { fill: var(--accent); }
.flowsvg .f-nt { font-size: 11px; font-weight: 700; fill: var(--bg); }
.flowsvg .f-rl { font-size: 11px; font-weight: 600; fill: var(--accent); }

.dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.dev-grid .card { min-width: 0; }
.link-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 16px; }
.link-card { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); text-decoration: none; }
.link-card span { color: var(--fg-muted); font-size: 0.88rem; }
.link-card:hover { border-color: var(--accent); }

.deploy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.deploy-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 6px; background: #f38020; color: #1b1b1b; font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.deploy-btn svg { width: 20px; height: 14px; fill: currentColor; }
.deploy-btn[aria-disabled="true"] { background: var(--surface-2); color: var(--fg-muted); border: 1px dashed var(--line); cursor: not-allowed; }
.deploy-state { font-size: 0.85rem; color: var(--fg-muted); }
ol.steps { padding-left: 20px; }
.arch-details { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.arch-details summary { cursor: pointer; font-weight: 600; }
.arch-details[open] summary { margin-bottom: 8px; }
.sw-line { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--fg-muted); vertical-align: middle; margin-right: 6px; }
.sw-line.bind { border-top-color: var(--accent); }

/* ---------- series keys, tiles, charts ---------- */

.key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
p .key { white-space: normal; display: inline; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; vertical-align: baseline; }
p .sw { margin-right: 4px; }
.sw-a { background: var(--c-a); }
.sw-b { background: var(--c-b); }
.sw-c { background: var(--c-c); }
.sw-hatch { border-radius: 2px; width: 14px; background: repeating-linear-gradient(45deg, var(--c-c) 0 2px, transparent 2px 4px); border: 1px solid var(--c-c); }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 12px; font-size: 0.92rem; }
.legend-row.small { font-size: 0.82rem; color: var(--fg-muted); margin: 0 0 6px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 45%), 1fr)); gap: 12px; margin: 16px 0 6px; }
.tiles:empty { display: none; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile p { margin: 0; }
.tile-label { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--fg-muted); }
.tile-value { font-size: 1.9rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; margin-top: 4px !important; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: 0.8rem; color: var(--fg-muted); }

.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px; margin: 12px 0 8px; min-width: 0; }
.chart-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.chart-head h3 { margin: 0; font-size: 1rem; }
.chart-sub { margin: 0 0 8px; font-size: 0.88rem; color: var(--fg-muted); }
.chart-body { min-width: 0; }
.chart-body .table-wrap { margin: 4px 0 6px; }
.chart-body td.nc, .chart-body th.nc { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-body tbody th { white-space: nowrap; }
.chart-body td.best { font-weight: 700; }
.chart-body thead th.nc { white-space: normal; min-width: 92px; vertical-align: bottom; }
.chart-body td.muted { color: var(--fg-muted); }
.cell-model { margin-right: 8px; }
.loading { color: var(--fg-muted); font-size: 0.9rem; }

.toggle, .ctl select { font: 600 0.85rem/1 var(--font); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.toggle:hover, .ctl select:hover { border-color: var(--fg-muted); }
.toggle[aria-pressed="true"] { background: var(--surface-2); }
.ctl { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--fg-muted); max-width: 100%; }
/* 16px: iOS Safari zooms the whole page when a smaller form control takes focus, and the zoomed page scrolls sideways. */
.ctl select { font-weight: 500; font-size: max(16px, 1rem); min-width: 0; max-width: 100%; }

svg.chart { display: block; max-width: 100%; height: auto; overflow: visible; }
svg.chart text { font-family: var(--font); }
svg.chart .grid { stroke: var(--grid); stroke-width: 1; }
svg.chart .tick { font-size: 11px; fill: var(--fg-muted); font-variant-numeric: tabular-nums; }
svg.chart .glabel { font-size: 12.5px; font-weight: 600; fill: var(--fg); }
svg.chart .rowkey { font-size: 10.5px; font-weight: 700; fill: var(--fg-muted); }
svg.chart .running { font-size: 11.5px; font-style: italic; fill: var(--fg-muted); }
svg.chart .vlabel { font-size: 11.5px; fill: var(--fg); font-variant-numeric: tabular-nums; }
svg.chart .vlabel.best { font-weight: 700; }
svg.chart .hit { fill: transparent; }
svg.chart .mark { outline: none; }
svg.chart .mark:hover .hit, svg.chart .mark:focus .hit { fill: var(--surface-2); }
svg.chart .ci { stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
svg.chart .dot { stroke: var(--surface); stroke-width: 2; }
svg.chart .zero { stroke-width: 2; }
svg.chart .f-a { fill: var(--c-a); }
svg.chart .f-b { fill: var(--c-b); }
svg.chart .f-c { fill: var(--c-c); }
svg.chart .k-a { stroke: var(--c-a); }
svg.chart .k-b { stroke: var(--c-b); }
svg.chart .k-c { stroke: var(--c-c); }
svg.chart .hatch-bg { fill: var(--surface); }
svg.chart .hatch-ln { stroke: var(--c-c); stroke-width: 3; }
svg.chart path.hatched { stroke: var(--c-c); stroke-width: 1; }

.tip { position: fixed; z-index: 50; pointer-events: none; max-width: 260px; background: var(--tip-bg); color: var(--tip-fg); border-radius: 8px; padding: 8px 10px; font-size: 0.82rem; line-height: 1.4; box-shadow: 0 6px 20px rgb(0 0 0 / 20%); display: grid; }
.tip[hidden] { display: none; }

.notes { font-size: 0.88rem; color: var(--fg-muted); padding-left: 18px; }

/* ---------- results page ---------- */

.results .hero { padding-bottom: 8px; max-width: 820px; }
.status { font-size: 0.9rem; color: var(--fg-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.running-state { display: flex; gap: 10px; align-items: center; color: var(--fg-muted); padding: 16px 0; margin: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.jump a { font-size: 0.85rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); text-decoration: none; }
.jump a:hover { border-color: var(--accent); }
.results section.block h2 { margin-top: 1.2em; }

.ex-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 8px 0 12px; }
.ex-controls .ctl { flex: 1 1 260px; }
.ex-controls .ctl select { flex: 1 1 auto; width: 100%; }
.ex-nav { display: flex; gap: 8px; }
.ex-accept { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.92rem; margin-bottom: 12px; }
.ex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .ex-grid { grid-template-columns: minmax(0, 1fr); } }
.ex-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.ex-card.ex-a { border-top-color: var(--c-a); }
.ex-card.ex-b { border-top-color: var(--c-b); }
.ex-card.ex-c { border-top-color: var(--c-c); }
.ex-card header { font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; }
.ex-line { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 4px; }
.ex-meta { font-size: 0.8rem; color: var(--fg-muted); margin-bottom: 8px; }
.ex-final { white-space: pre-wrap; font-size: 0.86rem; line-height: 1.5; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 0; max-height: 360px; overflow: auto; }
.verdict { display: inline-flex; align-items: center; font-size: 0.8rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.verdict.ok { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.verdict.no { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.methodology h3 { margin-top: 1.4em; }
@media (max-width: 600px) { .tile-value { font-size: 1.5rem; } .tile { padding: 12px; } }
@media (max-width: 600px) {
  .chart-body table.stack td.nc { display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .chart-body table.stack td[data-label]::before { display: inline; text-align: left; white-space: normal; }
  .chart-body table.stack tbody th { white-space: normal; }
}

/* ---------- icons (Lucide, drawn as masks so they take the text colour) and emoji (Twemoji) ---------- */

.ico { display: inline-block; width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; background-color: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico-watch { --ico: url("/assets/icons/lucide/watch.svg"); }
.ico-shield-check { --ico: url("/assets/icons/lucide/shield-check.svg"); }
.ico-brain { --ico: url("/assets/icons/lucide/brain.svg"); }
.ico-cpu { --ico: url("/assets/icons/lucide/cpu.svg"); }
.ico-receipt { --ico: url("/assets/icons/lucide/receipt.svg"); }
.ico-check { --ico: url("/assets/icons/lucide/check.svg"); }
.ico-x { --ico: url("/assets/icons/lucide/x.svg"); }
.ico-bot { --ico: url("/assets/icons/lucide/bot.svg"); }
.ico-package { --ico: url("/assets/icons/lucide/package.svg"); }
.ico-database { --ico: url("/assets/icons/lucide/database.svg"); }
.ico-play { --ico: url("/assets/icons/lucide/play.svg"); }
.ico-pause { --ico: url("/assets/icons/lucide/pause.svg"); }
.ico-file-text { --ico: url("/assets/icons/lucide/file-text.svg"); }
.ico-lock { --ico: url("/assets/icons/lucide/lock.svg"); }
.ico-footprints { --ico: url("/assets/icons/lucide/footprints.svg"); }
.emoji { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.card.problem h3 .ico { color: var(--accent); margin-right: 8px; }
.flow .who .ico { color: var(--accent); margin-right: 6px; }

/* ---------- hero walkthrough ---------- */

.hero-band > .wrap { padding-top: 36px; padding-bottom: 32px; }
.hero-copy { max-width: 780px; }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.hero-copy h1 { margin-top: 0.3em; font-size: clamp(1.9rem, 4.6vw, 2.75rem); }
.hero-copy .lede { font-size: 1.12rem; }
.hero-fine { margin: 12px 0 0; }

.walk { margin: 28px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 18px; box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 18px 40px -24px rgb(0 0 0 / 22%); min-width: 0; }
.walk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.walk-title { font: 600 0.78rem/1.3 var(--font); text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-muted); }
.walk-toggle { display: inline-flex; align-items: center; gap: 6px; font: 600 0.82rem/1 var(--font); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.walk-toggle:hover { border-color: var(--fg-muted); }
.walk-tabs { display: flex; gap: 6px; margin: 12px -18px 0; padding: 2px 18px 6px; overflow-x: auto; scrollbar-width: thin; }
.walk-tab { flex: none; display: inline-flex; align-items: center; gap: 7px; font: 600 0.85rem/1 var(--font); color: var(--fg-muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px 7px 9px; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.walk-tab:hover { color: var(--fg); border-color: var(--fg-muted); }
.walk-tab[aria-selected="true"] { color: var(--fg); background: var(--accent-soft); border-color: var(--accent); }
.walk-progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 6px 0 4px; }
.walk-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; will-change: transform; }
.walk.paused .walk-progress span { background: var(--fg-muted); }
.walk.static .walk-progress { visibility: hidden; }
.walk:not(.ready) .walk-tabs, .walk:not(.ready) .walk-progress, .walk:not(.ready) .walk-panel { display: none; }
.walk-loading { margin: 16px 0 4px; color: var(--fg-muted); font-size: 0.92rem; }
.walk-panel { transition: opacity 0.2s ease; border-radius: 8px; }
.walk-panel.swap { opacity: 0; }
.walk-panel:focus { outline: none; }
.walk-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.walk-why { margin: 10px 0 16px; font-size: 0.95rem; color: var(--fg-muted); }
.walk-why .emoji { margin-right: 6px; }
.walk-why strong { color: var(--fg); }
.walk-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 860px) { .walk-body { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* the five stages */
.walk-steps { list-style: none; margin: 0; padding: 0; }
.ws { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; margin: 0; padding-bottom: 14px; }
.ws:last-child { padding-bottom: 0; }
.ws:not(:last-child)::before, .ws:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line); }
.ws:not(:last-child)::after { background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.5s ease; }
.ws.on:not(.cur)::after { transform: scaleY(1); }
.ws-dot { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface); color: var(--fg-muted); transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.ws-dot .ico { width: 17px; height: 17px; }
.ws.on .ws-dot { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ws-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; transform: scale(0.8); }
.ws.cur .ws-dot::after { animation: ring 1.6s ease-out infinite; }
@keyframes ring { 0% { opacity: 0.55; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.25); } }
.ws-main { min-width: 0; padding-top: 5px; }
.ws-label { margin: 0 0 6px; font-weight: 650; font-size: 0.92rem; line-height: 1.35; opacity: 0.45; transition: opacity 0.35s; }
.ws-sub { display: block; font-weight: 400; font-size: 0.78rem; color: var(--fg-muted); }
.ws.on .ws-label { opacity: 1; }
.ws-main > :not(.ws-label) { opacity: 0.14; transform: translateY(6px); transition: opacity 0.45s ease, transform 0.45s ease; }
.ws.on .ws-main > :not(.ws-label) { opacity: 1; transform: none; }

.ws-bubble { display: inline-block; margin: 0; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.93rem; }
.ws-spec { margin: 0; padding: 8px 10px; font-size: 0.76rem; line-height: 1.55; border-radius: 8px; }
.ws-spec .ln { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 2ch; text-indent: -2ch; opacity: 0.5; transform: translateX(-4px); transition: opacity 0.3s ease, transform 0.3s ease; }
.ws.on .ws-spec .ln { opacity: 1; transform: none; }
.ws-spec .ln:nth-child(2) { transition-delay: 0.1s; }
.ws-spec .ln:nth-child(3) { transition-delay: 0.2s; }
.ws-spec .ln:nth-child(4) { transition-delay: 0.3s; }
.ws-spec .ln:nth-child(5) { transition-delay: 0.4s; }
.tk-k { color: var(--fg-muted); }
.tk-s { color: var(--accent); }
.tk-c { color: var(--fg-muted); font-style: italic; }

.ws-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 4px 14px; font-size: 0.8rem; }
.ws-checks li { display: flex; align-items: flex-start; gap: 7px; margin: 0; opacity: 0.6; transition: opacity 0.25s ease; }
.ws-checks .tick { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; background: var(--c-c); color: #fff; transform: scale(0); transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.ws-checks .tick .ico { width: 11px; height: 11px; }
.ws.on .ws-checks li { opacity: 1; }
.ws.on .ws-checks .tick { transform: scale(1); }
.ws-checks li:nth-child(2), .ws-checks li:nth-child(2) .tick { transition-delay: 0.2s; }
.ws-checks li:nth-child(3), .ws-checks li:nth-child(3) .tick { transition-delay: 0.4s; }
.ws-checks li:nth-child(4), .ws-checks li:nth-child(4) .tick { transition-delay: 0.6s; }
.ws-checks li:nth-child(5), .ws-checks li:nth-child(5) .tick { transition-delay: 0.8s; }
.ws-checks li:nth-child(6), .ws-checks li:nth-child(6) .tick { transition-delay: 1s; }
.ws-checks li:nth-child(7), .ws-checks li:nth-child(7) .tick { transition-delay: 1.2s; }

.ws-note { margin: 0; font-size: 0.85rem; color: var(--fg-muted); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; height: 46px; max-width: 360px; }
.strip-day { position: relative; overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.strip-day.gap { background: transparent; border: 1.5px dashed var(--axis); }
.strip-bar { position: absolute; inset: 0; background: var(--c-c); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ws.on .strip-bar { transform: scaleY(var(--v, 0)); }
.strip-day:nth-child(2) .strip-bar { transition-delay: 0.06s; }
.strip-day:nth-child(3) .strip-bar { transition-delay: 0.12s; }
.strip-day:nth-child(4) .strip-bar { transition-delay: 0.18s; }
.strip-day:nth-child(5) .strip-bar { transition-delay: 0.24s; }
.strip-day:nth-child(6) .strip-bar { transition-delay: 0.3s; }
.strip-day:nth-child(7) .strip-bar { transition-delay: 0.36s; }
.strip-day:nth-child(n+8) .strip-bar { transition-delay: 0.42s; }
.strip-axis { display: flex; justify-content: space-between; align-items: center; gap: 8px; max-width: 360px; margin: 4px 0 8px; font-size: 0.72rem; color: var(--fg-muted); }
.strip-key { display: inline-flex; align-items: center; gap: 5px; }
.strip-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; border: 1.5px dashed var(--axis); }
.vault-meta { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 4px 22px; margin: 0; }
.vault-meta dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }
.vault-meta dd { margin: 0; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.vault-meta dd.warn { color: var(--warn); }
.meter { display: inline-block; width: 44px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter-fill { display: block; height: 100%; background: var(--c-c); transform: scaleX(0); transform-origin: left; transition: transform 0.8s ease 0.2s; }
.ws.on .meter-fill { transform: scaleX(var(--v, 0)); }
@media (max-width: 520px) { .vault-meta { grid-template-columns: repeat(2, minmax(0, auto)); } }

.pk { border: 1px solid var(--line); border-left: 4px solid var(--c-c); border-radius: 10px; background: var(--bg); padding: 10px 12px; }
.ws-packet .pk { transform: translateY(8px) scale(0.98); opacity: 0; transition: opacity 0.45s ease 0.1s, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.1s; }
.ws.on .ws-packet .pk { transform: none; opacity: 1; }
.pk-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pk-level { font: 700 0.7rem/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 8px; }
.pk-id { font-size: 0.72rem; color: var(--fg-muted); background: none !important; border: 0 !important; padding: 0 !important; }
.pk-finding { margin: 8px 0 6px; font-weight: 600; font-size: 0.93rem; line-height: 1.45; }
.pk-caveats { list-style: none; margin: 0 0 6px; padding: 0; font-size: 0.8rem; color: var(--warn); }
.pk-caveats li { position: relative; padding-left: 16px; margin: 2px 0; }
.pk-caveats li::before { content: ""; position: absolute; left: 3px; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pk-foot { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 0.76rem; color: var(--fg-muted); }

/* the same question, three ways */
.walk-compare { min-width: 0; }
.wc-truth { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.wc-truth-label { font: 600 0.7rem/1 var(--font); letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-muted); }
.wc-truth strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.wc-cards { display: grid; gap: 10px; }
.wc { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); transition: opacity 0.45s ease, transform 0.45s ease; }
.wc-a { border-left-color: var(--c-a); }
.wc-b { border-left-color: var(--c-b); }
.wc-c { border-left-color: var(--c-c); opacity: 0; transform: translateY(8px); }
.walk-compare.on .wc-c { opacity: 1; transform: none; }
.wc-head { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; line-height: 1.3; }
.wc-route { display: block; font-size: 0.75rem; color: var(--fg-muted); }
.wc-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.wc-a .wc-ico { color: var(--c-a); }
.wc-b .wc-ico { color: var(--c-b); }
.wc-c .wc-ico { color: var(--c-c); }
.wc-ans { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 0; }
.wc-val { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.wc-mark { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 700; padding: 4px 9px 4px 6px; border-radius: 999px; opacity: 0; transform: scale(0.4); transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.3, 1.7, 0.5, 1); }
.wc-mark .ico { width: 14px; height: 14px; }
.wc-mark.ok { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.wc-mark.no { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.walk-compare.on .wc-mark { opacity: 1; transform: none; }
.walk-compare.on .wc-b .wc-mark { transition-delay: 0.2s; }
.walk-compare.on .wc-c .wc-mark { transition-delay: 0.45s; }
.wc-final { margin: 6px 0 0; font-size: 0.8rem; line-height: 1.45; color: var(--fg-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- what the agent sees ---------- */

.sees { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; margin-top: 16px; }
@media (max-width: 820px) { .sees { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.wall { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--code-bg); overflow: hidden; min-width: 0; }
.wall-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 0.82rem; background: var(--surface); }
.wall-head .ico { color: var(--c-a); }
.wall-name { font-family: var(--mono); font-weight: 600; }
.wall-meta { margin-left: auto; color: var(--fg-muted); font-variant-numeric: tabular-nums; text-align: right; }
.wall-cols { padding: 5px 12px; border-bottom: 1px solid var(--line); font: 600 0.68rem/1.4 var(--mono); color: var(--fg-muted); }
.wall-window { position: relative; height: 240px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); }
.wall-roll { display: flex; flex-direction: column; padding: 0 12px; font: 0.68rem/1.6 var(--mono); color: var(--fg-muted); animation: roll 90s linear infinite; animation-play-state: paused; will-change: transform; }
.sees.visible .wall-roll { animation-play-state: running; }
@keyframes roll { to { transform: translateY(-50%); } }
.wl { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall figcaption { padding: 8px 12px 10px; margin: 0; border-top: 1px solid var(--line); }

.sizes { min-width: 0; }
.size-row { margin: 0 0 20px; }
.size-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; font-size: 0.92rem; }
.size-num { font-variant-numeric: tabular-nums; color: var(--fg-muted); font-size: 0.85rem; }
.size-num strong { color: var(--fg); font-size: 1.05rem; }
.size-track { display: block; height: 16px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.size-fill { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.size-fill.f-a { background: var(--c-a); }
.size-fill.f-b { background: var(--c-b); transition-delay: 0.25s; }
.size-fill.f-c { background: var(--c-c); transition-delay: 0.5s; }
.sees.in .size-fill { transform: scaleX(var(--r, 0)); }
.size-sub { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 5px 0 4px; font-size: 0.8rem; color: var(--fg-muted); }
.size-ratio { font-weight: 600; color: var(--fg); }
.reach { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 0.82rem; font-weight: 600; }
.reach-wide { color: var(--warn); }
.reach-narrow { color: var(--good); }
.sizes-note { margin: 4px 0 0; }

.site-footer .foot-text { display: grid; gap: 6px; max-width: 560px; }
.site-footer .attrib { font-size: 0.8rem; }

/* No movement for people who ask for less: every animated element shows its final state. */
@media (prefers-reduced-motion: reduce) {
  .walk *, .walk *::before, .walk *::after, .sees *, .sees *::before, .sees *::after { animation: none !important; transition: none !important; }
  .wall-roll { transform: none; }
}
.walk.static *, .walk.static *::before, .walk.static *::after { animation: none !important; transition: none !important; }
.walk-toggle[hidden] { display: none; }
.nw { white-space: nowrap; }

/* ---------- accuracy vs cost ---------- */
svg.chart .grid.minor { stroke-dasharray: 2 3; opacity: 0.7; }
svg.chart .connector { stroke: var(--fg-muted); stroke-width: 1.2; opacity: 0.45; }
svg.chart .leader { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 1.5 2; }
svg.chart .pt-shape { stroke: var(--surface); stroke-width: 1.5; }
svg.chart .clabel { font-size: 11px; fill: var(--fg); font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
svg.chart .axis-title { font-size: 11.5px; fill: var(--fg-muted); }
svg.chart .better { font-size: 12px; font-weight: 600; fill: var(--fg-muted); }
svg.chart .mark.pt .hit { fill: transparent; }
svg.chart .mark.pt:hover .hit, svg.chart .mark.pt:focus .hit { fill: var(--surface-2); }
svg.chart .mark.pt:focus-visible .pt-shape { stroke: var(--fg); }
.shape-key { display: inline-block; flex: none; }
.shape-key .f-a { fill: var(--c-a); }
.shape-key .f-b { fill: var(--c-b); }
.shape-key .f-c { fill: var(--c-c); }
.sw-line.conn { width: 18px; border-top-color: var(--fg-muted); opacity: 0.6; }
.multiples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.multiples svg.chart { width: 100%; height: auto; }
.better-note { font-size: 0.82rem; font-weight: 600; color: var(--fg-muted); margin: 0 0 8px; }
.chart-note { margin: 8px 0 0; }

/* ---------- v3: hero device stage ---------- */

.hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 860px) { .hero-top { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.hero-copy .eyebrow .ico { width: 1.25em; height: 1.25em; }

.stage { position: relative; display: grid; justify-items: center; gap: 10px; padding: 8px 0 0; min-width: 0; }
.stage-devices { position: relative; width: min(100%, 340px); aspect-ratio: 34 / 30; }
.dev { position: absolute; display: block; height: auto; }
.dev-watch { left: 50%; top: 0; width: 48%; margin-left: -24%; z-index: 2; container-type: inline-size; filter: drop-shadow(0 18px 22px rgb(0 0 0 / 22%)); }
.dev-watch > img { display: block; width: 100%; height: auto; }
.dev-ring { left: 0; bottom: 4%; width: 34%; z-index: 1; }
.dev-band { right: -3%; bottom: 2%; width: 40%; z-index: 3; }
.dev-ring, .dev-band { animation: float 7s ease-in-out infinite; }
.dev-band { animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-7px); } }

/* The face sits over the watch's screen: 112 x 144 of the 200 x 300 artwork, from (44, 78). */
.face { position: absolute; left: 22%; top: 26%; width: 56%; height: 48%; border-radius: 22% / 17%; display: grid; align-content: center; justify-items: center; gap: 2px; padding: 8% 6%; color: #f4f5f7; text-align: center; overflow: hidden; }
.face p { margin: 0; line-height: 1.1; }
.face-top { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1 var(--font); font-size: 9cqi; letter-spacing: 0.04em; text-transform: uppercase; color: #34d399; }
.face-live { width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: live 1.8s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.25; } }
.face-value { font: 700 24px/1 var(--font); font-size: 15cqi; white-space: nowrap; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.face-unit { font-size: 10px; font-size: 7.5cqi; color: #a3a6ae; }
.face-bars { display: none; align-items: end; gap: 3%; width: 78%; height: 18%; margin-top: 6%; }
.face.has-bars .face-bars { display: flex; }
.face-bar { flex: 1; height: 100%; border-radius: 2px; background: #34d399; transform: scaleY(var(--v, 0.1)); transform-origin: bottom; opacity: 0.85; transition: transform 0.6s ease; }

.rail { position: relative; width: min(100%, 360px); }
.rail-nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; z-index: 1; }
.rail-node { display: grid; justify-items: center; gap: 4px; margin: 0; font-size: 0.75rem; color: var(--fg-muted); }
.rail-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); transition: background-color 0.3s, border-color 0.3s; }
.rail-node.on { color: var(--fg); }
.rail-node.on .rail-dot { border-color: var(--accent); background: var(--accent-soft); }
.rail-node.cur .rail-dot { background: var(--accent); }
.rail-name { font-weight: 600; }
/* The track spans the first to the last dot. The runner is as wide as the track and moves by a share of its own
   width, so the token lands on each dot; the track clips the runner, so it never widens the page. */
.rail-track { position: absolute; top: -3px; left: calc(12.5% - 10px); right: calc(12.5% - 10px); height: 20px; overflow: hidden; pointer-events: none; }
.rail-line, .rail-fill { position: absolute; left: 10px; right: 10px; top: 9px; height: 2px; border-radius: 2px; background: var(--line); }
.rail-fill { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.6s ease; }
.rail-run { position: absolute; left: 10px; right: 10px; top: 0; bottom: 0; transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.2, 1); }
.rail-token { position: absolute; left: -5px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-c) 25%, transparent); opacity: 0; transition: opacity 0.3s; }
.stage[data-at="0"] .rail-token, .stage[data-at="1"] .rail-token, .stage[data-at="2"] .rail-token, .stage[data-at="3"] .rail-token { opacity: 1; }
.stage[data-at="1"] .rail-run { transform: translateX(33.333%); }
.stage[data-at="2"] .rail-run { transform: translateX(66.667%); }
.stage[data-at="3"] .rail-run { transform: translateX(100%); }
.stage[data-at="1"] .rail-fill { transform: scaleX(0.3333); }
.stage[data-at="2"] .rail-fill { transform: scaleX(0.6667); }
.stage[data-at="3"] .rail-fill { transform: scaleX(1); }
.stage-cap { margin: 0; min-height: 2.8em; max-width: 340px; text-align: center; font-size: 0.85rem; color: var(--fg-muted); }
.stage-toggle { display: inline-flex; align-items: center; gap: 6px; font: 600 0.8rem/1 var(--font); color: var(--fg-muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.stage-toggle:hover { color: var(--fg); border-color: var(--fg-muted); }
.stage-toggle[hidden] { display: none; }
.stage.paused *, .stage.offscreen * { animation-play-state: paused !important; }
@media (max-width: 860px) { .stage-devices { width: min(100%, 300px); } }

/* ---------- v3: what people ask ---------- */

.uc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
@media (max-width: 900px) { .uc-grid { grid-template-columns: minmax(0, 1fr); } }
.uc { display: flex; flex-direction: column; gap: 12px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 18px; transition: opacity 0.6s ease, transform 0.6s ease; }
.uc.will-rise { opacity: 0; transform: translateY(14px); }
.uc.will-rise.in { opacity: 1; transform: none; }
.uc-head { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; }
.uc-dev { width: 52px; height: 52px; object-fit: contain; }
.uc-agent { margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--fg-muted); }
.uc-grant { display: block; font-weight: 400; font-size: 0.76rem; }
.uc-q { margin: 2px 0 0; font-size: 1.05rem; line-height: 1.35; }
.uc-chat { display: grid; gap: 8px; min-width: 0; }
.msg { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: 0.9rem; line-height: 1.45; max-width: 92%; }
.msg-user { justify-self: end; background: var(--accent-soft); border-bottom-right-radius: 4px; }
.msg-agent { background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg-tool { background: transparent; border: 1px dashed var(--line); font-family: var(--mono); font-size: 0.78rem; color: var(--fg-muted); }
.msg-tag { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: var(--c-c); color: #fff; font: 700 0.68rem/1.4 var(--font); text-transform: uppercase; letter-spacing: 0.05em; }
.uc-packets { display: grid; gap: 8px; min-width: 0; }
.uc-packets .pk { background: var(--bg); }
.pk-op { font-size: 0.74rem; color: var(--fg-muted); font-family: var(--mono); overflow-wrap: anywhere; }
.pk-denied { border-left-color: var(--bad); }
.pk-level.pk-no { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.pk-reasons { list-style: none; margin: 0 0 4px; padding: 0; font-size: 0.8rem; }
.pk-reasons li { margin: 0; }
.uc-merge { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .uc-merge { grid-template-columns: minmax(0, 1fr); } }
.merge-side { margin: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 0.82rem; line-height: 1.45; }
.merge-aw { border-color: var(--c-c); }
.merge-label { display: block; font: 600 0.68rem/1.4 var(--font); text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); margin-bottom: 2px; }
.uc-safe, .uc-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin: 0; font-size: 0.84rem; line-height: 1.5; color: var(--fg-muted); }
.uc-note { margin: 0; }
.uc-safe .ico { color: var(--c-c); margin-top: 2px; }
.uc-note .ico { color: var(--warn); margin-top: 2px; }
.uc-safe strong, .uc-note strong { color: var(--fg); }

.week-grid { display: grid; grid-template-columns: auto repeat(7, minmax(0, 1fr)); gap: 4px; align-items: center; font-size: 0.72rem; color: var(--fg-muted); }
.wk-day { text-align: center; }
.wk-label { padding-right: 6px; white-space: nowrap; font-weight: 600; }
.wk-cell { height: 22px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); }
.wk-above { background: var(--c-b); border-color: transparent; }
.wk-below { background: var(--c-a); border-color: transparent; }
.wk-within { background: color-mix(in srgb, var(--c-c) 30%, var(--surface)); border-color: transparent; }
.wk-unknown { background: transparent; border-style: dashed; }
.wk-slight { opacity: 0.6; }
.week-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 0.74rem; color: var(--fg-muted); }
.wk-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -4px; border: 1px solid var(--line); }
.wk-key.wk-above { background: var(--c-b); }
.wk-key.wk-below { background: var(--c-a); }
.wk-key.wk-within { background: color-mix(in srgb, var(--c-c) 30%, var(--surface)); }
.wk-key.wk-unknown { border-style: dashed; }

/* ---------- v3: three ways compared ---------- */

.cmp-bar { display: flex; justify-content: flex-end; margin: 8px 0 4px; }
.cmp { display: grid; grid-template-columns: minmax(130px, 0.75fr) repeat(3, minmax(0, 1fr)); gap: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px 10px; }
.cmp[hidden] { display: none; }
.cmp > .loading { grid-column: 1 / -1; }
.cmp-col { padding: 12px 0 12px; border-top: 4px solid var(--line); margin-top: 8px; }
.cmp-col.cmp-a { border-top-color: var(--c-a); }
.cmp-col.cmp-b { border-top-color: var(--c-b); }
.cmp-col.cmp-c { border-top-color: var(--c-c); }
.cmp-col p { margin: 0; }
.cmp-key { display: flex; align-items: center; gap: 8px; }
.cmp-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.cmp-a .cmp-ico, .cmp-a .cmp-letter { color: var(--c-a); }
.cmp-b .cmp-ico, .cmp-b .cmp-letter { color: var(--c-b); }
.cmp-c .cmp-ico, .cmp-c .cmp-letter { color: var(--c-c); }
.cmp-letter { font-weight: 800; font-size: 0.9rem; }
.cmp-name { font-weight: 700; font-size: 1.02rem; margin-top: 6px !important; line-height: 1.3; }
.cmp-desc { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.45; }
.cmp-rowhead { display: grid; align-content: start; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.88rem; line-height: 1.35; }
.cmp-sub { font-size: 0.76rem; color: var(--fg-muted); font-weight: 400; }
.cmp-cell { min-width: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.cmp-cell p { margin: 0 0 4px; }
.cmp-tag { display: none; }
.cmp-num strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.cmp-na { color: var(--fg-muted); display: flex; align-items: center; gap: 6px; }
.cmp-note { font-size: 0.8rem; color: var(--fg-muted); line-height: 1.4; }
.cmp-track { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--surface-2); margin: 6px 0 6px; overflow: hidden; }
.cmp-fill { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cmp-fill.f-a { background: var(--c-a); }
.cmp-fill.f-b { background: var(--c-b); }
.cmp-fill.f-c { background: var(--c-c); }
.compare.in .cmp-fill { transform: scaleX(var(--r, 0)); }
.cmp-ci { position: absolute; top: 3px; bottom: 3px; left: calc(var(--lo) * 100%); right: calc((1 - var(--hi)) * 100%); border-left: 2px solid var(--fg); border-right: 2px solid var(--fg); opacity: 0.55; }
.cmp-fail-q { line-height: 1.35; }
.cmp-fail-a { font-size: 0.84rem; }
.cmp-quote { font-size: 0.78rem; color: var(--fg-muted); border-left: 2px solid var(--line); padding-left: 8px; line-height: 1.45; }
.cmp-takeaway { font-size: 1.02rem; font-weight: 600; margin: 16px 0 8px; max-width: 860px; }
.cmp-takeaway:empty { display: none; }
.cmp-more { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.cmp-more summary { cursor: pointer; font-weight: 600; }
.cmp-more .chart-card { border: 0; padding: 8px 0 0; margin: 0; }
/* On a phone, each measure becomes a block with A, B and C under it, so the comparison still reads in one place. */
@media (max-width: 760px) {
  .cmp { display: block; padding: 4px 14px 10px; }
  .cmp-corner { display: none; }
  .cmp-col { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; align-items: start; border-top-width: 3px; padding: 10px 0; }
  .cmp-col .cmp-key { grid-row: span 2; }
  .cmp-col .cmp-name { margin-top: 0 !important; }
  .cmp-rowhead { margin-top: 10px; padding-bottom: 4px; border-top: 2px solid var(--line); }
  .cmp-cell { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
  .cmp-cell > :not(.cmp-tag) { grid-column: 2; }
  .cmp-tag { display: block; grid-row: span 4; font-size: 0.76rem; font-weight: 700; line-height: 1.3; padding-left: 8px; border-left: 3px solid; }
  .cmp-cell.cmp-a .cmp-tag { border-color: var(--c-a); }
  .cmp-cell.cmp-b .cmp-tag { border-color: var(--c-b); }
  .cmp-cell.cmp-c .cmp-tag { border-color: var(--c-c); }
}
@media (max-width: 380px) { .cmp-cell { grid-template-columns: minmax(0, 1fr); } .cmp-cell > :not(.cmp-tag) { grid-column: 1; } .cmp-tag { grid-row: auto; margin-bottom: 4px; } }
@media (prefers-reduced-motion: reduce) { .cmp-fill { transition: none !important; } }

/* ---------- v3: hero story card ---------- */

.story { margin: 28px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 18px; box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 18px 40px -24px rgb(0 0 0 / 22%); min-width: 0; }
.story-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.story-title { font: 600 0.78rem/1.3 var(--font); text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-muted); }
.story-toggle { display: inline-flex; align-items: center; gap: 6px; font: 600 0.82rem/1 var(--font); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.story-toggle:hover { border-color: var(--fg-muted); }
.story-toggle[hidden] { display: none; }
.story-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.story-tab { display: inline-flex; align-items: center; gap: 7px; font: 600 0.85rem/1.25 var(--font); color: var(--fg-muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px 7px 9px; cursor: pointer; text-align: left; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.story-tab:hover { color: var(--fg); border-color: var(--fg-muted); }
.story-tab[aria-selected="true"] { color: var(--fg); background: var(--accent-soft); border-color: var(--accent); }
.story-progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 10px 0 6px; }
.story-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.story.paused .story-progress span { background: var(--fg-muted); }
.story.static .story-progress { visibility: hidden; }
.story:not(.ready) .story-tabs, .story:not(.ready) .story-progress, .story:not(.ready) .story-panel { display: none; }
.story-loading { margin: 16px 0 4px; color: var(--fg-muted); font-size: 0.92rem; }
.story-panel { transition: opacity 0.32s ease; border-radius: 8px; }
.story-panel.swap { opacity: 0; }
.story-panel:focus { outline: none; }
.story-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.story-ask { display: grid; justify-items: start; gap: 4px; margin: 8px 0 10px; }
.bubble { margin: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: 1.08rem; font-weight: 600; }
.story-meta { margin: 0 0 0 4px; font-size: 0.78rem; color: var(--fg-muted); }
.story-truth { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.story-truth-label { font: 600 0.7rem/1 var(--font); letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-muted); }
.story-truth strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.story-truth-note { font-size: 0.76rem; color: var(--fg-muted); }
.story-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .story-cards { grid-template-columns: minmax(0, 1fr); } }
.sc { min-width: 0; border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.sc-a { border-top-color: var(--c-a); }
.sc-b { border-top-color: var(--c-b); }
.sc-c { border-top-color: var(--c-c); }
.sc-head { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; line-height: 1.3; }
.sc-a .wc-ico { color: var(--c-a); }
.sc-b .wc-ico { color: var(--c-b); }
.sc-c .wc-ico { color: var(--c-c); }
.sc-ans { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 4px; }
.sc-val { font-size: 1.6rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sc-mark { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 0.82rem; font-weight: 700; padding: 4px 10px 4px 7px; border-radius: 999px; }
.sc-mark .ico { width: 15px; height: 15px; }
.sc-mark.ok { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.sc-mark.no { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.sc-why { margin: 0; font-size: 0.86rem; line-height: 1.45; }
.sc-got { margin-top: 8px; font-size: 0.84rem; }
.sc-got summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.sc-got .pk { margin-top: 6px; }
.sc-asked { margin: 0 0 4px; }
.sc-final { margin: 4px 0 0; font-size: 0.8rem; color: var(--fg-muted); }

/* ---------- v3: chart titles and the leak chart ---------- */

.chart-title { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.35; }
.chart-link { margin: 6px 0 4px; font-size: 0.88rem; }
.compare .chart-card { margin-top: 16px; }
.leak-bars { display: grid; gap: 12px; margin: 8px 0 4px; }
.leak-row { margin: 0; }
.leak-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 0.9rem; }
.leak-val { color: var(--fg-muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.leak-val strong { color: var(--fg); font-size: 1rem; }
@media (prefers-reduced-motion: reduce) {
  .story *, .story *::before, .story *::after { animation: none !important; transition: none !important; }
}
.story.static *, .story.static *::before, .story.static *::after { animation: none !important; transition: none !important; }

/* ---------- v4: use cases in the hero, the signal switcher, chips ---------- */

.hero-uc { margin-top: 36px; }
.uc-intro { display: grid; gap: 4px; max-width: 760px; margin-bottom: 4px; }
.uc-intro h2 { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: -0.015em; }
.uc-intro p { margin: 0; color: var(--fg-muted); }
.hero-uc .uc { box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 14px 32px -22px rgb(0 0 0 / 28%); border-radius: 16px; transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease; }
.hero-uc .uc.fed { border-color: var(--accent); }
.uc-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0 2px; }
.chip { display: inline-flex; align-items: center; font: 600 0.72rem/1 var(--font); padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.chip-sig.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip-denied { text-decoration: line-through; color: var(--fg-muted); }
.chip-level { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chip-no { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: transparent; }
.signals { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 360px; }
.signal { font: 600 0.78rem/1 var(--font); color: var(--fg-muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.signal:hover { color: var(--fg); border-color: var(--fg-muted); }
.signal[aria-selected="true"] { color: var(--accent-fg); background: var(--accent); border-color: var(--accent); }
.signals-missing { margin: 0; max-width: 340px; text-align: center; font-size: 0.74rem; color: var(--fg-muted); }
.signals-missing:empty { display: none; }
.face-stages { display: none; width: 80%; height: 7%; margin-top: 7%; border-radius: 3px; overflow: hidden; gap: 1px; }
.face.has-stages .face-stages { display: flex; }
.stg { display: block; height: 100%; flex: 1 1 0; }
.stg-deep { background: #2a78d6; }
.stg-rem { background: #8f7cf0; }
.stg-light { background: #6aa8f0; }
.stg-awake { background: #eb6834; }

/* ---------- v4: the watch face screens ---------- */

.stage-devices { width: min(100%, 380px); }
@media (max-width: 860px) { .stage-devices { width: min(100%, 320px); } }
.dev-watch { width: 54%; margin-left: -27%; }
.face { padding: 7% 7% 6%; gap: 0; align-content: stretch; }
.face.enter .fscreen { animation: screen-in 0.45s ease both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(4%); } }
.fscreen { position: relative; display: grid; align-content: center; justify-items: center; gap: 3%; width: 100%; height: 100%; text-align: center; }
.fscreen p { margin: 0; line-height: 1.1; }
.fs-label { font: 600 9px/1.1 var(--font); font-size: 6.4cqi; letter-spacing: 0.03em; text-transform: uppercase; color: #34d399; white-space: nowrap; }
.fs-val { font: 700 20px/1 var(--font); font-size: 13.5cqi; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #f4f5f7; white-space: nowrap; }
.fs-u { font-size: 0.45em; font-weight: 600; letter-spacing: 0; color: #a3a6ae; }
.fs-unit, .fs-foot { font-size: 8px; font-size: 5.4cqi; color: #a3a6ae; }
.fs-sub { font-size: 8px; font-size: 5.6cqi; color: #6aa8f0; font-weight: 600; }
.fbadge { display: inline-flex; align-items: center; gap: 3px; margin-top: 2%; padding: 2px 6px; border-radius: 999px; font: 600 8px/1.3 var(--font); font-size: 5.2cqi; white-space: nowrap; }
.fb-within { color: #34d399; background: rgb(52 211 153 / 16%); }
.fb-off { color: #f6b26b; background: rgb(246 178 107 / 16%); }
.fb-none { color: #a3a6ae; background: rgb(255 255 255 / 8%); }
.frings { width: 56%; height: auto; }
.fs-activity .fs-val { font-size: 10cqi; }
.farc-bg, .farc { fill: none; stroke-width: 8; }
.farc { stroke-linecap: round; }
.farc-bg.a1 { stroke: rgb(52 211 153 / 18%); }
.farc-bg.a2 { stroke: rgb(106 168 240 / 18%); }
.farc.a1 { stroke: #34d399; }
.farc.a2 { stroke: #6aa8f0; }
.fstages { display: flex; gap: 1px; width: 88%; height: 9cqi; border-radius: 3px; overflow: hidden; margin-top: 2%; }
.fs-key { display: flex; gap: 6%; justify-content: center; font-size: 7px; font-size: 4.8cqi; color: #a3a6ae; }
.fs-key span::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; border-radius: 2px; margin-right: 0.3em; vertical-align: -0.05em; }
.fs-key .k-deep::before { background: #2a78d6; }
.fs-key .k-rem::before { background: #8f7cf0; }
.fs-key .k-light::before { background: #6aa8f0; }
.fspark { width: 88%; height: 16cqi; overflow: visible; }
.fspark polyline { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fspark.resting_hr polyline { stroke: #f08a82; }
.fspark.resting_hr circle { fill: #f08a82; }
.fspark.hrv polyline { stroke: #8f7cf0; }
.fspark.hrv circle { fill: #8f7cf0; }
.fbars { display: flex; align-items: end; gap: 5%; width: 80%; height: 18cqi; margin-top: 2%; }
.fbar { flex: 1; height: 100%; border-radius: 2px; background: #f6b26b; transform: scaleY(var(--v, 0.1)); transform-origin: bottom; }
.fbar.zero { background: rgb(255 255 255 / 14%); }
.fs-empty .fs-label { color: #a3a6ae; }
.nd-ico { display: inline-block; width: 0.9em; height: 0.9em; border-radius: 50%; border: 1.5px dashed currentColor; flex: none; }
.nd-ico.big { width: 22cqi; height: 22cqi; color: #a3a6ae; }
.wears { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0; max-width: 380px; }
.wear { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.74rem; color: var(--fg-muted); }
.wear strong { color: var(--fg); margin-right: 2px; }
.chip-nodata { gap: 4px; color: var(--fg-muted); background: transparent; border-style: dashed; font-weight: 500; }

/* ---------- v3: footer with the parent brand ---------- */

.foot-brand { display: grid; gap: 6px; justify-items: start; flex: 1 1 100%; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.foot-parent { display: inline-flex; padding: 6px 0; }
.foot-parent .sv-logo img { height: 24px; }
.foot-line { margin: 0; color: var(--fg); font-weight: 600; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 0.85rem; }

/* ---------- v3: no sideways scrolling on a phone ---------- */

@media (max-width: 600px) {
  /* Wrap the example tabs instead of scrolling them sideways. */
  .walk-tabs { flex-wrap: wrap; overflow-x: visible; margin: 12px 0 0; padding: 2px 0 6px; }
  /* Code wraps at the screen edge; copying still gives the original lines. */
  pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  th { white-space: normal; }
  td code, td.wrap code { white-space: normal; overflow-wrap: anywhere; }
  .site-nav { gap: 2px 14px; }
}
p a, li a, td a, dd a { overflow-wrap: anywhere; }

/* A last guard, added after the causes above were fixed: nothing can widen the page. clip (unlike hidden) makes no
   scroll container, so sticky positioning still works. */
html, body { overflow-x: clip; }

/* No movement for people who ask for less: the stage, the cards and the devices show their final state. */
@media (prefers-reduced-motion: reduce) {
  .stage *, .stage *::before, .stage *::after, .uc, .uc * { animation: none !important; transition: none !important; }
  .uc.will-rise { opacity: 1; transform: none; }
}
.how-grid + p, .walk-body { grid-template-columns: minmax(0, 1fr); }
.block .walk { margin-top: 12px; }
.face-value.long { font-size: 18px; font-size: 12cqi; }
@media (max-width: 600px) { .stage-devices { width: min(100%, 280px); } .stage-cap { min-height: 0; font-size: 0.8rem; } .story-tab { font-size: 0.8rem; padding: 6px 10px 6px 8px; } .story { padding: 14px 14px 16px; } .bubble { font-size: 1rem; } }
/* break-word, not anywhere: anywhere lets the table squeeze a column to one letter per line. */
@media (max-width: 600px) { .table-wrap table { font-size: 0.9375rem; } .table-wrap th, .table-wrap td { padding: 8px 10px; overflow-wrap: break-word; } }
.credit-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.credit h3 { margin: 0 0 6px; }
.credit-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
@media (max-width: 600px) { .hero-copy .actions { gap: 8px; margin-top: 16px; } .hero-copy .btn { padding: 8px 12px; font-size: 0.88rem; } .hero-copy .lede { font-size: 1.02rem; } .hero-uc { margin-top: 24px; } }

/* Walkthrough step controls */
.walk-ctrls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
.walk-step{font:inherit;font-size:max(16px,1rem);padding:6px 12px;border-radius:999px;border:1px solid var(--line,#dfe1e4);background:transparent;color:inherit;cursor:pointer;min-height:36px}
.walk-step:hover{border-color:currentColor}
.walk-step:focus-visible{outline:2px solid #1baf7a;outline-offset:2px}
.walk-count{font-size:.9rem;opacity:.8;min-width:0;overflow-wrap:anywhere}
@media (max-width:600px){.walk-ctrls{justify-content:flex-start;width:100%}.walk-count{flex-basis:100%;order:-1}}

/* Use-case tiles: masonry columns. Tiles keep their natural height, flow into as many ~360px columns as fit,
   with even gaps and no dead space. */
.uc-grid { display: block; columns: 2 360px; column-gap: 18px; }
.uc-grid > .uc { break-inside: avoid; margin: 0 0 18px; display: flex; width: 100%; box-sizing: border-box; }
.uc-safe, .uc-note { padding-top: 10px; border-top: 1px solid var(--line); }
.uc-safe + .uc-note, .uc-note + .uc-safe { border-top: 0; padding-top: 0; }

/* ---------- v5: mobile pass ----------
   Tap targets at least 44 x 44 CSS px with 8px between them on touch screens and narrow windows; type floors on a
   phone of 16px for running text, 13px for secondary lines and 12px for small uppercase labels and chips; a compact
   disclosure menu for the main navigation. */

:root { --tap: 44px; }

/* Header: the brand and the parent brand get full-height hit areas without changing how the lockup looks. */
.site-header .inner { padding-top: 6px; padding-bottom: 6px; }
.brand { min-height: var(--tap); }
.parent { position: relative; min-height: var(--tap); padding-top: 0; padding-bottom: 0; border-left: 0; }
.parent::before { content: ""; position: absolute; left: 0; top: 50%; height: 24px; margin-top: -12px; border-left: 1px solid var(--line); }
.site-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 2px; }
.skip:focus { display: inline-flex; align-items: center; min-height: var(--tap); }

/* The menu button exists in the markup but is shown only once nav.js has set the header up, and only on narrow
   screens; without the script the links stay visible. */
.nav-toggle { display: none; }
.nav-toggle[hidden] { display: none !important; }
.nav-bars { position: relative; display: inline-block; width: 18px; height: 2px; border-radius: 1px; background-color: currentColor; transition: background-color 0.15s ease; }
.nav-bars::before, .nav-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 1px; background-color: currentColor; transition: transform 0.2s ease; }
.nav-bars::before { top: -6px; }
.nav-bars::after { top: 6px; }
.menu-open .nav-bars { background-color: transparent; }
.menu-open .nav-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .nav-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 720px) {
  .site-header.has-menu .inner { flex-wrap: wrap; gap: 0 8px; }
  .has-menu .lockup { flex: 1 1 auto; }
  .has-menu .nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; min-width: var(--tap); min-height: var(--tap); padding: 0 12px; font: 600 0.95rem/1 var(--font); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .has-menu .nav-toggle:hover { border-color: var(--fg-muted); }
  .has-menu .site-nav { display: none; flex: 1 1 100%; flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 6px 0 4px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
  .has-menu.menu-open .site-nav { display: flex; }
  .has-menu .site-nav a { display: flex; min-height: 48px; padding: 0 8px; color: var(--fg); border-bottom: 1px solid var(--line); text-decoration: none; }
  .has-menu .site-nav a:last-child { border-bottom: 0; }
  .has-menu .site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
}
/* On the narrowest phones the lockup and the button share one row: the button shows only its icon (the word stays
   as its accessible name) and the lockup tightens. */
@media (max-width: 400px) {
  .has-menu .nav-toggle { padding: 0; width: var(--tap); }
  .has-menu .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lockup { gap: 0 10px; }
  .parent { padding-left: 10px; gap: 5px; }
}
@media (max-width: 350px) {
  .site-header .inner { padding-left: 12px; padding-right: 12px; }
  .lockup { gap: 0 8px; }
  .parent { padding-left: 8px; }
  .brand { gap: 6px; font-size: 1rem; }
  .brand-mark { width: 24px; height: 24px; }
  .sv-logo img { height: 13px; }
}

/* Footer links: full-height hit areas, 8px apart at least. */
.site-footer nav, .foot-legal { gap: 0 16px; }
.site-footer nav a, .foot-legal a, .foot-parent { display: inline-flex; align-items: center; min-height: var(--tap); }

/* Visible focus on chart marks (the hit area also gets a ring, not only a fill). */
svg.chart .mark:focus-visible .hit { fill: var(--surface-2); stroke: var(--accent); stroke-width: 2; }

/* Stacked document tables: the first cell is the row heading. On a wide screen it looks like an ordinary cell. */
.doc-table tbody th[scope="row"] { background: none; font-weight: inherit; white-space: normal; }
@media (max-width: 600px) {
  table.stack td:empty { display: none; }
  .doc-table tbody th[scope="row"] { font-weight: 600; }
  .doc-table tr { padding: 8px 0; }
  .doc-table td[data-label] { padding-top: 6px; }
}

/* The SVG charts draw at their real width on a phone, so their labels stay legible. */
@media (max-width: 600px) {
  svg.chart .tick, svg.chart .vlabel, svg.chart .running, svg.chart .axis-title, svg.chart .clabel { font-size: 12px; }
  svg.chart .rowkey { font-size: 12px; }
  svg.chart .glabel { font-size: 13px; }
  svg.chart.mini .tick { font-size: 11px; }
}

/* Touch and narrow windows: every control at least 44 x 44, 8px apart. */
@media (max-width: 720px), (pointer: coarse) {
  .btn, .toggle, .ctl select, .walk-toggle, .story-toggle, .stage-toggle, .walk-step, .deploy-btn { min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; }
  .toggle { min-width: var(--tap); padding: 0 14px; }
  .ctl select { padding: 0 10px; }
  .story-tab, .walk-tab { min-height: var(--tap); }
  .story-tabs, .walk-tabs, .actions, .ex-nav, .walk-ctrls, .uc-chips, .credit-meta { gap: 8px; }
  .signals { gap: 8px; }
  .signal { min-height: var(--tap); padding: 0 14px; }
  .jump { gap: 8px; }
  .jump a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; font-size: 0.9375rem; }
  .docs-nav ul { gap: 8px; }
  .docs-nav a { display: flex; align-items: center; min-height: var(--tap); }
  .toc li { margin: 0; }
  .toc a { display: inline-flex; align-items: center; min-height: var(--tap); }
  .arch-details summary, .cmp-more summary, .sc-got summary { display: flex; align-items: center; gap: 8px; min-height: var(--tap); }
  .arch-details summary::before, .cmp-more summary::before, .sc-got summary::before { content: "▸"; }
  .arch-details[open] summary::before, .cmp-more[open] summary::before, .sc-got[open] summary::before { content: "▾"; }
  .arch-details summary::-webkit-details-marker, .cmp-more summary::-webkit-details-marker, .sc-got summary::-webkit-details-marker { display: none; }
  .arch-details summary, .cmp-more summary, .sc-got summary { list-style: none; }
  .link-card { min-height: var(--tap); }
  .pager a { display: inline-flex; align-items: center; min-height: var(--tap); }
}

/* Phones: type floors and roomier spacing. */
@media (max-width: 600px) {
  /* Running text: 16px. */
  .msg, .uc-safe, .uc-note, .sc-why, .merge-side, .walk-why, .cmp-desc, .chart-sub, .notes, .ex-final, .pk-finding, .ws-bubble, .cmp-cell, .leak-head, .size-head, .toc, .docs-nav, .link-card span { font-size: 1rem; }
  .uc-safe, .uc-note, .sc-why, .merge-side, .msg { line-height: 1.55; }
  /* Secondary lines: 13px or more. */
  .stage-cap, .uc-grant, .wc-route, .ws-sub, .pk-foot, .pk-op, .story-meta, .story-truth-note, .sc-final, .cmp-sub, .cmp-note, .cmp-quote, .tile-sub, .ex-meta, .size-sub, .wear, .signals-missing, .week-legend, .strip-axis, .badge, .verdict, .wc-mark, .rail-node, .site-footer .attrib, .req, .tag { font-size: 0.8125rem; }
  .signal { font-size: 0.875rem; }
  .msg-tool { font-size: 0.875rem; line-height: 1.5; }
  .uc-agent { font-size: 0.875rem; }
  .site-footer .inner { font-size: 0.9375rem; }
  /* Small uppercase labels and chips: 12px or more. */
  .chip, .pk-level, .pk-id, .msg-tag, .merge-label, .vault-meta dt, .story-truth-label, .wc-truth-label, .week-grid, .wall-cols, .wall-roll { font-size: 0.75rem; }
  .ws-spec { font-size: 0.8125rem; }
  .chip { padding: 5px 9px; }
  .walk-step { font-size: 1rem; }

  /* Hero: a full-width primary action, then the two others side by side. */
  .hero-copy .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy .btn { padding: 8px 12px; font-size: 0.9375rem; text-align: center; line-height: 1.25; }
  .hero-copy .btn.primary { grid-column: 1 / -1; }
  /* Use-case tiles: the device sits beside the agent's name, at the top, not floating beside the whole header. */
  .uc { padding: 14px 14px 16px; }
  .uc-head { grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 10px; }
  .uc-dev { width: 40px; height: 40px; }
  .uc-q { font-size: 1.1rem; }
  .msg { max-width: 100%; }
  /* The week grid: no word split in the day names; the row labels may wrap instead. */
  .week-grid { gap: 3px; }
  .wk-day { overflow-wrap: normal; word-break: keep-all; }
  .wk-label { white-space: normal; line-height: 1.2; padding-right: 4px; }
  /* Story and walkthrough cards use the full width of the phone. */
  .story, .walk { border-radius: 14px; }
  .walk { padding: 14px 14px 16px; }
  .sc-val { font-size: 1.45rem; }
  /* Headings: no single-word last lines where the browser can balance them. */
  h1, h2, .uc-q, .chart-title, .cmp-takeaway { text-wrap: balance; }
  p, li { text-wrap: pretty; }
}
@media (max-width: 380px) {
  .hero-copy .actions { grid-template-columns: minmax(0, 1fr); }
}

/* Chat tag: dark text on the C green reads at AA on both themes (white on it did not). */
.msg-tag { color: #0c1514; }

/* Reduced motion: the menu icon changes without moving. */
@media (prefers-reduced-motion: reduce) {
  .nav-bars, .nav-bars::before, .nav-bars::after { transition: none !important; }
}
.multiples.one { grid-template-columns: minmax(0, 1fr); }

/* Selects draw their own chevron so they can be 44px tall in Safari, which ignores the height of a native menu list. */
.ctl { position: relative; }
.ctl select { -webkit-appearance: none; appearance: none; padding-right: 32px; }
.ctl::after { content: ""; position: absolute; right: 10px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background-color: var(--fg-muted); -webkit-mask: url("/assets/icons/lucide/chevron-down.svg") center / contain no-repeat; mask: url("/assets/icons/lucide/chevron-down.svg") center / contain no-repeat; pointer-events: none; }
@media (max-width: 720px), (pointer: coarse) {
  .ctl select { height: var(--tap); }
  .site-footer nav a, .foot-legal a { min-width: var(--tap); justify-content: center; }
  .chart-link a, .more-link a { display: inline-flex; align-items: center; min-height: var(--tap); }
  .doc-table td > a:only-child { display: inline-flex; align-items: center; min-height: var(--tap); }
}
@media (max-width: 600px) { code { font-size: max(12px, 0.88em); } }
/* A status line with a pulse dot: the dot sits beside the first line, not halfway down a wrapped sentence. */
.cmp-na, .running-state { align-items: flex-start; }
.cmp-na .pulse, .running-state .pulse { flex: none; margin-top: 0.55em; }
/* Footer: the copyright line sits on the same centre line as the links beside it; the nav links read left-aligned. */
.foot-legal { align-items: center; }
.foot-legal > span { display: inline-flex; align-items: center; min-height: var(--tap); }
.site-footer nav a { justify-content: flex-start; }

/* Vitals watch screen: label, value and a direction mark per row, sized to the face */
.fs-vitals { gap: 3%; align-content: center; }
.fv-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 0.9em; align-items: baseline; gap: 0 3%; width: 96%; margin: 0; font-size: 5.4cqi; line-height: 1.2; text-align: left; white-space: nowrap; }
.fv-lab { color: #a3a6ae; overflow: hidden; text-overflow: ellipsis; }
.fv-val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.fv-dir { text-align: center; font-size: 0.9em; color: #a3a6ae; }
.fv-in { color: #34d399; font-size: 0.6em; }
.fv-off { color: #fbbf24; }
.fs-vitals .fs-foot { font-size: 4.2cqi; white-space: nowrap; }
