/* Spring, scientific variant (index2.html).
   The offer set as a printed technical report: a cover in one deep green
   field that carries the title and the contents, then numbered sections on
   cool paper-white with figures, rule-only tables, margin notes and
   references. Square corners, hairline and double rules, no shadows,
   no cards, no gradients. One colour: the green. */

/* Faces, hosted with the page (SIL Open Font License; texts in fonts/OFL-*.txt) */

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/courier-prime-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/courier-prime-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/courier-prime-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/courier-prime-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/libre-franklin-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/libre-franklin-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "STIX Two Text";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/stix-two-text-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "STIX Two Text";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/stix-two-text-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "STIX Two Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/stix-two-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "STIX Two Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/stix-two-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Colours (owner, 2026-11-22): the "Clinic" palette of the code review
   platform (../code-review-platform-design/tokens.css), so the site and the
   platform read as one family. The token names are the page's old ones:
   --green is now the platform's blue for text and small accents, and the
   --on-green tokens are the tones used on the dark cover. */
:root {
  /* stock and ink */
  --paper: #F4F7F9;
  --plate: #E6ECF0;
  --white: #FFFFFF;
  --ink: #14202B;
  --ink-2: #5B6873;
  --hair: #D3DCE3;

  /* the accent: the platform's lab blue. --accent is the exact blue, for
     fills (buttons, the headline highlight). --green is a shade deeper, for
     text and small marks, to stay readable on the cool white. */
  --accent: #2F6FDE;
  --accent-deep: #2459BD;
  --accent-soft: #DDE8FB;
  --accent-light: #6FA0F0;
  --green: #275FC4;
  --green-deep: #1E4FA8;

  /* the cover: a dark grey, a little lighter and less blue than the
     platform's slate (owner, 2026-11-22), and the tones used on it */
  --cover: #353E46;
  --slate: #14202B;
  --on-green: #FFFFFF;
  --on-green-soft: #C7CFD6;
  --on-green-rule: rgb(255 255 255 / 0.3);

  /* green keeps the platform's meaning: done, confirmed */
  --done: #1A6B4E;
  --done-soft: #DCF0E7;

  /* data and states */
  --bar-rest: #A9B5BF;
  --mark-bg: oklch(0.95 0.06 95);
  --mark-ink: oklch(0.36 0.07 80);
  --err: oklch(0.45 0.17 27);

  /* faces */
  --serif: "STIX Two Text", "STIX Two", "Times New Roman", Times, serif;
  --sans: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", Courier, monospace;
  --logo: "Source Sans 3", "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --gutter: 3rem;
  --col-num: 4.5rem;
  --col-main: 36rem;
  --page: 72rem;
  --col-gap: 2.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.25rem;
  scrollbar-color: var(--ink-2) var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-soft); color: var(--ink); }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--green-deep); text-decoration-thickness: 2px; }

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

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.i {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
}
.skip:focus, .skip:hover { top: 1rem; color: var(--paper); }

.strip {
  padding: 0.4rem 1rem;
  background: var(--ink);
  color: var(--on-green-soft);
  font-family: var(--sans);
  font-size: 0.75rem;
  text-align: center;
}

/* ---------- controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-paper, .btn-ink { border-color: var(--accent-deep); background: var(--accent); color: var(--white); }
.btn-paper:hover, .btn-ink:hover { background: var(--accent-deep); color: var(--white); }
.btn-ghost { border-color: var(--on-green-rule); color: var(--on-green); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--slate); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.8125rem; }

/* The Neumann Labs logo, as on the code review platform
   (../code-review-platform-design/logo/): the corner mark, a little taller
   than the capitals, and the name in Source Sans 3 semibold. Light blue mark
   and white name on the cover; blue mark and dark name on the page. */
