/* ==================================================================
   cctv-ai.app · BENCH
   A test bench for security cameras. Every reading carries its
   calibration date. Volt means ON only: a yes, a hop that can read
   your video, the key reading, a live check date, the one button that
   leaves, the corner ticks. Labels, links and numbering stay neutral.
   Replaces styles.css + article.css. Dark only. Two font files.
   ================================================================== */

/* ---------- 0. Fonts (self-hosted) ---------- */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-vf-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  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";
  src: url("/assets/fonts/plexmono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  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;
}

/* ---------- 1. Tokens ---------- */

:root {
  color-scheme: dark;

  /* Field and surfaces (neutral ink, a hair cool) */
  --ink:    #0B0C0B;   /* page field */
  --ink-1:  #121412;   /* raised: cards, verdicts */
  --ink-2:  #191C19;   /* raised 2: table head, hover */
  --line:   #2A2E29;   /* hairlines (decorative) */
  --line-2: #41463F;   /* stronger hairline (decorative) */

  /* Text. Contrast on --ink: fg 17.5, body 12.7, fg-2 9.2, fg-3 6.1 */
  --fg:      #F1F3EC;
  --fg-body: #CDD2C6;
  --fg-2:    #AEB4A8;
  --fg-3:    #8B9186;

  /* The one accent. 17.4:1 on ink; ink on volt 17.4:1 */
  --volt:     #E2FF4F;
  --on-volt:  #0B0C0B;

  /* "Ours" marking: hatch, never volt */
  --hatch: repeating-linear-gradient(-45deg, rgba(241, 243, 236, .085) 0 1px, transparent 1px 7px);
  --hatch-lo: repeating-linear-gradient(-45deg, rgba(241, 243, 236, .05) 0 1px, transparent 1px 7px);  /* large areas */

  /* Type */
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Space (4-pt base) */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;   --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;
  --section: clamp(5rem, 9vw, 9rem);

  /* Grid: one rail + one text column + wide modules, on every page */
  --max: 80rem;                                  /* 1280 */
  --gutter: clamp(1.25rem, 5vw, 4rem);           /* 20 → 64 */
  --rail: 14.5rem;                               /* 232 */
  --gap: clamp(1.5rem, 4vw, 4rem);               /* 24 → 64 */
  --text: 45rem;                                 /* 720 */
  --mast-h: 3.5rem;                              /* 56 */

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms;
  --t: 240ms;
}

/* ---------- 2. Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--mast-h) + var(--sp-5));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg-body);
  font-family: var(--f-sans);
  font-size: 1.0625rem;          /* 17 */
  line-height: 1.62;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (min-width: 64rem) { body { font-size: 1.125rem; } }   /* 18 */

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

strong { color: var(--fg); font-weight: 650; }
small { font-size: inherit; }
p, li, dd, figcaption { text-wrap: pretty; }
time { white-space: nowrap; }

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
}
a:hover { text-decoration-color: var(--volt); }

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 0;
}

::selection { background: var(--volt); color: var(--on-volt); }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -4rem;
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--volt);
  color: var(--on-volt);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-3); }

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- 3. Primitives ---------- */

/* Label: the instrument voice (mono, caps). Optional LED square. */
.label, .ledger, .kicker, .article-kicker, .hub-tag, .flow-label, .arch-eg,
caption, .toc h2 {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;              /* 12 */
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.ledger, .kicker, .article-kicker {
  display: inline-flex;
  align-items: flex-start;
  gap: .625rem;
}
.ledger::before, .kicker::before, .article-kicker::before {
  content: "";
  width: .5rem;
  height: .5rem;
  flex: none;
  margin-top: .27em;
  background: var(--fg-3);
}

/* Calibration tag: every check date looks like this */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .625rem;
  border: 1px solid var(--line-2);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--fg-2);
}
.stamp::before {
  content: "";
  width: .4375rem;
  height: .4375rem;
  background: var(--volt);
}
.stamp time { color: var(--fg); }

/* Ownership byline: the hatch swatch is the legend for every "ours" mark */
.byline {
  position: relative;
  padding: var(--sp-4) 0 var(--sp-4) 2.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;            /* 15 */
  line-height: 1.55;
  color: var(--fg-2);
  max-width: var(--text);
}
.byline::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--sp-4) + .2em);
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--fg-3);
  background: var(--hatch), var(--ink-1);
}
.byline strong { color: var(--fg); font-weight: 600; }

