/* ==========================================================================
   Miera 95 · 95A
   One stylesheet, served from this origin. No imports from anywhere else.
   ========================================================================== */

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

:root {
  /* The palette. */
  --ground: #E9EDE6;
  --paper: #F5F7F1;
  --ink: #23302B;
  --verdigris: #4E7C6B;
  --ochre: #C08A2E;
  --rose: #A9576A;
  --lapis: #2F4F73;
  --sage: #8FA88C;
  --line: #C9CFC2;

  /* Derived. Secondary inks are pre-mixed rather than transparent so they
     hold their contrast over both --ground and --paper (4.6:1 and better).
     The -deep variants exist because --ochre and --sage are readable as
     rules and glass, but not as text. */
  --ink-soft: #4A544E;
  --ink-mute: #626B65;
  --ochre-deep: #8A6018;
  --verdigris-deep: #3F6959;
  --paper-hi: #FBFCF8;
  --wash-ochre: #F0ECDE;

  /* Type. Body is 18px at 1.65 — the measure this whole layout is built on. */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", "Liberation Serif", serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", "Liberation Sans", Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.125rem;
  --text-md: 1.3125rem;
  --text-lg: 1.625rem;
  --text-xl: clamp(2rem, 1.45rem + 2.4vw, 2.75rem);

  --leading-body: 1.65;
  --leading-tight: 1.2;

  /* Space. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(2.5rem, 6vw, 4.5rem);

  --measure: 36rem;
  --shell: 72rem;
  --radius: 3px;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4,
p, ul, ol, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img, svg {
  max-width: 100%;
}

svg {
  display: block;
}

a {
  color: var(--lapis);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--lapis);
  outline-offset: 2px;
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.main {
  flex: 1 0 auto;
  padding-block: var(--space-8);
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: var(--space-4);
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: var(--space-2);
  z-index: 10;
  transform: translateY(-200%);
  padding: var(--space-2) var(--space-4);
  background-color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

#content:focus {
  outline: none;
}

/* --------------------------------------------------------------------------
   4. Masthead and the fanlight
   -------------------------------------------------------------------------- */

.masthead {
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  padding-block: clamp(2rem, 5vw, 3.25rem) var(--space-5);
  text-align: center;
}

.masthead__brand {
  display: block;
  color: inherit;
  text-decoration: none;
}

.masthead__brand:focus-visible {
  outline-offset: 6px;
}

.fanlight {
  width: min(100%, 26rem);
  height: auto;
  margin-inline: auto;
}

.fanlight__glazing {
  fill: var(--paper);
}

.fanlight__pane {
  stroke: var(--line);
  stroke-width: 1.75;
  stroke-linejoin: round;
  fill-opacity: 0.5;
}

.fanlight__pane--sage { fill: var(--sage); }
.fanlight__pane--verdigris { fill: var(--verdigris); }
.fanlight__pane--lapis { fill: var(--lapis); fill-opacity: 0.4; }
.fanlight__pane--ochre { fill: var(--ochre); }
.fanlight__pane--rose { fill: var(--rose); fill-opacity: 0.45; }

.fanlight__frame {
  fill: var(--ground);
  stroke: var(--line);
  stroke-width: 1;
}

.fanlight__rim {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-opacity: 0.35;
}

.fanlight__rondel {
  fill: var(--paper);
  stroke: var(--line);
  stroke-width: 1.75;
}

.fanlight__rays path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.fanlight__boss {
  fill: var(--ochre);
  fill-opacity: 0.65;
  stroke: var(--ochre-deep);
  stroke-width: 1;
  stroke-opacity: 0.5;
}

.fanlight__sill {
  fill: var(--ink);
}

.fanlight__sill-shadow {
  fill: var(--line);
}

.wordmark {
  display: block;
  margin-top: var(--space-4);
}

.wordmark__name {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: 0.04em;
  color: var(--ink);
}

.wordmark__place {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.masthead__tagline {
  max-width: 34rem;
  margin: var(--space-4) auto 0;
  font-style: italic;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */

.masthead__bar {
  border-top: 1px solid var(--line);
}

.masthead__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
}

.nav__list,
.langs__list,
.footer__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.nav__list {
  gap: 0 clamp(0.9rem, 2.2vw, 1.75rem);
}

.nav__link {
  display: inline-block;
  padding-block: var(--space-3);
  border-bottom: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--ink);
  border-bottom-color: var(--ochre);
}

.nav__link--current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--verdigris);
}

.langs__list {
  gap: var(--space-1);
}

.langs__link {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
}

.langs__link:hover {
  color: var(--ink);
  border-color: var(--line);
}

.langs__link--current {
  color: var(--ink);
  background-color: var(--ground);
  border-color: var(--line);
}

/* --------------------------------------------------------------------------
   6. Page furniture
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}

.page--error .eyebrow {
  color: var(--rose);
}

.page-title {
  margin-top: var(--space-2);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

.lede {
  max-width: 40rem;
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--ink-soft);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--line);
}

.back-link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

.back-link::before {
  content: "\2190";
  margin-inline-end: 0.4em;
}

/* --------------------------------------------------------------------------
   7. Home
   -------------------------------------------------------------------------- */

