/*
 * Club board: the club page as a commentator's spotting board, taped to a wall in the
 * app icon's purple. Rendered by backend/cron/lib/club_board.php; no Tailwind, no React.
 * Direction contract: .impeccable/surfaces/backend-cron-lib-club-board-php.md
 */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Kalam";
  src: url("fonts/kalam-700-latin.woff2") format("woff2");
  font-weight: 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kalam";
  src: url("fonts/kalam-700-latin-ext.woff2") format("woff2");
  font-weight: 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Kalam";
  src: url("fonts/kalam-700-devanagari.woff2") format("woff2");
  font-weight: 700; font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

:root {
  /* The app icon's inks. */
  --wall: #7F26FE;          /* sampled from the app icon; white type holds 5.8:1 */
  --wall-text: #FFFFFF;
  --wall-soft: #F1E8FF;
  --board: #FFFFFF;
  --ink: #141414;
  --ink-2: #5B5566;
  --rule: #141414;
  --rule-soft: rgba(20, 20, 20, 0.14);
  --card: #F5B82E;          /* the mic's gold */
  --card-ink-2: #4A4458;
  --tape: rgba(246, 242, 228, 0.78);
  /* Highlighters: the icon's gold, green and purple, then the two a booth pencil case adds. */
  --pen-gold: #FFD23F;
  --pen-green: #7EE06A;
  --pen-violet: #CBAAFF;
  --pen-pink: #FF9BD2;
  --pen-cyan: #7FDBFF;
  /* Red is the ON AIR lamp and nothing else. */
  --on-air: #E5173F;
  --lamp-off: #CFCAD9;

  --font: "Archivo", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --board-pad: clamp(1rem, 3.4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--wall); }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  caret-color: var(--wall);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--pen-gold); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--wall); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

/* ---- Rail: the strip of wall above the board ------------------------------------- */
.rail {
  max-width: 78rem; margin: 0 auto; padding: 1rem var(--board-pad); background: var(--wall);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  color: var(--wall-text);
}
.rail__brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none;
  font-weight: 800; font-stretch: 80%; font-size: 1.35rem; letter-spacing: -0.01em; }
.rail__brand img { border-radius: 10px; box-shadow: 0 2px 6px rgba(40, 10, 90, 0.35); }
.rail__nav { display: flex; align-items: center; gap: 0.25rem 1.4rem; font-weight: 600; font-size: 0.95rem; }
.rail__nav a { text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.rail__nav a:hover { border-bottom-color: var(--wall-soft); }
.rail__nav a[aria-current="page"] { border-bottom-color: var(--pen-gold); }
.rail__nav .rail__app { background: var(--card); color: var(--ink); padding: 0.45rem 0.9rem; border: 0;
  border-radius: 3px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.rail__nav .rail__app:hover { background: var(--pen-gold); }
.rail :focus-visible, .foot :focus-visible { outline-color: var(--pen-gold); }

/* ---- The board ------------------------------------------------------------------ */
.board {
  position: relative;
  /* Side margins at every width, so the corner tape never reaches past the screen. */
  width: min(78rem, calc(100% - 3rem)); margin: 1.25rem auto 3rem; padding: var(--board-pad);
  background: var(--board);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.06), 0 22px 44px -18px rgba(38, 8, 92, 0.55);
}
.tape { position: absolute; width: 5.5rem; height: 1.6rem; background: var(--tape);
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.12); pointer-events: none; }
.tape--tl { top: -0.35rem; left: -1.2rem; transform: rotate(-30deg); }
.tape--tr { top: -0.35rem; right: -1.2rem; transform: rotate(30deg); }

