/* Dated Daily Tape record surface — /tape/YYYY-MM-DD, the Tape Almanac.
   Also carries the two degraded documents this route serves: the declared-gap
   page and the record-not-found page, which keep the `.wrap` frame below.

   The record page is composed as one dated page in an accumulating volume: a
   restrained month margin on the left, the record itself in a single reading
   column on the right. It is deliberately not the homepage Observatory
   composition and deliberately not a card stack — there is one page, ruled into
   sections, in the manner of a statistical publication rather than a dashboard.

   Everything resolves through the shared semantic roles in css/tokens.css, so
   the route follows the site-wide System/Light/Dark selection. Dark is composed,
   not inverted: the paper tint, the rule weights and the stamp treatment each
   have their own dark value rather than being flipped.

   Class names carried over from the pre-Almanac surface are kept where a guard
   depends on them: scripts/test-copy-dedup.mjs asserts the dated renderer still
   carries `signal-rule-ladder`, the accessibility suites resolve `.recent-state*`,
   and `.record-stat*` carries the machine-readable exact net movement field. */

:root {
  /* Overlay channel, mirroring css/tape.css so both Daily Tape surfaces stay consistent.
     Dark keeps the original white overlays; light inks them so they read on cream paper. */
  --tape-record-tint: 255, 255, 255;
  /* Composed per theme rather than inverted. Light is printed paper: warm, high
     contrast, hairline rules. Dark is a reading lamp on the same page: a raised
     leaf, softer rules, the same hierarchy. */
  --al-leaf: var(--theme-surface-page);
  --al-margin-surface: rgba(255, 255, 255, .028);
  --al-rule: var(--theme-rule-standard);
  --al-rule-fine: var(--theme-rule-subtle);
  --al-stamp-ink: var(--theme-object-identity-ink, var(--theme-ink-secondary));
  /* The wash behind the governing ledger row, composed per theme like everything else in this file.
     Dark takes the raised surface, which reads as a lifted row on a near-black page. Light cannot
     use the same role: raised is #FAF8F3 against a #F6F3EC page, four units apart and invisible at
     row size, so light takes the inset surface and reads as a tinted band instead. Same job, and
     the roles that do it are opposite. */
  --al-ledger-governing: var(--theme-surface-raised);
}

:root:not([data-theme="dark"]):not([data-theme-lock="dark"]),
:root[data-theme="light"] {
  --tape-record-tint: 24, 28, 36;
  --al-margin-surface: rgba(24, 28, 36, .022);
  --al-ledger-governing: var(--theme-surface-inset);
}

/* ── Page frame ─────────────────────────────────────────────────────────────────────────── */

body {
  background: var(--theme-surface-page);
  color: var(--theme-ink-primary);
  font-family: 'IBM Plex Sans', Segoe UI, sans-serif;
  line-height: 1.55;
  margin: 0;
}

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

/* The page clears the fixed navigation through the shared role rather than through a hand-picked
   inset. It previously paid 2.5rem, which is less than the bar is tall: the bar overlapped the top
   of this box and only the page head's own padding kept the eyebrow out from under it. */
.al-page {
  padding: var(--rhythm-page-top-clear) 0 3.5rem;
}

/* The spread is a grid of four parts: the page head, the lead entry, the month margin and the
   rest of the record. On desktop the margin takes the left column and spans the full page; on
   the phone the same four parts stack in a deliberately different order — date, benchmark,
   month, record — so the identity and the reading arrive before the archive does.

   IT IS ON THE PUBLICATION CANVAS. It used to run its own 1180px box with 1.5rem gutters, which put
   the record column at 414..1286 at 1440 while the homepage ran 56..1384 and the bar above it ran
   88..1352: three left edges on one crossing, and the reason the route read as a different site.
   The margin column and its gap are the shared side-head role, so the label gutter here lands on
   the same edge as the Transparency register's and the homepage status register's.

   Widening the record column does not stretch the prose. Every paragraph in this file already
   carries its own 62ch or 66ch measure; the extra width goes to the rules, the figure strips and
   the comparison pairs, which is where it belongs. */
.al-spread {
  width: min(100%, var(--layout-box-page));
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
  display: grid;
  grid-template-columns: var(--layout-sidehead) minmax(0, 1fr);
  column-gap: var(--layout-sidehead-gap);
  align-items: start;
}

.al-spread > .al-margin { grid-column: 1; grid-row: 1 / span 3; }
.al-spread > .al-pagehead { grid-column: 2; grid-row: 1; }
.al-spread > .al-lead { grid-column: 2; grid-row: 2; }
.al-spread > .al-column { grid-column: 2; grid-row: 3; }

.al-column {
  min-width: 0;
}

/* ── The month margin ───────────────────────────────────────────────────────────────────── */

/* The archive, present on every record page. It supports the record; it must never compete
   with it, so it is the narrowest column on the page and carries no figure of its own. */
.al-margin {
  position: sticky;
  top: 1.5rem;
  border-top: 2px solid var(--theme-object-identity-ink);
  padding-top: .75rem;
  min-width: 0;
}

.al-margin-h {
  margin: 0;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .04em;
  color: var(--theme-ink-primary);
}

.al-margin-sum {
  margin: .15rem 0 .7rem;
  font-size: .68rem;
  color: var(--theme-ink-muted);
}

.al-cal {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.al-cal th {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .58rem;
  font-weight: 500;
  color: var(--theme-ink-muted);
  padding-bottom: .25rem;
  text-align: center;
}

.al-cal th abbr {
  text-decoration: none;
  border: 0;
}

.al-cal td {
  padding: 1px;
  text-align: center;
}

.al-d {
  position: relative;
  display: block;
  padding: .28rem 0 .3rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .72rem;
  line-height: 1.1;
  color: var(--theme-ink-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-radius: 3px 3px 0 0;
}

a.al-d:hover {
  background: var(--theme-surface-hover);
  color: var(--theme-ink-link);
}

a.al-d:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 1px;
}

/* Every kind of day carries a glyph and a text equivalent as well as its colour. */
.al-d--canonical {
  color: var(--theme-object-identity-ink);
  border-bottom-color: var(--theme-object-identity-ink);
  font-weight: 600;
}

.al-d--bootstrap,
.al-d--withdrawn {
  color: var(--theme-ink-secondary);
  border-bottom: 2px dashed var(--theme-rule-strong);
}

.al-d--withdrawn { color: var(--theme-status-warning-ink); }
.al-d--no-reading {
  color: var(--theme-status-warning-ink);
  border-bottom-color: var(--theme-status-warning-ink);
}

.al-d--gap {
  color: var(--theme-ink-muted);
  border-bottom: 2px dotted var(--theme-status-warning-ink);
}

.al-d--gap .al-d-n {
  text-decoration: line-through;
}

.al-d--outside {
  color: var(--theme-ink-disabled);
  opacity: var(--theme-disabled-opacity, .55);
}

.al-d-mark {
  position: absolute;
  top: -.05rem;
  right: .12rem;
  font-size: .5rem;
  line-height: 1;
  color: var(--theme-ink-muted);
}

.al-d.is-here {
  background: var(--theme-object-identity-surface);
  color: var(--theme-object-identity-ink);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--theme-object-identity-ink);
  border-radius: 3px;
}

