/* ============================================================
   policyon · "Dossier"
   A cited document, not a landing page.

   Art direction:
   - Light-first. Dark is the AI category default, so paper is the
     differentiator, and paper is what a record is printed on.
   - Typographically led. A serif carries authority, a grotesque
     carries the argument, a mono carries the data.
   - No ornament. No glow, no mesh, no particles. Hairlines and
     whitespace do the structural work.
   - Evidence markers are real footnotes, numbered in document order.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Inter:wght@400;450;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- tokens: paper ---------- */
:root {
  --paper:     #FAFAF8;
  --paper-2:   #F3F2EF;
  --paper-3:   #EBE9E4;
  --ink:       #14161A;
  --ink-2:     #4B505A;
  --ink-3:     #7E838D;
  --rule:      #E3E1DC;
  --rule-2:    #CDCAC3;
  --accent:    #1B3A6B;
  --accent-2:  #2E5896;
  --verified:  #2C6A4C;
  --caution:   #8F6318;

  /* Sans for headings, serif for running text. The reverse of how this site began,
     and the arrangement the reference page uses. --font-display and --font-body keep
     their names: they describe the ROLE, and the role is what did not change. */
  /* Voice and interface, and the line between them: --font-body is what the site
     SAYS - headings, prose, pull quotes, the numbers in a stat. --font-display is
     what the reader OPERATES - the wordmark, the nav, buttons, inputs. Serif
     headings over sans body since 2026-08-31 (late), reversing the swap made
     earlier the same day; the owner picked the serif off a card heading. */
  --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --maxw: 1120px;
  --measure: 66ch;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- tokens: ink (the alternate, not the default) ---------- */
[data-theme="dark"] {
  --paper:     #101216;
  --paper-2:   #171A20;
  --paper-3:   #1E222A;
  --ink:       #ECEDEF;
  --ink-2:     #A4A9B3;
  --ink-3:     #767B86;
  --rule:      #262931;
  --rule-2:    #363A44;
  --accent:    #8FB3EA;
  --accent-2:  #A8C6F2;
  --verified:  #6FC593;
  --caution:   #D7A954;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* The masthead is sticky and 60px tall, so an anchor that lands at the top of the
   viewport lands UNDER it. Every deep link into a page comes from the map or a CTA,
   which makes this the normal way in, not the edge case. The embed override further
   down drops it back to 12px, because the pane has no masthead. */
html { scroll-padding-top: 74px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
  counter-reset: fn;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-body); font-weight: 400; line-height: 1.12; letter-spacing: -.012em; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }

/* Ambient layers from the previous direction are retired, deliberately:
   the ornament competed with the argument. */
.grid-bg, .aurora { display: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; }
.section { padding-block: clamp(64px, 9vw, 116px); }
.section + .section { border-top: 1px solid var(--rule); }
.measure { max-width: var(--measure); }
.stack-lg > * + * { margin-top: 40px; }
.stack-md > * + * { margin-top: 22px; }
.stack-sm > * + * { margin-top: 11px; }
.divider { height: 1px; background: var(--rule); margin-block: 30px; }

/* Chrome is not prose. Navigation, buttons, tags and eyebrows stay in the sans
   whichever way the two families are pointing, because they are controls and labels
   and a serif control reads as a mistake.

   .nav, .nav-links and .footer used to be in this list and are not any more
   (2026-09-01): navigation is the site speaking its own contents, not a control, and
   the footer is mostly prose and the same link list. They inherit the serif from body
   now. What is left here really is chrome - buttons, icon buttons, form fields - plus
   .tag/.eyebrow, which name a family here and then override it with the mono in their
   own rules. */
.btn, /* One control, two glyphs: the one SHOWING is the theme you would GET by clicking.
   The map has done this since it shipped (Independent.dc.html:379); the article
   pages carried a single static sun, which was already the wrong glyph in light
   theme and became wrong more often once dark can arrive from the OS. Stacked in
   one grid cell so the button does not resize as the glyph swaps. */
[data-theme-toggle] { display: grid; place-items: center; }
[data-theme-toggle] .ic-sun, [data-theme-toggle] .ic-moon { grid-area: 1 / 1; }
.ic-sun { display: none; }
.ic-moon { display: block; }
:root[data-theme="dark"] .ic-sun { display: block; }
:root[data-theme="dark"] .ic-moon { display: none; }

.icon-btn, .tag, .eyebrow, .audit,
input, button, select, textarea { font-family: var(--font-display); }

/* ---------- masthead ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 60px; }
/* WORDMARK  -  POLICY(origin)N
   origin stands in for the O. The real letter is kept in the DOM but hidden, so it
   supplies the advance and the word still reads and copies as "policyon"; the mark is
   pulled onto it with negative margins.
   The margins are derived from the capital O's advance (.8080em), the mark's size
   (.8970em) and the tracking (.30em):
       margin-left  = -(advance + size)/2 - tracking
       margin-right = -size - margin-left
   CHANGE THE TRACKING AND BOTH MARGINS MUST BE RECOMPUTED.
   Canonical drawing of origin: logos.html mark 01. */
.brand {
  /* inline-BLOCK, not inline-flex: the mark is positioned with vertical-align, and
     vertical-align is IGNORED on a flex item. As a flex item with align-items:baseline
     the svg's own bottom edge gets pinned to the text baseline, which floats it high. */
  display: inline-block; white-space: nowrap;
  font-family: var(--font-body); font-weight: 500; font-size: 19px;
  text-transform: uppercase; letter-spacing: .30em;
}
/* transparent, NOT visibility:hidden - hidden removes the letter from text selection
   as well as from paint, so the wordmark copied as "POLICYN". Transparent keeps it in
   the selection and in layout while the mark covers it. */
.brand-o { font-style: normal; color: transparent; }
/* The margins here are computed, not eyeballed: the mark is pulled back over the
   transparent O by the O's own advance plus the tracking, then centred on it, and the
   right margin gives back exactly what the left one took.

       margin-left  = -(A + .30 + (.8970 - A) / 2)
       margin-right =  (A + .30 + (.8970 - A) / 2) - .8970

   A is the uppercase O's advance in the wordmark's own face AT THE SIZE IT IS SET.
   That last part is not pedantry: Newsreader is variable on an optical-size axis, so
   its O measures .8080em at 100px and .7684em at the 19px this wordmark uses. The old
   values were the 100px figure, which left the mark .36px left of centre - invisible,
   and wrong. A = .7684em is measured at 19px. Recompute both if the face, the tracking
   or the size changes; the map's narrow breakpoint sets 16px and carries the same
   small error.
   SHARED: the About h1 (.h-wordmark) reuses these two margins unchanged. It pins opsz
   to 19, which holds A at the same .7685em at its 62.4px, so the em values carry over.
   Read the .h-wordmark note before you touch either number. */
.brand-mark {
  display: inline-block; color: var(--accent);
  width: .8970em; height: .8970em; vertical-align: -.0900em;
  margin-left: -1.1327em; margin-right: 0.2357em;
}
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--ink-2); padding: 6px 11px; position: relative; transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 1.5px; background: var(--accent);
}
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center; flex: none;
  background: transparent; border: 1px solid var(--rule-2); border-radius: 2px;
  color: var(--ink-2); cursor: pointer; transition: all .18s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 4px var(--gutter) 18px; margin: 0;
    transform: translateY(-140%); transition: transform .34s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 0; font-size: 17px; border-bottom: 1px solid var(--rule); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: grid; margin-left: auto; }
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--rule-2); flex: none; }
/* A serif at 400 reads as a heading. A grotesque at 400 reads as a large paragraph,
   so the display sizes take weight and tighter tracking to do the same job. */