/* Buttons: one filled volt button per screen. Ghost for the rest. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 3rem;
  padding: .75rem 1.375rem;
  border: 1px solid var(--volt);
  background: var(--volt);
  color: var(--on-volt);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: .005em;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn::after {
  content: "";
  width: .5625rem;
  height: .5625rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: .125rem;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--fg); border-color: var(--fg); }
.btn:hover::after { transform: translateX(3px) rotate(45deg); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 3.5rem; padding: 1rem 1.75rem; font-size: 1.0625rem; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--ghost:hover { background: transparent; color: var(--fg); border-color: var(--volt); }
.btn--sm { min-height: 2.25rem; padding: .375rem .875rem; font-size: .875rem; }
.btn--sm::after { width: .4375rem; height: .4375rem; }

/* Viewfinder ticks (from the social cards). Put .ticks on a positioned box. */
.ticks { position: relative; }
.ticks::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  --tk: var(--tick-size, 1.75rem);
  --w: var(--tick-weight, 2px);
  --c: var(--tick-color, var(--volt));
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--tk) var(--w),
    linear-gradient(var(--c), var(--c)) left top / var(--w) var(--tk),
    linear-gradient(var(--c), var(--c)) right top / var(--tk) var(--w),
    linear-gradient(var(--c), var(--c)) right top / var(--w) var(--tk),
    linear-gradient(var(--c), var(--c)) left bottom / var(--tk) var(--w),
    linear-gradient(var(--c), var(--c)) left bottom / var(--w) var(--tk),
    linear-gradient(var(--c), var(--c)) right bottom / var(--tk) var(--w),
    linear-gradient(var(--c), var(--c)) right bottom / var(--w) var(--tk);
  background-repeat: no-repeat;
}

/* ---------- 4. Masthead ---------- */

.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 11, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.mast__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--mast-h);
}
.mast__brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  margin-right: auto;
  color: var(--fg);
  text-decoration: none;
}
.mast__mark { width: 1.125rem; height: 1.125rem; flex: none; color: var(--fg); }
.mast__name {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: .01em;
}
.mast__sub {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-left: .625rem;
  border-left: 1px solid var(--line-2);
}
.mast__nav { display: flex; gap: var(--sp-5); }
.mast__nav a {
  position: relative;
  padding: 1rem 0;
  line-height: 1.5rem;
  color: var(--fg-2);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
}
.mast__nav a:hover, .mast__nav a[aria-current] { color: var(--fg); }
.mast__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .6rem;
  height: 2px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.mast__nav a:hover::after, .mast__nav a[aria-current]::after { transform: scaleX(1); }
.mast__nav--hide-sm { display: none; }
@media (min-width: 48rem) { .mast__nav--hide-sm { display: flex; } .mast__cta { display: none; } }
@media (max-width: 26rem) {
  .mast__sub { display: none; }
  .mast__nav { gap: var(--sp-4); }
  .mast__nav a { font-size: .875rem; }
}

/* ---------- 5. Display type ---------- */

h1, h2, h3 { color: var(--fg); text-wrap: balance; }
h1 { font-weight: 800; letter-spacing: -.022em; }
h2 { font-weight: 800; letter-spacing: -.016em; }
h3 { font-weight: 700; letter-spacing: -.004em; }

/* ---------- 6. Hub page: hero ---------- */

.hero { padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-inner {
  --tick-size: clamp(1.25rem, 2.4vw, 2rem);
  padding: clamp(1.75rem, 4.5vw, 4rem) clamp(1.25rem, 4.5vw, 4rem);
}
.hero h1 {
  margin-top: var(--sp-5);
  font-stretch: 70%;
  font-size: clamp(3rem, 1.2rem + 7.6vw, 8.5rem);
  line-height: .9;
  letter-spacing: -.024em;
  max-width: 13.5em;
}
.hero .lead {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(1.1875rem, 1rem + .55vw, 1.4375rem);
  line-height: 1.45;
  color: var(--fg-2);
  max-width: 34rem;
}
.hero .byline { margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 34rem; }
/* First-screen next step: the comparison is the one volt button; the
   RECAM link is ours, so it carries the hatch swatch, never volt. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-6);
  margin-top: var(--sp-4);
}
.ours-link {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding-block: .625rem;          /* 44 px tap target */
  color: var(--fg);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--fg-3);
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  transition: text-decoration-color var(--t-fast) var(--ease);
}
.ours-link::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--fg-3);
  background: var(--hatch), var(--ink-1);
}
.ours-link:hover { text-decoration-color: var(--fg); }
.mono-strip {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-2);
  line-height: 2;
}
.mono-strip > span:not(.dot) { white-space: nowrap; }
.mono-strip .dot {
  display: inline-block;
  width: .375rem;
  height: .375rem;
  margin: 0 .75rem .12em;
  background: var(--fg-3);
  font-size: 0;
  vertical-align: middle;
}
@media (min-width: 64rem) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--gap);
    align-items: end;
  }
  .hero-inner > .kicker, .hero h1, .hero-actions, .mono-strip { grid-column: 1 / -1; justify-self: start; }
  .hero-actions { margin-top: var(--sp-6); }
  .hero .lead { grid-column: 1; }
  .hero .byline { grid-column: 2; margin-top: 0; }
}