.al-d.is-here::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: var(--theme-object-identity-ink);
  transform: rotate(45deg);
}

.al-legend {
  list-style: none;
  margin: .9rem 0 0;
  padding: 0;
  display: grid;
  gap: .28rem;
  font-size: .64rem;
  color: var(--theme-ink-muted);
}

.al-legend li {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.al-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: .9rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .55rem;
  color: var(--theme-ink-muted);
  flex: 0 0 auto;
}

.al-key--canonical { border-bottom: 2px solid var(--theme-object-identity-ink); }
.al-key--bootstrap { border-bottom: 2px dashed var(--theme-rule-strong); }
.al-key--gap { border-bottom: 2px dotted var(--theme-status-warning-ink); }

.al-margin-nav {
  margin: .9rem 0 0;
  padding-top: .7rem;
  border-top: 1px solid var(--al-rule-fine);
  display: grid;
  gap: .3rem;
  font-size: .68rem;
}

.al-margin-nav a {
  color: var(--theme-ink-link);
  text-decoration: none;
}

.al-margin-nav a:hover {
  text-decoration: underline;
}

.al-margin-all {
  font-weight: 600;
}

/* ── Page head ──────────────────────────────────────────────────────────────────────────── */

.al-pagehead {
  border-top: 2px solid var(--theme-object-identity-ink);
  padding-top: .8rem;
}

.al-eyebrow {
  margin: 0 0 .35rem;
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
}

.al-vocabulary-note {
  margin: 0 0 .65rem;
  color: var(--theme-ink-secondary);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .68rem;
  line-height: 1.5;
}

.al-vocabulary-note a { color: var(--theme-ink-link); }

/* The date is the page's identity. Nothing on the record is larger. */
.al-h1 {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--theme-ink-primary);
}

.al-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem;
  margin: .55rem 0 0;
  font-size: .82rem;
  color: var(--theme-ink-secondary);
}

/* A status legible at frame zero: a border and static type, never an animation. */
.al-stamp {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .16rem .48rem;
  border-radius: 3px;
}

.al-stamp--canonical {
  color: var(--al-stamp-ink);
  border: 1px solid var(--theme-object-identity-ink);
  background: var(--theme-object-identity-surface);
}

.al-stamp--bootstrap {
  color: var(--theme-status-warning-ink);
  border: 1px dashed var(--theme-status-warning-ink);
  background: var(--theme-status-warning-surface);
}

.al-record-identity {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .7rem;
  margin: .6rem 0 0;
  color: var(--theme-ink-muted);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .66rem;
  line-height: 1.45;
}

.al-record-identity code {
  color: var(--theme-object-identity-ink, var(--theme-ink-secondary));
  font: inherit;
  font-weight: 500;
}

.al-datenav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: .5rem;
  margin: 1rem 0 .75rem;
  padding: .1rem 0;
  border-top: 1px solid var(--al-rule-fine);
  border-bottom: 1px solid var(--al-rule-fine);
}

.al-nav-link,
.al-nav-empty,
.al-nav-index {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .5rem .1rem;
  min-width: 0;
  text-decoration: none;
}

.al-nav-link {
  color: var(--theme-ink-link);
  /* Advance: the page moves in the direction of travel. */
  transition: transform .16s ease;
}

.al-nav-link--next {
  text-align: right;
  align-items: flex-end;
}

.al-nav-link--prev:hover { transform: translateX(-2px); }
.al-nav-link--next:hover { transform: translateX(2px); }

.al-nav-link:focus-visible,
.al-nav-index:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 2px;
  border-radius: 3px;
}

.al-nav-dir {
  font-size: .62rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
}

.al-nav-date {
  font-size: .9rem;
  font-weight: 650;
  color: var(--theme-ink-link);
  overflow-wrap: anywhere;
}

.al-nav-empty {
  font-size: .72rem;
  color: var(--theme-ink-muted);
}

.al-nav-index {
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--theme-ink-link);
  border-left: 1px solid var(--al-rule-fine);
  border-right: 1px solid var(--al-rule-fine);
  padding: .5rem .85rem;
}

.al-volume,
.al-gapline {
  margin: .1rem 0 0;
  font-size: .74rem;
  color: var(--theme-ink-muted);
}

.al-volume a {
  color: var(--theme-ink-link);
}

.al-gapline {
  margin-top: .45rem;
  color: var(--theme-ink-secondary);
  border-left: 2px solid var(--theme-status-warning-ink);
  padding-left: .65rem;
}

/* ── Sections ───────────────────────────────────────────────────────────────────────────── */

.al-column > section,
.al-column > aside,
.al-column > details {
  margin: 2.25rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--al-rule);
}

.al-column > section > h2,
.al-column > aside > h2 {
  margin: 0 0 .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--theme-ink-secondary);
}

.al-lede {
  margin: 0 0 1.1rem;
  max-width: 62ch;
  color: var(--theme-ink-secondary);
  font-size: .92rem;
}

.al-sub {
  margin: 1.6rem 0 .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
}

.al-fine {
  margin: .7rem 0 0;
  max-width: 66ch;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--theme-ink-muted);
}

.al-fine a,
.al-notice a {
  color: var(--theme-ink-link);
}

.al-fine--flat {
  border-left: 2px solid var(--al-rule);
  padding-left: .7rem;
}

.al-noteref {
  color: var(--theme-ink-link);
  text-decoration: none;
  font-weight: 600;
  padding: 0 .1rem;
}

.al-noteref:hover {
  text-decoration: underline;
}

.al-notice {
  font-size: .88rem;
  color: var(--theme-ink-primary);
  background: var(--theme-status-warning-surface);
  border-left: 3px solid var(--theme-status-warning-ink);
  border-top: 0;
  border-radius: 0;
  padding: .8rem 1rem;
  margin: 1rem 0 0;
}

.al-column > .al-notice--block {
  border-top: 0;
  padding: .8rem 1rem;
  margin-top: 1.5rem;
}

.al-notice h2 {
  margin: 0 0 .35rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--theme-ink-secondary);
}

.al-notice p {
  margin: 0;
}

.al-notice p + p {
  margin-top: .45rem;
}

/* ── Lead entry ─────────────────────────────────────────────────────────────────────────── */

.al-lead {
  margin-top: 1.6rem;
  min-width: 0;
}

.al-lead-kicker {
  margin: 0 0 .35rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--theme-ink-primary);
}

.al-lead-line {
  margin: 0;
  max-width: 20ch;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.024em;
  line-height: 1.06;
  color: var(--theme-ink-primary);
}