.h-xl { font-size: clamp(2.35rem, 5.4vw, 3.9rem); line-height: 1.08; letter-spacing: -.022em; font-weight: 500; }
.h-lg { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.16; letter-spacing: -.018em; font-weight: 500; }
.h-md { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.27; letter-spacing: -.01em; font-weight: 500; }
.h-sm { font-size: 1rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.35; }

/* A heading that IS the wordmark, not a heading that mentions it. The About h1 renders
   the full masthead lockup at heading size - uppercase, .30em tracking, and the origin
   mark standing in for the O - out of the same .brand-o / .brand-mark parts the header
   uses, so the two read as one wordmark at two sizes. It is a heading, not a link: no
   anchor, no navigation.
   FACE. Newsreader is variable on an optical-size axis and CSS sets that axis from the
   font-size by default, so the same family, the same weight and the same tracking still
   render two different faces: at the wordmark's 19px it is a text cut, at .h-xl's 62.4px
   a display cut with hairline strokes and ball terminals. Pinning opsz to the wordmark's
   19 is what makes this the header's face and not merely its family.
   Naming only opsz leaves wght to font-weight, which was checked, not assumed: a probe
   at a fixed 100px measured 351.2 / 359.0 / 367.8px at weights 400 / 500 / 600 with
   'opsz' 19 set. font-optical-sizing: none is NOT the same thing - it falls back to the
   face's default instance, which measured 358.25px against opsz 19's 359.05px.
   LOCKUP. The pin is also load-bearing for the mark's margins. Those margins (:168-171)
   are in em and derive from A, the uppercase O's advance in the face AT THE SIZE IT IS
   SET. Measured in Chrome with the pin in place: A = .76850em at .brand's 19px and
   .76850em at this h1's 62.4px - the same number, because it is the same cut scaled up.
   Unpinned, the 62.4px cut advances .8010em and -1.1327em / 0.2357em would be wrong
   here. Because A is identical, .brand-mark's shipped margins are already correct at
   heading size and are reused unchanged; em margins scale on their own.
   The tracking is restated here because .h-xl sets -.022em, and the .30em term in the
   margin formula at :155-156 IS this declaration. Change the tracking, the size or the
   opsz pin and both margins must be recomputed from that formula. */