.board__head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.5rem 1.5rem; align-items: start;
  padding-bottom: 1.5rem;
}
.crest { width: 4rem; height: 4rem; object-fit: contain; margin-top: 1.9rem; }
.crumbs { font-size: 0.8rem; color: var(--ink-2); margin-bottom: 0.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
h1 { font-weight: 850; font-stretch: 68%; text-transform: uppercase; letter-spacing: -0.005em;
  line-height: 0.9; font-size: clamp(2.6rem, 6.4vw, 5rem); text-wrap: balance; }
.h1__rest { display: block; margin-top: 0.55rem; font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.2;
  font-weight: 700; font-stretch: 90%; text-transform: none; letter-spacing: 0; }
.board__meta { margin-top: 0.7rem; color: var(--ink-2); font-size: 0.95rem; }

/* Grease pencil. */
.scrawl { font-family: var(--hand); font-weight: 700; color: var(--ink); line-height: 1.1; }
.scrawl--tally { position: relative; align-self: center; font-size: clamp(1.4rem, 2.4vw, 2rem);
  transform: rotate(-3deg); padding: 0.9rem 1.4rem; white-space: nowrap; margin-top: 1.2rem; }
.scrawl__circle { position: absolute; inset: -0.2rem -0.5rem; width: calc(100% + 1rem); height: calc(100% + 0.4rem); overflow: visible; }
.scrawl__circle path, .tally path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Next match / ON AIR strip ----------------------------------------------------- */
.next { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 0.35rem 0.8rem;
  border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule);
  padding: 0.8rem 0; margin-bottom: 1.75rem; font-size: 1rem; }
.next p { margin: 0; }
.next strong { font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; margin-right: 0.25rem; }
.next__league { color: var(--ink-2); }
.next time { font-weight: 700; }
.lamp { width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--lamp-off); align-self: center;
  box-shadow: inset 0 -2px 0 rgba(20, 20, 20, 0.18); flex: none; }
.next.is-on-air .lamp { background: var(--on-air); }
.next__air { grid-column: 2; font-weight: 700; color: var(--on-air); }
.next__air a { color: var(--ink); font-weight: 700; }
.next__air .air-tag { font-weight: 900; font-stretch: 80%; letter-spacing: 0.08em; margin-right: 0.4rem; }
.next--none p { color: var(--ink-2); }

/* ---- Body: sheets on the left, the index card on the right ------------------------ */
.board__body { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 2.5rem; align-items: start; }
.board__main { display: grid; gap: 3rem; min-width: 0; }

.key { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.85rem; color: var(--ink-2); margin-bottom: -1.75rem; }
.key li { display: flex; align-items: center; gap: 0.35rem; }

.hl { display: inline-block; min-width: 2.1em; padding: 0.05em 0.35em; text-align: center; color: var(--ink);
  font-weight: 800; font-stretch: 85%; font-size: 0.8rem; letter-spacing: 0.04em;
  border-radius: 2px 7px 3px 6px / 6px 3px 7px 2px; transform: rotate(-1.2deg); }
.hl--sm { font-size: 0.7rem; min-width: 1.9em; }
.hl--gold { background: var(--pen-gold); }
.hl--green { background: var(--pen-green); }
.hl--violet { background: var(--pen-violet); }
.hl--pink { background: var(--pen-pink); }
.hl--cyan { background: var(--pen-cyan); }
.hl--pencil { background: none; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; transform: none; }

.sheet__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin-bottom: 0.9rem; }
.sheet__head h2 { font-weight: 850; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1; letter-spacing: 0; }
.sheet__head p { color: var(--ink-2); font-size: 0.95rem; }
.sheet__note { margin-top: 0.75rem; font-size: 0.8rem; color: var(--ink-2); font-style: italic; }
.sheet--quiet .sheet__head h2 { font-size: 1.35rem; }

/* The ruled grid. */
.grid { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.grid thead th { text-align: left; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); padding: 0 0.75rem 0.5rem; border-bottom: 2px solid var(--rule); }
.grid td, .grid tbody th { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; text-align: left; }
.grid td + td, .grid th + td, .grid td + th { border-left: 1px solid var(--rule-soft); }
.grid .c-no { width: 3.2rem; color: var(--ink-2); font-weight: 700; }
.grid .c-name { font-weight: 800; font-stretch: 78%; font-size: 1.12rem; position: relative; }
.grid .c-name a { text-decoration: none; position: relative; z-index: 1; }
.grid .c-name a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.grid .c-lang { width: 4.5rem; }
.grid .c-plat { width: 6rem; color: var(--ink-2); }
.grid .c-tally { width: 9rem; }
.grid .c-last { width: 5rem; color: var(--ink-2); white-space: nowrap; }
.tally { height: 1.35rem; width: auto; }
.tally--num { font-family: var(--hand); font-weight: 700; font-size: 1.35rem; line-height: 1; }

