@charset "utf-8";

/* --- 0. Faces ------------------------------------------------------------ */
/* Self-hosted and subset to the glyphs this publication actually sets: five
   faces, 71KB total, versus a render-blocking third-party request on every page
   load. font-display: swap keeps text visible while they arrive. */

@font-face {
  font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/Spectral-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/Spectral-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/Spectral-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/Spectral-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2");
}

/* ==========================================================================
   EnoughNote, working-paper stylesheet

   Genre: research note / actuarial working paper. Not a blog. The publication
   declares its parameters before it argues, and the ledger that does so is
   made of the same material as every data table on the site.

   Naming: print-production nouns. Element = single underscore, modifier =
   single hyphen. masthead_mark, docket_row, ledger_value, ledger_row-flex.
   ========================================================================== */

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

:root {
  /* Ground is a cool, faintly green-grey, the tone of columnar accounting
     paper, deliberately not a warm cream. */
  --leaf:      #F2F3EF;
  --ink:       #14201B;
  --ink-soft:  #54625A;
  --ledger:    #1F5C43;
  /* --bar and --rule ARE the design. They shipped at 1.11:1 and 1.41:1 against
     the ground, below the point at which a reader perceives a ruled grid at
     all, so a ledger-themed publication read as flat grey type on a flat
     field, which is exactly what "there is a lot of blank space" describes.
     Raised to 1.18:1 and 1.85:1. Neither carries text, so this is not a WCAG
     text requirement; the binding constraint is --ink-soft staying ≥4.5:1 on
     the tint, which is what caps how far they can go. */
  --bar:       #D8DFD1;   /* green-bar row tint; decorative, never text */
  --rule:      #ADB8A9;
  --red:       #8C2F26;   /* negative figures only, never a heading or button */

  /* Chrome ground. The masthead and the colophon are green-bar rows at full
     width, the same tint as the ledger's own rows, so the chrome is made of
     the same material as the data, each closed by a 4px --ledger rule.
     NOTHING on this site is reversed out of a filled plate.

     This is a separate token from --bar deliberately. --bar is overridable from
     settings.json and documented decorative-never-text; this ground carries the
     wordmark, the section index and the entire colophon, so its contrast pairs
     are verified and must not move when a palette key does. */
  --plate:      #D8DFD1;   /* deliberately identical to --bar: the chrome is
                              the same material as a ledger row */
  --plate-rule: #A7B2A3;   /* hairline that still reads on the plate */

  --serif: "Spectral", Charter, "Bitstream Charter", Cambria, Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  /* 8px vertical unit */
  --s1: .25rem; --s2: .5rem;  --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem;   --s7: 3rem;   --s8: 4rem;
  --s9: 6rem;   --s10: 8rem;

  --measure: 40rem;   /* 640px ≈ 66ch at 19px Spectral */
  --rail-l:  13rem;
  --rail-r:  17rem;
  --gutter:  var(--s7);

  --focus: var(--ledger);
}

@media (prefers-color-scheme: dark) {
  :root {
    --leaf:     #121714;
    --ink:      #DDE3DD;
    --ink-soft: #93A29A;
    --ledger:   #5FA383;
    /* On dark the bar LIFTS rather than darkens. Raised in step with light so
       the hairline reads at the same strength in both modes: 1.86 vs 1.85. */
    --bar:      #1E2B27;
    --rule:     #3A473F;
    --red:      #D98A80;
    --focus:    #7FC0A0;
    /* Lifts off the ground by the same ~1.1 step the light plate darkens by, so
       the masthead is recognisably the same object in both modes. The old band
       was 15.05:1 against the ground in light and 1.06:1 in dark, i.e. it was
       invisible in dark mode, which is what proved it was never structural. */
    --plate:      #1E2B27;   /* identical to --bar, as in light mode */
    --plate-rule: #46554D;
  }
}

/* --- 2. Reset ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--leaf);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;                 /* 19px */
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

/* Two things are deliberately NOT set on <body>, because both caused visible
   scroll jank on a long paper:
     text-rendering: optimizeLegibility, forces kerning and ligature shaping
       across the entire document, and is re-evaluated during scroll painting.
     font-variant-numeric, an OpenType feature applied to every text node costs
       shaping work for no benefit in prose. It is scoped to data contexts below,
       which is the only place tabular figures are wanted anyway. */

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25em; }

/* The UA's `[hidden] { display: none }` is a (0,1,0) rule in the user-agent
   origin, so ANY author rule that sets `display` on the same element beats it.
   Every progressive-enhancement element on this site is markup-hidden and
   CSS-shown: `.runbar` (display:flex) and `.ledger_was` (display:block) both
   won that fight, so the "Showing your numbers / Restore the author's run"
   banner was painted on every paper from first load, telling the reader they
   were looking at their own figures while they were looking at the author's,
   which is the exact claim this site must never make falsely. */
[hidden] { display: none !important; }

/* Hover changes colour, not decoration thickness: re-resolving underline metrics
   on pointer-move over a dense text column is a repaint the page does not need. */
a { color: var(--ledger); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: var(--ink); }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

.u_skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--leaf);
  padding: var(--s3) var(--s4); z-index: 50;
  font-family: var(--mono); font-size: .875rem;
}
.u_skip:focus { left: var(--s4); top: var(--s2); }

.u_hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Tabular figures belong to data contexts only. In running prose they produce
   visibly gappy currency, because the 1 gets padded to a full digit width. */
th, td, .ledger_value, .formula, .docket_seq, .docket_date {
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
}

/* --- 3. Shared chrome ---------------------------------------------------- */

/* Three label tiers, not one. Every section label used to share a single
   treatment, so the block summarising the paper and a footer link-column header
   were typographically identical and the page had no readable hierarchy. */

.stamp, .stamp-major, .stamp-quiet {
  font-family: var(--mono); text-transform: uppercase; line-height: 1; display: inline-block;
}
.stamp-major { font-size: .8125rem; font-weight: 500; letter-spacing: .14em; color: var(--ledger); }
.stamp       { font-size: .75rem;   font-weight: 500; letter-spacing: .10em; color: var(--ink-soft); }
.stamp-quiet { font-size: .6875rem; font-weight: 400; letter-spacing: .08em; color: var(--ink-soft); }

a.stamp, a.stamp-quiet, a.stamp-major { color: var(--ledger); text-decoration: none; }
a.stamp:hover, a.stamp-quiet:hover, a.stamp-major:hover { text-decoration: underline; text-underline-offset: .3em; }

