/*
  Kelham 97.3 FM: community radio website (Screenery template)
  1. Tokens, base and browser surfaces: white paper, black ink, link blue, one loud red. 1px rules, no radius, no shadow.
  2. Masthead, ticker, hero (huge frequency, ON AIR table, player), the week grid with its now-line and the phone day switcher.
  3. Directory, show page, forms and their states, membership sum, guestbook, how to listen, footer. Responsive rules follow each block.
*/

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --link: #0000ee;      /* the default link blue, on purpose */
  --visited: #551a8b;   /* and the default visited purple */
  --hot: #e00000;       /* the one loud accent: ON AIR, the now slot, errors. White on it is 5:1 */
  --grey: #ececec;      /* automated hours, table heads */
  --mute: #4a4a4a;      /* secondary text: 8.9:1 on white, 7.6:1 on --grey */

  --sans: 'Libre Franklin', 'Franklin Gothic Medium', sans-serif;
  --serif: 'Libre Caslon Text', 'Times New Roman', serif;
  --mono: 'Cousine', 'Courier New', monospace;

  --rule: 1px solid var(--ink);
  --radius: 0;           /* everywhere */
  --gutter: clamp(16px, 3vw, 40px);
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 40px;
  --s-7: 64px;
  --row: 3.1rem;         /* one hour in the week grid */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-4); scrollbar-color: var(--ink) var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--serif);
  caret-color: var(--hot);
  accent-color: var(--hot);
  overflow-x: clip;
}
::selection { background: var(--link); color: var(--paper); }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: 3px; }
a:active { color: var(--hot); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
hr { border: 0; border-top: var(--rule); margin: 0; }
h1, h2, h3 { font-family: var(--sans); text-wrap: balance; margin: 0; }
p { margin: 0 0 var(--s-4); }
code, pre, kbd { font-family: var(--mono); }
code { font-size: .92em; background: var(--grey); padding: 0 .25em; }
.num, time { font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; flex: none; vertical-align: -2px; }
.small { font-size: .9375rem; color: var(--mute); max-width: 70ch; }
.small a:not(:visited) { color: var(--link); }
.opt { font-weight: 400; color: var(--mute); }
[hidden] { display: none !important; }

.skip { position: absolute; left: var(--s-2); top: -100px; background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-3); font-family: var(--mono); z-index: 10; }
.skip:focus { top: var(--s-2); color: var(--paper); }

/* Buttons: plain rectangles, mono, black rule. Hover inverts. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: var(--s-2) var(--s-4);
  font: 700 .875rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink); background: var(--paper); border: var(--rule); border-radius: var(--radius);
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { background: var(--hot); color: var(--paper); }
.btn:disabled { cursor: progress; background: var(--grey); color: var(--mute); border-style: dashed; }
.btn--small { min-height: 36px; padding: var(--s-1) var(--s-3); font-size: .8125rem; }
.btn--go { background: var(--ink); color: var(--paper); }
.btn--go:hover { background: var(--hot); }
.linkish { font: inherit; color: var(--link); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .16em; cursor: pointer; }

/* ---------- 2. Masthead ---------- */
.mast { padding: var(--s-3) var(--gutter) 0; font: .875rem/1.5 var(--mono); }
.mast__line { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: 0 0 var(--s-2); }
.mast__line b { font-weight: 700; }
.mast__clock { margin-left: auto; }
.mast__nav ul { list-style: none; margin: 0; padding: 0 0 var(--s-2); display: flex; flex-wrap: wrap; gap: 0 var(--s-2); }
.mast__nav a { display: inline-block; padding: var(--s-2) 0; }
.mast__nav li::before { content: '['; }
.mast__nav li::after { content: ']'; }
@media (max-width: 640px) {
  .mast__clock { margin-left: 0; }
  .mast__line span:not(.mast__clock) { flex-basis: 100%; }
  .mast__nav ul { gap: 0 var(--s-3); }
  .mast__nav a { padding: 10px 0; }
}