.al-lead-sub {
  margin: .7rem 0 0;
  max-width: 62ch;
  color: var(--theme-ink-secondary);
  font-size: .93rem;
}

.al-lead-exact {
  margin: .6rem 0 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .7rem;
  color: var(--theme-ink-muted);
}

.accent {
  color: var(--theme-ink-primary);
}

/* ── Figure rows ────────────────────────────────────────────────────────────────────────── */

.record-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: .85rem 1.1rem;
  margin-top: 1.15rem;
}

.record-stat {
  border-top: 1px solid var(--al-rule);
  padding-top: .55rem;
  min-width: 0;
}

.record-stat-label {
  font-size: .66rem;
  color: var(--theme-ink-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.record-stat-value {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.02rem;
  color: var(--theme-ink-primary);
  font-weight: 600;
  margin-top: .18rem;
  overflow-wrap: anywhere;
}

.record-stat-value.is-pos { color: var(--theme-status-positive-ink); }
.record-stat-value.is-neg { color: var(--theme-status-negative-ink); }

.record-stat-hint {
  font-size: .72rem;
  line-height: 1.45;
  color: var(--theme-ink-secondary);
  margin-top: .2rem;
}

/* ── Since the previous record ──────────────────────────────────────────────────────────── */

.al-spread-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.35rem;
}

.al-side {
  display: grid;
  gap: .1rem;
  padding: .8rem .9rem;
  border: 1px solid var(--al-rule);
  border-radius: 0;
  background: var(--al-margin-surface);
  min-width: 0;
}

.al-side--to {
  border-color: var(--theme-rule-strong);
  background: var(--theme-surface-inset);
}

.al-side-k {
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
}

.al-side-date {
  font-size: .95rem;
  font-weight: 650;
  color: var(--theme-ink-primary);
}

.al-side-v {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: var(--theme-ink-primary);
  margin: .2rem 0 .15rem;
  overflow-wrap: anywhere;
}

.al-side-m {
  font-size: .72rem;
  color: var(--theme-ink-secondary);
  overflow-wrap: anywhere;
}

.al-side-arrow {
  font-size: 1.2rem;
  color: var(--theme-ink-muted);
  text-align: center;
}

.al-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.al-compare,
.al-agree-table,
.al-movers {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}

.al-compare th,
.al-compare td,
.al-agree-table th,
.al-agree-table td {
  border-top: 1px solid var(--al-rule-fine);
  padding: .5rem .6rem .5rem 0;
  text-align: left;
  vertical-align: top;
}

.al-compare thead th,
.al-agree-table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--theme-rule-strong);
  font-size: .66rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
  font-weight: 600;
  white-space: nowrap;
}

.al-compare tbody th,
.al-agree-table tbody th {
  font-weight: 500;
  color: var(--theme-ink-secondary);
  padding-right: 1rem;
}

.al-compare .al-n,
.al-agree-table .al-n {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--theme-ink-primary);
  white-space: nowrap;
}

.al-compare thead .al-n,
.al-agree-table thead .al-n {
  text-align: right;
}

.al-compare tbody tr:last-child td,
.al-compare tbody tr:last-child th {
  border-bottom: 1px solid var(--al-rule);
}

.al-compare .is-pos { color: var(--theme-status-positive-ink); }
.al-compare .is-neg { color: var(--theme-status-negative-ink); }

.al-agree-table td small {
  display: block;
  font-size: .66rem;
  color: var(--theme-ink-muted);
}

.al-agree-table [data-agreement="outside"] {
  color: var(--theme-status-negative-ink);
  font-weight: 600;
}

.al-arith {
  margin: 1.4rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--theme-rule-strong);
  border-left-width: 3px;
  border-radius: 0;
  background: var(--al-margin-surface);
}

.al-arith h3,
.al-unchanged h3,
.al-chain h3,
.al-agree h3,
.al-integrity h3,
.al-audit h3,
.al-notes h3 {
  margin: 0 0 .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--theme-ink-secondary);
}

.al-arith p {
  margin: 0;
  max-width: 66ch;
  font-size: .85rem;
  color: var(--theme-ink-secondary);
}

.al-split {
  list-style: none;
  margin: .85rem 0 0;
  padding: 0;
  display: grid;
  gap: .35rem;
  font-size: .84rem;
  color: var(--theme-ink-secondary);
}

.al-split li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: .6rem;
  align-items: baseline;
  padding-top: .35rem;
  border-top: 1px solid var(--al-rule-fine);
}

.al-split .al-split-v {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--theme-ink-primary);
  font-weight: 600;
}

.al-split .is-sum {
  border-top: 1px solid var(--theme-rule-strong);
  font-weight: 600;
  color: var(--theme-ink-primary);
}

.al-unchanged {
  margin: 1.4rem 0 0;
}

.al-unchanged ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .3rem;
  font-size: .85rem;
  color: var(--theme-ink-secondary);
}

.al-unchanged li {
  padding-left: 1.15rem;
  position: relative;
}

.al-unchanged li::before {
  content: '=';
  position: absolute;
  left: 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--theme-ink-muted);
}

/* ── Attribution ────────────────────────────────────────────────────────────────────────── */

.al-attr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.al-attr {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 14ch) minmax(0, 1fr);
  gap: .5rem 1rem;
  align-items: baseline;
  padding: .6rem 0 .65rem;
  border-top: 1px solid var(--al-rule-fine);
}

.al-attr-k {
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
}

.al-attr-v {
  font-size: .95rem;
  font-weight: 650;
  color: var(--theme-ink-primary);
  overflow-wrap: anywhere;
}

.al-attr--withheld .al-attr-v {
  color: var(--theme-status-warning-ink);
  font-style: italic;
}

.al-attr--absent .al-attr-v,
.al-attr--missing .al-attr-v {
  color: var(--theme-ink-muted);
  font-weight: 500;
}

.al-attr-w {
  font-size: .82rem;
  color: var(--theme-ink-secondary);
}

.al-attr-note {
  margin: .9rem 0 0;
  max-width: 66ch;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--theme-ink-secondary);
  border-left: 2px solid var(--al-rule);
  padding-left: .7rem;
}

.al-attr-note[data-attribution-withheld] {
  border-left-color: var(--theme-status-warning-ink);
}

.al-movers-withheld {
  margin: 0;
  max-width: 66ch;
  font-size: .84rem;
  color: var(--theme-ink-secondary);
}

.al-movers td {
  border-top: 1px solid var(--al-rule-fine);
  padding: .5rem 0;
  color: var(--theme-ink-secondary);
  vertical-align: top;
}

.al-movers td:last-child {
  text-align: right;
  color: var(--theme-ink-primary);
  font-weight: 550;
  padding-left: 1rem;
}

/* ── Structure handoff ──────────────────────────────────────────────────────────────────── */

.al-struct-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: .8rem;
}

.al-struct {
  display: grid;
  gap: .12rem;
  align-content: start;
  padding: .75rem .85rem;
  border: 1px solid var(--al-rule);
  border-radius: 0;
  background: var(--al-margin-surface);
  min-width: 0;
}

