/* Guardians of the Sounds: production stylesheet.
   One file, no imports, no web fonts. Tokens first, then base, layout, components, pages.
   Contrast ratios for every text pair are listed in tokens-and-guide.md (all WCAG 2.1 AA or better).
   CSP: style-src 'self'. Nothing here depends on inline styles. */

/* ---------------------------------------------------------------- 1. Tokens */
:root {
  color-scheme: light dark;

  /* Palette (light). Sea = Queen Charlotte water, bush = beech and kanuka, sand = the foreshore. */
  --bg: #f6f3ec;          /* sand paper */
  --surface: #ffffff;
  --sunk: #ebe5d8;        /* alternate section band */
  --ink: #15242b;         /* body text: 14.4:1 on --bg */
  --muted: #4b5a60;       /* secondary text: 6.5:1 on --bg, 5.7:1 on --sunk */
  --line: #d6cebf;        /* decorative rules only */
  --field: #6b7b81;       /* form control borders: 4.4:1 on --surface (1.4.11 needs 3:1) */
  --sea: #0b5e6e;         /* links, primary buttons: 6.7:1 on --bg */
  --sea-hover: #084a57;
  --on-sea: #ffffff;      /* 7.4:1 on --sea */
  --sea-tint: #e0edee;
  --deep: #0d3440;        /* footer, join band: white 13.3:1 */
  --on-deep: #ffffff;
  --on-deep-muted: #b9cbd0; /* 7.9:1 on --deep */
  --bush: #2e5b39;        /* secondary accent, success: 7.1:1 on --bg */
  --bush-tint: #e3ebdf;
  --error: #a4271c;       /* 6.6:1 on --bg, 6.3:1 on --error-tint */
  --error-tint: #fbecea;
  --focus: #b0520f;       /* ochre focus ring: 4.7:1 on --bg */
  --focus-on-dark: #f2b36b; /* 7.2:1 on --deep */
  --scrim: 11 29 36;      /* rgb of the hero text scrim */

  /* Type. System stacks only: an old-style serif for headings (editorial), the UI sans for text. */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;

  /* Fluid type scale, 320px to 1440px viewport. Ratio about 1.2 at mobile, 1.28 at desktop. */
  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1.01rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.31rem + 0.9vw, 2.05rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.6vw, 2.8rem);
  --step-4: clamp(2.1rem, 1.55rem + 2.6vw, 3.75rem);
  --step-5: clamp(2.4rem, 1.55rem + 4.1vw, 4.75rem);

  /* Spacing scale (fluid at the larger steps). */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: clamp(2rem, 1.7rem + 1.4vw, 3rem);
  --space-xl: clamp(2.5rem, 2rem + 2vw, 4rem);
  --space-2xl: clamp(3rem, 2.4rem + 3vw, 5.5rem);

  /* Layout */
  --wrap: 74rem;          /* 1184px content max */
  --measure: 66ch;        /* prose line length */
  --gutter: clamp(1rem, 0.6rem + 2.5vw, 2.5rem);
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --radius: 3px;
  --radius-l: 4px;
  --tap: 44px;            /* minimum touch target */
  --shadow: 0 1px 2px rgb(21 36 43 / 0.06), 0 6px 20px rgb(21 36 43 / 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1b20;
    --surface: #15252c;
    --sunk: #0b1519;
    --ink: #e7edef;
    --muted: #a7b6bb;
    --line: #2c4048;
    --field: #6f8790;     /* 4.2:1 on --surface */
    --sea: #7cc8d4;       /* 9.2:1 on --bg */
    --sea-hover: #a3dbe3;
    --on-sea: #08262d;    /* 8.4:1 on --sea */
    --sea-tint: #12313a;
    --deep: #0a2229;
    --on-deep-muted: #b9cbd0;
    --bush: #93c79f;
    --bush-tint: #1a2d22;
    --error: #ff9b8f;
    --error-tint: #3a1a17;
    --focus: #f2b36b;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 20px rgb(0 0 0 / 0.25);
  }
}