/* --- 4. Masthead --------------------------------------------------------- */
/* A dateline masthead, not a logo bar. Deliberately not sticky: a paper
   header does not follow you down the page.

   It is a green-bar row at full width, closed at the top by a 4px ledger rule
   and split into two registers by a hairline. It was a near-black filled plate
   until 2026-08-09. The plate was introduced to answer a real problem, the
   site was otherwise grey text and 1px rules on one flat ground from top to
   bottom, which is the literal description of a wireframe, but it answered it
   by making the NAVIGATION the heaviest object on a page about numbers, and by
   shipping a filled shape ~30x the area of Exhibit 0 directly above the strip
   this stylesheet calls "the only filled shape on a site with no images".

   The register change answers the flat-sheet worry without any of that. The
   trade, in one line: 120px of black became 4px of green. */

.masthead {
  background: var(--plate);
  border-top: 4px solid var(--ledger);
  border-bottom: 1px solid var(--plate-rule);
  padding: var(--s5) var(--s5) 0;
}
.masthead_bar {
  max-width: 76rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: var(--s2) var(--s5);
}
/* Larger than it was: with no plate behind it the wordmark is what carries the
   head, and it should be the heaviest ink above the fold. */
.masthead_mark {
  font-family: var(--serif);
  font-size: 2.625rem; font-weight: 700; letter-spacing: -.025em;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.masthead_mark:hover { color: var(--ledger); }
.masthead_dateline {
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .10em; text-transform: uppercase;
  color: var(--ledger); margin: 0;
}
.masthead_motto {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0 auto;
}

/* The hairline spans the type block, not the bleed: rules align with the
   measure here the way they do on every other ruled element on the site. */
.masthead_index {
  max-width: 76rem; margin: var(--s4) auto 0;
  border-top: 1px solid var(--plate-rule);
  display: flex; flex-wrap: wrap; gap: 0 var(--s5);
  list-style: none; padding: 0;
}
.masthead_index a {
  display: block; padding: var(--s3) 0;
  font-family: var(--mono); font-size: .8125rem; font-weight: 400; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.masthead_index a:hover { color: var(--ink); border-bottom-color: var(--ink-soft); }
/* Current section carries three signals, ink, mono 400→500, and a green rule ,
   so the state is never conveyed by colour alone. */
.masthead_index a[aria-current="page"] {
  color: var(--ink); font-weight: 500; border-bottom-color: var(--ledger);
}
/* No `.masthead :focus-visible` override: with nothing reversed here, the global
   --focus ring is correct, and the override would dangle on a deleted token. */

/* --- 5. Folio (page frame) ----------------------------------------------- */

.folio {
  max-width: 76rem;
  margin: 0 auto;
  padding: var(--s7) var(--s5) var(--s8);
}
.folio-paper {
  display: flex; align-items: flex-start;
  gap: var(--gutter); justify-content: center;
}
.folio_body   { flex: 1 1 auto; min-width: 0; max-width: calc(var(--measure) + var(--gutter) + var(--rail-r)); }
.folio_rail-l { flex: 0 0 var(--rail-l); position: sticky; top: var(--s5); }

/* The ledger sits in the article's own flow, directly after the provenance
   strip, so on a narrow screen it lands where it belongs: parameters declared
   before the argument starts. On a wide screen the grid below lifts it into
   the right rail without moving it in the DOM. */
.leaf { max-width: var(--measure); margin: 0 auto; }

/* A static page is a document, so it stands in a paper's column rather than in
   a column of its own. `margin: 0 auto` centred the leaf in the bare .folio,
   which put /about/ and /disclaimer/ at x=400 while a paper's body starts at
   x=392, a 9px jog on every crossing from a paper to the legal pages, against
   a masthead that does not move. Indenting by the contents rail plus the gutter
   lands it on the paper column exactly, and leaves the right-hand rail slot
   empty, which is the truth: these pages carry no ledger.

   Scoped to the width where the rail actually exists. Below 1000px the rail is
   display:none and .folio_body re-centres, so the leaf must re-centre with it. */
@media (min-width: 1001px) {
  .folio > .leaf { margin-left: calc(var(--rail-l) + var(--gutter)); margin-right: 0; }
}

/* The front page closes on the section register, which is content, not a
   trailing rule. It does not need 96px of runway before the footer band. */
.folio-front { padding-bottom: var(--s7); }

@media (min-width: 1001px) {
  .folio_body {
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) var(--rail-r);
    column-gap: var(--gutter);
    align-items: start;
  }
  .folio_body > * { grid-column: 1; min-width: 0; }
  .folio_body > .ledger_slot {
    grid-column: 2; grid-row: 1 / span 50;
    position: sticky; top: var(--s5);
  }
}

/* --- 6. Paper (article head + prose) ------------------------------------- */

.paper_stamp { display: block; margin-bottom: var(--s3); }

.paper_title {
  /* Was 3.375rem with max-width:20ch. 20ch at 54px Spectral Bold measures 606px
     against a 640px measure, it looked like a deliberate narrow poster column
     and constrained nothing, while leaving a ragged 34px mismatch with the
     standfirst's 52ch. 54px also set all three real titles to exactly 3 lines,
     and put the paper's h1 ABOVE the publication's own wordmark in the scale,
     which is the wrong way round for a journal. */
  font-size: 2.625rem; font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
  margin: 0 0 var(--s4); text-wrap: balance;
}
/* A standfirst set in muted ink reads as a caption. It is the argument in one
   sentence, so it gets full ink. */
.paper_standfirst {
  font-size: 1.375rem; line-height: 1.5; color: var(--ink);
  margin: 0 0 var(--s5); max-width: 52ch;
}
.paper_dateline {
  font-family: var(--mono); font-size: .8125rem; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s5);
}
.paper_dateline b { font-weight: 500; color: var(--ink); }
.paper_dateline i { font-style: normal; color: var(--ink-soft); }

.paper_body { counter-reset: sec; }
.paper_body > :first-child { margin-top: 0; }
.paper_body p { margin: 0 0 var(--s5); }
.paper_body h2 {
  font-size: 1.5rem; font-weight: 600; line-height: 1.28; letter-spacing: -.005em;
  margin: var(--s8) 0 var(--s4); max-width: 44ch;
  scroll-margin-top: var(--s5);
}
/* generate_post.py USED TO append a `.related-links` block whose <h2>Related</h2>
   was being counted, so the shipped pension paper's last section read
   "6 · Related" while the contents rail, which deliberately excludes it ,
   stopped at 5. The paper's own numbering contradicted its own index.
   The block is gone (strip_related_blocks(), 2026-08-16) and the paper now ends
   on its last real section. Kept as the CSS half of the same belt-and-braces
   guard `fl_prepare_body` carries, for a model that writes its own heading. */