/* The signature sweep: a highlighter pulled across the name on hover and focus. */
.grid tbody tr { --sweep: var(--pen-gold); }
.grid tbody th.c-name::before { content: ""; position: absolute; left: 0.45rem; right: 0.45rem; top: 22%; bottom: 18%;
  background: var(--sweep); opacity: 0.75; transform: scaleX(0); transform-origin: left center;
  border-radius: 2px 8px 3px 7px / 7px 3px 8px 2px; transition: transform 320ms var(--ease-out); }
.grid tbody tr:hover th.c-name::before, .grid tbody tr:focus-within th.c-name::before { transform: scaleX(1); }
.grid tbody tr.pen-green { --sweep: var(--pen-green); }
.grid tbody tr.pen-violet { --sweep: var(--pen-violet); }
.grid tbody tr.pen-pink { --sweep: var(--pen-pink); }
.grid tbody tr.pen-cyan { --sweep: var(--pen-cyan); }

.js .grid tr.is-folded { display: none; }
.sheet__more { margin-top: 1rem; }
.sheet__more--phone { display: none; }

.grid--blank td, .grid--blank th { height: 3rem; }
.c-name--blank .scrawl { font-size: 1.3rem; color: var(--ink-2); font-weight: 700; }
.sheet__cta { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; max-width: 42rem; }
.sheet__blurb { margin-top: 1.25rem; max-width: 65ch; color: var(--ink-2); }