/* ---------- Ticker: a scrolling news strip, pausable, static under reduced motion ---------- */
.ticker { display: flex; align-items: stretch; background: var(--ink); color: var(--paper); font: .875rem/1.4 var(--mono); border-block: var(--rule); }
.ticker__toggle {
  flex: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3);
  font: 700 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em;
  background: var(--hot); color: var(--paper); border: 0; border-right: 1px solid var(--paper); cursor: pointer;
}
.ticker__toggle:hover { background: var(--paper); color: var(--ink); }
.ticker__toggle:focus-visible { outline-color: var(--paper); outline-offset: -4px; }
.ticker__window { display: flex; overflow: hidden; flex: 1; min-width: 0; }
.ticker__track { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.ticker__track li { padding: 12px var(--s-5); white-space: nowrap; border-right: 1px dashed #8a8a8a; }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: tick 70s linear infinite; }
  .ticker[data-paused] .ticker__track, .ticker__window:hover .ticker__track { animation-play-state: paused; }
}
@keyframes tick { to { transform: translateX(-100%); } }
/* Reduced motion: no scrolling. The items wrap as a plain list and the copy goes. */
@media (prefers-reduced-motion: reduce) {
  .ticker__toggle { display: none; }
  .ticker__window { overflow: visible; }
  .ticker__track { flex-wrap: wrap; flex: 1; }
  .ticker__track li { white-space: normal; }
  .ticker__track[aria-hidden] { display: none; }
}

/* ---------- Hero: the frequency is the composition ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-6);
  padding: var(--s-6) var(--gutter) var(--s-7);
}
.hero__title { font-weight: 900; line-height: .8; letter-spacing: -.04em; margin-bottom: var(--s-5); }
.hero__name { display: block; font-size: clamp(3.25rem, 9.5vw, 8.5rem); font-weight: 800; letter-spacing: -.04em; line-height: .9; }
.hero__type { container-type: inline-size; min-width: 0; }
.hero__freq { display: block; font-size: clamp(5rem, 37cqi, 21rem); margin-left: -.05em; white-space: nowrap; }
.hero__freq small { font-size: max(.2em, 16px); font-weight: 800; letter-spacing: 0; vertical-align: top; position: relative; top: .35em; margin-left: .15em; }
.hero__lede { font-size: 1.1875rem; max-width: 46ch; }

.onair { align-self: start; display: grid; gap: var(--s-5); }
.onair__table, .grid, .dir, .eps, .ways, .roles__table, .tiers__table, .sum__table, .days__table { border-collapse: collapse; width: 100%; }
.onair__table { border: var(--rule); table-layout: fixed; }
.onair__cap {
  caption-side: top; text-align: left;
  background: var(--hot); color: var(--paper); border: var(--rule); border-bottom: 0;
  padding: var(--s-2) var(--s-3); font: 900 1.75rem/1 var(--sans); text-transform: uppercase; letter-spacing: -.01em;
}
.onair__capin { display: flex; align-items: center; gap: var(--s-3); }
.onair__lamp { width: 14px; height: 14px; background: var(--paper); flex: none; }
@media (prefers-reduced-motion: no-preference) { .onair__capin { display: flex; align-items: center; gap: var(--s-3); }
.onair__lamp { animation: lamp 1.6s steps(1, end) infinite; } }
@keyframes lamp { 50% { background: transparent; box-shadow: inset 0 0 0 2px var(--paper); } }
.onair__clock { margin-left: auto; font: 700 1rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.onair__table th, .onair__table td { border: var(--rule); padding: var(--s-2) var(--s-3); vertical-align: top; text-align: left; }
.onair__table th { width: 5.5rem; font: 700 .75rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--grey); }
.onair__show { display: block; font: 800 clamp(1.5rem, 2.6vw, 2.25rem)/1.05 var(--sans); letter-spacing: -.02em; }
.onair__show[aria-disabled] { color: var(--ink); text-decoration: none; }
.onair__host { display: block; margin-top: var(--s-1); }
.onair__bar { margin: var(--s-1) 0 0; font-size: .875rem; white-space: pre; overflow: hidden; }

.player { border: var(--rule); }
.player__title { font: 700 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: var(--s-3); border-bottom: var(--rule); background: var(--grey); }
.player__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding: var(--s-3); }
.btn--play { min-width: 8.5rem; min-height: 52px; font-size: 1rem; background: var(--hot); color: var(--paper); border-color: var(--ink); }
.btn--play .icon { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.btn--play:hover { background: var(--ink); }
.btn--play[aria-pressed="true"] { background: var(--ink); }
.btn--play[aria-pressed="true"]:hover { background: var(--hot); }
.player__vol { display: flex; align-items: center; gap: var(--s-2); font-family: var(--mono); flex: 1; min-width: 12rem; }
.player__vol input { flex: 1; min-width: 0; height: 44px; margin: 0; }
.player__vol output { width: 3.5ch; text-align: right; font-size: .875rem; }
.player__meter {
  margin: 0; padding: var(--s-3); background: var(--ink); color: var(--paper);
  font-size: clamp(.6875rem, 1.05vw, .875rem); line-height: 1.55; white-space: pre; overflow: hidden;
}
.player__meter b { color: #ff5c5c; font-weight: 700; } /* 5.9:1 on black */
.player__status { margin: 0; padding: var(--s-3) var(--s-3) 0; font: 700 .875rem/1.4 var(--mono); }
.player__note { margin: 0; padding: var(--s-2) var(--s-3) var(--s-3); font-size: .875rem; color: var(--mute); }

@media (max-width: 999px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding-top: var(--s-5); }
}