.paper_body .related-links h2::before { content: none; counter-increment: none; }

/* Section numbering encodes real sequence: these papers argue in order. */
.paper_body h2::before {
  counter-increment: sec; content: counter(sec) " · ";
  font-family: var(--mono); font-size: 1.125rem; font-weight: 500;
  color: var(--ledger); letter-spacing: 0;
}
.paper_body h3 {
  font-family: var(--mono); font-size: 1rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; line-height: 1.4;
  margin: var(--s6) 0 var(--s3); color: var(--ink);
  scroll-margin-top: var(--s5);
}
.paper_body ul, .paper_body ol { margin: 0 0 var(--s5); }
.paper_body li { margin-bottom: var(--s2); }
.paper_body strong { font-weight: 600; }
.paper_body blockquote {
  margin: var(--s5) 0; padding-left: var(--s4);
  border-left: 2px solid var(--rule); color: var(--ink-soft);
}
.paper_body a { text-decoration: underline; }

/* --- 7. Ledger (signature) ----------------------------------------------- */
/* Every paper declares its parameters before it argues. The same green-bar
   rows, hairlines and tabular mono appear in every exhibit table, so the rail
   and the data read as one ruled ledger running through the publication. */

.ledger { margin: 0; }
.ledger_head {
  border-top: 2px solid var(--ledger);
  padding-top: var(--s2); margin-bottom: var(--s2);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2);
}
.ledger_head .stamp { color: var(--ledger); }

.ledger_row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s2);
  align-items: baseline; min-height: 1.75rem;
  padding: var(--s1) var(--s2);
  margin-inline: calc(var(--s2) * -1);   /* bleed the tint past the rail edge */
  border-bottom: 1px solid var(--rule);
}
.ledger_row:nth-child(even) { background: var(--bar); }
.ledger_term {
  font-family: var(--mono); font-size: .8125rem; font-weight: 400;
  color: var(--ink-soft); line-height: 1.35;
}
.ledger_value {
  font-family: var(--mono); font-size: .9375rem; font-weight: 500;
  color: var(--ink); text-align: right; white-space: nowrap;
}
/* A parameter the paper later stress-tests, shown as a range. */
.ledger_row-flex { border-left: 3px solid var(--ledger); padding-left: calc(var(--s2) - 3px); }

/* Provenance of each input. The honest answer to an unattributable byline is
   not a credential, it is showing which knobs you turned. */
.ledger_src {
  display: block; font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; margin-top: 1px;
}
.ledger_src-given   { color: var(--ink-soft); }
.ledger_src-ours    { color: var(--ledger); font-weight: 500; }
/* No italic here: Plex Mono italic is not among the loaded faces, so this was
   being synthesised into a slanted oblique. Distinction is by opacity instead. */
.ledger_src-derived { color: var(--ink-soft); opacity: .75; }

.ledger_foot {
  font-family: var(--mono); font-size: .6875rem; line-height: 1.5;
  color: var(--ink-soft); margin: var(--s3) 0 0;
}

/* --- 8. Provenance strip ------------------------------------------------- */
/* Volunteered early reads as confidence; deferred reads as concealment. So
   this sits above the argument, not under it. */

.provenance {
  border-left: 2px solid var(--ledger);
  padding: var(--s2) 0 var(--s2) var(--s4);
  margin: 0 0 var(--s6);
  font-family: var(--mono); font-size: .8125rem; line-height: 1.6;
  color: var(--ink-soft);
}
.provenance b { font-weight: 500; color: var(--ink); }

/* --- 9. Findings (key takeaways) ----------------------------------------- */

.findings { margin: 0 0 var(--s7); }
.findings_head { border-top: 2px solid var(--ink); padding-top: var(--s2); margin-bottom: var(--s3); }
.findings_list { list-style: none; padding: 0; margin: 0; counter-reset: find; }
.findings_line {
  display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--s2);
  padding: var(--s3) 0; border-bottom: 1px solid var(--rule);
  font-size: 1.1875rem; line-height: 1.6;
}
.findings_line::before {
  counter-increment: find; content: counter(find, decimal-leading-zero);
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
  color: var(--ledger); letter-spacing: .06em; padding-top: .38em;
}

/* --- 10. Exhibits (tables) ----------------------------------------------- */

.exhibit { margin: var(--s7) 0; }
.exhibit_caption {
  font-family: var(--mono); font-size: .8125rem; font-weight: 500;
  letter-spacing: .04em; color: var(--ink-soft);
  padding-bottom: var(--s2); margin-bottom: var(--s3);
  border-bottom: 2px solid var(--ledger); max-width: 60ch;
}
.exhibit_caption b { color: var(--ledger); font-weight: 500; }
.exhibit_scroll { overflow-x: auto; }