/* ---------- 7. Hub page: sections ---------- */

main > section:not(.hero) { padding-bottom: var(--section); }
.rule {
  height: 1px;
  background: var(--line);
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
  transform-origin: left center;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 {
  margin-top: var(--sp-4);
  font-stretch: 76%;
  font-size: clamp(2.25rem, 1.1rem + 3.9vw, 4.5rem);
  line-height: .95;
  max-width: 15em;
}
.section-intro {
  margin-top: var(--sp-5);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 40rem;
}
@media (min-width: 64rem) {
  .section-head {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: var(--gap);
  }
  .section-head .ledger { grid-row: 1 / span 2; align-self: start; margin-top: .6rem; }
  .section-head h2 { margin-top: 0; grid-column: 2; }
  .section-intro { grid-column: 2; }
  .container--text > :not(.section-head) {
    margin-left: calc(var(--rail) + var(--gap));
    max-width: var(--text);
  }
}

.hub-more { margin-top: var(--sp-6); }
.hub-more a, .text-link {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  color: var(--fg);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid var(--fg-3);
  padding-bottom: .125rem;
}
.hub-more a::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border-top: 2px solid var(--fg);
  border-right: 2px solid var(--fg);
  transform: rotate(45deg) translateY(-.1em);
  transition: transform var(--t-fast) var(--ease);
}
.hub-more a:hover::after { transform: translateX(3px) rotate(45deg) translateY(-.1em); }

/* ---------- 8. Hub cards: four readouts ---------- */

.hub-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  counter-reset: hub;
}
@media (min-width: 48rem) { .hub-grid { grid-template-columns: 1fr 1fr; } }