.page--home .lede {
  font-size: clamp(1.3125rem, 1.15rem + 0.7vw, 1.5rem);
  color: var(--ink);
}

.notice {
  margin-top: var(--space-6);
  padding: var(--space-5);
  max-width: 44rem;
  background-color: var(--wash-ochre);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ochre);
  border-radius: var(--radius);
}

.notice__heading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}

.notice__body {
  margin-top: var(--space-2);
  color: var(--ink-soft);
}

.sections {
  margin-top: var(--space-8);
}

/* Hairline grid: the 1px gap over a --line background draws the rules
   between cards, so no card needs its own borders. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px;
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
  background-color: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  position: relative;
  padding: var(--space-5);
  background-color: var(--paper);
  box-shadow: inset 3px 0 0 var(--card-accent, var(--sage));
}

.card:nth-child(7n + 1) { --card-accent: var(--verdigris); }
.card:nth-child(7n + 2) { --card-accent: var(--ochre); }
.card:nth-child(7n + 3) { --card-accent: var(--lapis); }
.card:nth-child(7n + 4) { --card-accent: var(--rose); }
.card:nth-child(7n + 5) { --card-accent: var(--sage); }
.card:nth-child(7n + 6) { --card-accent: var(--verdigris); }
.card:nth-child(7n + 7) { --card-accent: var(--ochre); }

.card:hover {
  background-color: var(--paper-hi);
}

.card__title {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.25;
}

.card__link {
  color: var(--ink);
  text-decoration: none;
}

/* The whole card is the target — without a script, and without nesting
   block content inside the anchor. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card__link:hover {
  text-decoration: underline;
  text-decoration-color: var(--card-accent);
}

.card__summary {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   8. Callout (used by the section stubs)
   -------------------------------------------------------------------------- */

.callout {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--verdigris);
  border-radius: var(--radius);
}

.callout__heading {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.callout > * + * {
  margin-top: var(--space-3);
}

.callout p {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   9. Forms — styled for the no-JavaScript path, which is the only path
   -------------------------------------------------------------------------- */

.form {
  max-width: var(--measure);
  margin-top: var(--space-6);
}

.form > * + * {
  margin-top: var(--space-5);
}

.form__summary {
  padding: var(--space-4) var(--space-5);
  background-color: var(--paper);
  border: 1px solid var(--rose);
  border-left: 3px solid var(--rose);
  border-radius: var(--radius);
}

.form__summary-list {
  list-style: disc;
  padding-inline-start: 1.2em;
  font-size: var(--text-sm);
}

.field__label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field__required {
  color: var(--rose);
  margin-inline-start: 0.15em;
}

.field__hint,
.field__error {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.field__hint {
  margin-top: var(--space-1);
  color: var(--ink-mute);
}

.field__error {
  margin-top: var(--space-1);
  font-weight: 600;
  color: var(--rose);
}

.field__control {
  display: block;
  width: 100%;
  margin-top: var(--space-2);
  padding: 0.6rem 0.75rem;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
}

.field__control:hover {
  border-color: var(--sage);
}

.field--invalid .field__control {
  border-color: var(--rose);
}

.button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background-color: var(--verdigris-deep);
  border: 1px solid var(--verdigris-deep);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper);
  cursor: pointer;
}

.button:hover {
  background-color: var(--ink);
  border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   10. Footer and colophon
   -------------------------------------------------------------------------- */

.footer {
  flex-shrink: 0;
  margin-top: var(--space-8);
  padding-block: var(--space-7) var(--space-6);
  background-color: var(--paper);
  border-top: 1px solid var(--line);
}

.footer__heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.footer__list {
  gap: var(--space-2) var(--space-5);
  justify-content: center;
}

.footer__link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* The colophon: the mark, the motto, the imprint. */
.colophon {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  max-width: 44rem;
  margin: var(--space-6) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  text-align: center;
}

.mark {
  width: 4rem;
  height: auto;
}

.mark__pane {
  stroke: var(--line);
  stroke-width: 0.75;
  fill-opacity: 0.55;
}

.mark__pane--verdigris { fill: var(--verdigris); }
.mark__pane--ochre { fill: var(--ochre); }
.mark__pane--rose { fill: var(--rose); fill-opacity: 0.5; }

.mark__rondel {
  fill: var(--paper);
  stroke: var(--line);
  stroke-width: 0.75;
}

.mark__sill {
  fill: var(--ink);
}

.colophon__motto {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.colophon__imprint {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.colophon__sep {
  margin-inline: 0.5em;
  color: var(--sage);
}

.colophon__note {
  max-width: 32rem;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   11. The page map: sections, tiers, and the pages of the spec
   -------------------------------------------------------------------------- */

.section-note {
  max-width: var(--measure);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink-mute);
}

.mapsec {
  margin-top: var(--space-6);
}

.mapsec__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--ink);
}

.mapsec__n {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--lapis);
}

.mapsec__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.mapsec__title a {
  color: var(--ink);
  text-decoration: none;
}

.mapsec__title a:hover {
  text-decoration: underline;
}

.mapsec .cards {
  margin-top: var(--space-4);
}

/* The tier badge. Three states, and the difference between them has to survive
   greyscale printing and colour-blindness, so each carries its own word. */
.tier {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier--public {
  color: var(--verdigris-deep);
  border-color: var(--verdigris);
  background-color: #E4EDE7;
}

.tier--resident {
  color: var(--ochre-deep);
  border-color: var(--ochre);
  background-color: var(--wash-ochre);
}

.tier--owner {
  color: var(--lapis);
  border-color: var(--lapis);
  background-color: #E4EAF1;
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.card__ref {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lapis);
}

/* A closed page is listed, not hidden — but it should not look like an
   invitation. */
.card--closed {
  background-color: var(--ground);
}

.card--closed .card__title {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   12. A page of the map
   -------------------------------------------------------------------------- */

.topic__head {
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--ink);
}

.topic__ref {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.topic__body > * + * {
  margin-top: var(--space-5);
}

.topic__body {
  margin-top: var(--space-5);
  max-width: 46rem;
}

.lang-note {
  margin-top: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-mute);
}

.block__heading {
  margin-top: var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lapis);
}

/* Dashed, because the content inside it is not adopted yet and should not be
   read as settled. */
.block {
  margin-top: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background-color: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-soft);
}