/* ---------------------------------------------------------------- 2. Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hanging-punctuation: first last;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0) / 1.6 var(--font-sans);
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
  line-height: 1.25;
}
h4 {
  font-size: var(--step-0);
  font-family: var(--font-sans);
  font-weight: 650;
}

p,
ul,
ol,
dl,
figure,
blockquote,
table {
  margin: 0 0 var(--space-s);
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.35em;
}

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

a:hover {
  color: var(--sea-hover);
  text-decoration-thickness: 2px;
}

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

strong,
b {
  font-weight: 650;
}

small {
  font-size: var(--step--1);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-l) 0;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

blockquote {
  margin-inline: 0;
  font-family: var(--font-serif);
  font-size: var(--step-2);
  line-height: 1.3;
}

blockquote p {
  margin-bottom: var(--space-2xs);
}

blockquote footer,
figcaption {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.5;
}

figcaption {
  margin-top: var(--space-2xs);
}

time {
  font-variant-numeric: tabular-nums;
}

[hidden] {
  display: none !important;
}

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

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

/* ---------------------------------------------------------------- 3. Layout primitives */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad-l) + var(--pad-r));
  margin-inline: auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}

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

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

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

.section {
  padding-block: var(--space-xl);
}

.section--sunk {
  background: var(--sunk);
}

/* Two plain sections in a row share one gap instead of two. */
.section:not(.section--sunk) + .section:not(.section--sunk, .band) {
  padding-top: 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-m);
  margin-bottom: var(--space-l);
}

.section__head h2 {
  margin: 0;
}

.section__head p {
  margin: 0;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
  max-width: 38em;
}

/* Two columns that stack: text and a supporting column (image, aside, form panel). */
.split {
  display: grid;
  gap: var(--space-l);
  align-items: start;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-xl);
  }
  .split--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .split--aside-first {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

.grid {
  display: grid;
  gap: var(--space-l) var(--space-m);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.grid > li + li {
  margin-top: 0;
}

.stack > * + * {
  margin-top: var(--space-s);
}

/* ---------------------------------------------------------------- 4. Skip link */
.skip-link {
  position: absolute;
  left: var(--space-s);
  top: var(--space-s);
  z-index: 100;
  padding: var(--space-xs) var(--space-s);
  background: var(--deep);
  color: var(--on-deep);
  font-weight: 650;
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--on-deep);
  outline-color: var(--focus-on-dark);
}

/* ---------------------------------------------------------------- 5. Header and navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: 4.5rem;
  padding-block: var(--space-2xs);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--ink);
  text-decoration: none;
  min-height: var(--tap);
  min-width: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 3rem;
  height: 3rem;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.08rem, 0.95rem + 0.6vw, 1.4rem);
}

.brand__tagline {
  font-size: var(--step--1);
  color: var(--muted);
}

@media (max-width: 29.99rem) {
  .brand__tagline {
    display: none;
  }
}

/* Wide screens: inline list. Narrow screens: <details> disclosure. Only one is ever displayed. */
.nav-inline {
  display: none;
}

.nav-inline ul,
.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-inline li + li,
.nav-menu li + li {
  margin: 0;
}

.nav-inline ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 var(--space-3xs);
}

.nav-inline a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--space-xs);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius);
}

.nav-inline a:hover {
  color: var(--sea);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.nav-inline a[aria-current="page"] {
  color: var(--sea);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.nav-inline .nav-cta,
.nav-menu .nav-cta {
  background: var(--sea);
  color: var(--on-sea);
  font-weight: 650;
  margin-left: var(--space-2xs);
}

.nav-inline .nav-cta:hover,
.nav-inline .nav-cta[aria-current="page"] {
  background: var(--sea-hover);
  color: var(--on-sea);
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .nav-inline .nav-cta:hover,
  .nav-inline .nav-cta[aria-current="page"] {
    background: var(--sea-hover);
  }
}

.nav-menu > summary {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 var(--space-s);
  border: 1px solid var(--field);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

/* Three-line glyph drawn with borders, becomes a cross when open. */
.nav-menu__icon {
  position: relative;
  width: 1.1rem;
  height: 0.8rem;
  border-block: 2px solid currentColor;
}

.nav-menu__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid currentColor;
  transform: translateY(-50%);
}

.nav-menu[open] .nav-menu__icon {
  border-color: transparent;
}

.nav-menu[open] .nav-menu__icon::before,
.nav-menu[open] .nav-menu__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid currentColor;
}

.nav-menu[open] .nav-menu__icon::before {
  transform: translateY(-50%) rotate(45deg);
}

.nav-menu[open] .nav-menu__icon::after {
  transform: translateY(-50%) rotate(-45deg);
}

.nav-menu[open] > summary {
  background: var(--sea-tint);
}

.nav-menu ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: var(--space-2xs) var(--pad-r) var(--space-s) var(--pad-l);
}