.hub-card {
  --tick-size: 1rem;
  --tick-color: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  background: var(--ink);
  counter-increment: hub;
  transition: background-color var(--t) var(--ease);
}
.hub-card::before { transition: opacity var(--t) var(--ease); }
.hub-card:hover { background: var(--ink-1); --tick-color: var(--volt); }
.hub-tag { display: flex; align-items: center; gap: .75rem; }
.hub-tag::before { content: counter(hub, decimal-leading-zero); color: var(--fg-3); }
.hub-tag::after {
  content: "";
  margin-left: auto;
  width: .625rem;
  height: .625rem;
  border-top: 2px solid var(--fg-3);
  border-right: 2px solid var(--fg-3);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.hub-card:hover .hub-tag::after { border-color: var(--volt); transform: translate(2px, -2px); }

.hub-token {
  margin: clamp(1.75rem, 3.5vw, 3rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(4.75rem, 2.4rem + 7vw, 9.5rem);
  line-height: .8;
  letter-spacing: -.035em;
  color: var(--volt);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.hub-token span {
  font-size: .34em;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: 0;
  color: var(--fg-2);
  margin-left: .12em;
}
.hub-card h3 {
  font-size: clamp(1.25rem, 1.05rem + .55vw, 1.5625rem);
  line-height: 1.22;
  max-width: 26em;
}
.hub-link { color: var(--fg); text-decoration: none; }
.hub-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hub-card:hover .hub-link { text-decoration: underline; text-decoration-color: var(--volt); text-underline-offset: .2em; }
.hub-link:focus-visible { outline: none; }
.hub-link:focus-visible::after { outline: 2px solid var(--volt); outline-offset: -2px; }
.hub-fact {
  margin-top: var(--sp-3);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg-body);
  max-width: 36em;
}
.hub-source {
  margin-top: auto;
  padding-top: var(--sp-5);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--fg-3);
}
.hub-fact + .hub-source { margin-top: auto; }
.hub-card > .hub-fact { margin-bottom: var(--sp-2); }
.hub-source a { position: relative; z-index: 2; color: var(--fg-2); }

.hub-card--method, .hub-card--wide { grid-column: 1 / -1; }
@media (min-width: 48rem) {
  .hub-card--method, .hub-card--wide {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "token tag" "token title" "token fact";
    column-gap: clamp(2rem, 5vw, 4.5rem);
    align-content: center;
  }
  .hub-card--method .hub-token, .hub-card--wide .hub-token { grid-area: token; margin: 0; align-self: center; font-size: clamp(4rem, 2rem + 4vw, 6.5rem); }
  .hub-card--method .hub-tag, .hub-card--wide .hub-tag { grid-area: tag; margin-bottom: var(--sp-3); }
  .hub-card--method h3, .hub-card--wide h3 { grid-area: title; }
  .hub-card--method .hub-fact, .hub-card--wide .hub-fact { grid-area: fact; }
  .hub-card--wide { grid-template-areas: "token tag" "token title" "token fact" "token source"; }
  .hub-card--wide .hub-source { grid-area: source; }
}

/* ---------- 9. Architecture chooser ---------- */

.arch-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 64rem) { .arch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.arch {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ink);
}
.arch--us { background: var(--hatch), var(--ink); }
.arch h3 {
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem);
  line-height: 1;
  letter-spacing: -.012em;
}
.arch-eg { display: block; margin-top: var(--sp-3); color: var(--fg-3); letter-spacing: .08em; }
.arch p { font-size: 1rem; line-height: 1.6; }
.arch-fit {
  margin-top: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-2);
  display: grid;
  gap: var(--sp-4);
}
.arch-fit dt, .reqs--label dt {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.arch-fit dd { margin-top: .25rem; font-size: .9375rem; line-height: 1.5; color: var(--fg); }

/* ---------- 10. Definition rows (cost billing units, RECAM requirements) ---------- */

.reqs { border-top: 1px solid var(--line-2); }
.reqs > div {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 40rem) {
  .reqs > div { grid-template-columns: 11rem minmax(0, 1fr); gap: var(--sp-5); }
}
.reqs dt {
  font-weight: 800;
  font-stretch: 78%;
  font-size: 1.375rem;
  line-height: 1.15;
  color: var(--fg);
}
.bill-list dt { font-size: clamp(1.5rem, 1.2rem + .9vw, 1.875rem); line-height: 1.05; }
.reqs dd { font-size: 1rem; line-height: 1.6; }
.reqs dd a, .reqs dd { overflow-wrap: anywhere; }

/* ---------- 11. Our product (fenced with the hatch) ---------- */

/* The whole band is hatched: the same mark as the byline swatch, at low alpha */
main > section.recam-block {
  padding-top: clamp(4rem, 8vw, 7rem);
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
  background: var(--hatch-lo), var(--ink);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.recam-block > .rule { display: none; }
.recam-block + section > .rule { background: transparent; }
.price-line { font-size: 1.0625rem; line-height: 1.6; color: var(--fg-body); }
.price-line strong { display: block; font-size: 1.25rem; margin-bottom: .25rem; }
.note { margin-top: var(--sp-4); font-size: .9375rem; line-height: 1.6; color: var(--fg-2); }
.recam-reqs { margin-top: var(--sp-6); }

/* Product screenshot on the bench: hairline frame, neutral corner ticks
   (ours is marked, never lit), no device mock-up. */
.shot { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.shot__frame {
  --tick-size: 1rem;
  --tick-color: var(--fg-2);
  width: 100%;
  max-width: 16rem;
  padding: var(--sp-3);
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.shot__frame img { display: block; width: 100%; height: auto; }
.shot figcaption {
  margin-top: var(--sp-3);
  max-width: 22rem;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  line-height: 1.6;
  color: var(--fg-3);
}
@media (min-width: 40rem) {
  .shot { display: grid; grid-template-columns: 16rem minmax(0, 1fr); column-gap: var(--sp-6); align-items: end; }
  .shot figcaption { margin-top: 0; }
}

/* CTA cluster: recam.tv first, stores small */
.recam-cta, .cta-block {
  margin-top: clamp(2rem, 4vw, 3rem);
}
.cta-block {
  --tick-size: 1rem;
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--ink-1);
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid var(--line);
}
.cta-context {
  font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--fg);
  max-width: 30em;
  margin-bottom: var(--sp-5);
}
.caption, .cta-alt {
  margin-top: var(--sp-5);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--fg-3);
}
.install-direct, .cta-alt {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
/* One neutral text link to recam.tv/install, secondary to the volt button.
   No store badges: the link goes to recam.tv, not straight to a store. */
.install-link { margin-top: var(--sp-1); }
.install-link a {
  display: inline-block;
  padding-block: .625rem;          /* 44 px tap target without a box */
  color: var(--fg);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--fg-3);
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  transition: text-decoration-color var(--t-fast) var(--ease);
}
.install-link a:hover { text-decoration-color: var(--volt); }

/* ---------- 12. Honest limits ---------- */

.limits-list {
  list-style: none;
  padding: 0;
  counter-reset: lim;
  border-top: 1px solid var(--line-2);
}
.limits-list li {
  counter-increment: lim;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.375rem);
  line-height: 1.3;
  color: var(--fg);
}
.limits-list li::before {
  content: counter(lim, decimal-leading-zero);
  grid-row: 1 / span 2;
  padding-top: .3em;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--fg-3);
}
.limits-list .why {
  grid-column: 2;
  display: block;
  margin-top: var(--sp-2);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg-body);
}
.limits-close {
  margin-top: var(--sp-6);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.5;
  color: var(--fg-2);
}

/* ---------- 13. FAQ (details) ---------- */