.srcbox,
.downloads {
  padding: var(--space-4) var(--space-5);
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lapis);
  border-radius: var(--radius);
}

.downloads {
  border-left-color: var(--verdigris);
}

.srcbox__label,
.downloads__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.srcbox__list,
.downloads__list {
  margin-top: var(--space-3);
  padding: 0;
  list-style: none;
}

.srcbox__item,
.downloads__item {
  padding-block: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.srcbox__item + .srcbox__item,
.downloads__item + .downloads__item {
  border-top: 1px solid var(--line);
}

.srcbox__state,
.downloads__meta {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-mute);
}

.srcbox__item--pending .srcbox__name {
  color: var(--ink-mute);
}

.downloads__link {
  font-weight: 600;
}

.warn {
  padding: var(--space-4) var(--space-5);
  background-color: #F4E9EB;
  border-left: 3px solid var(--rose);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-soft);
}

.warn strong {
  color: var(--rose);
}

/* The access notice: the whole of a page that is not open yet. */
.gate {
  padding: var(--space-5);
  background-color: var(--wash-ochre);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ochre);
  border-radius: var(--radius);
}

.gate > * + * {
  margin-top: var(--space-3);
}

.gate__heading {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 600;
}

.gate p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-soft);
}

.gate__count {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ochre-deep) !important;
}

/*
  Lead-in to the download list on a closed page — a sibling of .gate, not a
  child, so it needs its own type. Only 7.4 shows it today: the draft access
  decision stays readable while the page it belongs to does not.
*/
.gate__docnote {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   13. The issue register (4.4)
   -------------------------------------------------------------------------- */

.register {
  margin-top: var(--space-6);
}

.register__note,
.register__count,
.register__rule,
.register__meta,
.register__empty {
  max-width: 46rem;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-soft);
}

.register__note + .register__note {
  margin-top: var(--space-3);
}

.register__count {
  margin-top: var(--space-4);
  font-weight: 600;
  color: var(--ink);
}

.register__rule {
  margin-top: var(--space-4);
  padding-inline-start: var(--space-4);
  border-inline-start: 3px solid var(--verdigris);
  font-weight: 600;
}

.register__meta {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--ink-mute);
}

/* A GET form: the selection ends up in the URL, so a filtered register can be
   bookmarked and pasted into an agenda. */
.filters {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filters__heading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.filters__label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.filters__control {
  margin-top: var(--space-1);
  padding: 0.45rem 0.6rem;
  max-width: 16rem;
  background-color: var(--paper-hi);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--ink);
}

.filters__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.filters__clear {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

/* Wide tables scroll inside their own box rather than pushing the page
   sideways. */
.table-scroll {
  margin-top: var(--space-4);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  background-color: var(--paper);
  font-size: var(--text-sm);
}

.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  text-align: start;
  vertical-align: top;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}

.table thead th {
  position: sticky;
  top: 0;
  background-color: var(--ground);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}

.table__id {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--lapis);
  white-space: nowrap;
}

.status {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  background-color: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   14. Preferences and print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-soft: var(--ink);
    --ink-mute: var(--ink);
    --line: #7C857A;
  }
}

@media print {
  .page {
    background: #fff;
  }

  .masthead__bar,
  .skip-link,
  .footer__nav {
    display: none;
  }

  .card,
  .notice,
  .callout,
  .block,
  .gate,
  .srcbox,
  .table tr {
    break-inside: avoid;
  }

  /* On paper the register is the whole point of the page: let it print wide
     rather than clipped to a scroll box. */
  .table-scroll {
    overflow-x: visible;
  }

  .table {
    min-width: 0;
    font-size: 10pt;
  }

  .filters {
    display: none;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