.nav-menu a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 var(--space-xs);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--step-1);
  border-bottom: 1px solid var(--line);
}

.nav-menu a[aria-current="page"] {
  color: var(--sea);
  font-weight: 650;
}

.nav-menu .nav-cta {
  justify-content: center;
  margin: var(--space-s) 0 0;
  border: 0;
  border-radius: var(--radius);
}

@media (min-width: 62rem) {
  .nav-inline {
    display: block;
  }
  .nav-menu {
    display: none;
  }
}

/* ---------------------------------------------------------------- 6. Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: var(--tap);
  padding: 0.6em 1.25em;
  border: 2px solid var(--sea);
  border-radius: var(--radius);
  background: var(--sea);
  color: var(--on-sea);
  font: 650 var(--step-0) / 1.2 var(--font-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button:hover {
  background: var(--sea-hover);
  border-color: var(--sea-hover);
  color: var(--on-sea);
  text-decoration: none;
}

.button--quiet {
  background: transparent;
  color: var(--sea);
}

.button--quiet:hover {
  background: var(--sea-tint);
  color: var(--sea-hover);
}

/* On dark or photographic backgrounds. */
.button--light {
  background: #ffffff;
  border-color: #ffffff;
  color: #0d3440;
}

.button--light:hover {
  background: #e0edee;
  border-color: #e0edee;
  color: #0d3440;
}

.button--outline-light {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.button--outline-light:hover {
  background: rgb(255 255 255 / 0.14);
  border-color: #ffffff;
  color: #ffffff;
}

.button[disabled],
.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
  margin-top: var(--space-m);
}

/* Text link with a drawn arrow (no icon font). */
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: var(--tap);
  font-weight: 600;
}

.more::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* ---------------------------------------------------------------- 7. Hero (home) and page heads */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(30rem, 78svh, 46rem);
  color: #ffffff;
  background: var(--deep);
  --focus: var(--focus-on-dark);
}

.hero > picture,
.hero > picture img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.hero > picture {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Scrim for legibility: a plain photographic darkening from the bottom, not a decorative gradient. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgb(var(--scrim) / 0.88) 0%,
    rgb(var(--scrim) / 0.62) 38%,
    rgb(var(--scrim) / 0.1) 75%,
    rgb(var(--scrim) / 0) 100%
  );
}

.hero__body {
  align-self: end;
  padding-block: var(--space-2xl) var(--space-xl);
}

.hero h1 {
  font-size: var(--step-5);
  max-width: 13em;
  margin-bottom: var(--space-s);
  text-shadow: 0 1px 12px rgb(var(--scrim) / 0.35);
}

.hero .lede {
  color: #ffffff;
  max-width: 34em;
  margin-bottom: 0;
}

.hero__credit {
  position: absolute;
  right: var(--pad-r);
  bottom: var(--space-2xs);
  margin: 0;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.85);
}