.al-struct-k {
  font-size: .64rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
}

.al-struct-v {
  font-size: 1rem;
  font-weight: 650;
  color: var(--theme-ink-primary);
  overflow-wrap: anywhere;
}

.al-struct-n {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .78rem;
  color: var(--theme-ink-secondary);
}

.al-struct-m {
  font-size: .72rem;
  color: var(--theme-ink-muted);
}

.al-struct-link {
  margin-top: .45rem;
  font-size: .74rem;
  font-weight: 600;
  color: var(--theme-ink-link);
  text-decoration: none;
}

.al-struct-link:hover {
  text-decoration: underline;
}

/* ── Signal, subordinate ────────────────────────────────────────────────────────────────── */

/* Deliberately quieter than the record: smaller type, no hero, an inset leaf rather than
   a promoted card. It is an interpretation of the figures above, never the page's finding. */
.al-signal {
  background: var(--al-margin-surface);
  border-left: 3px solid var(--theme-rule-strong);
  padding: 1.15rem 1.15rem 1.25rem !important;
  border-radius: 0;
  border-top: 1px solid var(--al-rule) !important;
}

.al-signal-lead {
  margin: 0 0 .9rem;
  max-width: 62ch;
  font-size: .82rem;
  color: var(--theme-ink-muted);
}

.signal-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .4rem;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
}

.signal-badge {
  border: 1px solid var(--theme-rule-strong);
  border-radius: 2px;
  padding: .1rem .48rem;
  background: transparent;
  color: var(--theme-ink-secondary);
}

/* Subordinate: at or below the size of ordinary section prose, never headline scale. */
.signal-headline {
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--theme-ink-primary);
  font-weight: 600;
  margin: 0 0 .4rem;
  max-width: 62ch;
}

.signal-evidence {
  color: var(--theme-ink-secondary);
  font-size: .84rem;
  margin: .25rem 0 0;
  max-width: 62ch;
}

.signal-meaning {
  font-size: .76rem;
  color: var(--theme-ink-muted);
  margin: .5rem 0 0;
  max-width: 62ch;
}

/*
 * The correction prompt on a dated record.
 *
 * Deliberately quiet and set after the figures: it is an invitation to question the record, not a
 * disclaimer about it. Same class names as the Transparency page so the shared component renders
 * identically on both, with only the surrounding scale differing.
 */
.st-correction {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--theme-rule-subtle);
  max-width: 62ch;
}

.st-correction-prompt {
  font-size: .82rem;
  font-weight: 600;
  color: var(--theme-ink-primary);
  margin: 0;
}

.st-correction-action { margin: .1rem 0 0; }

.st-correction-action a {
  font-size: .82rem;
  color: var(--theme-ink-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-block;
  padding-block: 9px;
}

.st-correction-action a:hover,
.st-correction-action a:focus-visible { color: var(--theme-ink-link-hover); }

.st-correction-principle {
  font-size: .74rem;
  line-height: 1.5;
  color: var(--theme-ink-muted);
  margin: .25rem 0 0;
}

/*
 * The withdrawn record's explanation of itself.
 *
 * Set above the surrounding fine print, because a reader who has landed on a record marked
 * WITHDRAWN is asking exactly one question and this answers it. It is a short statement plus a link
 * out: the full note lives on the Transparency page, and reproducing it here would give the same
 * wording two homes. It restores nothing — no assessment, movement headline or share draft returns
 * with it.
 */
.signal-transparency {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--theme-rule-subtle);
  max-width: 62ch;
}

.signal-transparency h3 {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--theme-ink-secondary);
  margin: 0 0 .4rem;
}

.signal-transparency p {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--theme-ink-primary);
  margin: 0;
}

.signal-transparency-link { margin-top: .3rem !important; }

.signal-transparency-link a {
  font-size: .82rem;
  color: var(--theme-ink-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-block;
  padding-block: 9px;
}

.signal-transparency-link a:hover,
.signal-transparency-link a:focus-visible { color: var(--theme-ink-link-hover); }

.signal-subsignals {
  list-style: none;
  margin: .8rem 0 0;
  padding: .65rem 0 0;
  border-top: 1px solid var(--al-rule-fine);
  display: grid;
  gap: .4rem;
  max-width: 62ch;
}

.signal-subsignals li {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--theme-ink-secondary);
}

.signal-subsignal-label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .64rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
  margin-right: .4rem;
}

.signal-why {
  margin: .85rem 0 0;
  padding: .7rem .8rem;
  border: 1px solid var(--al-rule-fine);
  border-radius: 0;
  max-width: 62ch;
}

.signal-why p { margin: 0; }

.signal-why-lead {
  color: var(--theme-ink-secondary);
  font-size: .84rem;
  line-height: 1.5;
}

.signal-why-family {
  color: var(--theme-ink-link);
  font-weight: 600;
}

.signal-why-band,
.signal-why-priority {
  color: var(--theme-ink-muted);
  font-size: .78rem;
  line-height: 1.5;
  margin-top: .3rem;
}

.signal-why-link {
  display: inline-block;
  margin-top: .5rem;
  font-size: .78rem;
  color: var(--theme-ink-link);
  text-decoration: none;
  font-weight: 600;
}

.signal-why-link:hover {
  text-decoration: underline;
  color: var(--theme-ink-link-hover);
}

.signal-selection {
  margin: 1rem 0 0;
  border-top: 1px solid var(--al-rule-fine);
  border-bottom: 1px solid var(--al-rule-fine);
  max-width: 100%;
}

.signal-selection > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  color: var(--theme-ink-primary);
  cursor: pointer;
  list-style: none;
}

.signal-selection > summary::-webkit-details-marker { display: none; }

.signal-selection > summary::after {
  content: '+';
  color: var(--theme-ink-link);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1rem;
  line-height: 1;
}

.signal-selection[open] > summary::after { content: '−'; }

.signal-selection > summary:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 3px;
  border-radius: 0;
}

.signal-selection > summary span {
  font-size: .84rem;
  font-weight: 650;
}

.signal-selection > summary small {
  margin-left: auto;
  color: var(--theme-ink-muted);
  font-size: .7rem;
  font-weight: 400;
}

.signal-selection-body { padding: 0 0 1rem; }

.signal-selection-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.signal-selection-version {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .66rem;
  color: var(--theme-ink-muted);
}

.signal-selection-body > p {
  font-size: .82rem;
  color: var(--theme-ink-secondary);
  margin: .45rem 0 0;
}

.signal-rule-ladder {
  list-style: none;
  margin: .8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
}

.signal-rule-row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: .45rem;
  align-items: start;
  padding: .48rem .55rem;
  border: 1px solid var(--al-rule-fine);
}

.signal-rule-row.is-selected {
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  border-color: var(--theme-ink-link);
  background: var(--theme-selection-surface);
}