@media (min-width: 64rem) {
  .faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
}
.faq-grid details, .faq-list details { border-top: 1px solid var(--line); }
.faq-col:last-child details:last-child, .faq-list details:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 64rem) { .faq-col details:last-child { border-bottom: 1px solid var(--line); } }
details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
}
details summary::-webkit-details-marker { display: none; }
details summary h3 {
  font-weight: 600;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.38;
  transition: color var(--t-fast) var(--ease);
}
details summary::after {
  content: "";
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: .05rem;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--fg), var(--fg)) center / .625rem 1.5px no-repeat,
    linear-gradient(var(--fg), var(--fg)) center / 1.5px .625rem no-repeat;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
details summary:hover::after { border-color: var(--volt); }
details[open] summary::after {
  border-color: var(--volt);
  background: linear-gradient(var(--on-volt), var(--on-volt)) center / .625rem 1.5px no-repeat, var(--volt);
}
details .answer { padding: 0 3rem var(--sp-5) 0; max-width: var(--text); }
details .answer p { font-size: 1rem; line-height: 1.62; }

/* ---------- 14. Final CTA (hub) ---------- */

.final-cta .container { --tick-size: 1.5rem; padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4.5vw, 4rem); }
.final-cta h2 {
  font-stretch: 72%;
  font-size: clamp(2.5rem, 1rem + 5.4vw, 6rem);
  line-height: .92;
  max-width: 12em;
}
.final-cta .lead {
  margin-top: var(--sp-5);
  font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 36rem;
}
.final-actions { margin-top: var(--sp-6); }

/* ---------- 15. Footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) 0 var(--sp-6);
  font-size: .9375rem;
}
.foot__lede {
  max-width: 30rem;
  margin-top: var(--sp-4);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--fg-2);
}
.foot__grid { display: grid; gap: var(--sp-6) var(--gap); }
@media (min-width: 40rem) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .foot__grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.foot__brand { display: flex; align-items: center; gap: .625rem; color: var(--fg); font-family: var(--f-mono); font-weight: 500; font-size: .9375rem; }
.foot__brand svg { width: 1.125rem; height: 1.125rem; }
.foot__about { grid-column: 1 / -1; }
@media (min-width: 64rem) { .foot__about { grid-column: auto; } }
.foot h2 {
  margin-bottom: var(--sp-4);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.foot ul { list-style: none; padding: 0; display: grid; gap: .625rem; }
.foot a { color: var(--fg-2); text-decoration: none; }
.foot a:hover, .foot a[aria-current] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--volt); }
.foot__base {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--fg-3);
}
.foot__base a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); }

/* ---------- 16. Article layout: rail (TOC) + text column + wide modules ---------- */

.article { padding: clamp(2.5rem, 5vw, 4.5rem) 0 var(--section); }
.article-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.article-head h1 {
  margin-top: var(--sp-5);
  font-stretch: 74%;
  font-size: clamp(2.5rem, 1.1rem + 4.6vw, 5.25rem);
  line-height: .94;
  max-width: 15em;
}
.article-head .byline { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.article-head .stamp { margin-top: var(--sp-4); }
.article-dek {
  margin-top: var(--sp-6);
  font-size: clamp(1.1875rem, 1rem + .55vw, 1.4375rem);
  line-height: 1.5;
  color: var(--fg);
  max-width: var(--text);
}

/* TOC: numbered index; numbers match the section numbers */
.toc {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
}
.toc h2 { margin-bottom: var(--sp-4); color: var(--fg-3); }
.toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
  display: grid;
  gap: .125rem var(--sp-5);
}
@media (min-width: 30rem) { .toc ol { grid-template-columns: 1fr 1fr; } }
.toc li { counter-increment: toc; }
.toc a {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  padding: .3125rem 0;
  font-size: .875rem;
  line-height: 1.35;
  color: var(--fg-2);
  text-decoration: none;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .6875rem;
  line-height: 1.75;
  color: var(--fg-3);
}
.toc a:hover { color: var(--fg); }
.toc a:hover::before { color: var(--volt); }

@media (min-width: 70rem) {
  .article {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: var(--gap);
    align-items: start;
  }
  .article-head { grid-column: 1 / -1; }
  .article-head > * { margin-left: calc(var(--rail) + var(--gap)); }
  .article-head > .article-kicker { margin-left: 0; }
  .article-head h1 { margin-left: 0; }
  .toc {
    grid-column: 1;
    grid-row: 2 / span 40;
    position: sticky;
    top: calc(var(--mast-h) + var(--sp-5));
    margin: 0;
    padding: 0;
    border: 0;
    max-height: calc(100vh - var(--mast-h) - var(--sp-6));
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .toc h2 { padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line-2); }
  .toc ol { grid-template-columns: 1fr; }
  .article > .art-section { grid-column: 2; }
}