.imprint {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  color: var(--on-green);
  font-family: var(--logo);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1;
  text-decoration: none;
}
.imprint-mark {
  flex: none;
  width: auto;
  height: 0.72em;
  height: 1.09cap;
  aspect-ratio: 176 / 177;
  fill: var(--accent-light);
}
.imprint-ink .imprint-mark { fill: var(--accent); }
.imprint:hover { color: var(--on-green); }
.imprint-ink, .imprint-ink:hover { color: var(--ink); }
.imprint-ink { font-size: 1.3125rem; }
/* descriptor beside the name: which part of Neumann Labs this is.
   Lighter and smaller than the name, after a thin rule, so the company name stays the logo. */
.imprint-desc {
  margin-left: 0.3em;
  padding-left: 0.55em;
  border-left: 1px solid var(--on-green-rule);
  color: var(--on-green-soft);
  font-size: 0.8em;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.15;
}
.imprint-ink .imprint-desc { border-left-color: var(--bar-rest); color: var(--ink-2); }

/* ---------- cover ---------- */

.cover {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2.5rem;
  min-height: 100svh;
  padding: 1.6rem max(var(--gutter), calc((100% - var(--page)) / 2)) 1.4rem;
  background: var(--cover);
  color: var(--on-green);
}
.cover :focus-visible { outline-color: var(--on-green); }

.cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px double var(--on-green-rule);
}

.cover-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: 0.5rem;
}

