/* The Close archive keeps its dated register below the month calendar. */
:root {
  /* Overlay channel, mirroring css/tape-record.css so both Daily Tape surfaces build hairlines and
     insets the same way. Dark keeps white overlays; light inks them so they read on cream paper. */
  --tape-history-tint: 255, 255, 255;
  --th-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --th-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root:not([data-theme="dark"]):not([data-theme-lock="dark"]),
:root[data-theme="light"] {
  --tape-history-tint: 24, 28, 36;
}

body {
  background: var(--theme-surface-page);
  color: var(--theme-ink-primary);
  font-family: var(--th-sans);
  line-height: 1.55;
  margin: 0;
}

/* The archive index sits on the publication canvas, like the dated records it indexes. It used to
   run a private 68rem box with 1.5rem gutters, which put it at 200..1240 at 1440 — a third left
   edge between the homepage's 56 and the dated record's 414. Its top clearance comes from the
   shared page-top role rather than from 3.4rem, which was less than the navigation is tall. */
.th-page {
  width: min(100%, var(--layout-box-page));
  margin: 0 auto;
  padding: 16px var(--layout-gutter) 12px;
  box-sizing: border-box;
}

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

/* One rule, one rhythm, for every region of the page. Mirrors `.al-column > section` on the dated
   record and `.tape-shell > section` on the latest one. */
.th-page > section,
.th-page > nav {
  margin: 14px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--theme-rule-standard);
}

.th-page > section > h2,
.th-page > nav > h2 {
  margin: 0 0 .55rem;
  font-family: var(--th-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--theme-ink-secondary);
}

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

.th-pagehead {
  border-top: 2px solid var(--theme-rule-strong);
  padding-top: .8rem;
}

.th-archive-views {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
}

.th-browse-date {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
}

.th-page :is(#date-index, #weekly) { scroll-margin-top: 5rem; }
.th-number { white-space: nowrap; overflow-wrap: normal; }

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

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

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

.th-page h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  font-weight: 650;
  margin: 0;
  color: var(--theme-ink-primary);
}

/* The coverage line: the stamped status line of the dated record, carrying the archive's own
   extent instead of a record's status. */
.th-coverage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: .7rem 0 0;
}

.th-stamp {
  font-family: var(--th-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .16rem .48rem;
  border-radius: 3px;
  white-space: nowrap;
}

/* Mirrors `.al-stamp--canonical`: a border and static type, legible at frame zero. */
.th-stamp--archive,
.th-stamp--canonical {
  color: var(--theme-object-identity-ink);
  border: 1px solid var(--theme-object-identity-ink);
  background: var(--theme-object-identity-surface);
}

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

.th-coverage-line {
  font-size: .82rem;
  color: var(--theme-ink-secondary);
  font-variant-numeric: tabular-nums;
}

.th-lede {
  color: var(--theme-ink-secondary);
  margin: .9rem 0 0;
  max-width: 62ch;
  font-size: .93rem;
}

/* ── Latest record ───────────────────────────────────────────────────────────────────────────── */

/* The latest record follows the date browser. */
.th-page > section.th-latest > h2 {
  color: var(--theme-ink-primary);
}

.th-latest-date {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -.024em;
  line-height: 1.06;
}

.th-latest-date a {
  color: var(--theme-ink-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--theme-ink-link);
}

.th-latest-date a:hover {
  color: var(--theme-ink-link);
}

.th-latest-date a:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 3px;
}

.th-latest-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .65rem;
  margin: .7rem 0 0;
}

.th-latest-note {
  font-size: .76rem;
  color: var(--theme-ink-secondary);
}

.th-latest-figures {
  max-width: 40rem;
  margin: .85rem 0 0;
}

.th-latest-figure {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: baseline;
  gap: .75rem;
  border-top: 1px solid var(--theme-rule-standard);
  padding-block: .45rem;
}

.th-latest-figure dt {
  font-size: .9rem;
  color: var(--theme-ink-secondary);
}