/* ---------- Sections ---------- */
.sect { padding: var(--s-7) var(--gutter); }
.sect__title { font-size: clamp(2.75rem, 7.5vw, 6rem); font-weight: 900; line-height: .92; letter-spacing: -.04em; margin-bottom: var(--s-5); }
.permalink { font: 400 1rem/1 var(--mono); letter-spacing: 0; vertical-align: top; margin-left: var(--s-2); }
.sect__intro { max-width: 68ch; font-size: 1.125rem; margin-bottom: var(--s-5); }
.sect__h { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin: var(--s-6) 0 var(--s-4); }
.table-wrap { overflow-x: auto; max-width: 100%; }
.table-wrap:focus-visible, .grid-wrap:focus-visible, .days__panel:focus-visible { outline-offset: 4px; }
@media (max-width: 640px) { .sect { padding-block: var(--s-6); } }

/* ---------- The week grid ---------- */
.grid-wrap { position: relative; overflow-x: auto; border: var(--rule); }
.grid { table-layout: fixed; min-width: 920px; }
.grid th, .grid td { border: var(--rule); padding: var(--s-1) var(--s-2); text-align: left; vertical-align: top; }
.grid tr:first-child > * { border-top: 0; }
.grid tr > :first-child { border-left: 0; }
.grid tr > :last-child { border-right: 0; }
.grid tbody tr:last-child > * { border-bottom: 0; }
.grid thead th { font: 700 .8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: var(--s-3) var(--s-2); background: var(--grey); }
.grid thead th abbr { text-decoration: none; }
.grid thead th.is-today { background: var(--ink); color: var(--paper); }
.grid__corner { width: 4.75rem; }
.grid tbody tr { height: var(--row); }
.grid tbody th { font: 400 .8125rem/1.3 var(--mono); background: var(--paper); }
.slot { font-size: .875rem; line-height: 1.2; position: relative; }
.slot__name { display: block; font: 600 .9375rem/1.15 var(--sans); }
.slot__meta { display: block; margin-top: 2px; font: .75rem/1.3 var(--mono); color: var(--mute); }
.slot--auto { background: var(--grey); }
.slot--auto .slot__name { font: 400 .8125rem/1.2 var(--mono); }
.slot.is-now { background: var(--hot); color: var(--paper); }
.slot.is-now a, .slot.is-now .slot__meta { color: var(--paper); }
.slot.is-past { color: var(--mute); }
.slot:has(a:hover) { background: #f6f6ff; }
.slot.is-now:has(a:hover) { background: #b80000; }

/* The now-line: a 2px black rule across the week at the time on the visitor's clock */
.nowline { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--ink); pointer-events: none; min-width: 920px; }
.nowline span { position: absolute; left: 0; top: -.7rem; background: var(--ink); color: var(--paper); font: 700 .6875rem/1 var(--mono); padding: .3rem .35rem; }
@media (prefers-reduced-motion: no-preference) { .nowline { transition: top .8s var(--ease); } }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: var(--s-3) 0 0; font: .8125rem/1.5 var(--mono); }
.legend__key { width: 14px; height: 14px; border: var(--rule); display: inline-block; }
.legend__key--now { background: var(--hot); }
.legend__key--auto { background: var(--grey); margin-left: var(--s-3); }
.legend__sep { color: var(--mute); }