.h-wordmark {
  font-variation-settings: 'opsz' 19;
  text-transform: uppercase; letter-spacing: .30em;
}
.lede { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--ink-2); line-height: 1.66; max-width: var(--measure); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); }
a.accent { border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); }
a.accent:hover { border-bottom-color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { margin-block: 24px 0; max-width: 19ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lede { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero h1 .line { display: block; }
.hero h1 .line > span { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: lift .8s var(--ease) backwards; }
  .hero-lede { animation: lift .8s .1s var(--ease) backwards; }
  .hero-actions { animation: lift .8s .18s var(--ease) backwards; }
  @keyframes lift { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 19px;
  border-radius: 2px; font-size: 14.5px; font-weight: 500; font-family: var(--font-display);
  border: 1px solid var(--rule-2); color: var(--ink); background: transparent;
  cursor: pointer; transition: border-color .18s, color .18s, background .18s;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
[data-theme="dark"] .btn-primary { color: #0E1116; }
[data-theme="dark"] .btn-primary:hover { color: #0E1116; }

/* ---------- figures: a hairline table, not a row of boxes ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  background: transparent;
}
.stat { padding: 22px 22px 20px 0; border-right: 1px solid var(--rule); }
.stat + .stat { padding-left: 22px; }
.stat:last-child { border-right: 0; }
@media (max-width: 700px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .stat + .stat { padding-left: 0; }
  .stat:last-child { border-bottom: 0; }
}
.stat-n {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat-l {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 10px; line-height: 1.5;
}

/* ---------- tables: hairline rules, the same idiom as .stats ----------
   Added 2026-09-01 with the regulation material, which is genuinely tabular - a date,
   an obligation and a status are three columns and pretending otherwise would cost the
   reader the comparison. Nothing else on the site had needed a table until then.

   The wrapper scrolls, the page does not. A plate frame put 51px of horizontal scroll on
   the whole document on 2026-08-31; wide content gets its own overflow container so that
   cannot happen again. */
.tblwrap { overflow-x: auto; margin-top: 26px; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 34rem; }
.tbl th {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 400;
  text-align: left; padding: 0 20px 10px 0; border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.tbl td {
  padding: 14px 20px 14px 0; border-bottom: 1px solid var(--rule);
  color: var(--ink-2); vertical-align: top; line-height: 1.55;
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--ink); }
.tbl td.when {
  font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tbl td.not { color: var(--ink-3); }
@media (max-width: 620px) { .tbl { font-size: 14px; } }

/* ---------- footnotes: the signature mechanic ----------
   Markers are numbered in document order, so the page reads as a
   cited document rather than a page with tooltips. */
.ev {
  display: inline; vertical-align: super; margin-left: 2px; padding: 0 1px;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: var(--accent); line-height: 1;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  counter-increment: fn;
}
.ev::before { content: "[" counter(fn) "]"; }
.ev:hover, .ev:focus-visible { border-bottom-color: var(--accent); }
.ev.is-active { background: color-mix(in oklab, var(--accent) 15%, transparent); }

.receipt {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(430px, 93vw); z-index: 80;
  background: var(--paper); border-left: 1px solid var(--rule-2);
  transform: translateX(101%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -24px 0 50px -32px rgba(0,0,0,.3);
}
.receipt.open { transform: translateX(0); }
.receipt-head { padding: 20px 24px 15px; border-bottom: 1px solid var(--rule); display: flex; align-items: start; gap: 12px; }
.receipt-body { padding: 26px 24px; overflow-y: auto; flex: 1; }
.receipt-claim {
  font-family: var(--font-body); font-size: 1.32rem; font-weight: 400;
  letter-spacing: -.014em; line-height: 1.25; margin-bottom: 20px;
}
.receipt-row { margin-bottom: 20px; }
.receipt-key { font-family: var(--font-mono); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.receipt-val {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px;
  padding: 11px 13px; word-break: break-word; line-height: 1.65;
}
.receipt-note { font-size: 14.5px; color: var(--ink-2); line-height: 1.68; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 2px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid;
}
.badge-verified { color: var(--verified); border-color: color-mix(in oklab, var(--verified) 38%, transparent); }
.badge-stated { color: var(--caution); border-color: color-mix(in oklab, var(--caution) 38%, transparent); }
.scrim { position: fixed; inset: 0; background: rgba(15,17,21,.34); z-index: 79; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* ---------- cards: hairline, no shadow, no lift ---------- */
.card {
  position: relative; background: transparent; border: 1px solid var(--rule);
  border-radius: 2px; padding: 26px;
  transition: border-color .22s, background .22s;
  /* A card in a grid column is far narrower than the viewport it sits in, and the
     lists inside it were collapsing on viewport width. Evidence panels append to
     <body>, so the layout containment this brings costs nothing. */
  container-type: inline-size;
}
.card:hover { border-color: var(--rule-2); }
.card-link:hover { border-color: var(--ink); background: var(--paper-2); }
.card::before, .card::after { display: none; }
/* 290px was below the width this grid's content reads at: a prose column and a
   card of measured figures. It held two columns down to ~596px total. 360px puts
   the break at ~736px, which is where the split pane sits. Desktop is unchanged. */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 16px; }

.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--rule);
  border-radius: 2px; padding: 3px 9px; margin: 0 5px 5px 0;
}
.tag-live { color: var(--verified); border-color: color-mix(in oklab, var(--verified) 34%, transparent); }
.tag-dev { color: var(--caution); border-color: color-mix(in oklab, var(--caution) 34%, transparent); }

/* ---------- public repository: one component, one line per product ----------
   Added 2026-09-07, when keel became the first product here with a public
   repository. Before this the link was two hand-written anchors in
   case-studies.html, one in the case study and one in the tool brief. Two
   copies is how the next product gets a link that looks almost the same and
   behaves slightly differently.

   ABSENT, NOT EMPTY. There is deliberately no placeholder, no disabled variant
   and no "coming soon" state. A greyed chip promising a repository advertises
   something that does not exist, which is the same defect class as the "not
   published" copy corrected on 2026-09-07. A product without a public
   repository carries no .repo element at all, and the row simply ends sooner.

   TO ADD THE NEXT PRODUCT: when its repository is public and the URL actually
   resolves, paste ONE line into that product's section header row - the flex
   row that already holds the eyebrow, the <h2> and the <span class="tag"> -
   immediately after the last tag:

     <a class="repo" href="https://github.com/OWNER/NAME"
        target="_blank" rel="noopener">github.com/OWNER/NAME</a>

   Three rules, all load-bearing. The visible text is the full host and path so
   a reader sees the destination without hovering. target and rel are part of
   the shape, not optional. And the element goes in only after the URL resolves:
   `gh api repos/policyon/charter` returned 404 on 2026-09-07, which is exactly
   the case that gets nothing.

   Not used on overview.html's product cards on purpose: each of those is an
   <a class="card card-link"> wrapping the whole card, and an anchor inside an
   anchor is invalid HTML that would steal the card's click target. */
.repo {
  display: inline-block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .04em; text-transform: none; color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 34%, transparent);
  border-radius: 2px; padding: 3px 9px; margin: 0 5px 5px 0;
  transition: border-color .22s, background .22s;
}
/* The arrow is generated, not typed, so the repository path stays selectable
   and copyable on its own. */
.repo::after { content: " \2197 "; font-size: 9px; }
.repo:hover, .repo:focus-visible {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}

/* ---------- record rows ---------- */
.evo { display: grid; margin-top: 40px; }
.evo-item {
  display: grid; grid-template-columns: 132px 1fr; gap: 28px;
  padding: 28px 0; border-top: 1px solid var(--rule);
}
.evo-item:last-child { border-bottom: 1px solid var(--rule); }
.evo-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); line-height: 1.85; }
.evo-gen { color: var(--accent); }
.evo-title { display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; margin-bottom: 9px; }
.evo-bar { height: 2px; background: var(--paper-3); overflow: hidden; margin-top: 16px; max-width: 320px; }
.evo-bar > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 1.1s var(--ease); }
.evo-item.in .evo-bar > i { width: var(--w, 40%); }
@media (max-width: 720px) { .evo-item { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- media ---------- */
.media {
  position: relative; border: 1px solid var(--rule); border-radius: 2px;
  background: var(--paper-2); overflow: hidden; aspect-ratio: 16/9;
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media-empty {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 9px;
  color: var(--ink-3); text-align: center; padding: 22px;
}
.media-empty .mono { font-size: 11px; letter-spacing: .05em; color: var(--ink-3); }
.media-cap { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 10px; }

/* ---------- pull quote ---------- */
.quote { border-left: 2px solid var(--accent); padding: 2px 0 2px 24px; margin: 0; }
.quote p {
  font-family: var(--font-body); font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  font-weight: 400; font-style: italic; letter-spacing: -.012em; line-height: 1.42; color: var(--ink);
}
.quote cite { display: block; margin-top: 13px; font-family: var(--font-mono); font-size: 11px; font-style: normal; color: var(--ink-3); line-height: 1.6; }

/* ---------- numbered principles ---------- */
.principle { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 42px 1fr; gap: 20px; }
.principle-n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); padding-top: 5px; }
.principle p + p { margin-top: 9px; }
@media (max-width: 620px) { .principle { grid-template-columns: 1fr; gap: 7px; } }

/* ---------- correction entries ---------- */
.corr { border-bottom: 1px solid var(--rule); background: transparent; margin: 0; border-radius: 0; }
.corr:first-of-type { border-top: 1px solid var(--rule); }
.corr-head {
  display: flex; align-items: center; gap: 15px; padding: 20px 4px; cursor: pointer;
  width: 100%; text-align: left; background: transparent; border: 0; color: inherit; font-family: inherit;
  transition: padding-left .2s var(--ease);
}
.corr-head:hover { padding-left: 10px; }
.corr-idx { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.corr-t { flex: 1; font-weight: 500; font-size: 16px; letter-spacing: -.005em; }
.corr-chev { transition: rotate .3s var(--ease); color: var(--ink-3); flex: none; }
.corr.open .corr-chev { rotate: 180deg; }
.corr-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .36s var(--ease); }
.corr.open .corr-body { grid-template-rows: 1fr; }
.corr-body > div { overflow: hidden; }
.corr-inner { padding: 0 4px 24px 42px; max-width: 76ch; }
@media (max-width: 620px) { .corr-inner { padding-left: 4px; } }

/* ---------- session log, reduced to a marginal note ---------- */
.audit {
  position: fixed; bottom: 14px; right: 14px; z-index: 70; width: 296px;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 2px; font-family: var(--font-mono); font-size: 10.5px; overflow: hidden;
}
.audit.min .audit-log { display: none; }
.audit-head {
  display: flex; align-items: center; gap: 8px; padding: 8px 11px; cursor: pointer;
  border: 0; border-bottom: 1px solid var(--rule); width: 100%; background: transparent;
  color: inherit; font-family: inherit;
}
.audit.min .audit-head { border-bottom: 0; }
.audit-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--verified); flex: none; }
.audit-title { letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-size: 9.5px; flex: 1; text-align: left; }
.audit-log { max-height: 140px; overflow-y: auto; padding: 7px 11px 9px; }
.audit-line { color: var(--ink-3); line-height: 1.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audit-line b { color: var(--accent); font-weight: 400; }
@media (max-width: 1080px) { .audit { display: none; } }

/* ---------- reveal: opacity only, no travel ---------- */
.rv { opacity: 0; transition: opacity .6s var(--ease); }
.rv.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; } }

/* ---------- colophon ---------- */
.footer { border-top: 1px solid var(--ink); padding-block: 48px 34px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: start; }
/* `.link` had exactly one rule, `.footer a.link` below, so the same class used in
   body prose inherited `a { color: inherit; text-decoration: none }` at :88 and
   rendered as plain text a reader cannot see is a link. Found 2026-09-07 on
   about.html, two prose links. Giving `.link` its own base rule fixes every
   present and future use; the footer rule is more specific and still wins there. */
a.link { color: var(--accent); border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); }
a.link:hover { border-bottom-color: var(--accent); }