.th-latest-figure dd {
  margin: 0;
  font-family: var(--th-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--theme-ink-primary);
  overflow-wrap: normal;
}

.th-latest-basis { margin: .5rem 0 0; color: var(--theme-ink-secondary); font-size: .9rem; }

.th-latest-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 12px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--theme-rule-subtle);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 650;
}

.th-latest-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .3rem;
  color: var(--theme-ink-link);
  text-decoration: none;
}

.th-latest-nav a::after {
  content: ' \2192';
}

.th-latest-nav a:hover {
  text-decoration: underline;
}

.th-latest-nav a:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 3px;
}

/* ── Archive coverage ────────────────────────────────────────────────────────────────────────── */

/* The volume's front matter, set as the dated record's colophon list is: hairline-ruled term and
   value rows in two columns, not a tinted panel of tiles. */
/* `min(…, 100%)` rather than a bare track minimum: an auto-fit track floor is still a floor, and a
   26rem floor is wider than a 360px phone. The column collapses to the available width instead of
   pushing the values off the page. */
.th-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  gap: 0 3rem;
  margin: 0;
}

/* 15rem holds the longest term — "Continuous canonical series begins" — on one line, so the
   hairlines stay level across both columns. */
.th-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: .75rem;
  align-items: baseline;
  padding: .45rem 0;
  border-top: 1px solid var(--theme-rule-subtle);
}

.th-facts dt {
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
  margin: 0;
}

.th-facts dd {
  margin: 0;
  font-size: .86rem;
  color: var(--theme-ink-primary);
  font-variant-numeric: tabular-nums;
}

.th-facts dd a {
  color: var(--theme-ink-link);
}

/* ── Month navigation ────────────────────────────────────────────────────────────────────────── */

/* auto-fill, not auto-fit: three months take three index columns, not a third of the page each.
   The row reads as the head of a volume index and keeps its shape as the archive grows. */
.th-months ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
}

.th-month-link {
  display: block;
  padding: .5rem .75rem .55rem 0;
  border-top: 1px solid var(--theme-rule-subtle);
  color: var(--theme-ink-link);
  text-decoration: none;
}

.th-month-link-label {
  display: block;
  font-size: .92rem;
  font-weight: 650;
}

.th-month-link-count {
  display: block;
  margin-top: .1rem;
  font-size: .7rem;
  color: var(--theme-ink-muted);
  font-variant-numeric: tabular-nums;
}

.th-month-link:hover {
  background: var(--theme-surface-hover);
}

.th-month-link:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 2px;
}

/* Current month: a solid leading rule AND the word "current" in the accessible name, so the state
   is not read from a fill alone. */
.th-month-link[aria-current="page"] {
  border-top-color: var(--theme-object-identity-ink);
  box-shadow: inset 3px 0 0 var(--theme-object-identity-ink);
  padding-left: .65rem;
}

.th-month-link[aria-current="page"] .th-month-link-label {
  color: var(--theme-ink-primary);
}

/* ── Month section ───────────────────────────────────────────────────────────────────────────── */

/* The page's principal body, so its rule is the accent one. Everything else is hairline. */
.th-page > section.th-month {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid var(--theme-rule-strong);
}

.th-month-sum {
  margin: .3rem 0 0;
  color: var(--theme-ink-secondary);
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
}

/* A month that contains declared gaps says so where the month is shown. Ochre-ruled rather than
   ochre-filled: it is a statement about the archive, not a warning. */
.th-month-gap {
  margin: .7rem 0 0;
  padding-left: .7rem;
  border-left: 2px solid var(--theme-status-warning-ink);
  max-width: 66ch;
  font-size: .8rem;
  color: var(--theme-ink-secondary);
}

/* ── Calendar ────────────────────────────────────────────────────────────────────────────────── */

.th-cal {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 0;
  table-layout: fixed;
}

.th-cal caption {
  text-align: left;
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
  padding-bottom: .5rem;
}

.th-cal th {
  font-family: var(--th-mono);
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
  font-weight: 500;
  text-align: center;
  padding: 0 0 .35rem;
  border-bottom: 1px solid var(--theme-rule-standard);
}

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