.exhibit table, .paper_body table, .leaf_body table {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: .9375rem; line-height: 1.5;
}
.exhibit th, .paper_body th, .leaf_body th {
  text-align: left; font-weight: 500; color: var(--ink-soft);
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  padding: var(--s2) var(--s3); border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.exhibit td, .paper_body td, .leaf_body td {
  padding: var(--s2) var(--s3); border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
/* Row rules only. Zebra plus full cell borders double-encodes row separation
   and adds noise to an already dense grid. */
.exhibit tbody tr:nth-child(even),
.paper_body tbody tr:nth-child(even),
.leaf_body tbody tr:nth-child(even) { background: var(--bar); }
.exhibit th + th, .exhibit td + td,
.paper_body th + th, .paper_body td + td { text-align: right; }
/* Row labels are prose; only the figures are the re-runnable part. Setting the
   stub column in Spectral reclaims ~51px on the shipped Exhibit 1, which is the
   difference between a table that fits the 640px measure and one that becomes a
   sideways-scrolling region on a 1440px desktop. */
.exhibit td:first-child, .paper_body td:first-child, .leaf_body td:first-child {
  font-family: var(--serif); font-size: 1rem; color: var(--ink);
}
.exhibit tbody tr:last-child td, .paper_body tbody tr:last-child td { border-bottom: 0; }

/* Difference row: set off, explicit sign, never colour alone. */
.exhibit tr.is-delta td { border-top: 2px solid var(--ink); font-weight: 500; }
.u_neg { color: var(--red); }

/* --- 11. Formula (worked derivation) ------------------------------------- */
/* Mono appears here and in data only, so mono comes to mean "you can re-run
   this". The governing assumptions are restated inside the block: that
   duplication is germane load, and it beats making the reader scroll back. */

.formula {
  margin: var(--s6) 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: var(--s3) 0;
  font-family: var(--mono); font-size: 1rem; line-height: 1.7;
}
.formula_step { display: block; overflow-x: auto; padding: var(--s1) 0; color: var(--ink-soft); }
.formula_result {
  display: block; margin-top: var(--s2); padding-top: var(--s2);
  border-top: 1px solid var(--rule);
  font-weight: 500; color: var(--ink); font-size: 1rem;
  /* Derivations are long. Wrap with a hanging indent so a continuation cannot
     be mistaken for a new step of the working. */
  padding-left: 1.5em; text-indent: -1.5em;
}
/* fl_prepare_body pops the LAST line into .formula_result, so a single-line
   derivation makes it the first child, and its own border-top then drew a
   second hairline 12px below the block's border-top with nothing between them.
   Three of the four derivations in the shipped pension paper are single-line. */
.formula_result:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.formula_result small {
  font-family: var(--serif); font-size: .875rem; color: var(--ink-soft); font-weight: 400;
}

/* Inline code stays quiet; display maths uses .formula. */
.paper_body code, .leaf_body code {
  font-family: var(--mono); font-size: .875em;
  background: var(--bar); padding: .1em .35em; border-radius: 2px;
}
.paper_body pre { overflow-x: auto; }
.paper_body pre code { background: none; padding: 0; }

/* --- 12. Contents (TOC) -------------------------------------------------- */
/* Server-rendered with stable slug ids, and carrying the figure rather than
   just the label: a returning reader navigates by the number they came back
   for, not by the prose heading. */

.contents_head { border-top: 1px solid var(--rule); padding-top: var(--s2); margin-bottom: var(--s2); }
.contents_list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.contents_line { border-bottom: 1px solid var(--rule); }
.contents_line a {
  display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--s2);
  padding: var(--s2) 0;
  /* Spectral, not mono: a contents label is prose, and this stylesheet's own
     rule is that mono means "you can re-run this". Mono also costs 20% more
     width per character (0.600em vs 0.500em) in a 176px column, which is what
     wrapped four of five entries to four lines. The counter stays mono. */
  font-family: var(--serif); font-size: .9375rem; line-height: 1.4;
  color: var(--ink-soft); text-decoration: none;
}
.contents_line a::before {
  counter-increment: toc; content: counter(toc);
  font-family: var(--mono); font-size: .8125rem;
  color: var(--ledger); font-weight: 500;
}
.contents_line a:hover { color: var(--ink); }
.contents_fig { display: block; color: var(--ledger); margin-top: 2px; }

.contents_mob { display: none; }
.contents_mob > summary {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ledger); cursor: pointer;
  padding: var(--s3) 0;
  border-top: 2px solid var(--ledger); border-bottom: 1px solid var(--rule);
}

/* --- 13. Queries (FAQ) --------------------------------------------------- */
/* Open by default and never collapsed: text inside a closed <details> is not
   reliably reachable by the browser's own find, which breaks the re-find pass. */

.queries { margin: var(--s8) 0 0; }
.queries_head { border-top: 1px solid var(--rule); padding-top: var(--s2); margin-bottom: var(--s3); }
.queries_item { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
/* Every block in the paper tail is OPENED by a rule under its stamp. The last
   question also closing with one put two identical hairlines within 96px of
   each other with nothing but blank ground between them, the same defect as
   the formula block's doubled rule, one level up. One rule per boundary. */
.queries_item:last-child { border-bottom: 0; }
.queries_ask { font-size: 1.0625rem; font-weight: 600; margin: 0 0 var(--s2); }
.queries_ans { margin: 0; color: var(--ink-soft); font-size: 1.1875rem; }

/* --- 14. Byline / adjacent ----------------------------------------------- */
/* No avatar, no monogram, no credentials. A generated initial-in-a-circle is
   a fake-headshot substitute and reads as one. The method carries the page. */

/* Opened by a rule, not boxed by two. The bottom rule paired with .adjacent's
   top rule the same way the FAQ list's did, and it was also the only block on
   the page drawn as a closed band. */
.byline {
  margin: var(--s8) 0 0; padding: var(--s4) 0 0;
  border-top: 1px solid var(--rule);
}
.byline_who { font-family: var(--mono); font-size: .8125rem; color: var(--ink-soft); margin: 0 0 var(--s2); }
.byline_who b { color: var(--ink); font-weight: 500; }
/* The byline is a name, not a call to action: it inherits ink and picks up the
   rule only on hover, so the dateline still reads as a dateline. */
.byline_link { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
/* Was var(--leaf): paper colour on a paper ground, 1.00:1, so the author's name
   disappeared on hover in BOTH modes. Written when this sat on a reversed band. */
.byline_link:hover,
.byline_link:focus-visible { color: var(--ledger); border-bottom-color: currentColor; }
.byline_note { font-size: .9375rem; color: var(--ink-soft); margin: 0; max-width: 58ch; }

.adjacent { margin: var(--s8) 0 0; }
.adjacent_head { border-top: 1px solid var(--rule); padding-top: var(--s2); margin-bottom: var(--s2); }

/* The docket's four columns are sized for the front page's ~1000px column. A
   paper's adjacent-papers block is the one place it renders inside the 640px
   measure, where the seq, the date and the full-width category stamp take
   ~390px and leave the title about 250px, every adjacent paper wrapped to
   three lines with a ragged gap beside it. It takes the same collapsed layout
   the narrow breakpoint already defines, at every width, because the
   constraint here is the column and not the viewport. */
.adjacent .docket_row   { grid-template-columns: 3rem 1fr; gap: var(--s1) var(--s3); }
.adjacent .docket_date  { grid-column: 2; }
.adjacent .docket_title { grid-column: 1 / -1; margin-top: var(--s2); }
.adjacent .docket_stamp { grid-column: 1 / -1; justify-self: start; text-align: left; margin-top: var(--s2); }
.adjacent .docket_gloss { grid-column: 1 / -1; }

/* --- 15. Docket (index listing) ------------------------------------------ */
/* A ruled index, not cards. No thumbnails anywhere on this site. */

.docket { margin: 0; border-top: 2px solid var(--ink); }
.docket_row {
  display: grid;
  grid-template-columns: 3rem 7rem 1fr auto;
  gap: var(--s2) var(--s4);
  align-items: baseline;
  padding: var(--s4) var(--s3);
  margin-inline: calc(var(--s3) * -1);
  border-bottom: 1px solid var(--rule);
}
/* nth-of-TYPE, not nth-child: .docket_break is a sibling <p> and .docket_row is
   an <article>, so nth-child would flip the zebra parity at every month rule. */
.docket_row:nth-of-type(even) { background: var(--bar); }
.docket_seq   { font-family: var(--mono); font-size: .8125rem; font-weight: 500; color: var(--ledger); }
.docket_date  { font-family: var(--mono); font-size: .75rem; color: var(--ink-soft); }
.docket_title { margin: 0; font-size: 1.1875rem; font-weight: 500; line-height: 1.35; }
.docket_title a { color: var(--ink); text-decoration: none; }
.docket_title a:hover { color: var(--ledger); text-decoration: underline; text-underline-offset: .2em; }
.docket_gloss {
  grid-column: 3 / -1; margin: var(--s1) 0 0;
  font-size: .9375rem; line-height: 1.55; color: var(--ink-soft); max-width: 62ch;
}
.docket_stamp { justify-self: end; text-align: right; }

/* Month rules, emitted only when the listing actually spans more than one month
  , see render_docket(). A break every row is furniture; a break that marks a
   real edge is information. */
.docket_break {
  margin: 0; padding: var(--s3) var(--s3) var(--s2);
  margin-inline: calc(var(--s3) * -1);
  border-bottom: 1px solid var(--rule);
  background: transparent;
}
.docket_break .stamp-quiet { color: var(--ledger); }

/* The homepage caps the docket; this is the route to the rest. */
.docket_more {
  font-family: var(--mono); font-size: .75rem; line-height: 1.6;
  color: var(--ink-soft); margin: var(--s4) 0 0;
}
.docket_more a { color: var(--ledger); }

/* --- 16. Current (lead item) --------------------------------------------- */
/* The masthead is the hero. This is a lead item, not a full-bleed photo.
 *
 * The lead used to carry its ledger as a 17rem right column: 9 parameter rows
 * in three bands plus a 5-row result block, ~636px tall, beside a ~347px column
 * of lead text. Two flex children of wildly unequal height under
 * align-items:flex-start produced ~290px of dead ground under the lead
 * paragraph, at three published papers, the largest single region of the front
 * page. The rail is horizontal now: .given states the parameters in one running
 * line, .tally states the paper's own results in a ruled band. Same promise,
 * same vertical budget, none of it empty. The void is gone by construction ,
 * there is no second column left to mismatch. */

.current { margin-bottom: var(--s7); }

.current_head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: var(--s2) var(--s4);
  border-top: 3px solid var(--ink);
  padding-top: var(--s3);
  margin-bottom: var(--s5);
}
.current_file {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4);
}