/* Sections: numbered like the TOC */
.article { counter-reset: sec; }
.art-section {
  counter-increment: sec;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.art-section:first-of-type { margin-top: 0; }
.art-section > * { max-width: var(--text); }
.art-section > .table-wrap, .art-section > .flow, .art-section > .verdict-grid,
.art-section > .feature-list, .art-section > .cta-block, .art-section > .table-note { max-width: none; }
.art-section > .table-note { max-width: var(--text); }

.art-section h2 {
  font-stretch: 80%;
  font-size: clamp(1.875rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.02;
  margin-bottom: var(--sp-5);
}
.art-section h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: var(--sp-4);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--fg-3);
}
.art-section h3 {
  margin: var(--sp-6) 0 var(--sp-3);
  font-size: 1.25rem;
  line-height: 1.3;
}
.art-section > p + p { margin-top: var(--sp-4); }
.art-section > p, .art-section > ul, .art-section > ol:not(.sources) { margin-top: var(--sp-4); }
.art-section > h2 + p { margin-top: 0; }
.art-section > h3 + p, .art-section > h3 + ul { margin-top: 0; }
.art-section ul:not([class]) { padding-left: 0; list-style: none; }
.art-section ul:not([class]) > li {
  position: relative;
  padding-left: 1.5rem;
  margin-top: var(--sp-3);
}
.art-section ul:not([class]) > li::before {
  content: "";
  position: absolute;
  left: .125rem;
  top: .62em;
  width: .4375rem;
  height: .4375rem;
  background: var(--fg-3);
}
.src {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .78em;
  letter-spacing: 0;
  color: var(--fg-3);
}
.src a { color: var(--fg-2); }

/* ---------- 17. Verdicts ---------- */

.verdict-grid {
  display: grid;
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 56rem) { .verdict-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.verdict {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--ink);
  border-top: 3px solid var(--fg);
}
.verdict--us { background: var(--hatch), var(--ink); border-top-color: var(--fg-3); }
.art-section .verdict__name {
  margin: 0 0 var(--sp-5);
  font-weight: 800;
  font-stretch: 72%;
  font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem);
  line-height: .95;
  letter-spacing: -.02em;
}
.verdict dl { display: grid; gap: var(--sp-2); }
.verdict dt {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.verdict dt::before {
  content: "";
  width: .5625rem;
  height: .5625rem;
  border: 1.5px solid var(--volt);
  background: var(--volt);
}
.verdict dt:nth-of-type(2) { margin-top: var(--sp-4); }
.verdict dt:nth-of-type(2)::before { background: transparent; border-color: var(--fg-3); }
.verdict dd { font-size: .9688rem; line-height: 1.55; color: var(--fg-body); }

/* ---------- 18. Flow diagram: where the video goes ---------- */

.flow {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line-2);
}
.flow-row {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
}
.flow-label { color: var(--fg); }
.flow-steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.flow-node {
  position: relative;
  padding: .75rem .875rem;
  border: 1px solid var(--line-2);
  background: var(--ink-1);
  font-weight: 650;
  font-size: .9375rem;
  line-height: 1.3;
  color: var(--fg);
}
.flow-sub {
  display: block;
  margin-top: .25rem;
  font-weight: 400;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--fg-2);
}
.flow-node--hot { background: var(--volt); border-color: var(--volt); color: var(--on-volt); }
.flow-node--hot .flow-sub { color: rgba(11, 12, 11, .78); }
/* connectors: vertical on phones */
.flow-node + .flow-node::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: -1.25rem;
  width: 1px;
  height: 1.25rem;
  background: var(--fg-3);
}
.flow-node + .flow-node::after {
  content: "";
  position: absolute;
  left: calc(1.25rem - 3.5px);
  top: -6px;
  border: 4px solid transparent;
  border-top: 5px solid var(--fg-3);
  border-bottom: 0;
}
@media (min-width: 46rem) {
  .flow-row { grid-template-columns: 11rem minmax(0, 1fr); align-items: center; column-gap: var(--sp-5); }
  .flow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem; align-items: stretch; }
  .flow-node + .flow-node::before { left: -2.25rem; top: 50%; width: 2.25rem; height: 1px; }
  .flow-node + .flow-node::after { left: -6px; top: calc(50% - 3.5px); border: 4px solid transparent; border-left: 5px solid var(--fg-3); border-right: 0; }
}
.flow figcaption {
  padding-top: var(--sp-4);
  font-size: .875rem;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: var(--text);
}

/* ---------- 19. Callout ---------- */

.callout {
  position: relative;
  margin-top: var(--sp-6);
  padding: var(--sp-5) var(--sp-5) var(--sp-5) calc(var(--sp-5) + 3px);
  background: var(--ink-1);
  border-left: 3px solid var(--fg);
}
.callout p { font-size: 1rem; line-height: 1.6; }
.callout p + p { margin-top: var(--sp-3); }