.th-cal td {
  padding: 0;
  vertical-align: top;
  border-bottom: 1px solid var(--theme-rule-subtle);
}

/* The hallmark carries the master mark and day number. */
.th-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 68px;
  padding: 5px 3px;
  text-align: center;
  text-decoration: none;
  color: var(--theme-ink-primary);
}
.th-cell time { font: 500 .75rem var(--th-mono); color: var(--theme-ink-muted); }
.th-cell-tag { font: 500 clamp(8px, 1.25vw, 11px)/1.15 var(--th-sans); overflow-wrap: anywhere; }
a.th-cell:hover, .th-cell[aria-current="date"] { background: var(--theme-surface-hover); }
a.th-cell:focus-visible, .th-cell[aria-current="date"] { outline: 2px solid var(--theme-focus-ring); outline-offset: -2px; }
.th-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.calendar-punch { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 5px; color: #1d2857; }
.calendar-punch .stamp-hallmark { display: block; width: 20px; height: 20px; }
:root:is([data-theme="dark"], [data-theme-lock="dark"]) .calendar-punch { color: #a8b7ee; }
@media (max-width: 440px) { .calendar-punch { column-gap: 3px; } .calendar-punch .stamp-hallmark { width: 16px; height: 16px; } }
.th-month-guide { margin: 0 0 .8rem; color: var(--theme-ink-muted); font-size: .875rem; }
.th-inspected-close { padding: 0; scroll-margin-block-start: 7rem; }
.close-stamp-paper { display: grid; justify-items: center; gap: 6px; margin: 14px 0 18px; padding: 16px 12px; max-width: 248px; box-sizing: border-box; color: #1d2857; background: #fefcf6; border: 1px solid #ccd0df; }
:root:is([data-theme="dark"], [data-theme-lock="dark"]) .close-stamp-paper { color: #a8b7ee; background: #1c1d26; border-color: #555b78; }
.close-stamp-paper .assay-seal { display: block; color: inherit; }
.close-stamp-paper .stamp-print { display: grid; justify-items: center; gap: .45rem; text-align: center; }
.close-stamp-paper .stamp-code-line { font-size: 11px; }
.close-stamp-paper .stamp-code-line span { display: block; }
.close-stamp-links { display: grid; justify-items: center; }
.close-stamp-paper p { margin: 0; font-size: 13px; text-align: center; }
.close-stamp-paper a { min-height: 44px; display: inline-flex; align-items: center; color: inherit; }
@media (max-width: 760px) {
  .th-cell { min-height: 56px; padding-inline: 2px; }
}

/* ── Register ────────────────────────────────────────────────────────────────────────────────── */

.th-register {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

/* Proportional tracks, so the register narrows with the column instead of falling off it. Five
   numeric columns are right-aligned and set in tabular mono, so a figure reads down the column. */
.th-reg {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, .95fr)
    minmax(0, .85fr)
    minmax(0, .85fr)
    minmax(0, .8fr)
    minmax(0, 1.2fr)
    minmax(0, 1fr);
  gap: .2rem .9rem;
  align-items: baseline;
  padding: .5rem .35rem;
  border-bottom: 1px solid var(--theme-rule-subtle);
  font-size: .88rem;
}

.th-reg--head {
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
  padding-top: 0;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--theme-rule-standard);
}

.th-reg-h-num {
  text-align: right;
}

.th-reg--gap {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(var(--tape-history-tint), .05) 0 3px,
    transparent 3px 7px
  );
  color: var(--theme-ink-secondary);
}

.th-reg--selected {
  background: var(--theme-surface-inset);
  box-shadow: inset 3px 0 0 var(--theme-object-identity-ink);
}

.th-reg-date {
  font-weight: 650;
  color: var(--theme-ink-link);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.th-reg-date:hover {
  text-decoration: underline;
}

.th-reg-date:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 2px;
}

.th-reg-date--gap {
  font-weight: 650;
  color: var(--theme-ink-secondary);
  font-variant-numeric: tabular-nums;
}

.th-reg-status {
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--theme-ink-secondary);
}

.th-reg-figure {
  font-family: var(--th-mono);
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
  color: var(--theme-ink-primary);
  text-align: right;
  overflow-wrap: normal;
}

.th-reg--gap .th-reg-figure,
.th-reg--gap .th-reg-note {
  color: var(--theme-ink-secondary);
}

/* The per-row provenance line: the stored M2 reference month, the continuity state and the
   integrity state, on one fine line under the figures. Full width by design rather than three more
   columns, because for a bootstrap record the integrity state is a sentence and not a value, and
   because these three facts have to travel with the row when a row is quoted or printed. */
.th-reg-fine {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .1rem 1.25rem;
  margin-top: .15rem;
  font-size: .76rem;
  color: var(--theme-ink-secondary);
}

.th-reg-meta {
  color: var(--theme-ink-secondary);
}

.th-reg-note {
  color: var(--theme-ink-secondary);
  max-width: 66ch;
}

.th-reg-label,
.th-reg-note-label {
  font-size: .64rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--theme-ink-muted);
  margin-right: .4rem;
}