/* The lead headline is the largest object on the front page, which is correct
   here and was not true before: at 2.75rem capped to 26ch it measured 572px in
   a 1168px frame, so the lead's whole text block sat in the left half and the
   right half was empty for the ~330px down to the ASSUMED strip.

   The cap is gone and the size is up. `text-wrap: balance` is doing the real
   work, with a cap, a headline's rendered width is set by the cap; with
   balance and no cap it is set by the type size, so the size is the only
   honest control. Note this is the opposite call from the paper's own h1,
   which came DOWN to 2.625rem: there the h1 was outranking the wordmark on a
   page the reader had already chosen. On the front page the lead outranking
   everything is the point. */
.current_title {
  font-size: 3.25rem; font-weight: 600; line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 var(--s4); max-width: none; text-wrap: balance;
}
.current_title a { color: var(--ink); text-decoration: none; }
.current_title a:hover { color: var(--ledger); }

/* The paper's own stated claim, not its meta description. Every docket row
   below already carries its claim; the featured paper was the only item on the
   page whose claim was hidden, and it is the one sentence a reader can actually
   agree or disagree with. Full ink: muted ink would read as a caption. */
/* 62ch, not the old 44ch. At 24px this measures 744px against the headline's
   ~700px, so a one-sentence claim sets on ONE line under the two-line headline
   and the lead's text block has a straight right edge instead of a staircase.
   Wider than it looks: 1ch is the width of "0", and Spectral's average glyph is
   narrower, so 62ch holds ~80 characters, still inside a comfortable measure
   for 24px type, and proportionally tighter than the 19px body at 640px. */
.current_claim {
  font-size: 1.5rem; font-weight: 400; line-height: 1.4; color: var(--ink);
  margin: 0 0 var(--s5); max-width: 62ch;
}
/* .current_gloss is gone with the excerpt it carried, see home.php. */
.current_meta {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 var(--s4);
}
.current_meta a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.current_meta a:hover { color: var(--ledger); border-bottom-color: currentColor; }

/* --- 16b. Given (the lead's parameters, laid flat) ----------------------- */
/* Same idiom as .front_params on a section front: a hairline strip of mono
   term/value pairs. The rail's provenance banding does not survive the
   rotation, so the one distinction that must, a number we chose versus a
   number the situation supplied, is carried on the term itself, by colour AND
   by a dotted rule, never by colour alone. The dotted rule is the same mark
   .ledger_input uses on the paper, so it already means "knob". */

.given {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: var(--s2) var(--s5);
  border-top: 1px solid var(--rule);
  padding: var(--s3) 0;
  margin: 0 0 var(--s4);
}
.given_item { font-family: var(--mono); font-size: .8125rem; line-height: 1.5; color: var(--ink); }
.given_item i { font-style: normal; color: var(--ink-soft); white-space: nowrap; }
.given_item-ours i { color: var(--ledger); border-bottom: 1px dotted var(--ledger); }
.given_more {
  font-family: var(--mono); font-size: .8125rem; color: var(--ledger);
  text-decoration: none; border-bottom: 1px solid var(--rule);
}
.given_more:hover { color: var(--ink); border-bottom-color: currentColor; }
.given_note {
  flex: 1 0 100%;
  font-family: var(--mono); font-size: .6875rem; line-height: 1.5;
  color: var(--ink-soft); margin: var(--s1) 0 0;
}