/* Phones (with JS): a day switcher replaces the wide table. */
.days { display: none; margin-bottom: var(--s-3); }
.days__tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: var(--rule); }
.days__tab {
  min-height: 48px; padding: 0; border: 0; border-right: var(--rule); background: var(--paper); color: var(--ink);
  font: 700 .8125rem/1 var(--mono); text-transform: uppercase; cursor: pointer; position: relative;
}
.days__tab:last-child { border-right: 0; }
.days__tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.days__tab.is-today::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 6px; height: 6px; margin-left: -3px; background: var(--hot); }
.days__tab:focus-visible { outline-offset: -5px; }
.days__panel { border: var(--rule); border-top: 0; }
.days__h { font: 800 1.5rem/1.1 var(--sans); letter-spacing: -.02em; padding: var(--s-3); border-bottom: var(--rule); }
.days__table th, .days__table td { border-bottom: var(--rule); padding: var(--s-3); text-align: left; vertical-align: top; }
.days__table tr:last-child > * { border-bottom: 0; }
.days__table th { width: 6.25rem; font: 400 .8125rem/1.4 var(--mono); border-right: var(--rule); }
.days__table .slot__name { font-size: 1.0625rem; }
.days__table tr.is-auto td, .days__table tr.is-auto th { background: var(--grey); }
.days__table tr.is-now td, .days__table tr.is-now th { background: var(--hot); color: var(--paper); }
.days__table tr.is-now a, .days__table tr.is-now .slot__meta { color: var(--paper); }
.days__flag { display: inline-block; margin-top: var(--s-1); font: 700 .75rem/1 var(--mono); text-transform: uppercase; background: var(--paper); color: var(--hot); padding: 3px 5px; }
@media (max-width: 759px) {
  .js .days { display: block !important; }
  .js .grid-wrap, .js .legend { display: none; }
}

/* ---------- 3. Directory ---------- */
.filters fieldset { border: var(--rule); margin: 0 0 var(--s-3); padding: var(--s-3) var(--s-4) var(--s-3); display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.filters legend, .roles legend, .tiers legend { font: 700 .8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 0 var(--s-2); }
.check { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; flex: none; }
.check__n { font: .8125rem var(--mono); color: var(--mute); }
.filters__line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font: .875rem/1.4 var(--mono); margin-bottom: var(--s-4); }