/* Inner pages: a quiet title block, optionally with a photo strip. */
.page-head {
  padding-block: var(--space-xl) var(--space-l);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-head h1 {
  max-width: 18em;
}

.page-head .lede {
  color: var(--muted);
  margin-bottom: 0;
}

.page-head--photo {
  padding: 0;
  border: 0;
  background: var(--surface);
}

.page-head--photo .page-head__img img {
  width: 100%;
  height: clamp(11rem, 30vw, 22rem);
  object-fit: cover;
}

.page-head--photo .wrap {
  padding-block: var(--space-l);
}

.breadcrumb {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.breadcrumb a {
  color: var(--muted);
}

/* ---------------------------------------------------------------- 8. Cards and lists */
/* Card: image on top, or image left when the card's own container is wide enough. */
.card {
  container-type: inline-size;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  height: 100%;
}

.card__inner {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.card__img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  padding: var(--space-m);
}

.card__body > :last-child {
  margin-bottom: 0;
}

.card h3 {
  margin-bottom: var(--space-2xs);
}

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

.card h3 a:hover {
  color: var(--sea);
  text-decoration: underline;
}

/* Whole card clickable via the heading link, without nesting links. */
.card--link {
  position: relative;
}

.card--link h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card--link:has(a:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.card--link h3 a:focus-visible {
  outline: none;
}

.card__meta {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: var(--space-2xs);
}

.card__foot {
  margin-top: auto;
  padding-top: var(--space-s);
}

@container (min-width: 34rem) {
  .card__inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: none;
  }
  .card__img img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 14rem;
  }
}

/* Plain list of entries separated by hairlines (news, links). */
.entries {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.entries > li {
  margin: 0;
  padding-block: var(--space-m);
  border-bottom: 1px solid var(--line);
}

.entry {
  display: grid;
  gap: var(--space-3xs) var(--space-l);
}

@media (min-width: 46rem) {
  .entry {
    grid-template-columns: 10rem minmax(0, 1fr);
  }
  .entry > .entry__meta {
    grid-row: 1 / span 3;
  }
}

.entry__meta {
  font-size: var(--step--1);
  color: var(--muted);
  margin: 0;
}

.entry__meta strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.entry h3 {
  font-size: var(--step-1);
  margin: 0 0 var(--space-3xs);
}

.entry p {
  margin: 0;
  max-width: var(--measure);
}

.entry .entry__links {
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
}

/* External link marker: a small drawn arrow, announced by the visually-hidden text in markup. */

.year-heading {
  font-size: var(--step-2);
  margin: var(--space-l) 0 var(--space-s);
}

.year-heading:first-child {
  margin-top: 0;
}

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3xs);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-l);
}

.year-nav li + li {
  margin: 0;
}

.year-nav {
  gap: 0 var(--space-s);
}

.year-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- 9. Hearings timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline > li {
  margin: 0;
}

.hearing {
  display: grid;
  gap: var(--space-2xs) var(--space-l);
  padding-block: var(--space-l);
  border-top: 1px solid var(--line);
}

@media (min-width: 52rem) {
  .hearing {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

.hearing__date {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  line-height: 1.2;
  margin: 0;
}

.hearing__date span {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: var(--space-3xs);
}

.hearing h3 {
  font-size: var(--step-2);
  margin-bottom: var(--space-xs);
}

.hearing__facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-3xs) var(--space-s);
  font-size: var(--step--1);
  margin-bottom: var(--space-s);
}

.hearing__facts dt {
  color: var(--muted);
  font-weight: 500;
}

.hearing__facts dd {
  margin: 0;
}

.hearing__body > :last-child {
  margin-bottom: 0;
}

.hearing__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-m);
  list-style: none;
  padding: 0;
  margin: var(--space-s) 0 0;
  font-size: var(--step--1);
}

.hearing__links li + li {
  margin: 0;
}

.hearing__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

/* Outcome / status labels: text always carries the meaning, colour only supports it. */
.status {
  font-weight: 600;
  color: var(--ink);
}

.status--open {
  color: var(--sea);
}

.status--won {
  color: var(--bush);
}

.status--lost {
  color: var(--error);
}

/* Compact list of hearings for the home page. */
.digest {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 52rem) {
  .digest {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-l);
  }
}

.digest > li {
  margin: 0;
  padding-top: var(--space-s);
  border-top: 2px solid var(--ink);
}

.digest h3 {
  font-size: var(--step-1);
}

.digest time {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: var(--space-2xs);
}

/* ---------------------------------------------------------------- 10. Media and figures */
.figure img {
  width: 100%;
  border-radius: var(--radius-l);
}

.figure--tall img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.figure--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.map-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-xs);
  margin: 0 0 var(--space-l);
}

.map-figure img {
  width: 100%;
  border-radius: var(--radius);
}

.map-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-m);
  padding: var(--space-2xs) var(--space-3xs) 0;
}

/* Place list beside the map. */
.places {
  display: grid;
  gap: var(--space-m) var(--space-l);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  margin: 0;
}

.places dt {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--step-1);
  margin-bottom: var(--space-3xs);
}

.places dd {
  margin: 0;
  color: var(--muted);
}