.signal-rule-order {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .66rem;
  color: var(--theme-ink-muted);
  padding-top: .08rem;
}

.signal-rule-row strong {
  display: block;
  font-size: .76rem;
  color: var(--theme-ink-primary);
  font-weight: 650;
}

.signal-rule-row small {
  display: block;
  font-size: .68rem;
  line-height: 1.35;
  color: var(--theme-ink-muted);
  margin-top: .12rem;
}

.signal-rule-selected {
  align-self: start;
  font-size: .6rem;
  line-height: 1.25;
  color: var(--theme-ink-link);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.signal-selection .signal-selection-foot {
  font-size: .73rem;
  color: var(--theme-ink-muted);
  margin-top: .7rem;
}

.signal-selection-foot a { color: var(--theme-ink-link); }

.signal-rounding,
.signal-version {
  font-size: .72rem;
  color: var(--theme-ink-muted);
  margin: .7rem 0 0;
  max-width: 62ch;
}

.signal-version { margin-top: .3rem; }

/* ── Colophon ───────────────────────────────────────────────────────────────────────────── */

.al-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0 2.25rem;
}

.al-col-dl {
  margin: 0;
  display: grid;
  gap: 0;
}

.al-col-dl > div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: .75rem;
  padding: .42rem 0;
  border-top: 1px solid var(--al-rule-fine);
  align-items: baseline;
}

.al-col-dl dt {
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
}

.al-col-dl dd {
  margin: 0;
  font-size: .82rem;
  color: var(--theme-ink-primary);
  overflow-wrap: anywhere;
}

.al-col-dl dd small {
  display: block;
  margin-top: .15rem;
  font-size: .7rem;
  color: var(--theme-ink-muted);
}

.al-col-dl dd a { color: var(--theme-ink-link); }

.al-colophon code,
.al-reference code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .78rem;
  color: var(--theme-mono-ink);
  background: var(--theme-mono-surface);
  border-radius: 3px;
  padding: .06rem .3rem;
  overflow-wrap: anywhere;
}

/* The colophon's audit disclosure. The apparatus stays on the page and one interaction away; the
   summary is a real control, so it carries a 44px target and a visible focus ring. Its first child
   drops the top rule it would otherwise draw against the summary. */
.al-col-audit {
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--al-rule);
}

.al-col-audit-summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .35rem 0;
  cursor: pointer;
  font-family: var(--al-mono, ui-monospace, monospace);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--al-ink-2, inherit);
  list-style: none;
}

.al-col-audit-summary::-webkit-details-marker { display: none; }

.al-col-audit-summary::after {
  content: "+";
  margin-left: auto;
  font-size: .95rem;
  line-height: 1;
}

.al-col-audit[open] > .al-col-audit-summary::after { content: "\2212"; }

.al-col-audit-summary:focus-visible {
  outline: 2px solid var(--theme-focus-ring, currentColor);
  outline-offset: 2px;
}

.al-col-audit-body > :first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.al-chain,
.al-agree,
.al-integrity,
.al-audit,
.al-notes {
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--al-rule);
}

.al-snaps {
  list-style: none;
  margin: 0 0 .8rem;
  padding: 0;
  counter-reset: snap;
  display: grid;
  gap: .4rem;
}

.al-snap {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: .1rem .6rem;
  padding: .5rem 0;
  border-top: 1px solid var(--al-rule-fine);
  counter-increment: snap;
}

.al-snap::before {
  content: counter(snap);
  grid-row: span 3;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .68rem;
  color: var(--theme-ink-muted);
  padding-top: .15rem;
}

.al-snap-k {
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
}

.al-snap-id {
  font-size: .76rem;
  justify-self: start;
}

.al-snap-m {
  font-size: .72rem;
  color: var(--theme-ink-secondary);
}

.al-chain-state {
  margin: 0;
  max-width: 66ch;
  font-size: .85rem;
  color: var(--theme-ink-secondary);
  border-left: 3px solid var(--theme-rule-strong);
  padding-left: .7rem;
}

.al-chain-state[data-continuity-state="break"] {
  border-left-color: var(--theme-status-negative-ink);
}

.al-chain-state[data-continuity-state="gap-boundary"],
.al-chain-state[data-continuity-state="bootstrap-boundary"],
.al-chain-state[data-continuity-state="no-predecessor"],
.al-chain-state[data-continuity-state="unknown"] {
  border-left-color: var(--theme-status-warning-ink);
}

.al-hash {
  display: grid;
  gap: .2rem;
  margin: .8rem 0 0;
}

.al-hash-k {
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
}

.record-hash {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--theme-mono-ink);
  background: var(--theme-mono-surface);
  border-radius: 0;
  padding: .3rem .45rem;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.al-boot {
  margin: 0;
  max-width: 66ch;
  font-size: .88rem;
  font-weight: 600;
  color: var(--theme-status-warning-ink);
  border-left: 3px solid var(--theme-status-warning-ink);
  padding-left: .7rem;
}

.al-audit p {
  margin: 0 0 .4rem;
  max-width: 66ch;
  font-size: .82rem;
  color: var(--theme-ink-secondary);
}

.al-note-list {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: .45rem;
  max-width: 68ch;
  font-size: .79rem;
  line-height: 1.55;
  color: var(--theme-ink-secondary);
}

.al-note-list li::marker {
  color: var(--theme-ink-muted);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.al-note-list li:target {
  background: var(--theme-selection-surface);
  border-radius: 3px;
}

/* ── Citation and reuse ─────────────────────────────────────────────────────────────────── */

.al-cite-main {
  margin: 0;
  padding: .95rem 1.05rem;
  border-left: 3px solid var(--theme-object-identity-ink);
  background: var(--theme-object-identity-surface);
  border-radius: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--theme-ink-primary);
  overflow-wrap: anywhere;
}

.al-cite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .9rem 0 0;
}

.copy-citation,
.al-pill {
  border: 1px solid var(--theme-rule-interactive);
  background: transparent;
  color: var(--theme-ink-link);
  border-radius: 3px;
  padding: .4rem .8rem;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.copy-citation:hover,
.al-pill:hover {
  background: var(--theme-surface-hover);
  border-color: var(--theme-ink-link);
}

.copy-citation:focus-visible,
.al-pill:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 2px;
}

.al-cite-forms {
  margin: 1.5rem 0 0;
  display: grid;
  gap: .9rem;
}

.al-cite-form {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: .5rem .9rem;
  padding-top: .8rem;
  border-top: 1px solid var(--al-rule-fine);
  align-items: start;
}

.al-cite-form dt {
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
}

.al-cite-form dt small {
  display: block;
  margin-top: .15rem;
  font-size: .66rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--theme-ink-muted);
}

.al-cite-form dd {
  margin: 0;
  min-width: 0;
}

.al-cite-form blockquote {
  margin: 0;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--theme-ink-secondary);
  overflow-wrap: anywhere;
}

.al-copy {
  margin-top: .5rem;
  font-size: .72rem;
  padding: .28rem .65rem;
}