/* ---------- 20. Feature list: the 16 switched off ---------- */

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: var(--sp-5);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  counter-reset: feat;
}
.art-section .feature-list + p { margin-top: var(--sp-5); }
.feature-list li {
  counter-increment: feat;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: var(--ink);
  font-size: .9375rem;
  line-height: 1.3;
  color: var(--fg);
}
.feature-list li::before {
  content: counter(feat, decimal-leading-zero);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .6875rem;
  color: var(--fg-3);
}
.feature-list li::after {
  content: "";
  width: .5625rem;
  height: .5625rem;
  border: 1.5px solid var(--fg-3);
}

/* ---------- 21. Data tables ---------- */

.table-wrap {
  position: relative;
  margin-top: var(--sp-5);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  /* scroll cue: edge glow appears only where content is cut */
  background:
    linear-gradient(to right, var(--ink) 40%, rgba(11, 12, 11, 0)) left / 2.5rem 100% no-repeat local,
    linear-gradient(to left, var(--ink) 40%, rgba(11, 12, 11, 0)) right / 2.5rem 100% no-repeat local,
    linear-gradient(to left, rgba(241, 243, 236, .16), rgba(241, 243, 236, 0)) right / .875rem 100% no-repeat scroll;
}
.data-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: separate;
  border-spacing: 0;
  font-stretch: 94%;
  font-size: .9375rem;
  line-height: 1.45;
}
.data-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: var(--sp-3);
  color: var(--fg-3);
}
.data-table thead th {
  position: sticky;
  top: var(--mast-h);
  z-index: 2;
  padding: .875rem 1rem;
  background: var(--ink-2);
  border-bottom: 2px solid var(--fg);
  text-align: left;
  vertical-align: bottom;
  font-weight: 650;
  font-stretch: 88%;
  font-size: .8125rem;
  line-height: 1.3;
  color: var(--fg);
}
.data-table tbody th, .data-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  transition: background-color var(--t-fast) var(--ease);
}
.data-table tbody th { width: 17%; font-weight: 700; color: var(--fg); }
.data-table tbody td { color: var(--fg-body); }
.data-table tbody tr:hover > * { background-color: var(--ink-1); }

/* The publisher's own column or row: marked, never lit */
.data-table .col-us { background-image: var(--hatch); }
.data-table thead th.col-us { background: var(--hatch), var(--ink-2); }
.data-table td.col-us { box-shadow: inset 1px 0 var(--line-2), inset -1px 0 var(--line-2); }
.data-table tr.col-us > * { background-image: var(--hatch); }
.data-table tr.col-us > th { box-shadow: inset 3px 0 var(--fg-3); }

/* Marks: shape carries meaning, volt means yes/on */
.mark--yes, .mark--part, .mark--no { color: var(--fg); font-weight: 650; }
.mark--yes::before, .mark--part::before, .mark--no::before {
  content: "";
  display: inline-block;
  width: .68em;
  height: .68em;
  margin-right: .45em;
  border: 1.5px solid var(--fg-3);
  vertical-align: -.04em;
}
.mark--na { color: var(--fg-3); }
.mark--na::before {
  content: "";
  display: inline-block;
  width: .68em;
  height: .68em;
  margin-right: .45em;
  border: 1.5px dashed var(--line-2);
  vertical-align: -.04em;
}
.mark--yes::before { border-color: var(--volt); background: var(--volt); }
.mark--part::before { border-color: var(--volt); background: linear-gradient(90deg, var(--volt) 50%, transparent 50%); }

.cell-src {
  display: block;
  margin-top: .625rem;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--fg-3);
}
.cell-src a { color: var(--fg-2); }
.table-note {
  margin-top: var(--sp-4);
  font-size: .875rem;
  line-height: 1.55;
  color: var(--fg-2);
}

/* phones/tablets: the table scrolls, the row header stays */
@media (max-width: 69.99rem) {
  .data-table thead th { position: static; }
  .data-table caption { max-width: calc(100vw - 2 * var(--gutter)); }
  .data-table tbody th, .data-table thead th:first-child {
    position: sticky;
    left: 0;
    width: 8.5rem;
    min-width: 8.5rem;
    background-color: var(--ink);
    box-shadow: inset -1px 0 var(--line-2);
  }
  .data-table thead th:first-child { position: sticky; top: auto; z-index: 3; background-color: var(--ink-2); }
  .data-table tr.col-us > th { box-shadow: inset 3px 0 var(--fg-3), inset -1px 0 var(--line-2); }
}
@media (max-width: 47.99rem) {
  .data-table { min-width: 42rem; font-size: .875rem; }
  .data-table tbody th, .data-table thead th:first-child { width: 7.25rem; min-width: 7.25rem; }
  .data-table tbody th, .data-table tbody td { padding: .875rem .75rem; }
  .data-table thead th { padding: .75rem; }
}
/* Narrow screens: a wide matrix becomes one card per row, every value
   labelled from data-label. The markup carries explicit table roles so
   display: block doesn't strip the table semantics (Safari/VoiceOver). */