.footer a.link { color: var(--ink-2); font-size: 14.5px; display: block; padding: 3px 0; transition: color .18s; }
.footer a.link:hover { color: var(--accent); }
/* The wordmark at footer-note size. `.brand` hardcodes 19px; this inherits the
   parent's size instead, and pins Newsreader's optical-size axis to 19 so the
   mark's em-based margins at :168 stay correct at any size. Same trick as
   `.h-wordmark`. Without the pin the mark drifts off the O's slot. */
.brand-sm { font-size: inherit; font-variation-settings: 'opsz' 19; color: var(--ink-3); }
.brand-sm .brand-mark { color: var(--ink-3); }

.footer-note {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
}

/* ---------- lists and definition pairs ---------- */
.kv { display: grid; grid-template-columns: 148px 1fr; gap: 12px 22px; font-size: 15px; }
.kv dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.kv dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; gap: 3px 0; } .kv dd { margin-bottom: 13px; } }
/* The one that mattered: a kv inside a card inside .grid-2 had a 153px value column
   at a 900px viewport, because 600px was never the width it had. The media query
   above stays for a kv with no card around it. */
@container (max-width: 420px) { .kv { grid-template-columns: 1fr; gap: 3px 0; } .kv dd { margin-bottom: 13px; } }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { position: relative; padding-left: 19px; margin-bottom: 10px; color: var(--ink-2); font-size: 15px; }
.list-clean li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 1px; background: var(--rule-2); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 2px; }