/* Figure labels: hidden on the desktop register because the header row already names each column,
   shown inline on mobile where there is no header row. Never removed from the DOM, so the
   accessible name of each figure is complete at every width. */
.th-reg-figure .th-reg-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Month pager ─────────────────────────────────────────────────────────────────────────────── */

/* The dated record's `.al-datenav`: a ruled band rather than two floating buttons. */
.th-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--theme-rule-subtle);
  border-bottom: 1px solid var(--theme-rule-subtle);
}

.th-pager a,
.th-pager-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .1rem;
  padding: .65rem .1rem;
  min-width: 0;
  text-decoration: none;
}

.th-pager a {
  color: var(--theme-ink-link);
  transition: transform .16s ease;
}

.th-pager a[rel="next"],
.th-pager-empty--next {
  text-align: right;
  align-items: flex-end;
}

.th-pager a[rel="prev"]:hover { transform: translateX(-2px); }
.th-pager a[rel="next"]:hover { transform: translateX(2px); }

.th-pager a:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: -2px;
}

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

.th-pager-month {
  font-size: .9rem;
  font-weight: 650;
}

.th-pager-empty {
  color: var(--theme-ink-muted);
  font-size: .76rem;
}

/* ── Notes on the archive ────────────────────────────────────────────────────────────────────── */

.th-notes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-notes li {
  max-width: 74ch;
  padding: .7rem 0;
  border-top: 1px solid var(--theme-rule-subtle);
  color: var(--theme-ink-secondary);
  font-size: .85rem;
}

.th-notes li:first-child {
  border-top: 0;
  padding-top: 0;
}

.th-notes strong {
  color: var(--theme-ink-primary);
  font-weight: 650;
}

/* ── Using a record ──────────────────────────────────────────────────────────────────────────── */

.th-use-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-use-list li {
  max-width: 74ch;
  padding: .7rem 0;
  border-top: 1px solid var(--theme-rule-subtle);
  color: var(--theme-ink-secondary);
  font-size: .85rem;
}

.th-use-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.th-use-list a {
  color: var(--theme-ink-link);
}

.th-page code {
  font-family: var(--th-mono);
  font-size: .78rem;
  color: var(--theme-mono-ink);
  background: var(--theme-mono-surface);
  border-radius: 3px;
  padding: .06rem .3rem;
  overflow-wrap: anywhere;
}

.th-provenance {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--theme-rule-subtle);
  max-width: 74ch;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--theme-ink-muted);
}

/* ── Tablet: the register loses its column rhythm before it loses the calendar ────────────────── */

/* Between the calendar breakpoint and roughly a small laptop the six columns are legible but
   tight, so the fine line and the head shrink rather than the figures. */
@media (max-width: 920px) {
  /* The private 1.25rem inset is gone: --layout-gutter already narrows across this band and is what
     every other route pays here. */
  .th-reg {
    gap: .2rem .65rem;
    font-size: .84rem;
  }

  .th-facts > div {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: .6rem;
  }
}