/* ── Further context ────────────────────────────────────────────────────────────────────── */

.al-further > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--theme-ink-secondary);
}

.al-further > summary::-webkit-details-marker { display: none; }

.al-further > summary span {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.al-further > summary small {
  font-size: .72rem;
  font-weight: 400;
  color: var(--theme-ink-muted);
}

.al-further > summary::after {
  content: '+';
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--theme-ink-link);
}

.al-further[open] > summary::after { content: '−'; }

.al-further > summary:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 3px;
  border-radius: 3px;
}

.al-further-body { padding-top: .9rem; }

/* ── Recent state (inside Further context) ──────────────────────────────────────────────── */

.recent-state {
  margin: 1rem 0 0;
  padding: .9rem 1rem;
  background: var(--al-margin-surface);
  border: 1px solid var(--al-rule-fine);
  border-radius: 0;
}

.recent-state-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.recent-state .tape-section-head {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--theme-ink-secondary);
}

.recent-state-head > span {
  font-size: .7rem;
  color: var(--theme-ink-muted);
}

.recent-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: .8rem;
  margin-top: .75rem;
}

.recent-state-grid > div {
  border-top: 1px solid var(--al-rule-fine);
  padding-top: .55rem;
  min-width: 0;
}

.recent-state-grid span {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--theme-ink-muted);
}

.recent-state-grid strong {
  display: block;
  margin-top: .18rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .88rem;
  color: var(--theme-ink-primary);
  overflow-wrap: anywhere;
}

.recent-state-copy {
  margin: .65rem 0 0;
  font-size: .72rem;
  line-height: 1.45;
  color: var(--theme-ink-muted);
}

/* ── Previous / next record navigation ──────────────────────────────────────────────────── */

.tape-record-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 2.25rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--al-rule);
}

.tape-record-pager-link {
  display: block;
  border: 1px solid var(--al-rule);
  border-radius: 3px;
  padding: .85rem 1rem;
  text-decoration: none;
  background: var(--al-margin-surface);
  min-width: 0;
  transition: transform .16s ease, border-color .16s ease;
}

.tape-record-pager-link:hover {
  border-color: var(--theme-rule-interactive);
  background: var(--theme-surface-hover);
}

.tape-record-pager-link--prev:hover { transform: translateX(-2px); }
.tape-record-pager-link--next:hover { transform: translateX(2px); }

.tape-record-pager-link:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 2px;
}

.tape-record-pager-link--next { text-align: right; }

.tape-record-pager-dir {
  display: block;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--theme-ink-muted);
}

.tape-record-pager-date {
  display: block;
  margin-top: .2rem;
  font-size: .95rem;
  font-weight: 650;
  color: var(--theme-ink-link);
}

/* An absent neighbour stays in the grid as a muted, non-interactive cell so the pager keeps its
   shape at the ends of the archive instead of collapsing to one off-centre link. */
.tape-record-pager-empty {
  border: 1px dashed var(--al-rule-fine);
  border-radius: 0;
  padding: .85rem 1rem;
  color: var(--theme-ink-muted);
  font-size: .78rem;
  display: flex;
  align-items: center;
  min-width: 0;
}

.tape-record-pager-empty--next {
  justify-content: flex-end;
  text-align: right;
}

.al-turnfoot {
  margin: 1rem 0 0;
  font-size: .8rem;
}

.al-turnfoot a {
  color: var(--theme-ink-link);
  font-weight: 600;
}

.methodology-link { color: var(--theme-ink-link); }

/* Slice 1 type law: no dated-record heading uses a weight above 500. */
main.al-page :is(h1, h2, h3, h4, h5, h6) { font-weight: 500; }
.al-page .al-h1 { font-weight: 400; }

/* ── Degraded states (archive gap, record not found) ────────────────────────────────────── */

/* The degraded documents this route also serves: the declared-gap page and the record-not-found
   page. They are short and text-only, so the reading column stays narrow — but the column now sits
   on the publication canvas's left edge rather than being centred in the viewport, so a gap date
   opens with its title where a record's title would have been instead of 350px inboard of it. */
.wrap {
  width: min(100%, var(--layout-box-page));
  margin: 0 auto;
  padding: var(--rhythm-page-top-clear) var(--layout-gutter) 4rem;
}

.wrap > * { max-width: 680px; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--theme-ink-primary);
  margin: 0 0 .45rem;
}

.wrap .eyebrow {
  color: var(--theme-ink-muted);
  margin-bottom: .6rem;
}

.wrap h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 .9rem;
  color: var(--theme-ink-primary);
  font-weight: 600;
}

.wrap p {
  color: var(--theme-ink-secondary);
  margin: .4rem 0 1rem;
  max-width: 58ch;
}

.wrap a { color: var(--theme-ink-link); }
.wrap a:hover { color: var(--theme-ink-link-hover); }

.note {
  font-size: .92rem;
  background: rgba(var(--tape-record-tint), .04);
  border-left: 3px solid var(--theme-rule-strong);
  padding: .85rem 1rem;
  border-radius: 0;
  margin: 1.1rem 0;
  color: var(--theme-ink-secondary);
}

.wrap .tape-record-pager {
  border-top: 0;
  padding-top: 0;
}

/* ── Mobile: the margin becomes an independently composed date band ─────────────────────── */

@media (max-width: 1000px) {
  .al-spread {
    display: flex;
    flex-direction: column;
  }

  /* The month is composed for the phone rather than squeezed: full width, a real
     touch target per day, and placed after the date and the benchmark so the
     record's identity and reading arrive first. It is never a shrunken margin. */
  .al-margin {
    position: static;
    order: 3;
    margin: 1.75rem 0 0;
    padding: .8rem .9rem 1rem;
    border: 1px solid var(--al-rule);
    border-top: 2px solid var(--theme-object-identity-ink);
    border-radius: 0;
    background: var(--al-margin-surface);
  }

  .al-pagehead { order: 1; }
  .al-lead { order: 2; }
  .al-column { order: 4; }

  .al-margin-h { font-size: .95rem; }

  .al-cal th { font-size: .64rem; }

  .al-d {
    padding: .58rem 0 .6rem;
    font-size: .82rem;
  }

  .al-legend {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    font-size: .68rem;
    margin-top: 1rem;
  }

  .al-margin-nav {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    font-size: .74rem;
  }
}