/* --- 16c. Tally (the lead's own result band) ----------------------------- */
/* The RESULT block of the rail, rotated. Deliberately NOT a row of stat tiles:
   no box, no shadow, no radius, no colour fill behind a number. It is a printed
   summary table, two green rules, hairline column dividers, mono figures at
   1.375rem. Flex with flex:1 1 0 and nowrap so there is never an empty grid
   area to paint whatever the output count; it becomes a stacked ledger list
   below 620px. */

.tally {
  display: flex; flex-wrap: nowrap; margin: 0;
  border-top: 2px solid var(--ledger);
  border-bottom: 2px solid var(--ledger);
}
.tally_cell {
  flex: 1 1 0; min-width: 0;
  padding: var(--s3) var(--s4) var(--s4);
  border-left: 1px solid var(--rule);
}
.tally_cell:first-child { border-left: 0; padding-left: 0; }
.tally_term {
  font-family: var(--mono); font-size: .6875rem; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.35;
  color: var(--ink-soft);
  margin: 0 0 var(--s2);
}
.tally_value {
  font-family: var(--mono); font-size: 1.375rem; font-weight: 500; line-height: 1.15;
  color: var(--ink); margin: 0;
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
}
.tally_foot {
  font-family: var(--mono); font-size: .6875rem; line-height: 1.5;
  color: var(--ink-soft); margin: var(--s3) 0 0;
}

/* --- 16d. Register (the six standing sections) --------------------------- */
/* The one block on the front page whose height does not depend on the article
   count. At three papers it is what stops the page reading as empty; at sixty
   it is the route the capped docket needs, since there is no /archive/ page in
   the builder to send anyone to. Two columns of ruled rows with a single
   vertical hairline, a printed contents page, not a grid of cards. */

.register { margin: var(--s8) 0 0; }
.register_list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.register_row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s1) var(--s4);
  align-items: baseline; align-content: start;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule);
}
.register_row:nth-child(odd)  { padding-right: var(--gutter); }
.register_row:nth-child(even) { padding-left: var(--gutter); border-left: 1px solid var(--rule); }
.register_name {
  font-family: var(--serif); font-size: 1.0625rem; font-weight: 500; line-height: 1.35;
  color: var(--ink); text-decoration: none;
}
.register_name:hover { color: var(--ledger); text-decoration: underline; text-underline-offset: .2em; }
.register_tally {
  font-family: var(--mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ledger); justify-self: end; white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
.register_row-empty .register_tally { color: var(--ink-soft); font-weight: 400; }
.register_gloss {
  grid-column: 1 / -1; margin: var(--s2) 0 0;
  font-size: .875rem; line-height: 1.55; color: var(--ink-soft); max-width: 48ch;
}

.section_head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
  border-top: 2px solid var(--ledger); padding-top: var(--s2); margin-bottom: var(--s4);
}

/* --- 17. Section front (category page) ----------------------------------- */

.front { margin-bottom: var(--s8); }
.front_title { font-size: 2.25rem; font-weight: 500; line-height: 1.2; margin: var(--s3) 0 var(--s4); }
.front_gloss {
  font-size: 1.1875rem; line-height: 1.6; color: var(--ink-soft);
  margin: 0 0 var(--s5); max-width: 58ch;
}
.front_params {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: var(--s3) 0; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6);
}
.front_param { font-family: var(--mono); font-size: .8125rem; }
.front_param b {
  display: block; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 400; margin-bottom: 2px;
}

/* Kept only for any surface still emitting it, the section front no longer does. */
.empty { padding: var(--s7) 0; font-family: var(--mono); font-size: .875rem; color: var(--ink-soft); }

/* --- 17b. Nil return (a section with no papers filed) -------------------- */
/* "Nil return" is the accounting term for a period you are required to file for
   and have nothing to report in. That is exactly what this page is, and filing
   it as a return rather than rendering it as a missing page is the whole design:
   the reader gets a status, the terms a paper here will meet, and somewhere to
   go, all of it real data, none of it invented, and no promise about when.

   It replaces `<p class="empty">No papers in this section yet.</p>`, which put
   the only content on the page in the smallest, most muted type on the site with
   288px of blank ground under it. Four of the six sections render this. */

.nil { margin: 0; }

.nil_head {
  border-top: 2px solid var(--ink); padding-top: var(--s2); margin-bottom: var(--s2);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
}
.nil_set { margin: 0 0 var(--s8); }
.nil_set:last-child { margin-bottom: 0; }

.nil_row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s3);
  align-items: baseline;
  padding: var(--s3) var(--s2);
  margin-inline: calc(var(--s2) * -1);
  border-bottom: 1px solid var(--rule);
}
/* odd, not even: .nil_head is child 1 of .nil_set, so odd is the second row. */
.nil_row:nth-child(odd) { background: var(--bar); }
.nil_term { font-family: var(--mono); font-size: .8125rem; color: var(--ink-soft); line-height: 1.35; }
.nil_value {
  font-family: var(--mono); font-size: 1rem; font-weight: 500; color: var(--ink);
  text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
}
/* The count is the point of the page, so it is set at the size of a headline
   figure rather than apologised for. --ink, not --red: an empty section is a
   fact, not a negative number, and --red is reserved. */
.nil_value-count { font-size: 1.75rem; line-height: 1.1; }

/* What a paper filed here will carry. Every line is already true of every paper
   on the site and already committed to publicly at /editorial-process/, so
   nothing here is a forward promise, no cadence, no date. */
.nil_terms { list-style: none; padding: 0; margin: 0; counter-reset: nilterm; }
.nil_line {
  display: grid; grid-template-columns: 2rem 1fr; gap: var(--s3);
  align-items: baseline;
  padding: var(--s3) 0; border-bottom: 1px solid var(--rule);
  font-size: 1rem; line-height: 1.55; color: var(--ink);
}
.nil_line:last-child { border-bottom: 0; }
.nil_line::before {
  counter-increment: nilterm; content: counter(nilterm, decimal-leading-zero);
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
  color: var(--ledger); letter-spacing: .06em;
}
.nil_note {
  font-family: var(--mono); font-size: .75rem; line-height: 1.6;
  color: var(--ink-soft); margin: var(--s4) 0 0;
}

/* --- 18. Leaf (static pages) --------------------------------------------- */