.dir, .eps, .ways { border: var(--rule); }
.dir th, .dir td, .eps th, .eps td, .ways th, .ways td { border: var(--rule); padding: var(--s-2) var(--s-3); text-align: left; vertical-align: top; }
.dir thead th, .eps thead th, .ways thead th { font: 700 .75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--grey); }
.dir tbody th { font: 600 1.0625rem/1.3 var(--sans); }
.dir td.num { font: .8125rem/1.5 var(--mono); }
.dir tr.is-current th, .dir tr.is-current td { background: #fff0f0; }
.dir__empty td { font-style: italic; padding: var(--s-4); }
@media (max-width: 640px) {
  .dir thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dir, .dir tbody { display: block; border: 0; }
  .dir tbody { border-bottom: var(--rule); }
  .dir tr { display: grid; grid-template-columns: 1fr; border: var(--rule); border-bottom: 0; padding: var(--s-3); gap: 2px; }
  .dir th, .dir td { border: 0; padding: 0; }
  .dir td:nth-of-type(2) { font: .8125rem var(--mono); color: var(--mute); }
}

/* ---------- Show page ---------- */
.show__cols { display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(0, 2fr); gap: var(--s-6); margin-bottom: var(--s-5); }
.show__facts { margin: 0; display: grid; grid-template-columns: auto 1fr; border: var(--rule); align-self: start; }
.show__facts dt, .show__facts dd { margin: 0; padding: var(--s-2) var(--s-3); border-bottom: var(--rule); }
.show__facts dt { font: 700 .75rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--grey); border-right: var(--rule); }
.show__facts dd:last-of-type, .show__facts dt:last-of-type { border-bottom: 0; }
.show__blurb { font-size: 1.25rem; line-height: 1.5; max-width: 52ch; margin: 0; }
.show__h { font-size: 1.5rem; font-weight: 800; margin: 0 0 var(--s-3); }
.eps { margin-bottom: var(--s-4); }
.eps td:first-child { font: .8125rem/1.5 var(--mono); white-space: nowrap; text-align: left; }
.eps .num { text-align: right; font-family: var(--mono); font-size: .875rem; }
.eps td:last-child { width: 1%; }
.eps tr.is-playing td { background: #fff0f0; }
.eps .btn[aria-pressed="true"] { background: var(--hot); color: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .show.is-swapped .sect__title, .show.is-swapped .show__blurb { animation: blink-in .5s steps(3, end); }
}
@keyframes blink-in { from { opacity: 0; } }
@media (max-width: 760px) {
  .show__cols { grid-template-columns: 1fr; gap: var(--s-4); }
  .show__blurb { font-size: 1.125rem; }
}
@media (max-width: 640px) {
  .eps thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .eps, .eps tbody { display: block; border: 0; }
  .eps tr { display: grid; grid-template-columns: auto auto 1fr auto; gap: var(--s-1) var(--s-3); align-items: center; border: var(--rule); border-bottom: 0; padding: var(--s-3); }
  .eps tr:last-child { border-bottom: var(--rule); }
  .eps td { border: 0; padding: 0; }
  .eps td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-family: var(--sans); font-weight: 600; }
  .eps td:nth-child(1) { grid-column: 1 / -1; grid-row: 1; }
  .eps td:nth-child(3)::after { content: ' tracks'; }
  .eps td:nth-child(3), .eps td:nth-child(4) { text-align: left; grid-row: 3; font-size: .8125rem; }
  .eps td:last-child { grid-row: 3; grid-column: 4; width: auto; }
}

