/* 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-ink-link);
}

: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);
}

/* ── 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;
}

.al-page {
  padding: 2.5rem 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. */
.al-spread {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  column-gap: 2.75rem;
  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-accent);
  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-ink-link);
  border-bottom-color: var(--theme-accent);
  font-weight: 600;
}

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

.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-accent-surface);
  color: var(--theme-ink-link);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--theme-accent);
  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-accent);
  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-accent); }
.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-accent);
  padding-top: .8rem;
}

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

/* The date is the page's identity. Nothing on the record is larger. */
.al-h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  font-weight: 650;
  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-accent);
  background: var(--theme-accent-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-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 6px 6px 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;
}

/* ── 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-accent-hover);
}

.al-lead-line {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  font-weight: 650;
  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-link);
}

/* ── 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: 6px;
  background: var(--al-margin-surface);
  min-width: 0;
}

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

.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 6px 6px 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: 6px;
  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 8px 8px 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: 999px;
  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;
}

.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: 6px;
  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: 3px;
}

.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-accent);
  background: var(--theme-accent-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;
}

.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-accent);
  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: 4px;
  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-accent-surface);
  border-radius: 3px;
}

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

.al-cite-main {
  margin: 0;
  padding: .95rem 1.05rem;
  border-left: 3px solid var(--theme-accent);
  background: var(--theme-accent-surface);
  border-radius: 0 6px 6px 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: 999px;
  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-accent);
}

.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: 8px;
}

.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: 8px;
  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: 8px;
  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); }

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

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--theme-accent-hover);
  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: 6px;
  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;
    padding: 0 1.1rem;
  }

  /* 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-accent);
    border-radius: 0 0 8px 8px;
    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) {
  .al-page { padding-top: 1.75rem; }

  .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 { content: ''; }

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

  .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;
  }
}