.leaf_title { font-size: 2.5rem; font-weight: 500; line-height: 1.18; margin: var(--s3) 0 var(--s4); max-width: 24ch; }
.leaf_meta {
  font-family: var(--mono); font-size: .8125rem; color: var(--ink-soft);
  padding-bottom: var(--s4); border-bottom: 1px solid var(--rule); margin-bottom: var(--s6);
}
.leaf_body h2 { font-size: 1.5rem; font-weight: 600; margin: var(--s7) 0 var(--s3); }
.leaf_body h3 {
  font-family: var(--mono); font-size: 1rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; margin: var(--s6) 0 var(--s3);
}
.leaf_body p { margin: 0 0 var(--s5); }
.leaf_body ul, .leaf_body ol { margin: 0 0 var(--s5); }
.leaf_body li { margin-bottom: var(--s2); }
.leaf_body a { text-decoration: underline; }
.leaf_body strong { font-weight: 600; }

/* --- 19. Colophon (footer) ----------------------------------------------- */
/* The no-monetization fact is stated flatly, as a colophon line. Anything that
   looks proud of its own integrity reads as a pitch. */

/* Mirrors the masthead, so the page has a top, a body and a bottom: the same
   green-bar ground closed by the same 4px ledger rule, head rule at the top of
   the page, foot rule at the top of the footer. The 8rem of empty paper that
   used to sit above it only read as deliberate while a black plate was closing
   the page; on a tinted foot it is just a gap, so it comes down to 4rem. */
.colophon {
  background: var(--plate); color: var(--ink-soft);
  border-top: 4px solid var(--ledger);
  margin-top: var(--s8); padding: var(--s7) var(--s5) var(--s8);
}
.colophon_inner { max-width: 76rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: var(--s7); }
.colophon_brand { flex: 1 1 22rem; min-width: 0; }
.colophon_mark { font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.colophon_mark:hover { color: var(--ledger); }
.colophon_says { font-size: .9375rem; line-height: 1.6; color: var(--ink-soft); margin: var(--s3) 0 0; max-width: 46ch; }
.colophon_terms { flex: 0 0 auto; display: flex; gap: var(--s7); flex-wrap: wrap; }
.colophon_col { min-width: 9rem; }
.colophon_col .stamp-quiet { color: var(--ledger); }
.colophon_col ul { list-style: none; padding: 0; margin: var(--s3) 0 0; }
.colophon_col li { margin-bottom: var(--s2); }
.colophon_col a { font-family: var(--mono); font-size: .8125rem; color: var(--ink-soft); text-decoration: none; }
.colophon_col a:hover { color: var(--ink); text-decoration: underline; }
.colophon_bar {
  max-width: 76rem; margin: var(--s7) auto 0; padding-top: var(--s4);
  border-top: 1px solid var(--plate-rule);
  font-family: var(--mono); font-size: .75rem; line-height: 1.7; color: var(--ink-soft);
}
.colophon_bar p { margin: 0 0 var(--s2); max-width: 72ch; }
.colophon_bar a { color: var(--ledger); }

/* --- 19b. The live ledger ------------------------------------------------ */
/* The rail promised "change any of these and the conclusion moves". These are
   the controls that make it true. Everything here is an enhancement: with JS
   off the server-rendered author's figures stay exactly as they are. */

.ledger_hint {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); opacity: 0;
}
[data-live] .ledger_hint { opacity: 1; }

/* Provenance bands replace a per-row label that repeated "stated, rounded" six
   times down a 220px column. */
.ledger_band {
  font-family: var(--mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .10em; text-transform: uppercase; color: var(--ink-soft);
  margin: var(--s4) 0 var(--s1);
}
.ledger_set { margin: 0; }
.ledger_set + .ledger_band { margin-top: var(--s4); }

/* The unit lives outside the field. A number input can only hold a bare number,
   so upgrading the rail turned "$70,000/yr" into "70000" and "4%" into "4" ,
   the ledger stopped reading as a ledger exactly when it became usable. The
   affixes are static type either side of the input; only the figure is typed. */
.ledger_value.is-editable {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 1px;
}
.ledger_affix {
  font-family: var(--mono); font-size: .8125rem; font-weight: 400;
  color: var(--ink-soft); white-space: nowrap;
}
.ledger_input {
  font: inherit; font-family: var(--mono); font-size: .9375rem; font-weight: 500;
  color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px dotted var(--ledger);
  width: 100%; max-width: 7.5rem; padding: 1px 0; text-align: right;
  -moz-appearance: textfield;
}
.ledger_value.is-editable .ledger_input { width: auto; max-width: 5.5rem; min-width: 2.5rem; }
.ledger_input::-webkit-outer-spin-button,
.ledger_input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ledger_input:hover  { background: var(--bar); }
.ledger_input:focus  { outline: 2px solid var(--focus); outline-offset: 2px; background: var(--bar); }
.ledger_input[aria-invalid="true"] { border-bottom-color: var(--red); color: var(--red); }

.ledger_row.is-fixed .ledger_value { color: var(--ink-soft); }
.ledger_row.is-mine { box-shadow: inset 3px 0 0 var(--ledger); }
.ledger_row.is-mine .ledger_src {
  color: var(--ledger); font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
}

.ledger_head-result { margin-top: var(--s5); }
.ledger_was {
  display: block; font-family: var(--mono); font-size: .625rem;
  letter-spacing: .04em; color: var(--ink-soft); margin-top: 1px;
}
.ledger_row.is-moved .ledger_value { color: var(--ledger); font-weight: 500; }

/* --- 19c. Exhibit 0, the sensitivity strip ------------------------------ */
/* The one filled shape on a site with no images, and it is made of the paper's
   own model: each bar is the swing in the headline result when that parameter
   is taken across its tested range. It repaints when the reader edits. */

.swing { margin: var(--s6) 0 var(--s7); }
.swing_list { list-style: none; padding: 0; margin: 0; }
/* 7rem, not 6: the pension paper's own cap_a output is $1,300,000, and
   ±$1,300,000 at 15px Plex Mono Medium measures 99px against a 96px column. */
.swing_row {
  display: grid; grid-template-columns: 11rem 1fr 7rem;
  gap: var(--s3); align-items: center;
  padding: var(--s2) 0; border-bottom: 1px solid var(--rule);
}
.swing_row:last-child { border-bottom: 0; }
.swing_term {
  font-family: var(--mono); font-size: .8125rem; color: var(--ink); line-height: 1.3;
}
.swing_term i {
  display: block; font-style: normal; font-size: .6875rem; color: var(--ink-soft); margin-top: 2px;
}
.swing_track { position: relative; height: 1.375rem; }
.swing_track::before {
  content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px;
  width: 1px; background: var(--ink);
  /* Above the bars: both butt against the centre line from either side and were
     burying the axis of the only chart on the site. */
  z-index: 1;
}
.swing_lo, .swing_hi {
  position: absolute; top: .25rem; height: .875rem;
  transition: width 200ms ease;
}
.swing_lo { right: 50%; background: var(--red); }
.swing_hi { left: 50%;  background: var(--ledger); }
.swing_delta {
  font-family: var(--mono); font-size: .9375rem; font-weight: 500;
  text-align: right; color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.swing_base {
  font-family: var(--mono); font-size: .6875rem; line-height: 1.6;
  color: var(--ink-soft); margin: var(--s3) 0 0;
}
.swing_base b { color: var(--ink); font-weight: 500; }

/* --- 19d. Run banner ----------------------------------------------------- */
/* A reader must never be unsure whether they are looking at the author's
   numbers or their own. This is the page-level answer. */

.runbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s3); margin: 0 0 var(--s5); padding: var(--s3) var(--s4);
  background: var(--bar); border-left: 3px solid var(--ledger);
  font-family: var(--mono); font-size: .8125rem;
}
.runbar_what { color: var(--ink); font-weight: 500; }
.runbar_what i { font-style: normal; color: var(--ink-soft); font-weight: 400; }
.runbar_reset {
  font: inherit; font-family: var(--mono); font-size: .75rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--leaf); background: var(--ledger);
  border: 0; padding: var(--s2) var(--s3); cursor: pointer;
}
.runbar_reset:hover { background: var(--ink); }