/* ---------- the specimen: a worked example, above the fold ----------
   The strongest sites in this category show the thing working on the
   first screen. Here the product is judgement, so the specimen is a
   claim with its proof attached and nothing hidden behind a click. */
.specimen {
  margin: clamp(38px, 6vw, 64px) 0 0;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  max-width: 860px;
}
.specimen figcaption { margin-bottom: 18px; }
.specimen-claim {
  font-family: var(--font-body); font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 400; line-height: 1.38; letter-spacing: -.014em; color: var(--ink);
  max-width: 46ch;
}
.specimen-claim strong { font-weight: 600; }
.specimen-proof {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule);
}
.specimen-src { font-size: 12px; color: var(--ink-2); line-height: 1.6; margin-top: 2px; }

/* ---------- plates: interactive figures bound into the document ----------
   A report has plates. They keep their own palette, sit in a ruled frame,
   and carry a caption that says what they are and what the data is. */
.plate { margin: 0; }
/* A plate shown as a still. .plate-frame and .plate-small below are NOT dead: they
   are what the live plates use, and the plates are coming back - they are out of
   site/ for now, kept at design/plates/. */
.plate-img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule-2); border-radius: 2px; background: var(--paper-2);
}

.plate-frame {
  position: relative; border: 1px solid var(--rule-2); border-radius: 2px;
  overflow: hidden; background: var(--paper-2);
  aspect-ratio: 16 / 10; min-height: 420px;
  /* min-height plus the ratio was resolving to a width wider than the column
     between 760px and ~1000px, which put 51px of horizontal scroll on the page
     and the same on any pane that size. The ratio still governs; it just cannot
     push past the column any more. */
  width: 100%; max-width: 100%;
}
.plate-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.plate-cap {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between;
  margin-top: 11px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  line-height: 1.6;
}
.plate-cap b { color: var(--ink-2); font-weight: 400; }
.plate-cap a { border-bottom: 1px solid color-mix(in oklab, var(--accent) 34%, transparent); color: var(--accent); }
.plate-cap a:hover { border-bottom-color: var(--accent); }
.plate-note { font-size: 13.5px; color: var(--ink-2); margin-top: 14px; max-width: 62ch; line-height: 1.65; }