/* ---------- Forms ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.two--gb { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 900px) { .two, .two--gb { grid-template-columns: 1fr; gap: var(--s-6); } }
.form { max-width: 44rem; }
.form--wide { max-width: none; }
.form__h { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--s-4); }
.field { margin-bottom: var(--s-4); }
.field--pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form--wide > .field--pair { max-width: 44rem; }
@media (max-width: 560px) { .field--pair { grid-template-columns: 1fr; } }
.field label, .sum .field label { display: block; font: 600 .9375rem/1.3 var(--sans); margin-bottom: var(--s-1); }
input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea {
  width: 100%; min-height: 44px; padding: var(--s-2) var(--s-3);
  font: 1rem/1.4 var(--serif); color: var(--ink); background: var(--paper);
  border: var(--rule); border-radius: var(--radius);
}
textarea { resize: vertical; min-height: 7rem; }
select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: right 18px center, right 12px center; background-size: 6px 6px; background-repeat: no-repeat; }
::placeholder { color: #6b6b6b; opacity: 1; } /* 5.3:1 on white */
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }
[aria-invalid="true"] { border: 2px solid var(--hot) !important; }
.field__err { margin: var(--s-1) 0 0; font: 700 .8125rem/1.4 var(--mono); color: var(--hot); }
.field__err:empty { display: none; }
.field__err::before { content: 'ERROR: '; }
.field__count { margin: var(--s-1) 0 0; font: .75rem/1.4 var(--mono); color: var(--mute); }
.field__count.is-near { color: var(--hot); }
.form__actions { margin: var(--s-4) 0; }
.form__alert { border: 2px solid var(--hot); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); font: .875rem/1.5 var(--mono); }
.form__alert b { color: var(--hot); }
.form__alert ul { margin: var(--s-1) 0 0; padding-left: 1.25rem; }
.form[aria-busy="true"] { cursor: progress; }
.form[aria-busy="true"] input, .form[aria-busy="true"] textarea, .form[aria-busy="true"] select { background: #f6f6f6; }
.btn .dots::after { content: '...'; display: inline-block; width: 3ch; text-align: left; }
@media (prefers-reduced-motion: no-preference) { .btn .dots::after { animation: dots 1.2s steps(4, end) infinite; content: '...'; clip-path: inset(0 100% 0 0); } }
@keyframes dots { to { clip-path: inset(0 -1ch 0 0); } }

.done { border: 2px solid var(--ink); padding: var(--s-5); max-width: 44rem; }
.done h3 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; margin-bottom: var(--s-3); }
.done:focus, .form__alert:focus { outline: none; }

.aside { font-size: 1rem; max-width: 60ch; }
.aside__pre { margin: var(--s-5) 0 0; padding: var(--s-3) var(--s-4); border: var(--rule); font-size: .8125rem; line-height: 1.6; overflow-x: auto; }

/* Volunteer roles and membership tiers: forms laid out as tables, because they are tables */
.roles, .tiers { border: 0; padding: 0; margin: 0 0 var(--s-5); min-width: 0; }
.roles legend, .tiers legend { padding: 0 0 var(--s-3); }
.roles__table, .tiers__table { border: var(--rule); }
.roles__table th, .roles__table td, .tiers__table th, .tiers__table td { border: var(--rule); padding: var(--s-2) var(--s-3); text-align: left; vertical-align: middle; }
.roles__table thead th, .tiers__table thead th { font: 700 .75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--grey); }
.roles__table td:first-child, .tiers__table td:first-child { width: 3rem; text-align: center; }
.roles__table input, .tiers__table input[type="radio"] { width: 20px; height: 20px; margin: 0; vertical-align: middle; }
.roles__table tbody th label, .tiers__table tbody th label { display: block; padding: var(--s-2) 0; font: 600 1rem/1.3 var(--sans); cursor: pointer; }
.roles__table tr:has(input:checked) > *, .tiers__table tr:has(input:checked) > * { background: #fff0f0; }
.roles__table .num, .tiers__table .num { font-family: var(--mono); font-size: .875rem; white-space: nowrap; }
.roles__table[aria-invalid="true"] { border: 2px solid var(--hot); }
.money { display: inline-flex; align-items: center; gap: 4px; }
.money input { width: 6.5rem !important; font-family: var(--mono) !important; }
@media (max-width: 640px) {
  .roles__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .roles__table, .roles__table tbody { display: block; border: 0; }
  .roles__table tr { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; border: var(--rule); border-bottom: 0; padding: var(--s-2) var(--s-3); gap: 0 var(--s-2); }
  .roles__table tr:last-child { border-bottom: var(--rule); }
  .roles__table th, .roles__table td { border: 0; padding: 0; }
  .roles__table td:nth-child(3) { grid-column: 2 / -1; font-size: .9375rem; padding-bottom: var(--s-2); }
  .roles__table td:nth-child(4) { grid-column: 3; grid-row: 1; }
  .tiers__table td:last-child { font-size: .9375rem; }
}

.members__cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr); gap: var(--s-6); align-items: start; }
.members .check { align-items: flex-start; padding: var(--s-2) 0; max-width: 60ch; }
.members .check input { margin-top: 4px; }
@media (max-width: 900px) { .members__cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .tiers__table thead th:last-child, .tiers__table td:last-child { display: none; }
}
.sum__table { border: var(--rule); margin-bottom: var(--s-5); }
.sum__table caption { caption-side: top; text-align: left; font: 700 .8125rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: var(--s-3); border: var(--rule); border-bottom: 0; background: var(--grey); }
.sum__table th, .sum__table td { padding: var(--s-2) var(--s-3); border-bottom: 1px dotted var(--ink); text-align: left; font-weight: 400; }
.sum__table td { text-align: right; font: 1rem/1.5 var(--mono); }
.sum__total th, .sum__total td { border-top: 3px double var(--ink); font-weight: 700; }
.sum__table tr:last-child > * { border-bottom: 0; font-weight: 700; }