.places > div {
  padding-top: var(--space-s);
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- 11. Feature bands */
.mission {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  line-height: 1.2;
  max-width: 20em;
  margin: 0 0 var(--space-m);
}

.band {
  background: var(--deep);
  color: var(--on-deep);
  padding-block: var(--space-xl);
  --focus: var(--focus-on-dark);
}

.band a:not(.button) {
  color: var(--on-deep);
}

.band p {
  color: var(--on-deep-muted);
}

.band h2 {
  color: var(--on-deep);
}

.band__inner {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

@media (min-width: 52rem) {
  .band__inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  .band__inner .actions {
    justify-content: flex-end;
    margin: 0;
  }
}

.band--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.band--photo > picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.band--photo > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(var(--scrim) / 0.78);
}

/* Panel: a quiet boxed area (fees, contact details, notes). */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-m);
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel--sea {
  background: var(--sea-tint);
  border-color: transparent;
}

.panel h2,
.panel h3 {
  font-size: var(--step-1);
}

/* ---------------------------------------------------------------- 12. Tables (fees) */
.table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-s);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

caption {
  text-align: left;
  font-weight: 650;
  padding-bottom: var(--space-2xs);
}

th,
td {
  text-align: left;
  padding: var(--space-xs) var(--space-s) var(--space-xs) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-size: var(--step--1);
  color: var(--muted);
  font-weight: 600;
}

td.num,
th.num {
  text-align: right;
  padding-right: 0;
  white-space: nowrap;
}

/* Bank details: monospace digits, easy to copy. */
.bank {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-2xs) var(--space-s);
  margin: 0;
}

.bank dt {
  color: var(--muted);
}

.bank dd {
  margin: 0;
  font-weight: 600;
}

.bank code {
  font: 600 1em / 1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

/* Office holders. */
.people {
  list-style: none;
  padding: 0;
  margin: 0;
}

.people li {
  margin: 0;
  padding-block: var(--space-s);
  border-bottom: 1px solid var(--line);
}

.people li:first-child {
  padding-top: 0;
}

.people .role {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
}

.people .name {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
}

/* ---------------------------------------------------------------- 13. Forms */
.form {
  display: grid;
  gap: var(--space-m);
  max-width: 40rem;
}

.form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.form legend {
  padding: 0;
  font-weight: 650;
  margin-bottom: var(--space-2xs);
}

.form-section {
  display: grid;
  gap: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

.form-section > legend {
  float: left; /* lets the legend sit inside the grid flow */
  width: 100%;
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-weight: 600;
  margin-bottom: 0;
}

.form-section > legend + * {
  clear: both;
}

.field {
  display: grid;
  gap: var(--space-3xs);
}

.field label,
.field .label {
  font-weight: 600;
}

.optional,
.hint {
  font-weight: 400;
  color: var(--muted);
}

.hint {
  font-size: var(--step--1);
  margin: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.55em 0.75em;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.04);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

select {
  appearance: none;
  padding-right: 2.5em;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1.15em center, right 0.8em center;
  background-size: 0.35em 0.35em;
  background-repeat: no-repeat;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--ink);
}

.field--short input {
  max-width: 16rem;
}

/* Checkbox and radio rows: native controls, enlarged, with a 44px row. */
.choices {
  display: grid;
  gap: 0;
}

.choices--cols {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  column-gap: var(--space-m);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  min-height: var(--tap);
  padding-block: 0.6rem;
  cursor: pointer;
  line-height: 1.4;
}

.choice input {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.05rem 0 0;
  accent-color: var(--sea);
  cursor: pointer;
}

.choice__text small {
  display: block;
  color: var(--muted);
}

/* Option tiles for membership type: radio + price, still a native radio. */
.choice--tile {
  border: 1px solid var(--field);
  border-radius: var(--radius);
  padding: var(--space-xs) var(--space-s);
  background: var(--surface);
}

.choice--tile + .choice--tile {
  margin-top: var(--space-2xs);
}

.choice--tile:has(input:checked) {
  border-color: var(--sea);
  box-shadow: inset 0 0 0 1px var(--sea);
  background: var(--sea-tint);
}

.choice--tile .price {
  margin-left: auto;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Honeypot: off-screen for people, still in the DOM for bots. Not display:none (some bots skip those). */
.hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Error state (server-rendered). */
.field--error input,
.field--error select,
.field--error textarea,
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

.field-error {
  display: flex;
  gap: var(--space-2xs);
  align-items: baseline;
  margin: 0;
  color: var(--error);
  font-weight: 600;
  font-size: var(--step--1);
}

.field-error::before {
  content: "!";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background: var(--error);
  color: var(--surface);
  font-size: 0.85em;
  line-height: 1;
}

.alert {
  border-radius: var(--radius-l);
  padding: var(--space-m);
  margin-bottom: var(--space-l);
  border: 2px solid var(--error);
  background: var(--error-tint);
}

.alert:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.alert h2 {
  font-size: var(--step-1);
  color: var(--error);
  margin-bottom: var(--space-2xs);
}

.alert ul {
  margin: 0;
}

.alert a {
  color: var(--ink);
  font-weight: 600;
}

.alert--ok {
  border-color: var(--bush);
  background: var(--bush-tint);
}

.alert--ok h2 {
  color: var(--bush);
}

.form-submit {
  display: grid;
  gap: var(--space-xs);
  justify-items: start;
}

.form-submit .button {
  min-width: 12rem;
}

/* ---------------------------------------------------------------- 14. Footer */
.site-footer {
  background: var(--deep);
  color: var(--on-deep-muted);
  font-size: var(--step--1);
  padding-block: var(--space-xl) var(--space-l);
  margin-top: auto;
  --focus: var(--focus-on-dark);
}

.site-footer a {
  color: var(--on-deep);
}

.site-footer a:hover {
  color: var(--on-deep);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
}

.site-footer__brand {
  grid-column: 1 / -1;
}

@media (min-width: 62rem) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  }
  .site-footer__brand {
    grid-column: auto;
  }
}