.cover h1 {
  font-size: clamp(2.2rem, 0.9rem + 3.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-variant-numeric: lining-nums;
}
.cover h1 > span { display: block; }
.cover h1 .inv {
  padding: 0 0.16em 0.04em;
  margin-inline: -0.04em;
  border-radius: 3px;
  background: var(--accent);
  white-space: nowrap;
  color: var(--white);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.cover-sum .inv { padding: 0.04em 0.3em 0.08em; border-radius: 3px; background: var(--accent); color: var(--white); font-weight: 500; white-space: nowrap; font-variant-numeric: lining-nums; }
.cover-sum {
  max-width: 34rem;
  margin-top: 1.75rem;
  color: var(--on-green-soft);
  font-size: 1.1875rem;
  line-height: 1.55;
}
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

.contents h2 {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--on-green-rule);
  color: var(--on-green-soft);
  font-size: 1.0625rem;
  font-weight: 500;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.contents ol { margin-top: 0.4rem; }
.contents a {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.48rem 0;
  color: var(--on-green);
  text-decoration: none;
}
.c-n { width: 1.1rem; color: var(--on-green-soft); font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.c-t { font-size: 1.1875rem; line-height: 1.3; }
.c-dots { flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 1px dotted var(--on-green-rule); transform: translateY(-0.28em); }
.c-x { color: var(--on-green-soft); font-family: var(--sans); font-size: 0.75rem; font-weight: 500; white-space: nowrap; font-variant-numeric: lining-nums; }
.contents a:hover .c-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.contents a:hover .c-dots { border-bottom-color: var(--on-green); }

.cover-foot {
  padding-top: 1rem;
  border-top: 1px solid var(--on-green-rule);
  color: var(--on-green-soft);
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
}

/* ---------- running head ---------- */

.running {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--col-gap);
  padding: 0.6rem max(var(--gutter), calc((100% - var(--page)) / 2));
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.running-nav { display: flex; align-items: center; gap: 0.15rem; min-width: 0; font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums; }
.running-nav a {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-bottom: 2px solid transparent;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.running-nav a:hover { color: var(--ink); border-bottom-color: var(--hair); }
.running-nav a[aria-current] { color: var(--green); border-bottom-color: var(--green); }
.running-title {
  margin-left: 0.9rem;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-style: italic;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- the paper ---------- */

.paper {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}

.sec {
  display: grid;
  grid-template-columns: var(--col-num) minmax(0, var(--col-main)) minmax(0, 1fr);
  column-gap: var(--col-gap);
  row-gap: 1.15rem;
  padding: 3.25rem 0 4rem;
  border-top: 3px double var(--ink);
}
.sec > * { grid-column: 2; }
.sec > .sec-n { grid-column: 1; align-self: baseline; }
.sec > h2 { align-self: baseline; }
.sec > .note { grid-column: 3; align-self: start; }
.sec > .wide { grid-column: 2 / 4; }

.sec-open { padding: 4.25rem 0 4rem; border-top: 0; }
.epigraph {
  grid-column: 2 / 4;
  max-width: 21em;
  color: var(--green);
  font-size: clamp(1.6rem, 1.05rem + 1.9vw, 2.6rem);
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.epigraph span { display: block; }
.after-epigraph { font-size: 1.1875rem; line-height: 1.55; }

.sec-n {
  color: var(--green);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.sec h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  font-variant-numeric: lining-nums;
}

.note {
  max-width: 21rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--plate);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.note b { color: var(--ink); }

.cite {
  font-size: 0.9em;
  text-decoration: none;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.xref { white-space: nowrap; }
.fig:target figcaption b, .tbl:target caption b { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.cite:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.cite::before { content: "["; }
.cite::after { content: "]"; }

.ph {
  padding: 0 0.3em;
  border-bottom: 1px dashed var(--mark-ink);
  background: var(--mark-bg);
  color: var(--mark-ink);
  font-family: var(--sans);
  font-size: max(0.82em, 0.75rem);
  font-weight: 500;
  white-space: nowrap;
}

ol.plain { display: grid; gap: 0.55rem; padding-left: 1.6rem; list-style: lower-roman; }
ol.plain li { padding-left: 0.35rem; }
ol.plain li::marker { color: var(--green); font-style: italic; }
ul.dash { display: grid; gap: 0.45rem; }
ul.dash li { display: grid; grid-template-columns: 1.6rem 1fr; }
ul.dash li::before { content: "\2013"; color: var(--green); }

/* ---------- figures ---------- */

.fig {
  margin: 0.6rem 0 0.4rem;
  padding: 1.25rem 0 1rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.fig figcaption {
  margin-top: 1.1rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
}
.fig figcaption b { color: var(--ink); }
.fig.wide figcaption { max-width: var(--col-main); }

/* Fig. 1: the ledger */

.tabs { display: flex; gap: 1.75rem; margin: -0.6rem 0 1rem; }
.seg {
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.seg:hover { color: var(--ink); border-bottom-color: var(--hair); }
.seg[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.panel {
  display: grid;
  grid-template-columns: minmax(0, var(--col-main)) minmax(0, 1fr);
  gap: 1rem var(--col-gap);
  align-items: start;
}
.ledger { padding: 1rem 1.25rem 0.9rem; background: var(--plate); }
.ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink);
}
.path { font-family: var(--mono); font-size: 0.9375rem; white-space: nowrap; }
.ledger-head .path { font-weight: 700; }
.ledger-status,
.st {
  color: var(--green);
  font-size: 1rem;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.07em;
  line-height: 1.2;
  white-space: nowrap;
}
.ledger ul { margin-top: 0.5rem; }
.row { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.3rem 0; }
.what { min-width: 0; color: var(--ink-2); font-size: 0.9rem; font-style: italic; line-height: 1.3; }
.what.to { color: var(--ink); font-family: var(--mono); font-size: 0.9375rem; font-style: normal; white-space: nowrap; }
.what.to::before { content: "\2192"; margin-right: 0.75rem; color: var(--ink-2); font-family: var(--serif); }
.what:empty { display: none; }
.dots {
  flex: 1 1 1.25rem;
  min-width: 1.25rem;
  border-bottom: 1px dotted var(--ink-2);
  transform: translateY(-0.28em);
  transform-origin: left center;
}
.st { display: inline-flex; align-items: center; gap: 0.3rem; }
.st::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fig-need {
  max-width: 21rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--ink);
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.5;
}
.fig-need b { color: var(--ink); }
.fig-need a { display: block; margin-top: 0.5rem; font-family: var(--sans); font-size: 0.875rem; font-weight: 600; }

/* the reading: set by script only when motion is allowed */
.ledger .dots { transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
.ledger .st, .ledger-status { transition: opacity 0.25s 0.3s; }
.ledger.is-pending .ledger-status { opacity: 0; transition: none; }
.ledger.is-pending .row:not(.is-read) .dots { transform: translateY(-0.28em) scaleX(0); transition: none; }
.ledger.is-pending .row:not(.is-read) .st { opacity: 0; transition: none; }

/* Fig. 2: bars */

.bar-list { display: grid; gap: 0.85rem; }
.bar-list li {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr) 3.4rem;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
}
.bar-name { color: var(--ink); font-size: 0.875rem; font-weight: 500; line-height: 1.25; }
.bar-name small { display: block; color: var(--ink-2); font-size: 0.75rem; font-weight: 400; }
.bar-track { display: block; height: 0.75rem; border-left: 1px solid var(--ink); }
.bar { display: block; width: calc(var(--v) * 1%); height: 100%; border: 1px solid var(--ink); border-left: 0; }
.is-lead .bar { border-color: var(--green); background: var(--green); }
.is-lead .bar-name { font-weight: 700; }
.bar-val { color: var(--ink); font-size: 0.9375rem; font-weight: 600; text-align: right; }

.bar-axis {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr) 3.4rem;
  gap: 0.8rem;
  margin-top: 0.6rem;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.bar-axis > * { grid-column: 2; }
.ticks { display: flex; justify-content: space-between; padding-top: 0.3rem; border-top: 1px solid var(--ink); }
.ticks span { position: relative; }
.ticks span::before { content: ""; position: absolute; top: -0.3rem; left: 0; width: 1px; height: 0.25rem; background: var(--ink); }
.ticks span:nth-child(2)::before { left: 50%; }
.ticks span:last-child::before { left: auto; right: 0; }
.bar-axis p { margin-top: -0.35rem; }

/* Fig. 3: the report specimen */

.spec-page { border: 1px solid var(--ink); background: var(--white); font-family: var(--sans); }
.spec-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.spec-list > li {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr) auto;
  gap: 0.7rem 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--hair);
}
.spec-list > li:first-child { border-top: 0; }
.sev { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 600; }
.sev::before { content: ""; width: 0.6rem; height: 0.6rem; border: 1px solid var(--ink); }
.sev-1::before { background: var(--ink); }
.sev-2::before { border-color: var(--ink-2); background: var(--ink-2); }
.sev-3::before { background: linear-gradient(var(--white) 50%, var(--ink) 50%); }
.sev-4::before { background: var(--white); }
.sk { display: block; width: var(--w, 100%); height: 0.42rem; background: var(--hair); }
.sk-path { height: 0.55rem; background: var(--ink-2); opacity: 0.5; }
.ok { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--done); font-family: var(--serif); font-size: 1rem; font-weight: 600; font-variant-caps: all-small-caps; letter-spacing: 0.07em; line-height: 1.2; white-space: nowrap; }
.ok .i { width: 0.8rem; height: 0.8rem; stroke-width: 3; }
.spec-detail { grid-column: 2 / -1; display: grid; gap: 0.75rem; padding: 0.15rem 0 0.3rem; }
.spec-detail div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.75rem; }
.spec-detail dt { font-size: 0.75rem; font-weight: 600; line-height: 1.2; }
.spec-detail dd { display: grid; gap: 0.4rem; padding-top: 0.22rem; }

/* ---------- tables: rules only ---------- */

.rules {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-variant-numeric: lining-nums;
}
.rules caption {
  padding-bottom: 0.7rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
}
.rules caption b { color: var(--ink); }
.rules thead th {
  padding: 0.65rem 1.25rem 0.6rem 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  vertical-align: bottom;
}
.rules tbody th,
.rules tbody td {
  padding: 0.8rem 1.25rem 0.8rem 0;
  border-top: 1px solid var(--hair);
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}
.rules tbody tr:first-child > * { border-top: 0; }
.rules tbody th { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; }
.rules .corner { padding: 0; }
.rules tr > :last-child { padding-right: 0; }

.t-claims td.big {
  width: 10.5rem;
  padding-top: 0.55rem;
  color: var(--green);
  font-size: 2.75rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.t-claims td:nth-child(2) { width: 46%; }
.t-claims td:nth-child(3) { color: var(--ink-2); }
.t-claims td:last-child { width: 4.5rem; }

/* Table 1, our own record: three columns (count, what it counts, how to read
   it), so the last column is not the narrow "source" column of Table 3.
   The confirmed count is green, as "done" is on the platform. */
.rules.t-claims.t-record td:nth-child(2) { color: var(--ink); }
.rules.t-claims.t-record td:last-child { width: auto; color: var(--ink-2); }
.rules.t-claims.t-record tbody tr:last-child td.big { color: var(--done); }
@media (min-width: 44.01rem) {
  .rules.t-claims.t-record td:nth-child(2) { width: 38%; }
}
@media (max-width: 44rem) {
  .rules.t-claims.t-record td:last-child { display: block; margin: 0.2rem 0 0; }
}
.t-compare tbody th { width: 19%; }
.t-compare tbody td { width: 40.5%; color: var(--ink-2); }
.t-compare thead .ours { color: var(--green); }
.t-compare tbody td.ours { color: var(--ink); font-weight: 500; }
.t-terms tbody th { width: 13rem; }
.t-price tbody td { text-align: right; white-space: nowrap; }

/* ---------- method ---------- */

.method { counter-reset: step; display: grid; gap: 1.5rem; margin-top: 0.4rem; }
.method[data-n="1"] { --n: "1"; }
.method[data-n="2"] { --n: "2"; }
.method[data-n="3"] { --n: "3"; }
.method[data-n="4"] { --n: "4"; }
.method[data-n="5"] { --n: "5"; }
.method[data-n="6"] { --n: "6"; }
.method[data-n="7"] { --n: "7"; }
.method[data-n="8"] { --n: "8"; }
.method[data-n="9"] { --n: "9"; }
.method li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); counter-increment: step; }
.method.partners li { grid-template-columns: 2rem minmax(0, 1fr); }
.method.partners li::before { content: counter(step, lower-alpha) "."; color: var(--green); font-style: italic; font-weight: 400; }
.method li::before {
  content: var(--n) "." counter(step);
  grid-row: 1 / 3;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: lining-nums;
}
.method h3 { font-size: 1.1875rem; line-height: 1.3; font-variant-numeric: lining-nums; }
.method p { margin-top: 0.2rem; }

/* ---------- occasions (section 1) ---------- */

.when { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.when > div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  column-gap: var(--col-gap);
  padding: 0.8rem 0;
  border-top: 1px solid var(--hair);
}
.when > div:first-child { border-top: 0; }
.when dt { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; line-height: 1.45; }
.when dd { max-width: var(--col-main); line-height: 1.45; }
.reasons { margin-bottom: 0.6rem; }
.first-step { margin-top: 0.6rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.first-step h3 { font-size: 1.1875rem; line-height: 1.3; }
/* a second topic inside one section (the early trial in section 2) */
.sec > h3.sub { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); font-size: 1.375rem; line-height: 1.25; }
.first-step > p { margin-top: 0.3rem; }
.cta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1rem; }
.cta-line span { color: var(--ink-2); font-size: 1rem; }
.findings h3 { text-wrap: pretty; }
.findings li:has(h3:only-child) h3 { grid-row: 1 / 3; }

/* ---------- request form ---------- */

.request {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.5rem;
  margin-top: 0.5rem;
}
.field { display: grid; gap: 0.4rem; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-wide { grid-column: 1 / -1; }
.field > label,
.field > legend { padding: 0; font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; }
.field > legend { margin-bottom: 0.55rem; }
fieldset.field { display: block; }
fieldset.field .err { margin-top: 0.5rem; }
.opt { margin-left: 0.3rem; color: var(--ink-2); font-weight: 400; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: lining-nums;
  caret-color: var(--green);
}
.field textarea { min-height: 5.5rem; resize: vertical; line-height: 1.5; }
.field input::placeholder { color: var(--ink-2); opacity: 1; font-style: italic; }
.field input[type="text"]:focus-visible,
.field input[type="email"]:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--err); outline: 1px solid var(--err); outline-offset: 0; }
.err { color: var(--err); font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; }

.check { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: 1.75rem; cursor: pointer; }
.check input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  cursor: pointer;
}
.check input::after {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  background: var(--on-green);
  transform: scale(0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check input:checked { border-color: var(--green); background: var(--green); }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]::after { width: 0.45rem; height: 0.45rem; border-radius: 50%; -webkit-mask: none; mask: none; }
.check input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
fieldset[aria-invalid="true"] .check input { border-color: var(--err); }
.check input:checked::after { transform: scale(1); }
.check input:hover { border-color: var(--green); }

.request .btn { justify-self: start; }
.form-status { margin-top: 0.9rem; color: var(--green); font-size: 1rem; }
.form-status:empty { display: none; }
.form-status.is-bad { color: var(--err); }
.request button[disabled] { opacity: 0.6; cursor: progress; }
.hp { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }

/* ---------- references ---------- */

.sec-refs { padding-bottom: 1rem; }
.sec-refs h2 { font-size: 1.25rem; }
.refs { counter-reset: ref; display: grid; gap: 0.6rem; font-size: 0.9375rem; line-height: 1.5; font-variant-numeric: lining-nums; }
.refs li { position: relative; padding-left: 2.25rem; counter-increment: ref; scroll-margin-top: 5rem; }
.refs li::before { content: "[" counter(ref) "]"; position: absolute; left: 0; top: 0.1em; color: var(--ink-2); font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; }
.refs li:target { background: var(--plate); }
.refs a { display: block; font-family: var(--mono); font-size: 0.875rem; overflow-wrap: anywhere; }
.colophon { color: var(--ink-2); font-family: var(--sans); font-size: 0.8125rem; line-height: 1.5; font-variant-numeric: lining-nums; }
.colophon b { color: var(--ink); }
.refs + .colophon { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 66rem) {
  :root { --col-num: 3.25rem; --gutter: 2rem; }
  .cover { min-height: 0; gap: 3rem; }
  .cover-main { grid-template-columns: 1fr; gap: 3rem; }
  .sec { grid-template-columns: var(--col-num) minmax(0, 1fr); }
  .sec > .note { grid-column: 2; max-width: var(--col-main); margin-block: 0.25rem; }
  .sec > .wide, .epigraph { grid-column: 2; }
  .panel { grid-template-columns: 1fr; }
  .fig-need { max-width: var(--col-main); }
  .running-title { display: none; }
}

@media (max-width: 44rem) {
  :root { --gutter: 1.25rem; }
  body { font-size: 1rem; }
  .cover { padding-top: 1.25rem; gap: 2.5rem; }
  .cover-sum { font-size: 1.0625rem; }
  .c-t { font-size: 1.0625rem; }
  .cover-actions .btn { width: 100%; }

  .cover-top .btn-ghost { display: none; }

  .running { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.5rem; padding-block: 0.5rem; }
  .running-nav a { display: none; }
  .running-title { display: block; margin-left: 0; font-size: 0.875rem; }
  .running .btn-sm { padding-inline: 0.6rem; }
  .running-title:not(:empty)::before { content: attr(data-n) "\2002"; color: var(--green); font-style: normal; font-weight: 600; font-variant-numeric: lining-nums; }
  .running:has(.running-title:not(:empty)) .imprint-ink { display: none; }
  .running:has(.running-title:not(:empty)) { grid-template-columns: minmax(0, 1fr) auto; }
  .running:has(.running-title:empty) .running-nav { display: none; }
  .running:has(.running-title:empty) { grid-template-columns: 1fr auto; }

  .sec { grid-template-columns: minmax(0, 1fr); padding: 2.5rem 0 3rem; }
  .sec > *, .sec > .sec-n, .sec > .note, .sec > .wide, .epigraph { grid-column: 1; }
  .sec-n { font-size: 2.25rem; }
  .sec-open { padding: 3rem 0 2.75rem; }

  .ledger { padding: 0.85rem 0.9rem 0.75rem; }
  .row { gap: 0.55rem; }
  .row:nth-child(4), .row:nth-child(5), .row:nth-child(6), .row:nth-child(8) { display: none; }
  .what { font-size: 0.8125rem; }

  .bar-list li { grid-template-columns: minmax(0, 1fr) 3.4rem; gap: 0.3rem 0.8rem; }
  .bar-name { grid-column: 1 / -1; }
  .bar-name small { display: inline; margin-left: 0.35rem; }
  .bar-axis { grid-template-columns: minmax(0, 1fr) 3.4rem; }
  .bar-axis > * { grid-column: 1; }

  .spec-list > li { grid-template-columns: 5.25rem minmax(0, 1fr); }
  .ok { display: none; }
  .spec-detail { grid-column: 1 / -1; }
  .spec-detail div { grid-template-columns: 1fr; gap: 0.3rem; }

  /* tables fold: each row becomes a short block */
  .t-claims thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .t-claims, .t-claims tbody, .t-claims tr, .t-claims td,
  .t-terms, .t-terms tbody, .t-terms tr, .t-terms th, .t-terms td { display: block; width: auto; }
  .t-claims caption, .t-terms caption { display: block; }
  .t-claims tr, .t-terms tr { padding: 0.8rem 0; border-top: 1px solid var(--hair); }
  .t-claims tr:first-child, .t-terms tr:first-child { border-top: 0; }
  .rules.t-claims tbody td, .rules.t-terms tbody th, .rules.t-terms tbody td { padding: 0; border: 0; width: auto; }
  .t-claims, .t-terms, .t-compare { border-top: 0; }
  .t-claims caption, .t-terms caption, .t-compare caption { margin-bottom: 0.4rem; border-bottom: 2px solid var(--ink); }
  .rules.t-claims tbody td.big { padding-bottom: 0.35rem; font-size: 2.4rem; }
  .t-claims td:nth-child(3) { display: inline; font-size: 0.9375rem; }
  .t-claims td:last-child { display: inline; margin-left: 0.3rem; }
  .t-terms tbody th { width: auto; margin-bottom: 0.15rem; }

  .t-compare, .t-compare thead, .t-compare tbody { display: block; }
  .t-compare caption { display: block; }
  .t-compare tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .t-compare .corner { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .t-compare thead th { padding-right: 0; }
  .t-compare tbody tr { border-top: 1px solid var(--hair); }
  .t-compare tbody tr:first-child { border-top: 0; }
  .t-compare tbody th { grid-column: 1 / -1; width: auto; padding: 0.8rem 0 0.15rem; border: 0; }
  .t-compare tbody td { width: auto; padding: 0.2rem 0 0.8rem; border: 0; font-size: 0.9375rem; }

  .when > div { grid-template-columns: 1fr; row-gap: 0.15rem; }

  .request { grid-template-columns: 1fr; }
  .request .btn { width: 100%; justify-self: stretch; }
}

@media print {
  .strip, .running, .tabs, .skip { display: none !important; }
  .cover { min-height: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .panel[hidden] { display: grid !important; margin-top: 1rem; }
  .ledger.is-pending .ledger-status,
  .ledger.is-pending .row:not(.is-read) .st { opacity: 1; }
  .ledger.is-pending .row:not(.is-read) .dots { transform: translateY(-0.28em); }
  .sec { break-inside: avoid-page; }
  .fig, .tbl { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