@media (max-width: 720px) {
  /* No page-top override here. The 1.75rem this used to pay is less than the navigation bar is
     tall, so the eyebrow rendered underneath it; the shared page-top role already narrows at this
     width and clears the bar while doing so. */

  .al-spread-pair {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .al-side-arrow {
    transform: rotate(90deg);
    line-height: 1;
  }

  .al-datenav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 0;
  }

  .al-nav-index {
    grid-column: 1 / -1;
    order: 3;
    border: 0;
    border-top: 1px solid var(--al-rule-fine);
    padding: .55rem 0;
  }

  .al-nav-link--next { align-items: flex-end; }

  .al-attr {
    grid-template-columns: minmax(0, 1fr);
    gap: .1rem;
  }

  .al-split li { grid-template-columns: minmax(0, 1fr); gap: .1rem; }

  .al-col-dl > div,
  .al-cite-form {
    grid-template-columns: minmax(0, 1fr);
    gap: .1rem;
  }

  .al-snap { grid-template-columns: 1.2rem minmax(0, 1fr); }

  .signal-rule-ladder { grid-template-columns: 1fr; }

  .signal-rule-row.is-selected { grid-template-columns: 1.5rem minmax(0, 1fr); }

  .signal-rule-selected { grid-column: 2; }

  .signal-selection > summary {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: .2rem .75rem;
  }

  .signal-selection > summary small {
    flex-basis: calc(100% - 2rem);
    margin-left: 0;
  }

  .signal-selection > summary::after {
    margin-left: auto;
    margin-top: .15rem;
  }

  .tape-record-pager { grid-template-columns: 1fr; }

  .tape-record-pager-link--next,
  .tape-record-pager-empty--next {
    text-align: left;
    justify-content: flex-start;
  }

  /* Comparison and reconciliation tables restack into labelled rows. The labels are
     already in the delivered HTML as data-m attributes, emitted by the generator. */
  .al-compare thead,
  .al-agree-table thead { display: none; }

  .al-compare tbody tr,
  .al-agree-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: .55rem 0;
    border-top: 1px solid var(--al-rule);
  }

  .al-compare tbody th,
  .al-agree-table tbody th {
    border: 0;
    padding: 0 0 .25rem;
    font-weight: 650;
    color: var(--theme-ink-primary);
  }

  .al-compare tbody td,
  .al-agree-table tbody td {
    display: grid;
    grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
    gap: .6rem;
    border: 0;
    padding: .12rem 0;
    text-align: left;
    white-space: normal;
  }

  .al-compare tbody td::before,
  .al-agree-table tbody td::before {
    content: attr(data-m);
    font-family: 'IBM Plex Sans', Segoe UI, sans-serif;
    font-size: .68rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--theme-ink-muted);
  }
}

/* ── Motion ─────────────────────────────────────────────────────────────────────────────── */

/* Nothing enters from opacity 0, nothing loops, nothing autoplays. The only motion is
   Advance on the date controls and Resolve on the two disclosures. */
.al-further-body,
.signal-selection-body {
  animation: al-resolve .18s ease-out;
}

@keyframes al-resolve {
  from { transform: translateY(-2px); }
  to { transform: none; }
}

/* This stylesheet is loaded only by the dated record, the declared-gap page and the
   record-not-found page, so the sweep is scoped by the document that loads it. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Print: a citable dated release ─────────────────────────────────────────────────────── */

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }

  /* Chrome, controls and forms go. The record stays. */
  nav.nav,
  .nav-overlay,
  .site-footer,
  .al-margin,
  .al-datenav,
  .al-turnfoot,
  .copy-citation,
  .al-pill,
  .skip-link,
  form,
  button,
  select {
    display: none !important;
  }

  .al-page { padding: 0; }

  .al-spread {
    display: block;
    max-width: none;
    padding: 0;
  }

  /* Disclosures are forced open so nothing is lost to a collapsed state on paper. */
  .al-further[open] > summary,
  .al-further > summary,
  .signal-selection > summary {
    list-style: none;
  }

  .al-further > summary::after,
  .signal-selection > summary::after,
  .al-col-audit > summary::after { content: ''; }

  details > *:not(summary) { display: block !important; }

  /*
   * A closed <details> hides its contents with content-visibility on the ::details-content
   * pseudo-element, which the display rule above cannot reach. The rule above forces the visible
   * child block, but the browser's own hiding layer sits underneath it and still wins, so a paper
   * copy of a dated record showed the audit summary and nothing beneath it - no hash, no snapshot
   * chain, no integrity block. Every disclosure opens for print, matching what the rule above
   * already promises: nothing is lost to a collapsed state on paper.
   */
  details::details-content { content-visibility: visible; }

  .al-h1 { font-size: 22pt; }

  .al-column > section,
  .al-column > aside,
  .al-column > details {
    break-inside: auto;
    page-break-inside: auto;
    margin-top: 1.1rem;
    padding-top: .8rem;
  }

  .al-lead,
  .al-side,
  .al-arith,
  .al-attr,
  .al-struct,
  .al-snap,
  .al-cite-form,
  .al-integrity,
  .al-boot,
  .al-chain-state {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .al-signal {
    background: transparent;
    border-left: 2pt solid #999;
  }

  .record-hash,
  .al-colophon code,
  .al-reference code {
    background: transparent;
    border: 0;
    padding: 0;
  }

  /* Useful destinations survive the loss of the link. */
  .al-column a[href^="/"]::after,
  .al-column a[href^="http"]::after {
    content: ' (' attr(href) ')';
    font-size: 8pt;
    color: #444;
    overflow-wrap: anywhere;
  }

  /* The permanent route and the hash already print their own text; do not print it twice. */
  .al-cite-main a::after,
  .al-fine code + a::after,
  .al-col-dl dd a::after,
  .al-noteref::after {
    content: '' !important;
  }

  .al-table-wrap { overflow: visible; }

  .al-compare,
  .al-agree-table { font-size: 8.5pt; }

  .tape-record-pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tape-record-pager-link,
  .tape-record-pager-empty {
    border: 1px solid #bbb;
    background: transparent;
  }
}

/* ── THE DEFINITION LEDGER, OPENED OUT ─────────────────────────────────────────────────────
   /tape/YYYY-MM-DD, between the Daily Assessment and the Colophon.

   Five columns, grouped by role under mono capitals. The two attribute columns are the whole
   design: they occupy the position a spread number would have occupied, and together they say in
   words the exact thing the number would have implied falsely. There is no difference column here
   and there is no place to put one.

   It sits immediately before the Colophon because it is provenance. The Colophon says how the
   record was made; this says what else was observed beside it and, in the same breath, why none of
   it entered the measurement.

   The section frame, its top rule and its H2 come from `.al-column > section`, so it is a page
   section in the same voice as the others rather than a component with its own chrome. Everything
   below resolves through the shared semantic roles, so the route's System/Light/Dark selection
   applies to it without a second palette. */

.al-sources .st-ledger--full {
  border-top: 2px solid var(--theme-object-identity-ink);
}

/* The per-cell label for assistive technology. The visible heading row is aria-hidden and is
   display:none below 900px, so without this the Reported column reaches nobody: a screen reader
   heard the rounded figure and the observation stamp as consecutive unlabelled strings. */
.al-sources .st-ledger-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.al-sources .st-ledger-head-row,
.al-sources .st-ledger-row {
  display: grid;
  grid-template-columns:
    minmax(8.5rem, 12rem)
    minmax(0, 1fr)
    minmax(6.5rem, 9rem)
    minmax(6.5rem, 9.5rem)
    minmax(8rem, 11rem);
  column-gap: 1.4rem;
}