.site-footer__brand {
  display: flex;
  gap: var(--space-s);
  align-items: flex-start;
}

.site-footer__brand img {
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
}

.site-footer__name {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  color: var(--on-deep);
  line-height: 1.2;
  margin-bottom: var(--space-3xs);
}

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 650;
  color: var(--on-deep);
  margin-bottom: var(--space-2xs);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin: 0;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-m);
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid rgb(255 255 255 / 0.16);
}

.site-footer__base p {
  margin: 0;
}

/* Builder credit: small, quiet, last line of the footer. */
.site-footer__base .credit {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-2xs);
}

.credit a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.75rem;
}

.credit img {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  background: #fff;
}

/* ---------------------------------------------------------------- 15. Small pages (404, thanks) */
.notice {
  padding-block: var(--space-2xl);
}

.notice h1 {
  max-width: 14em;
}

.notice .lede {
  color: var(--muted);
}

.notice__links {
  list-style: none;
  padding: 0;
  margin: var(--space-l) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-m);
}

.notice__links li + li {
  margin: 0;
}

/* ---------------------------------------------------------------- 16. Print */
@media print {
  .site-header nav,
  .skip-link,
  .hero::after,
  .band,
  .site-footer__grid,
  form {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .hero {
    color: #000;
    background: none;
    min-height: 0;
  }
  .hero > picture {
    display: none;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* ---------------------------------------------------------------- 17. Late additions */
th small {
  font-weight: 400;
  color: var(--muted);
}

/* Join page: keep fees and bank details in view beside the long form. */
@media (min-width: 52rem) {
  .split > .sticky {
    position: sticky;
    top: var(--space-m);
  }
}

/* Issues page: year links first, then the key; the whole aside follows on scroll at wide widths. */
.aside-stack > * + * {
  margin-top: var(--space-m);
}

.aside-stack .year-nav {
  margin-bottom: 0;
}

/* Card payment buttons on Join (links out to Paymate). */
.pay-links {
  display: grid;
  gap: var(--space-2xs);
  margin: var(--space-s) 0 0;
  padding: 0;
  list-style: none;
}

.pay-links .button {
  width: 100%;
  justify-content: center;
}

.plain-list {
  columns: 2 14rem;
  column-gap: var(--space-l);
  padding-left: 1.1em;
}

.plain-list li {
  break-inside: avoid;
  padding-block: 0.15em;
}

.crumb {
  margin: 0 0 var(--space-2xs);
  color: var(--muted);
  font-size: var(--step--1);
}

/* Plain footer: name and address, one row of links. */
.site-footer__grid--simple {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-m);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Cloudflare's own white horizontal logo (press kit), shown at its proportions on the dark footer. */
.credit .credit__cf img {
  width: auto;
  height: 1.15rem;
  border-radius: 0;
  background: none;
}

@media (prefers-color-scheme: light) {
  .credit .credit__cf img { opacity: 0.92; }
}