@media (max-width: 44.99rem) {
  .table-wrap--cards { overflow: visible; background: none; }
  .data-table--cards, .data-table--cards caption, .data-table--cards tbody,
  .data-table--cards tr, .data-table--cards th, .data-table--cards td { display: block; }
  .data-table--cards { min-width: 0; }
  .data-table--cards caption { max-width: none; }
  /* column headers stay in the accessibility tree, off screen */
  .data-table--cards thead {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .data-table--cards tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--sp-3);
    margin-top: var(--sp-3);
    padding: 0 var(--sp-4) var(--sp-4);
    border: 1px solid var(--line-2);
    background-color: var(--ink);
  }
  .data-table--cards tbody tr:hover > * { background-color: transparent; }
  .data-table--cards tbody th {
    grid-column: 1 / -1;
    position: static;
    width: auto;
    min-width: 0;
    margin: 0 calc(-1 * var(--sp-4)) var(--sp-1);
    padding: var(--sp-4);
    border-bottom: 1px solid var(--line);
    background-color: transparent;
    box-shadow: none;
    font-size: .9375rem;
  }
  .data-table--cards tbody td {
    padding: var(--sp-3) 0 0;
    border-bottom: 0;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
  }
  .data-table--cards td::before {
    content: attr(data-label);
    content: attr(data-label) / "";   /* visual only: the column header is announced */
    display: block;
    margin-bottom: .125rem;
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: .75rem;
    line-height: 1.4;
    color: var(--fg-3);
  }
  .data-table--cards tr.col-us { box-shadow: inset 3px 0 var(--fg-3); background-image: var(--hatch); }
  .data-table--cards tr.col-us > * { background-image: none; }
  .data-table--cards tr.col-us > th { box-shadow: none; }
}
/* desktop: the table fits, so the header sticks to the page */
@media (min-width: 70rem) {
  .table-wrap { overflow: visible; background: none; }
  .data-table { min-width: 0; }
}

/* ---------- 22. Sources ---------- */

.sources {
  list-style: none;
  padding: 0;
  margin-top: var(--sp-5);
  counter-reset: src;
  border-top: 1px solid var(--line-2);
}
.sources li {
  counter-increment: src;
  position: relative;
  padding: var(--sp-4) 0 var(--sp-4) 2.75rem;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  line-height: 1.55;
}
.sources li::before {
  content: "[" counter(src) "]";
  position: absolute;
  left: 0;
  top: calc(var(--sp-4) + .15em);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  color: var(--fg-3);
}
.sources li > a:first-child { font-weight: 600; }
.src-date {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  margin-top: .5rem;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--fg-2);
}
.src-date::before { content: ""; flex: none; width: .4375rem; height: .4375rem; background: var(--volt); }

/* Changelog (method page): same ruled rows as the sources, newest first */
.changelog {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line-2);
}
.changelog li {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  line-height: 1.55;
}
.changelog time {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .75rem;
  color: var(--fg-2);
}
@media (min-width: 40rem) {
  .changelog li { grid-template-columns: 7.5rem 1fr; gap: var(--sp-5); }
  .changelog time { padding-top: .2em; }
}

/* 404 */
.notfound {
  min-height: calc(100svh - 2 * var(--gutter));
  margin-block: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  text-align: center;
}
.notfound h1 {
  font-stretch: 74%;
  font-size: clamp(2.5rem, 1.1rem + 4.6vw, 5.25rem);
  line-height: .94;
}

/* ---------- 23. Motion (JS adds .js; reduced motion skips all of it) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(.75rem);
    transition: opacity 560ms var(--ease), transform 560ms var(--ease), background-color var(--t) var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0ms;
  }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .rule[data-io] { transform: scaleX(0); transition: transform 900ms var(--ease); }
  .js .rule.in { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 24. Forced colours + print ---------- */

@media (forced-colors: active) {
  .mark--yes::before, .verdict dt:first-of-type::before, .stamp::before, .src-date::before,
  .ledger::before, .kicker::before, .article-kicker::before { forced-color-adjust: none; background: CanvasText; border-color: CanvasText; }
  .mark--part::before { forced-color-adjust: none; border-color: CanvasText; background: linear-gradient(90deg, CanvasText 50%, Canvas 50%); }
  .flow-node--hot { border-width: 3px; }
}
@media print {
  :root {
    --ink: #fff; --ink-1: #fff; --ink-2: #f1f1f1; --line: #ccc; --line-2: #999;
    --fg: #000; --fg-body: #111; --fg-2: #333; --fg-3: #555;
    --volt: #000; --on-volt: #fff;
    --hatch: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 7px);
  }
  .mast, .toc, .cta-block, .recam-cta, .final-actions, .skip-link, .foot__grid { display: none; }
  .table-wrap { overflow: visible; background: none; }
  .data-table { min-width: 0; }
  .data-table thead th { position: static; }
  .art-section, .flow-row, .data-table tr { break-inside: avoid; }
}