/* ---------- Guestbook ---------- */
.gb { margin: 0; padding: 0 0 0 3.25rem; max-width: 70ch; }
.gb li { padding: var(--s-4) 0; border-bottom: 1px dashed var(--ink); }
.gb li:first-child { padding-top: 0; }
.gb li::marker { font: 700 .875rem var(--mono); color: var(--mute); }
.gb li p { margin: 0; }
.gb li p:first-child { font: .875rem/1.5 var(--mono); margin-bottom: var(--s-1); }
.gb li p:first-child b { font-weight: 700; }
.gb li.is-new { background: #fff0f0; }
@media (max-width: 640px) { .gb { padding-left: 2.25rem; } }

/* ---------- How to listen ---------- */
.ways__big { font: 900 clamp(1.5rem, 3vw, 2.5rem)/1 var(--sans) !important; letter-spacing: -.03em; white-space: nowrap; }
.ways td { max-width: 60ch; }
.faq { max-width: 72ch; border-top: var(--rule); }
.faq details { border-bottom: var(--rule); }
.faq summary { cursor: pointer; padding: var(--s-3) 0; min-height: 44px; font: 600 1.125rem/1.4 var(--sans); }
.faq summary:hover { color: var(--link); }
.faq details p { margin: 0 0 var(--s-4) 1.25rem; }
@media (max-width: 640px) {
  .ways thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ways, .ways tbody { display: block; border: 0; }
  .ways tr { display: block; border: var(--rule); border-bottom: 0; padding: var(--s-3); }
  .ways tr:last-child { border-bottom: var(--rule); }
  .ways th, .ways td { display: block; border: 0; padding: 0 0 var(--s-1); }
  .ways td:nth-of-type(1) { font: .8125rem/1.5 var(--mono); color: var(--mute); }
}

/* ---------- Footer: the sitemap is a nested <ul> with its default bullets ---------- */
.foot { container-type: inline-size; padding: var(--s-6) var(--gutter) var(--s-5); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5) var(--s-6); }
.foot__title { grid-column: 1 / -1; font-size: clamp(2.75rem, 7.5vw, 6rem); font-weight: 900; letter-spacing: -.04em; line-height: .92; }
.foot__map { margin: 0; padding-left: 1.25rem; font-size: 1rem; line-height: 1.9; }
.foot__map ul { padding-left: 1.5rem; }
.foot__addr { font-style: normal; font-size: 1rem; line-height: 1.7; }
.foot__top .icon { margin-right: 4px; }
.foot__mark { grid-column: 1 / -1; margin: var(--s-5) 0 0; font: 900 16cqi/.8 var(--sans); letter-spacing: -.04em; white-space: nowrap; overflow: clip; padding-bottom: .04em; }
.foot__colophon { grid-column: 1 / -1; border-top: var(--rule); padding-top: var(--s-4); margin: 0; font: .8125rem/1.6 var(--mono); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