/* On small screens a pan-and-zoom canvas is a trap, so it is replaced by a
   link out to the full-screen view rather than a frame nobody can drive. */
.plate-small { display: none; }
@media (max-width: 760px) {
  .plate-frame { display: none; }
  .plate-small {
    display: block; border: 1px dashed var(--rule-2); border-radius: 2px;
    padding: 26px 22px; text-align: center;
  }
  .plate-small .mono { font-size: 11px; color: var(--ink-3); display: block; margin-bottom: 12px; }
}

/* A plate carries its own dark palette. On the paper theme that reads as a
   bound-in figure; on the ink theme it would otherwise dissolve into the page,
   so it keeps a lighter edge and a small inset to stay a distinct object. */
[data-theme="dark"] .plate-frame {
  border-color: var(--rule-2);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03), 0 18px 46px -22px rgba(0,0,0,.8);
}

/* ---------- colour scheme ----------
   Without this the browser paints its own furniture - scrollbars, form controls, the
   flash before first paint - in the LIGHT palette regardless of data-theme. On a dark
   page that is a white scrollbar down the side of a black panel, and it reads exactly
   as what it is: a page that has not been told what theme it is in. Most visible in
   the map's side pane, where the scrollbar sits against the darkest surface on the
   site, but it was wrong on every dark page. */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* And then the scrollbar explicitly, rather than trusting color-scheme to be honoured.
   color-scheme is the correct mechanism and it does work, but it is a HINT about which
   palette to derive furniture from, and what you get still depends on the platform, the
   browser version and whether overlay scrollbars are on. On Windows with classic
   scrollbars the result was still a near-white track with arrow buttons, down the side
   of a black panel. These two blocks say what it should look like instead of asking. */