/* The paper's stated conclusion no longer holding is the one thing worth
   interrupting for. We flag it; we never rewrite what the author argued. */
.runbar_claim {
  margin: 0 0 var(--s5); padding: var(--s3) var(--s4);
  border-left: 3px solid var(--red);
  background: var(--bar);
  font-family: var(--mono); font-size: .8125rem; line-height: 1.6; color: var(--ink);
}

/* --- 20. Responsive ------------------------------------------------------ */

@media (max-width: 1180px) {
  :root { --rail-l: 11rem; --rail-r: 15rem; --gutter: var(--s6); }
}

@media (max-width: 1000px) {
  .folio-paper { display: block; }
  .folio_body { max-width: var(--measure); margin: 0 auto; }
  .ledger_slot { margin-bottom: var(--s6); }
  .contents_mob { display: block; max-width: var(--measure); margin: 0 auto var(--s6); }
  .folio_rail-l { display: none; }
  /* No .current/.current_side rules here any more: the lead has no second
     column to collapse, see §16. */
}

@media (max-width: 700px) {
  body { font-size: 1.125rem; line-height: 1.65; }
  .folio { padding: var(--s5) var(--s4) var(--s8); }
  .masthead { padding: var(--s4) var(--s4) 0; }
  /* margin-left:auto pushes the motto to the right of the wordmark row on a
     wide screen; once the row wraps it strands the motto in mid-air. */
  .masthead_motto { margin-left: 0; }
  .colophon { padding: var(--s6) var(--s4) var(--s7); }
  .paper_title, .leaf_title { font-size: 2.125rem; }
  .current_title { font-size: 1.875rem; letter-spacing: -.012em; max-width: none; }
  .front_title { font-size: 1.75rem; }
  .current_claim { font-size: 1.1875rem; max-width: none; }
  .paper_standfirst { font-size: 1.1875rem; }
  .paper_body h2 { font-size: 1.3125rem; margin-top: var(--s7); }

  /* Docket collapses to identifier line, then title + gloss. */
  .docket_row { grid-template-columns: 3rem 1fr; gap: var(--s1) var(--s3); padding: var(--s4) var(--s2); }
  .docket_date  { grid-column: 2; }
  .docket_title { grid-column: 1 / -1; margin-top: var(--s2); }
  .docket_gloss { grid-column: 1 / -1; }
  .docket_stamp { grid-column: 1 / -1; justify-self: start; text-align: left; margin-top: var(--s2); }

  .exhibit_scroll { margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); }
  .colophon_terms { gap: var(--s5); }
}

/* The register drops to one column before the two columns get narrower than the
   gloss needs. */
@media (max-width: 860px) {
  .register_list { grid-template-columns: minmax(0, 1fr); }
  .register_row:nth-child(odd)  { padding-right: 0; }
  .register_row:nth-child(even) { padding-left: 0; border-left: 0; }
}

@media (max-width: 980px) {
  /* No cap: 30ch at 36px measures 1080px against a frame that is at most 932px
     here, so it constrained nothing, the same inert cap `.paper_title` carried
     at 20ch. The frame and `text-wrap: balance` from the base rule do the work. */
  .current_title { font-size: 2.25rem; max-width: none; }
  .current_claim { font-size: 1.3125rem; }
  .tally_value { font-size: 1.1875rem; }
}

/* Four cells at flex 1 1 0 stop being readable well before the viewport does,
   so the tally becomes what it already is underneath, a short ledger list. */
@media (max-width: 619px) {
  .tally { display: block; }
  .tally_cell {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: var(--s3);
    flex: none; border-left: 0; border-bottom: 1px solid var(--rule);
    padding: var(--s2) 0;
  }
  .tally_cell:first-child { padding-left: 0; }
  .tally_cell:last-child { border-bottom: 0; }
  .tally_term { margin: 0; }
  .tally_value { font-size: 1.0625rem; text-align: right; }
}

/* Exhibits break into the gutters on wide screens only, that width break is
   the signal that arithmetic is happening. They never reach into the rails. */
@media (min-width: 1181px) {
  .exhibit, .formula { width: calc(100% + var(--s5) * 2); margin-left: calc(var(--s5) * -1); }
  .formula { padding-inline: var(--s5); }
}

/* --- 21. Motion & print -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

@media print {
  /* --plate must be overridden here too, or the masthead and colophon print as
     a grey block. The 4px head rule prints black over the wordmark, which is
     the correct print masthead. */
  :root {
    --leaf: #fff; --ink: #000; --ink-soft: #444; --ledger: #000;
    --bar: #f2f2f2; --rule: #bbb; --plate: #fff; --plate-rule: #bbb;
  }
  .masthead_index, .contents_mob, .folio_rail-l, .adjacent, .register, .u_skip { display: none; }
  .folio-paper { display: block; }
  .folio_body, .folio_rail-r { max-width: none; }
  a { text-decoration: none; }
  .paper_body a::after { content: " (" attr(href) ")"; font-size: .75em; color: #444; }
  .exhibit, .formula, .findings_line, .queries_item { break-inside: avoid; }
}