/* ---- Match by match: the same ruled sheet, one row per fixture ------------------------ */
.grid--matches .c-date { width: 4.5rem; color: var(--ink-2); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.grid--matches .c-match { width: 15rem; font-weight: 800; font-stretch: 80%; font-size: 1.02rem; line-height: 1.3; }
.m__score { font-weight: 900; font-stretch: 100%; padding: 0 0.15em; }
.m__league { display: block; margin-top: 0.15rem; font-weight: 500; font-stretch: 100%; font-size: 0.8rem; color: var(--ink-2); }
.grid--matches .c-voices { width: 6.5rem; position: relative; }
.m__count { position: relative; display: inline-block; padding: 0.1rem 0.55rem; }
.m__n { font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.m__circle { position: absolute; inset: -0.35rem -0.3rem; width: calc(100% + 0.6rem); height: calc(100% + 0.7rem); overflow: visible; }
.m__circle path, .swash path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.m__note { display: block; font-size: 1rem; transform: rotate(-5deg); margin-top: 0.1rem; white-space: nowrap; }
.m__voices { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.95rem; }
.m__voices li { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; font-stretch: 85%; }
.m__voices a { text-decoration: none; }
.m__voices a:hover { text-decoration: underline; }
.grid--matches tbody tr.is-busiest { background: rgba(255, 210, 63, 0.14); }

.swash { position: absolute; left: 0.6rem; bottom: 0.15rem; width: 7.5rem; height: 0.6rem; overflow: visible; pointer-events: none; }

.results { display: grid; gap: 0.35rem; font-size: 0.95rem; }
.results li { display: flex; gap: 0.6rem; align-items: baseline; }
.results time { width: 3.6rem; color: var(--ink-2); font-size: 0.85rem; }
.results b { font-weight: 900; }

/* ---- The index card ------------------------------------------------------------------ */
.card {
  position: sticky; top: 1.5rem;
  background: var(--card); color: var(--ink);
  padding: 1.75rem 1.5rem 1.5rem; border-radius: 2px;
  transform: rotate(0.9deg);
  box-shadow: 0 2px 0 rgba(20, 20, 20, 0.08), 0 16px 28px -14px rgba(38, 8, 92, 0.5);
}
.tape--card { top: -0.85rem; left: 50%; width: 6rem; transform: translateX(-50%) rotate(-3deg); }
/* Wide screens: the card hangs over the board's right edge onto the wall, and its one piece of
   tape sits across that edge. */
@media (min-width: 68.75rem) {
  .card { --overhang: 1rem; width: 21rem; justify-self: end;
    margin-right: calc(-1 * (var(--board-pad) + var(--overhang))); }
  .tape--card { left: auto; right: calc(var(--overhang) + var(--board-pad) - 3rem); transform: rotate(-4deg); }
}
@media (min-width: 84rem) {
  .card { --overhang: 2.25rem; }
}
.card h2 { font-weight: 850; font-stretch: 72%; text-transform: uppercase; font-size: 1.75rem; line-height: 0.95; }
.card p { margin-top: 0.7rem; font-size: 0.95rem; }
.card__code { margin: 1rem 0 0; padding: 0.85rem 0.9rem; background: var(--ink); color: #F4F0FF;
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto;
  max-height: 14rem; border-radius: 2px; scrollbar-width: thin; scrollbar-color: #6b6478 var(--ink); }
.card__code:focus-visible { outline-color: var(--ink); outline-offset: 3px; }
.card__actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.9rem; }
.card__status { font-family: var(--hand); font-weight: 700; font-size: 1.05rem; }
.card__more { font-size: 0.85rem; }
.card__rule { border: 0; border-top: 1px dashed rgba(20, 20, 20, 0.45); margin: 1.25rem 0 0; }
.card__pulse { font-size: 0.88rem; color: var(--card-ink-2); }
.card__pulse a { color: var(--ink); font-weight: 700; }
.card :focus-visible { outline-color: var(--ink); }

/* ---- Buttons: printed labels, not pills -------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.75rem;
  padding: 0.6rem 1.1rem; border-radius: 3px; font: inherit; font-weight: 800; font-stretch: 85%;
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; cursor: pointer; text-decoration: none; }
.btn--ink { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.btn--ink:hover { background: #2c2733; }
.btn--ink:active { transform: translateY(1px); }
.btn--line { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--line:hover { background: var(--pen-gold); }

/* ---- Notes, links ----------------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin-top: 0.25rem; counter-reset: note; }
.faq__item { padding: 0.9rem 0 1.1rem; border-top: 1px solid var(--rule-soft); counter-increment: note; }
.faq__item:nth-child(-n+2) { border-top: 2px solid var(--rule); }
.faq dt { font-weight: 800; font-stretch: 85%; font-size: 1.02rem; }
.faq dt::before { content: counter(note) "."; font-family: var(--hand); font-weight: 700; margin-right: 0.4rem; }
.faq dd { margin-top: 0.3rem; color: var(--ink-2); max-width: 65ch; }
.board > .sheet { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 2px solid var(--rule); }

.board__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 2.5rem;
  margin-top: 3rem; }
.links h2 { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding-bottom: 0.45rem; margin-bottom: 0.5rem; border-bottom: 2px solid var(--rule); }
.links li { padding: 0.2rem 0; border-bottom: 1px solid var(--rule-soft); }
.links ul { display: grid; font-size: 0.9rem; }
.links a { color: var(--ink-2); text-decoration: none; }
.links a:hover { color: var(--ink); text-decoration: underline; }

/* ---- Footer: back on the wall ----------------------------------------------------------- */
.foot { max-width: 78rem; margin: 0 auto; padding: 0 var(--board-pad) 3rem; color: var(--wall-text); background: var(--wall); }
.foot__line { font-weight: 850; font-stretch: 70%; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1rem; font-weight: 600; font-size: 0.92rem; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot__fine { margin-top: 1rem; max-width: 60ch; color: var(--wall-text); font-size: 0.85rem; }

/* ---- Draw-on: the one authored motion. The island adds .is-drawn once a node is seen. ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .draw path { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
  .js .draw.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease-out); transition-delay: var(--delay, 0ms); }
}

/* ---- Phones and small tablets ---------------------------------------------------------- */
@media (max-width: 64rem) {
  .board__body { grid-template-columns: minmax(0, 1fr); }
  .board__main { display: contents; }
  .board__body > * { min-width: 0; }
  .key { order: 1; margin-bottom: -1.5rem; }
  .board__main > .sheet:first-of-type { order: 2; }
  .card { order: 3; position: relative; top: 0; transform: rotate(0.6deg); max-width: 34rem; }
  .board__main > .sheet:nth-of-type(2) { order: 4; }
  .board__main > .sheet:nth-of-type(n+3) { order: 5; }
  .board__body { gap: 2.75rem; }
}
@media (max-width: 45rem) {
  .rail { flex-wrap: wrap; gap: 0.6rem 1rem; padding-top: 0.75rem; padding-bottom: 0.5rem; }
  .rail__nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; gap: 1.1rem; padding-bottom: 0.2rem; }
  .rail__nav::-webkit-scrollbar { display: none; }
  .rail__nav a { white-space: nowrap; }
  .rail__nav .rail__app { position: absolute; top: 0.85rem; right: var(--board-pad); }
  .rail { position: relative; }
  .board { width: calc(100% - 1rem); margin: 1rem auto 2rem; }
  .tape--tl, .tape--tr { width: 3.5rem; height: 1.2rem; }
  .tape--tl { left: -0.25rem; }
  .tape--tr { right: -0.25rem; }
  .board__head { grid-template-columns: auto 1fr; }
  .crest { width: 3rem; height: 3rem; margin-top: 1.6rem; }
  .scrawl--tally { grid-column: 1 / -1; justify-self: start; margin: 0.25rem 0 0 0.5rem; }
  .grid .c-plat, .grid .c-last { display: none; }
  .grid .c-tally { width: auto; }
  .grid td, .grid tbody th { padding: 0.55rem 0.5rem; }
  .grid .c-no { width: 2.2rem; }
  .js .grid tr.is-fold-sm { display: none; }
  .sheet__more--phone { display: inline-flex; }
  /* The match sheet stacks: date and count on a line, the fixture, then the names. */
  .grid--matches thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .grid--matches, .grid--matches tbody { display: block; }
  .grid--matches tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1rem; padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule-soft); }
  .grid--matches tbody tr:first-child { border-top: 2px solid var(--rule); }
  .grid.grid--matches td, .grid.grid--matches tbody th { display: block; width: auto; padding: 0; border: 0; }
  .grid--matches .c-date { grid-column: 1; grid-row: 1; }
  .grid--matches .c-match { grid-column: 1; grid-row: 2; width: auto; }
  .grid--matches .c-voices { grid-column: 2; grid-row: 1 / span 2; width: auto; text-align: right; }
  .grid--matches .c-who { grid-column: 1 / -1; grid-row: 3; padding-top: 0.35rem; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__item:nth-child(2) { border-top-width: 1px; border-top-color: var(--rule-soft); }
}

@media (max-width: 24rem) {
  .grid { table-layout: fixed; }
  .grid thead th { letter-spacing: 0.02em; font-size: 0.7rem; padding-left: 0.35rem; padding-right: 0.35rem; }
  .grid td, .grid tbody th { padding: 0.5rem 0.35rem; }
  .grid .c-no { width: 1.9rem; }
  .grid .c-lang { width: 2.9rem; }
  .grid .c-tally { width: 4.6rem; }
  .grid .c-name { overflow-wrap: anywhere; font-size: 1rem; }
}

@media print {
  body { background: #fff; }
  .rail, .foot, .card, .tape, .skip, .sheet__more { display: none; }
  .board { box-shadow: none; max-width: none; }
  .js .grid tr.is-folded, .js .grid tr.is-fold-sm { display: table-row; }
}