:root[data-theme="dark"] { scrollbar-color: #3A404B transparent; scrollbar-width: thin; }
:root[data-theme="dark"]::-webkit-scrollbar,
:root[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
:root[data-theme="dark"]::-webkit-scrollbar-track,
:root[data-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }
:root[data-theme="dark"]::-webkit-scrollbar-thumb,
:root[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #3A404B; border-radius: 6px; border: 2px solid transparent; background-clip: content-box;
}
:root[data-theme="dark"]::-webkit-scrollbar-thumb:hover,
:root[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #4E5663; background-clip: content-box; }
:root[data-theme="dark"]::-webkit-scrollbar-corner,
:root[data-theme="dark"] ::-webkit-scrollbar-corner { background: transparent; }

/* ---------- embed mode ----------
   A page loaded into the map's split view with ?embed=1. Same page, minus the parts
   the frame already provides: the nav (the map is the navigation), the footer, the
   skip link, and the ambient layers that would sit behind a panel with its own
   ground. Section padding drops too - clamp(64px, 9vw, 116px) is right against a
   full viewport and is most of a phone's height inside half of one. */
[data-embed] .nav,
[data-embed] .footer,
[data-embed] .skip,
[data-embed] .grid-bg,
[data-embed] .aurora { display: none; }
[data-embed] .section { padding-block: clamp(26px, 4vw, 46px); }
[data-embed] .hero { padding-top: clamp(22px, 3vw, 34px); padding-bottom: clamp(20px, 3vw, 34px); }
[data-embed] { scroll-padding-top: 12px; }
/* Scroll headroom for a deep link near the end of a long page - not content, never
   shown on a normal visit. The pane opens a page inside an iframe shorter than the
   full window (it clears the top bar), and a browser cannot scroll a document past
   its own end. Without room to spare below the last section, a deep link close to
   the bottom (overview.html#unsourced; case-studies.html's orch-* cards) lands
   short of the pane's top. vh, not px, so it scales with whatever height the pane
   is actually given rather than a figure measured at one size. Embed-only: normal
   pages are unaffected and still end at the footer.
   40vh: the smallest of 20/30/40/60 tested that clears all four flagged anchors at
   both 1440 and 390, with margin for the timing swing font-swap causes on a long
   page (30vh landed "Roles, separated" at 74px, inside the 80px bar but too close
   to the swing already measured on that anchor - see node-audit/AUDIT2.md). */
[data-embed] body::after { content: ''; display: block; height: 40vh; }