.al-sources .st-ledger-head-row {
  padding: .55rem 0;
  border-bottom: 1px solid var(--al-rule);
}

.al-sources .st-ledger-head-row span {
  color: var(--theme-ink-muted);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.al-sources .st-ledger-head-n { text-align: right; }

/* The group rules. They are the only thing stopping five right-aligned mono figures reading as a
   leaderboard, so they are structural: a later density pass may not quietly drop them. */
.al-sources .st-ledger-group {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: 1.05rem 0 .55rem;
  border-bottom: 1px solid var(--al-rule-fine);
}

.al-sources .st-ledger-group > span {
  color: var(--theme-ink-secondary);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .62rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.al-sources .st-ledger-group > small {
  color: var(--theme-ink-muted);
  font-size: .76rem;
}

.al-sources .st-ledger-row {
  align-items: start;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--al-rule-fine);
}

.al-sources .st-ledger-row--governing {
  border-bottom: 1px solid var(--al-rule);
  background: var(--al-ledger-governing);
  margin-inline: -.85rem;
  padding-inline: .85rem;
}

.al-sources .st-ledger-name {
  margin: 0;
  color: var(--theme-ink-primary);
  font-family: var(--serif-display);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.18;
}

.al-sources .st-ledger-row--governing .st-ledger-name { font-size: 1.28rem; }

.al-sources .st-ledger-reads {
  margin: .2rem 0 0;
  color: var(--theme-ink-secondary);
  font-size: .78rem;
  line-height: 1.4;
}

.al-sources .st-ledger-counts {
  margin: 0;
  color: var(--theme-ink-secondary);
  font-size: .84rem;
  line-height: 1.45;
}

.al-sources .st-ledger-counts b {
  color: var(--theme-ink-primary);
  font-weight: 600;
}

.al-sources .st-ledger-counts small,
.al-sources .st-ledger-attr small {
  display: block;
  margin-top: .3rem;
  color: var(--theme-ink-muted);
  font-family: 'IBM Plex Sans', Segoe UI, sans-serif;
  font-size: .76rem;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

/* Price basis and coverage. Mono capitals so they read as properties of the source rather than as
   prose, and so one column can be scanned to see exactly where the split falls. */
.al-sources .st-ledger-attr {
  margin: 0;
  color: var(--theme-ink-primary);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .07em;
  line-height: 1.4;
}

.al-sources .st-ledger-row--governing .st-ledger-attr { font-weight: 500; }

.al-sources .st-ledger-fig { text-align: right; }

.al-sources .st-ledger-value {
  color: var(--theme-ink-primary);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -.02em;
}

.al-sources .st-ledger-row--governing .st-ledger-value { font-size: 1.28rem; }

/* An absence is written out in the reading face so it cannot be scanned as a figure. */
.al-sources .st-ledger-value--absent {
  color: var(--theme-ink-muted);
  font-family: 'IBM Plex Sans', Segoe UI, sans-serif;
  font-size: .82rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.al-sources .st-ledger-exact,
.al-sources .st-ledger-when {
  display: block;
  color: var(--theme-ink-muted);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .66rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.al-sources .st-ledger-exact { margin-top: .35rem; }

.al-sources .st-ledger-preview {
  display: block;
  margin-top: .2rem;
  color: var(--al-stamp-ink);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.al-sources .st-ledger-foot {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-top: 1.1rem;
}

.al-sources .st-ledger-foot p {
  max-width: 76ch;
  margin: 0;
  color: var(--theme-ink-muted);
  font-size: .8rem;
  line-height: 1.55;
}

.al-sources .st-ledger-foot a {
  margin-left: auto;
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--theme-ink-link);
  color: var(--theme-ink-link);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .66rem;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* A block that reached the page from a fixture says so, at the top, in the reader's own words.

   The sentence is now an element the renderer emits, not a ::before. Delivered as a pseudo-element
   it existed only while the stylesheet did: with the CSS gone a reader saw a complete evidence
   table of invented figures under an affirmative heading, with no warning in the text, in a
   copy-paste, in reader mode or in the accessibility tree. This rule styles it and no longer
   carries it. */
.al-sources .st-ledger-fixture-warning {
  margin: 0 0 .6rem;
  color: var(--al-stamp-ink);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: .64rem;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  /* Five columns become four stacked lines. Same markup, placed differently: the source and its
     reading on the first line, what it counts on the second, the two attributes side by side on the
     third, and the observation stamp last. Nothing is rotated and nothing is redrawn. */
  .al-sources .st-ledger-head-row { display: none; }

  .al-sources .st-ledger-row {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: .9rem;
    row-gap: .35rem;
    align-items: baseline;
  }

  .al-sources .st-ledger-identity { grid-column: 1; grid-row: 1; }
  .al-sources .st-ledger-fig { display: contents; }
  .al-sources .st-ledger-value,
  .al-sources .st-ledger-preview { grid-column: 2; grid-row: 1; text-align: right; }
  .al-sources .st-ledger-counts { grid-column: 1 / -1; grid-row: 2; }
  .al-sources .st-ledger-attr--basis { grid-column: 1; grid-row: 3; }
  .al-sources .st-ledger-attr--coverage { grid-column: 2; grid-row: 3; }
  /* text-align is inherited through display: contents, so the promoted provenance lines would
     otherwise keep the figure column's right alignment and set a two-line sentence ragged-left
     across the page. Only the reading itself stays right. */
  .al-sources .st-ledger-exact { grid-column: 1 / -1; grid-row: 4; margin-top: .3rem; text-align: left; }
  .al-sources .st-ledger-when { grid-column: 1 / -1; grid-row: 5; text-align: left; }

  .al-sources .st-ledger-name { font-size: 1.05rem; }
  .al-sources .st-ledger-row--governing .st-ledger-name { font-size: 1.15rem; }
  .al-sources .st-ledger-value { font-size: 1.02rem; }
  .al-sources .st-ledger-row--governing .st-ledger-value { font-size: 1.15rem; }

  .al-sources .st-ledger-foot { display: block; }
  .al-sources .st-ledger-foot a { display: inline-block; margin-top: .8rem; }
}

@media (max-width: 560px) {
  /* Below the phone breakpoint the two attributes stop sharing a line: at 390px a coverage cell
     beside a price-basis cell leaves each about 150px, and both explanations were wrapping to four
     lines to pay for a symmetry no one asked for. */
  .al-sources .st-ledger-attr--basis,
  .al-sources .st-ledger-attr--coverage { grid-column: 1 / -1; }
  .al-sources .st-ledger-attr--coverage { grid-row: 4; }
  .al-sources .st-ledger-exact { grid-row: 5; }
  .al-sources .st-ledger-when { grid-row: 6; }

  .al-sources .st-ledger-row--governing {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }
}