/* ── Mobile: independently composed ──────────────────────────────────────────────────────────── */

/* Form smaller register rows under the calendar on narrow screens. */
@media (max-width: 760px) {
  .th-reg--head {
    display: none;
  }

  .th-reg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem .75rem;
    padding: .75rem .25rem;
  }

  .th-reg-date,
  .th-reg-date--gap {
    grid-column: 1;
    font-size: 1rem;
  }

  .th-reg-status {
    grid-column: 2;
    text-align: right;
  }

  /* A gap row carries no figures, so its status is given the whole right-hand side rather than a
     third of it — "Declared archive gap" should not break across two lines on a phone. */
  .th-reg--gap {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .th-reg--gap .th-reg-date--gap {
    grid-column: 1;
  }

  .th-reg--gap .th-reg-status {
    grid-column: 2;
  }

  .th-reg-figure {
    text-align: left;
    font-size: .88rem;
  }

  .th-reg-figure .th-reg-label {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 .1rem;
    overflow: visible;
    clip: auto;
    clip-path: none;
    font-family: var(--th-sans);
  }

  .th-reg-fine {
    gap: .1rem .9rem;
    font-size: .74rem;
  }

  .th-months ol {
    grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr));
  }

  .th-latest-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem .9rem;
  }
}

/* Below this the coverage list stops trying to hold a term column: the term sits above its value
   so a long term like "Continuous canonical series begins" is not squeezed into 40% of a phone. */
@media (max-width: 520px) {
  .th-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: .1rem;
    padding: .5rem 0;
  }
}

@media (max-width: 400px) {
  .th-reg {
    gap: .3rem .55rem;
  }

  .th-reg-figure {
    font-size: .82rem;
  }

  .th-reg-figure .th-reg-label {
    font-size: .58rem;
    letter-spacing: .05em;
  }
}

/* ── Print ───────────────────────────────────────────────────────────────────────────────────── */

/* A printed History page is a printed index: the identity, the coverage, the latest record, and
   the register with every status and every declared gap intact. Navigation affordances that cannot
   be used on paper are dropped; nothing that carries a status, a figure, a gap or a permanent
   address is. */
@media print {
  /* The shared chrome: `nav.nav` is the top bar (deliberately not wrapped in a
     <header> — see scripts/lib/site-chrome.mjs), `.nav-overlay` the mobile
     dialog, `footer.site-footer` the quiet footer. None of the three is usable
     on paper. The legend stays: it is what explains the cell tags. */
  nav.nav,
  .nav-overlay,
  footer.site-footer,
  .th-months,
  .th-pager,
  .th-latest-nav {
    display: none !important;
  }

  .th-page {
    max-width: none;
    padding: 0;
  }

  .th-reg,
  .th-cell,
  .th-facts > div,
  .th-latest,
  .th-notes li,
  .th-use-list li {
    break-inside: avoid;
  }

  .th-month {
    break-before: auto;
  }

  .th-reg--gap {
    background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .12) 0 3px, transparent 3px 7px);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .calendar-punch { color: #1d2857 !important; }

  .th-reg-date,
  .th-reg-date--gap,
  .th-cell,
  .th-latest-date a {
    color: inherit;
  }

  /* The permanent route is the point of the page, so print it beside each date. */
  .th-reg-date::after,
  .th-latest-date a::after {
    content: " (" attr(href) ")";
    font-weight: 400;
    font-size: .78em;
  }

  /* The lead date is set at display size; its route is a reference, not a headline. */
  .th-latest-date a::after {
    font-size: .38em;
    letter-spacing: 0;
  }
}

.th-all-dates { border-top: 1px solid var(--rule, #aaa); padding-block: 8px; }
.th-all-dates summary { cursor: pointer; min-height: 44px; align-content: center; font-weight: 600; }
.th-all-dates ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0 16px; padding: 0; list-style: none; }
.th-all-dates a { display: inline-flex; align-items: center; min-height: 44px; }
