/* @pcsleague/black-hot 1.2.0: Black Hot tokens as plain custom properties. Generated; do not edit.
 * Black Hot is :root. White Hot is :root[data-theme="dark"] or .dark. The default accent is FDE.
 * Set data-accent="fde|gray|indigo|pink|purple|cyan|odg" to change the accent roles. */

:root {
  --bh-ground: #ffffff;
  --bh-panel: #f0f0f0;
  --bh-panel-2: #e6e6e6;
  --bh-rule: #d9d9d9;
  --bh-rule-2: #ebebeb;
  --bh-ink: #000000;
  --bh-ink-2: #333333;
  --bh-muted: #6b6b6b;
  --bh-cold: #6a6a6a;
  --bh-coldest: #dadada;
  --bh-red-hot: #d80000;
  --bh-red-hot-ink: #ffffff;
  --bh-glass-panel: rgba(240, 240, 240, 0.6);
  --bh-glass-ground: rgba(255, 255, 255, 0.7);
  --bh-glass-filter: blur(20px) grayscale(1);
  --bh-glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(217, 217, 217, 0.85);
  --bh-muted-on-glass: #333333;
  --bh-glass-rule: rgba(0, 0, 0, 0.14);

  --bh-swatch-fde: #7d6a48;
  --bh-swatch-gray: #000000;
  --bh-swatch-indigo: #3e63dd;
  --bh-swatch-pink: #d6409f;
  --bh-swatch-purple: #8e4ec6;
  --bh-swatch-cyan: #00a2c7;
  --bh-swatch-odg: #5f6b3a;

  --bh-on-photo: #ffffff;
  --bh-on-photo-shadow: #000000;

  --bh-gray-1: #ffffff;
  --bh-gray-2: #f7f7f7;
  --bh-gray-3: #f0f0f0;
  --bh-gray-4: #e6e6e6;
  --bh-gray-5: #dadada;
  --bh-gray-6: #d9d9d9;
  --bh-gray-7: #c8c8c8;
  --bh-gray-8: #b9b9b9;
  --bh-gray-9: #6b6b6b;
  --bh-gray-10: #5a5a5a;
  --bh-gray-11: #6b6b6b;
  --bh-gray-12: #000000;

  --bh-accent-solid: #7d6a48;
  --bh-accent-solid-hover: #70603f;
  --bh-accent-solid-ink: #ffffff;
  --bh-accent-text: #6b5a3a;
  --bh-accent-tint: #f3efe6;
  --bh-accent-rule: #70470032;
  --bh-accent-fill: #855c0019;
  --bh-segment-fill: #7d6a48;
  --bh-segment-ink: #ffffff;
  --bh-accent-ramp-1: #7d6a48;
  --bh-accent-ramp-2: #3e3420;
  --bh-accent-ramp-3: #cdc0a9;
  --bh-accent-ramp-4: #6b5a3a;
  --bh-accent-ramp-5: #e3dbcd;
  --bh-band: #000000;
  --bh-band-ink: #ffffff;
  --bh-band-muted: #b9bdb9;
  --bh-band-contour: #7d6a48;
  --bh-terrain-alpha: 0.6;
  --bh-terrain-alpha-index: 0.85;
}

:root[data-theme="dark"],
.dark {
  --bh-ground: #000000;
  --bh-panel: #141414;
  --bh-panel-2: #1e1e1e;
  --bh-rule: #2c2c2a;
  --bh-rule-2: #222222;
  --bh-ink: #ffffff;
  --bh-ink-2: #d6d6d6;
  --bh-muted: #9a9a9a;
  --bh-cold: #8c8c8c;
  --bh-coldest: #333333;
  --bh-red-hot: #ff3b3b;
  --bh-red-hot-ink: #000000;
  --bh-glass-panel: rgba(20, 20, 20, 0.6);
  --bh-glass-ground: rgba(0, 0, 0, 0.7);
  --bh-glass-filter: blur(20px) grayscale(1);
  --bh-glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.14);
  --bh-muted-on-glass: #d6d6d6;
  --bh-glass-rule: rgba(255, 255, 255, 0.14);

  --bh-swatch-fde: #7d6a48;
  --bh-swatch-gray: #ffffff;
  --bh-swatch-indigo: #3e63dd;
  --bh-swatch-pink: #d6409f;
  --bh-swatch-purple: #8e4ec6;
  --bh-swatch-cyan: #00a2c7;
  --bh-swatch-odg: #5f6b3a;

  --bh-on-photo: #ffffff;
  --bh-on-photo-shadow: #000000;

  --bh-gray-1: #000000;
  --bh-gray-2: #0d0d0d;
  --bh-gray-3: #141414;
  --bh-gray-4: #1e1e1e;
  --bh-gray-5: #262626;
  --bh-gray-6: #2c2c2a;
  --bh-gray-7: #3a3a3a;
  --bh-gray-8: #5a5a5a;
  --bh-gray-9: #9a9a9a;
  --bh-gray-10: #b0b0b0;
  --bh-gray-11: #9a9a9a;
  --bh-gray-12: #ffffff;

  --bh-accent-solid: #7d6a48;
  --bh-accent-solid-hover: #70603f;
  --bh-accent-solid-ink: #ffffff;
  --bh-accent-text: #cdb48a;
  --bh-accent-tint: #25231e;
  --bh-accent-rule: #ffe9c539;
  --bh-accent-fill: #fff1cf25;
  --bh-segment-fill: #7d6a48;
  --bh-segment-ink: #ffffff;
  --bh-accent-ramp-1: #7d6a48;
  --bh-accent-ramp-2: #eae2d4;
  --bh-accent-ramp-3: #564e40;
  --bh-accent-ramp-4: #cdb48a;
  --bh-accent-ramp-5: #39342c;
  --bh-band: #7d6a48;
  --bh-band-ink: #000000;
  --bh-band-muted: #000000;
  --bh-band-contour: #000000;
  --bh-terrain-alpha: 0.45;
  --bh-terrain-alpha-index: 0.7;
}

[data-accent="fde"] {
  --bh-accent-solid: #7d6a48;
  --bh-accent-solid-hover: #70603f;
  --bh-accent-solid-ink: #ffffff;
  --bh-accent-text: #6b5a3a;
  --bh-accent-tint: #f3efe6;
  --bh-accent-rule: #70470032;
  --bh-accent-fill: #855c0019;
  --bh-segment-fill: #7d6a48;
  --bh-segment-ink: #ffffff;
  --bh-accent-ramp-1: #7d6a48;
  --bh-accent-ramp-2: #3e3420;
  --bh-accent-ramp-3: #cdc0a9;
  --bh-accent-ramp-4: #6b5a3a;
  --bh-accent-ramp-5: #e3dbcd;
  --bh-band: #000000;
  --bh-band-ink: #ffffff;
  --bh-band-muted: #b9bdb9;
  --bh-band-contour: #7d6a48;
  --bh-terrain-alpha: 0.6;
  --bh-terrain-alpha-index: 0.85;
}

:root[data-theme="dark"][data-accent="fde"],
.dark[data-accent="fde"] {
  --bh-accent-solid: #7d6a48;
  --bh-accent-solid-hover: #70603f;
  --bh-accent-solid-ink: #ffffff;
  --bh-accent-text: #cdb48a;
  --bh-accent-tint: #25231e;
  --bh-accent-rule: #ffe9c539;
  --bh-accent-fill: #fff1cf25;
  --bh-segment-fill: #7d6a48;
  --bh-segment-ink: #ffffff;
  --bh-accent-ramp-1: #7d6a48;
  --bh-accent-ramp-2: #eae2d4;
  --bh-accent-ramp-3: #564e40;
  --bh-accent-ramp-4: #cdb48a;
  --bh-accent-ramp-5: #39342c;
  --bh-band: #7d6a48;
  --bh-band-ink: #000000;
  --bh-band-muted: #000000;
  --bh-band-contour: #000000;
  --bh-terrain-alpha: 0.45;
  --bh-terrain-alpha-index: 0.7;
}

[data-accent="gray"] {
  --bh-accent-solid: #000000;
  --bh-accent-solid-hover: #333333;
  --bh-accent-solid-ink: #ffffff;
  --bh-accent-text: #000000;
  --bh-accent-tint: #f0f0f0;
  --bh-accent-rule: #0000001f;
  --bh-accent-fill: #0000000f;
  --bh-segment-fill: #ffffff;
  --bh-segment-ink: #000000;
  --bh-accent-ramp-1: #000000;
  --bh-accent-ramp-2: #5a5a5a;
  --bh-accent-ramp-3: #b9b9b9;
  --bh-accent-ramp-4: #d9d9d9;
  --bh-accent-ramp-5: #e6e6e6;
  --bh-band: #000000;
  --bh-band-ink: #ffffff;
  --bh-band-muted: #b9bdb9;
  --bh-band-contour: #ffffff;
  --bh-terrain-alpha: 0.3;
  --bh-terrain-alpha-index: 0.45;
}

:root[data-theme="dark"][data-accent="gray"],
.dark[data-accent="gray"] {
  --bh-accent-solid: #ffffff;
  --bh-accent-solid-hover: #d6d6d6;
  --bh-accent-solid-ink: #000000;
  --bh-accent-text: #ffffff;
  --bh-accent-tint: #141414;
  --bh-accent-rule: #ffffff22;
  --bh-accent-fill: #ffffff12;
  --bh-segment-fill: #ffffff12;
  --bh-segment-ink: #ffffff;
  --bh-accent-ramp-1: #ffffff;
  --bh-accent-ramp-2: #b0b0b0;
  --bh-accent-ramp-3: #5a5a5a;
  --bh-accent-ramp-4: #2c2c2a;
  --bh-accent-ramp-5: #1e1e1e;
  --bh-band: #ffffff;
  --bh-band-ink: #000000;
  --bh-band-muted: #555555;
  --bh-band-contour: #000000;
  --bh-terrain-alpha: 0.3;
  --bh-terrain-alpha-index: 0.45;
}

[data-accent="indigo"] {
  --bh-accent-solid: #3e63dd;
  --bh-accent-solid-hover: #3358d4;
  --bh-accent-solid-ink: #ffffff;
  --bh-accent-text: #3a5bc7;
  --bh-accent-tint: #edf2fe;
  --bh-accent-rule: #0044ff2d;
  --bh-accent-fill: #0047f112;
  --bh-segment-fill: #3e63dd;
  --bh-segment-ink: #ffffff;
  --bh-accent-ramp-1: #3e63dd;
  --bh-accent-ramp-2: #1f2d5c;
  --bh-accent-ramp-3: #abbdf9;
  --bh-accent-ramp-4: #3a5bc7;
  --bh-accent-ramp-5: #d2deff;
  --bh-band: #000000;
  --bh-band-ink: #ffffff;
  --bh-band-muted: #b9bdb9;
  --bh-band-contour: #3e63dd;
  --bh-terrain-alpha: 0.6;
  --bh-terrain-alpha-index: 0.85;
}

:root[data-theme="dark"][data-accent="indigo"],
.dark[data-accent="indigo"] {
  --bh-accent-solid: #3e63dd;
  --bh-accent-solid-hover: #3358d4;
  --bh-accent-solid-ink: #ffffff;
  --bh-accent-text: #9eb1ff;
  --bh-accent-tint: #182449;
  --bh-accent-rule: #4171fd6b;
  --bh-accent-fill: #2f62ff3c;
  --bh-segment-fill: #3e63dd;
  --bh-segment-ink: #ffffff;
  --bh-accent-ramp-1: #3e63dd;
  --bh-accent-ramp-2: #d6e1ff;
  --bh-accent-ramp-3: #3a4f97;
  --bh-accent-ramp-4: #9eb1ff;
  --bh-accent-ramp-5: #253974;
  --bh-band: #3e63dd;
  --bh-band-ink: #000000;
  --bh-band-muted: #000000;
  --bh-band-contour: #000000;
  --bh-terrain-alpha: 0.45;
  --bh-terrain-alpha-index: 0.7;
}

[data-accent="pink"] {
  --bh-accent-solid: #d6409f;
  --bh-accent-solid-hover: #cf3897;
  --bh-accent-solid-ink: #000000;
  --bh-accent-text: #c2298a;
  --bh-accent-tint: #fee9f5;
  --bh-accent-rule: #d1008331;
  --bh-accent-fill: #f4008c16;
  --bh-segment-fill: #d6409f;
  --bh-segment-ink: #000000;
  --bh-accent-ramp-1: #d6409f;
  --bh-accent-ramp-2: #651249;
  --bh-accent-ramp-3: #e7acd0;
  --bh-accent-ramp-4: #c2298a;
  --bh-accent-ramp-5: #f6cee7;
  --bh-band: #000000;
  --bh-band-ink: #ffffff;
  --bh-band-muted: #b9bdb9;
  --bh-band-contour: #d6409f;
  --bh-terrain-alpha: 0.6;
  --bh-terrain-alpha-index: 0.85;
}

:root[data-theme="dark"][data-accent="pink"],
.dark[data-accent="pink"] {
  --bh-accent-solid: #d6409f;
  --bh-accent-solid-hover: #de51a8;
  --bh-accent-solid-ink: #000000;
  --bh-accent-text: #ff8dcc;
  --bh-accent-tint: #37172f;
  --bh-accent-rule: #fd35c24e;
  --bh-accent-fill: #fe37cc29;
  --bh-segment-fill: #d6409f;
  --bh-segment-ink: #000000;
  --bh-accent-ramp-1: #d6409f;
  --bh-accent-ramp-2: #fdd1ea;
  --bh-accent-ramp-3: #833869;
  --bh-accent-ramp-4: #ff8dcc;
  --bh-accent-ramp-5: #591c47;
  --bh-band: #d6409f;
  --bh-band-ink: #000000;
  --bh-band-muted: #000000;
  --bh-band-contour: #000000;
  --bh-terrain-alpha: 0.45;
  --bh-terrain-alpha-index: 0.7;
}

[data-accent="purple"] {
  --bh-accent-solid: #8e4ec6;
  --bh-accent-solid-hover: #8347b9;
  --bh-accent-solid-ink: #ffffff;
  --bh-accent-text: #8145b5;
  --bh-accent-tint: #f7edfe;
  --bh-accent-rule: #8000db2a;
  --bh-accent-fill: #8e00f112;
  --bh-segment-fill: #8e4ec6;
  --bh-segment-ink: #ffffff;
  --bh-accent-ramp-1: #8e4ec6;
  --bh-accent-ramp-2: #402060;
  --bh-accent-ramp-3: #d1afec;
  --bh-accent-ramp-4: #8145b5;
  --bh-accent-ramp-5: #ead5f9;
  --bh-band: #000000;
  --bh-band-ink: #ffffff;
  --bh-band-muted: #b9bdb9;
  --bh-band-contour: #8e4ec6;
  --bh-terrain-alpha: 0.6;
  --bh-terrain-alpha-index: 0.85;
}

:root[data-theme="dark"][data-accent="purple"],
.dark[data-accent="purple"] {
  --bh-accent-solid: #8e4ec6;
  --bh-accent-solid-hover: #8347b9;
  --bh-accent-solid-ink: #ffffff;
  --bh-accent-text: #d19dff;
  --bh-accent-tint: #301c3b;
  --bh-accent-rule: #be5cfd51;
  --bh-accent-fill: #c150ff2d;
  --bh-segment-fill: #8e4ec6;
  --bh-segment-ink: #ffffff;
  --bh-accent-ramp-1: #8e4ec6;
  --bh-accent-ramp-2: #ecd9fa;
  --bh-accent-ramp-3: #664282;
  --bh-accent-ramp-4: #d19dff;
  --bh-accent-ramp-5: #48295c;
  --bh-band: #8e4ec6;
  --bh-band-ink: #000000;
  --bh-band-muted: #000000;
  --bh-band-contour: #000000;
  --bh-terrain-alpha: 0.45;
  --bh-terrain-alpha-index: 0.7;
}

[data-accent="cyan"] {
  --bh-accent-solid: #00a2c7;
  --bh-accent-solid-hover: #0797b9;
  --bh-accent-solid-ink: #000000;
  --bh-accent-text: #0c6f88;
  --bh-accent-tint: #def7f9;
  --bh-accent-rule: #01b4cc4a;
  --bh-accent-fill: #00c2d121;
  --bh-segment-fill: #00a2c7;
  --bh-segment-ink: #000000;
  --bh-accent-ramp-1: #00a2c7;
  --bh-accent-ramp-2: #0d3c48;
  --bh-accent-ramp-3: #7dcedc;
  --bh-accent-ramp-4: #107d98;
  --bh-accent-ramp-5: #b5e9f0;
  --bh-band: #000000;
  --bh-band-ink: #ffffff;
  --bh-band-muted: #b9bdb9;
  --bh-band-contour: #00a2c7;
  --bh-terrain-alpha: 0.6;
  --bh-terrain-alpha-index: 0.85;
}

:root[data-theme="dark"][data-accent="cyan"],
.dark[data-accent="cyan"] {
  --bh-accent-solid: #00a2c7;
  --bh-accent-solid-hover: #23afd0;
  --bh-accent-solid-ink: #000000;
  --bh-accent-text: #4ccce6;
  --bh-accent-tint: #082c36;
  --bh-accent-rule: #00befd4d;
  --bh-accent-fill: #00befd28;
  --bh-segment-fill: #00a2c7;
  --bh-segment-ink: #000000;
  --bh-accent-ramp-1: #00a2c7;
  --bh-accent-ramp-2: #b6ecf7;
  --bh-accent-ramp-3: #12677e;
  --bh-accent-ramp-4: #4ccce6;
  --bh-accent-ramp-5: #004558;
  --bh-band: #00a2c7;
  --bh-band-ink: #000000;
  --bh-band-muted: #000000;
  --bh-band-contour: #000000;
  --bh-terrain-alpha: 0.45;
  --bh-terrain-alpha-index: 0.7;
}

[data-accent="odg"] {
  --bh-accent-solid: #5f6b3a;
  --bh-accent-solid-hover: #546030;
  --bh-accent-solid-ink: #ffffff;
  --bh-accent-text: #4b5a2a;
  --bh-accent-tint: #f1f3eb;
  --bh-accent-rule: #44630031;
  --bh-accent-fill: #4d660014;
  --bh-segment-fill: #5f6b3a;
  --bh-segment-ink: #ffffff;
  --bh-accent-ramp-1: #5f6b3a;
  --bh-accent-ramp-2: #333728;
  --bh-accent-ramp-3: #b9c2a1;
  --bh-accent-ramp-4: #4b5a2a;
  --bh-accent-ramp-5: #dbe1ce;
  --bh-band: #000000;
  --bh-band-ink: #ffffff;
  --bh-band-muted: #b9bdb9;
  --bh-band-contour: #5f6b3a;
  --bh-terrain-alpha: 0.6;
  --bh-terrain-alpha-index: 0.85;
}

:root[data-theme="dark"][data-accent="odg"],
.dark[data-accent="odg"] {
  --bh-accent-solid: #5f6b3a;
  --bh-accent-solid-hover: #546030;
  --bh-accent-solid-ink: #ffffff;
  --bh-accent-text: #b8c47a;
  --bh-accent-tint: #25271f;
  --bh-accent-rule: #efffb841;
  --bh-accent-fill: #f2ffcb27;
  --bh-segment-fill: #5f6b3a;
  --bh-segment-ink: #ffffff;
  --bh-accent-ramp-1: #5f6b3a;
  --bh-accent-ramp-2: #dee6ca;
  --bh-accent-ramp-3: #575e44;
  --bh-accent-ramp-4: #b8c47a;
  --bh-accent-ramp-5: #3d412f;
  --bh-band: #5f6b3a;
  --bh-band-ink: #000000;
  --bh-band-muted: #000000;
  --bh-band-contour: #000000;
  --bh-terrain-alpha: 0.45;
  --bh-terrain-alpha-index: 0.7;
}

/* majors.pcsleague.com in Black Hot: a landing page with the current match and the previous ones,
   and one page per match that puts the matchbook first and the stages second (issue #18), in the
   look Anthony picked ("Your pick, in Black Hot", the Virtually Ever After layout brought into Black
   Hot). scripts/build.mjs appends this file to vendor/black-hot/dist/bh-tokens.css (the colour
   tokens, unchanged) to make /assets/<hash>/site.css, and copies the fonts and SVGs into the same
   folder, so every url() below is a file name in that folder. The pages' CSP allows this stylesheet
   and nothing inline. One small script, site/appearance.js, only remembers the Light/Dark choice
   and sets <html data-appearance>, and another, site/copy.js, only copies the range address when it
   is tapped (and marks its button .copied or .by-hand); the Appearance switch in the top bar is itself a pair of radio
   inputs (scripts/lib/render.mjs) read here with :has() and works without it, and the dock and the
   jumps work from :target. Colours come only from the bh-* tokens. */

/* Self-hosted Exo 2 and Inter (SIL Open Font License) from vendor/fonts: no font comes from a third
   party (rule 4). The unicode ranges match the Fontsource packages. */

@font-face {
  font-family: "Exo 2 Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("exo-2-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Exo 2 Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("exo-2-latin-wght-normal.woff2") format("woff2");
  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: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("inter-latin-wght-normal.woff2") format("woff2");
  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;
}

/* The type, spacing and layout tokens the Black Hot rules define; bh-tokens.css holds only colours. */
:root {
  /* The pages open light (under Appearance), so the browser draws its own parts light until the Dark
     switch is checked. */
  color-scheme: light;

  /* Rule 4: Exo 2, uppercase, for anything that names or counts; Inter for anything people read. */
  --bh-font-naming: "Exo 2 Variable", "Exo 2", "Helvetica Neue", Arial, sans-serif;
  --bh-font-body: "Inter Variable", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* The Radix screen steps 1 to 8 (12, 14, 16, 18, 20, 24, 28 and 35 px), and the kicker, the one
     sanctioned size outside them. Display type stops at step 8. */
  --bh-text-1: 0.75rem;
  --bh-text-2: 0.875rem;
  --bh-text-3: 1rem;
  --bh-text-4: 1.125rem;
  --bh-text-5: 1.25rem;
  --bh-text-6: 1.5rem;
  --bh-text-7: 1.75rem;
  --bh-text-8: 2.1875rem;
  --bh-text-kicker: 0.72rem;
  --bh-leading-1: 1rem;
  --bh-leading-2: 1.25rem;
  --bh-leading-3: 1.5rem;
  --bh-leading-4: 1.625rem;
  --bh-leading-5: 1.75rem;
  --bh-leading-6: 1.875rem;
  --bh-leading-7: 2.25rem;
  --bh-leading-8: 2.5rem;

  /* Rule 5: square, flat, spaced in 4-unit steps; emphasis from bars and rules. */
  --bh-radius: 0;
  --bh-space-1: 0.25rem;
  --bh-space-2: 0.5rem;
  --bh-space-3: 0.75rem;
  --bh-space-4: 1rem;
  --bh-space-5: 1.5rem;
  --bh-space-6: 2rem;
  --bh-hairline: 1px;
  --bh-bar-hottest: 4px;

  --bh-gutter: var(--bh-space-4);
  /* The sticky top bar's least height and the dock's height: a jump or keyboard focus lands clear
     of both. */
  --top-bar: 3.5rem;
  --dock: 3rem;
}

@media (min-width: 48rem) {
  :root {
    --bh-gutter: var(--bh-space-6);
  }
}

@media (min-width: 80rem) {
  :root {
    --bh-gutter: calc(var(--bh-space-6) * 1.25);
  }
}

/* ---- Appearance: Light (Black Hot) by default, Dark (White Hot) from the switch ----

   <body class="dark"> takes the White Hot tokens from the vendored ".dark" rule. */

/* DEPARTURE 2 from rule 8, which makes the White Hot band the accent solid (FDE) with ink on it:
   the band stays black in dark mode, as the pick shows. Each band token goes back to its Black Hot
   value on :root. Delete this rule to follow rule 8. */
body.dark {
  --bh-band: inherit;
  --bh-band-ink: inherit;
  --bh-band-muted: inherit;
  --bh-band-contour: inherit;
  --bh-terrain-alpha: inherit;
  --bh-terrain-alpha-index: inherit;
}

/* Light: every token the vendored ".dark" rule sets goes back to its Black Hot value on :root.
   test/styles.test.mjs checks this list against bh-tokens.css, so a Black Hot update cannot leave a
   token dark in light mode. The pages open light, as the web rule says: DEFAULT_APPEARANCE in
   render.mjs is "light", which checks #appearance-light on every page (each has the switch in its
   top bar). When the visitor has chosen, appearance.js puts the choice on <html data-appearance>
   from the head, and that decides; the radios decide only without it (no script, no storage). */
:root[data-appearance="light"] body,
:root:not([data-appearance]) body:has(#appearance-light:checked) {
  --bh-ground: inherit;
  --bh-panel: inherit;
  --bh-panel-2: inherit;
  --bh-rule: inherit;
  --bh-rule-2: inherit;
  --bh-ink: inherit;
  --bh-ink-2: inherit;
  --bh-muted: inherit;
  --bh-cold: inherit;
  --bh-coldest: inherit;
  --bh-red-hot: inherit;
  --bh-red-hot-ink: inherit;
  --bh-glass-panel: inherit;
  --bh-glass-ground: inherit;
  --bh-glass-filter: inherit;
  --bh-glass-edge: inherit;
  --bh-muted-on-glass: inherit;
  --bh-glass-rule: inherit;
  --bh-swatch-fde: inherit;
  --bh-swatch-gray: inherit;
  --bh-swatch-indigo: inherit;
  --bh-swatch-pink: inherit;
  --bh-swatch-purple: inherit;
  --bh-swatch-cyan: inherit;
  --bh-swatch-odg: inherit;
  --bh-on-photo: inherit;
  --bh-on-photo-shadow: inherit;
  --bh-gray-1: inherit;
  --bh-gray-2: inherit;
  --bh-gray-3: inherit;
  --bh-gray-4: inherit;
  --bh-gray-5: inherit;
  --bh-gray-6: inherit;
  --bh-gray-7: inherit;
  --bh-gray-8: inherit;
  --bh-gray-9: inherit;
  --bh-gray-10: inherit;
  --bh-gray-11: inherit;
  --bh-gray-12: inherit;
  --bh-accent-solid: inherit;
  --bh-accent-solid-hover: inherit;
  --bh-accent-solid-ink: inherit;
  --bh-accent-text: inherit;
  --bh-accent-tint: inherit;
  --bh-accent-rule: inherit;
  --bh-accent-fill: inherit;
  --bh-segment-fill: inherit;
  --bh-segment-ink: inherit;
  --bh-accent-ramp-1: inherit;
  --bh-accent-ramp-2: inherit;
  --bh-accent-ramp-3: inherit;
  --bh-accent-ramp-4: inherit;
  --bh-accent-ramp-5: inherit;
  --bh-band: inherit;
  --bh-band-ink: inherit;
  --bh-band-muted: inherit;
  --bh-band-contour: inherit;
  --bh-terrain-alpha: inherit;
  --bh-terrain-alpha-index: inherit;
}

/* The browser's own parts are dark on a dark page: the visitor's choice of Dark, or without one the
   Dark switch, on a body with the White Hot tokens. */
:root[data-appearance="dark"],
:root:not([data-appearance]):has(body.dark #appearance-dark:checked) {
  color-scheme: dark;
}

/* Tokens made from the band's colours. They are declared on body, after the appearance rules, so
   their var(--bh-band) is body's band: a var() in a custom property is resolved where the property
   is declared, and a :root declaration would keep the :root band whatever the appearance. */
body {
  /* Rule 9: behind each block of text on the terrain, an ellipse in the band's own colour fitted
     to the block, solid to three quarters, so the contours stop behind the text and run everywhere
     else. */
  --bh-scrim-spot: radial-gradient(closest-side, color-mix(in srgb, var(--bh-band) 94%, transparent) 75%, transparent);
}

/* ---- Elements ---- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* A jump to a stage row or a section, and keyboard focus, land clear of the sticky top bar and
     the dock. The space past each is more than a focus ring reaches (2px at a 2px offset), so the
     ring shows whole. */
  scroll-padding-block: calc(var(--top-bar) + var(--bh-space-2)) calc(var(--dock) + var(--bh-space-2));
}

/* body holds the ground, not html: the appearance tokens are set on body, and the canvas takes
   body's background when html has none, so overscroll matches the appearance.
   A page shorter than the window (a previous match with no stages, the 404 page) still fills it:
   body and main are columns and the end panel grows, so the dock sits at the foot of the window
   with no bare ground under it. None of these parts has a vertical margin, so the columns move
   nothing on a long page. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bh-ground);
  color: var(--bh-ink-2);
  font-family: var(--bh-font-body);
  font-size: var(--bh-text-3);
  line-height: var(--bh-leading-3);
}

main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--bh-ink);
  font-family: var(--bh-font-naming);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

p,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

/* Links take the FDE accent and stay underlined, so colour is not the only cue. */
a {
  color: var(--bh-accent-text);
  text-decoration: underline;
  text-decoration-thickness: var(--bh-hairline);
  text-underline-offset: 0.2em;
}

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

/* The FDE focus ring; on the band it is the band's ink (Digital product, rule 7). */
:focus-visible {
  outline: 2px solid var(--bh-accent-solid);
  outline-offset: 2px;
}

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

::selection {
  background: var(--bh-ink);
  color: var(--bh-ground);
}

fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

/* ---- Type styles from rule 4, and helpers ---- */

/* Visually hidden, still read by screen readers and still focusable (the switch's radios). */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.kicker,
.lock-name,
.year-count,
.day-tile-month {
  color: var(--bh-muted);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-kicker);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: var(--bh-leading-1);
  text-transform: uppercase;
}

.size {
  color: var(--bh-muted);
  font-family: var(--bh-font-naming);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

/* A hyphenated word in a title ("2-Gun") stays on one line, unless it is longer than the line. */
.nobr {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* A link's underline does not reach into an inline block, so a title that links draws it there
   itself. */
a .nobr {
  text-decoration: inherit;
}

/* A link set as a label: Exo 2, uppercase, underlined. A file link keeps its words and arrow apart
   from its size, each with its own underline. */
.cta,
.file-link {
  display: inline-block;
  padding-block: var(--bh-space-1);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-2);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: var(--bh-leading-2);
  text-transform: uppercase;
  text-underline-offset: 0.3em;
}

.file-link {
  display: inline-flex;
  align-items: baseline;
  gap: var(--bh-space-2);
}

/* The primary action, square and flat in solid ink (rule 1). */
.button {
  display: inline-flex;
  align-items: center;
  gap: var(--bh-space-4);
  min-height: 2.75rem;
  padding: var(--bh-space-2) var(--bh-space-5);
  border: var(--bh-hairline) solid var(--bh-ink);
  border-radius: var(--bh-radius);
  background: var(--bh-ink);
  color: var(--bh-ground);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-2);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: var(--bh-leading-2);
  text-decoration: none;
  text-transform: uppercase;
}

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

/* A button's words that wrap on a phone ("View <title> now") wrap into even lines, so "now" does not
   sit alone. */
.button-label {
  text-wrap: balance;
}

.button-size {
  font-weight: 600;
  white-space: nowrap;
}

/* The one primary action of the landing page and of a match page: taller and wider, the same type. */
.button-large {
  min-height: 3.5rem;
  padding: var(--bh-space-3) var(--bh-space-6);
}

.empty {
  color: var(--bh-muted);
  font-size: var(--bh-text-4);
  line-height: var(--bh-leading-4);
}

/* The skip link shows over the top bar, so it takes the band's colours, and its ring is the band's
   (below). */
.skip-link {
  position: absolute;
  top: var(--bh-space-2);
  left: var(--bh-space-4);
  z-index: 90;
  padding: var(--bh-space-2) var(--bh-space-4);
  background: var(--bh-band-ink);
  color: var(--bh-band);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-2);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---- Top bar: sticky, on the band ---- */

/* The lock on the left and the Appearance switch on the right, at every width. There is no menu. */
.top {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--bh-space-4);
  min-height: var(--top-bar);
  padding: var(--bh-space-2) var(--bh-gutter);
  background: var(--bh-band);
  color: var(--bh-band-ink);
}

.lock {
  display: flex;
  align-items: center;
  gap: var(--bh-space-3);
  color: var(--bh-band-muted);
  text-decoration: none;
}

/* The PCSL wordmark in the band's ink, painted through the white wordmark as a mask, at its least
   screen size, 24 px tall. */
.wordmark {
  display: block;
  flex: none;
  width: 6.75rem;
  height: 1.5rem;
  background: var(--bh-band-ink);
  -webkit-mask: url("pcsl-wordmark-white.svg") left center / contain no-repeat;
  mask: url("pcsl-wordmark-white.svg") left center / contain no-repeat;
}

.lock-name {
  color: var(--bh-band-muted);
}

/* On the band the focus ring is the band's ink. */
.skip-link:focus-visible,
.top :focus-visible,
.band :focus-visible,
.dock :focus-visible,
.doc-bar :focus-visible,
.reader :focus-visible {
  outline-color: var(--bh-band-ink);
}

/* ---- The switch: a segmented control over the visually hidden radios ---- */

/* It sits on the right of the top bar, low enough that the bar keeps its --top-bar height (a jump
   lands clear of it) and narrow enough to share a 320 px phone's bar with the lock. */
.switch {
  justify-self: end;
}

.segments {
  display: inline-flex;
  border: var(--bh-hairline) solid currentColor;
  color: var(--bh-band-muted);
}

/* Tight on a phone, so the switch clears the lock at 320 px; roomier from 30rem. */
.segments label {
  display: inline-grid;
  place-items: center;
  min-height: 2.25rem;
  padding: var(--bh-space-1);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-kicker);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: var(--bh-leading-1);
  text-transform: uppercase;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.segments label ~ label {
  border-left: var(--bh-hairline) solid currentColor;
}

.segments label:hover {
  color: var(--bh-band-ink);
}

@media (min-width: 30rem) {
  .segments label {
    padding-inline: var(--bh-space-3);
  }
}

/* The selected half is filled with the band's contour colour, FDE on the black band (rule 7:
   segmented-control selection). A band token, not the accent, because the switch lives on the
   band: with DEPARTURE 2 flipped the band turns FDE, and the fill turns black with it. */
body:has(#appearance-dark:checked) label[for="appearance-dark"],
body:has(#appearance-light:checked) label[for="appearance-light"] {
  background: var(--bh-band-contour);
  color: var(--bh-segment-ink);
}

/* The radios are hidden, so their focus shows on their labels. :focus, not :focus-visible: Safari
   drops :focus-visible from a radio reached with an arrow key, which would hide the ring from a
   keyboard user at the first arrow. */
body:has(#appearance-dark:focus) label[for="appearance-dark"],
body:has(#appearance-light:focus) label[for="appearance-light"] {
  outline: 2px solid var(--bh-band-ink);
  outline-offset: 2px;
}

/* ---- The band: the St. George terrain (rule 8) and a scrim behind the text (rule 9) ---- */

/* Every band surface: the top of each page. The band is black in both appearances (in dark mode
   through DEPARTURE 2), and the text on it takes the band's tokens. */
.band {
  background: var(--bh-band);
  color: var(--bh-band-ink);
}

.opener {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--bh-space-4);
  padding: var(--bh-space-6) var(--bh-gutter) var(--bh-space-5);
}

/* Two layers, 20 m contours and 100 m index contours, painted through the vendored masks in the
   band's contour ink, faint: half the tokens' strength. Scaled evenly and cropped, never rotated or
   stretched. The -webkit- copies are for older phone browsers: without a mask the layers would be
   solid blocks of ink. */
.terrain {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.terrain::before,
.terrain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bh-band-contour);
  -webkit-mask-position: 60% 40%;
  mask-position: 60% 40%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-size: cover;
}

.terrain::before {
  -webkit-mask-image: url("st-george-band-contours-web.svg");
  mask-image: url("st-george-band-contours-web.svg");
  opacity: calc(var(--bh-terrain-alpha) * 0.5);
}

.terrain::after {
  -webkit-mask-image: url("st-george-band-index-web.svg");
  mask-image: url("st-george-band-index-web.svg");
  opacity: calc(var(--bh-terrain-alpha-index) * 0.5);
}

/* The text and what sits under it, over the scrim. Each block is as wide as its content, not the
   band (justify-items: start), so the scrim behind it ends where its words do. */
.opener-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: var(--bh-space-5);
  padding-bottom: var(--bh-space-3);
}

/* Each block of text on the terrain gets the spot scrim, on a box 1.3 times its width and 1.6 times
   its height: the middle 70% of the block sits inside the scrim's solid three quarters, its corners
   in the fade, and past it the contours run across the whole band. The kicker, title and lede are
   one block, as wide as their text; a title stops at 22em, so the contours still show past the end
   of a long one. Each line of the quick info is a block, and so is each thing on a button line (the
   button, the Matchbook link), so a line that wraps on a phone keeps each scrim on its own words. */
.opener .fact-line,
.opener .actions > *,
.opener .step-title,
.opener .step-line,
.opener .matchbook > .documents,
.opener .matchbook > .empty,
.opener .more,
.opener .squad-hint {
  position: relative;
}

.opener-head::before,
.opener .fact-line::before,
.opener .actions > *::before,
.opener .step-title::before,
.opener .step-line::before,
.opener .matchbook > .documents::before,
.opener .matchbook > .empty::before,
.opener .more::before,
.opener .squad-hint::before {
  content: "";
  position: absolute;
  inset: -30% -15%;
  z-index: -1;
  background: var(--bh-scrim-spot);
}

.opener-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-self: start;
  gap: var(--bh-space-2);
  min-width: 0;
}

.band .kicker {
  color: var(--bh-band-muted);
}

.band h1,
.band h2 {
  color: var(--bh-band-ink);
}

.opener h1 {
  max-width: 22em;
  font-size: var(--bh-text-6);
  line-height: var(--bh-leading-6);
  overflow-wrap: anywhere;
}

/* The band's lines and the steps' lines (below) keep a word from sitting alone on their last line,
   in browsers that support it; the others wrap as before. */
.lede {
  max-width: 34rem;
  color: var(--bh-band-muted);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--bh-space-3) var(--bh-space-6);
}

/* On the band the primary action is the band's ink, with the band's colour for its text. */
.band .button {
  border-color: var(--bh-band-ink);
  background: var(--bh-band-ink);
  color: var(--bh-band);
}

.band .button:hover {
  border-color: color-mix(in srgb, var(--bh-band-ink) 84%, var(--bh-band));
  background: color-mix(in srgb, var(--bh-band-ink) 84%, var(--bh-band));
}

/* The size is muted on the button's face, as in the pick; on hover the face greys, so the size
   darkens to keep 4.5:1 there. */
.band .button-size {
  color: color-mix(in srgb, var(--bh-band) 62%, var(--bh-band-ink));
}

.band .button:hover .button-size {
  color: color-mix(in srgb, var(--bh-band) 70%, var(--bh-band-ink));
}

/* Links on the band take the band's ink: the accent's text colour is for the page's ground. */
.band a:not(.button) {
  color: var(--bh-band-ink);
}

.band .size,
.band .empty,
.band .more > summary {
  color: var(--bh-band-muted);
}

@media (min-width: 30rem) {
  .opener h1 {
    font-size: var(--bh-text-7);
    line-height: var(--bh-leading-7);
  }
}

@media (min-width: 48rem) {
  .opener {
    padding-top: calc(var(--bh-space-6) * 1.5);
  }
}

@media (min-width: 64rem) {
  .opener h1 {
    font-size: var(--bh-text-8);
    line-height: var(--bh-leading-8);
  }
}

/* ---- The landing page: a taller band, the active match at its foot ---- */

.landing {
  min-height: min(28rem, 64vh);
  align-content: end;
}

/* The active match's title is one size above the headings under it (the tabs and the years) at
   every width: step 7, and step 8 from 48rem. */
.landing h1 {
  font-size: var(--bh-text-7);
  line-height: var(--bh-leading-7);
}

@media (min-width: 48rem) {
  .landing {
    min-height: min(34rem, 64vh);
  }

  .landing h1 {
    font-size: var(--bh-text-8);
    line-height: var(--bh-leading-8);
  }
}

/* ---- The quick info: the round count, the start times and the range address ---- */

/* Under the title, in the band: each fact its label over its value, with no box round it. The short
   ones share a line, wrapping where they must; the address takes a line of its own. Each line is as
   wide as its words and has the spot scrim (above), so the contours stop just past them. */
.facts {
  display: grid;
  justify-items: start;
  gap: var(--bh-space-4);
  max-width: 40rem;
}

.fact-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bh-space-4) var(--bh-space-6);
  margin: 0;
}

.fact {
  display: grid;
  align-content: start;
  gap: var(--bh-space-1);
}

.fact dt {
  color: var(--bh-band-muted);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-kicker);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: var(--bh-leading-1);
  text-transform: uppercase;
}

/* A count or a time names nothing in prose, so it is set like the other counts, in Exo 2; the
   address is read, so it is Inter. */
.fact dd {
  margin: 0;
  color: var(--bh-band-ink);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-5);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: var(--bh-leading-5);
  overflow-wrap: anywhere;
}

.fact-address dd {
  font-family: var(--bh-font-body);
  font-size: var(--bh-text-3);
  font-weight: 400;
  line-height: var(--bh-leading-3);
}

/* The address is a button that copies it (site/copy.js), set as the address itself: no button face,
   the band's ink in Inter, left aligned and wrapping like the words, which stay selectable for a copy
   by hand. A dotted underline in the band's muted ink is its one cue; it turns solid under the finger
   or pointer and once copied. The cue and the pointer show only once site/copy.js marks the button
   ready: without the script the address is plain text. Its padding makes a 3rem tap target, and the negative margin puts the
   words back where the text was, so the line and its scrim do not move. The band's focus ring shows
   on it (.band :focus-visible). */
.copy-address {
  margin: calc(-1 * var(--bh-space-3)) 0;
  padding: var(--bh-space-3) 0;
  border: 0;
  background: none;
  color: var(--bh-band-ink);
  font-family: var(--bh-font-body);
  font-size: var(--bh-text-3);
  font-weight: 400;
  line-height: var(--bh-leading-3);
  text-align: left;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}

.copy-address.ready {
  cursor: pointer;
}

.copy-address.ready .copy-text {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--bh-band-muted);
  text-decoration-thickness: var(--bh-hairline);
  text-underline-offset: 0.2em;
}

.copy-address.ready:hover .copy-text,
.copy-address.ready:active .copy-text,
.copy-address.ready.copied .copy-text {
  text-decoration-style: solid;
  text-decoration-color: var(--bh-band-ink);
}

/* "Copied", or how to copy by hand, after the address for two seconds; empty otherwise. Only a status
   with words takes the space before it: an empty one with a margin would still need room after a
   wrapped address and break onto a blank line of its own. */
.copy-status:not(:empty) {
  margin-left: var(--bh-space-2);
}

.copy-status {
  color: var(--bh-band-muted);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-kicker);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---- Tabs: Previous | Upcoming on the landing page, Schedule | Stages on a match page ---- */

/* A tab group shows its first panel, or the one the address points to or into (:target), so a tab
   bar's link, the dock and a link to a stage row each open their tab, with no script. A browser
   without :has() drops the rule and shows every panel. */
.tab-group:not(:has(:target)) > .tab-panel:not(:first-child),
.tab-group:has(:target) > .tab-panel:not(:target, :has(:target)) {
  display: none;
}

/* Each panel's head starts with the bar: the panel's own name, its heading, with the 4px bar under
   it (rule 1), and each other panel's name, a link, muted. The names share a baseline, so the bar
   hangs under the line. They are one size with the headings they replace, the step's and Previous
   matches': step 6, and step 7 from 48rem. */
.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--bh-space-2) var(--bh-space-6);
}

.tab {
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-6);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: var(--bh-leading-6);
  text-transform: uppercase;
}

h2.tab {
  padding-bottom: var(--bh-space-1);
  border-bottom: var(--bh-bar-hottest) solid var(--bh-ink);
}

/* A tab is not a link in running text: its place in the bar says what it is, as in the dock, so it
   has no underline and keeps the muted ink until the pointer is on it. */
a.tab {
  color: var(--bh-muted);
  text-decoration: none;
}

a.tab:hover {
  color: var(--bh-ink);
}

@media (min-width: 48rem) {
  .tab {
    font-size: var(--bh-text-7);
    line-height: var(--bh-leading-7);
  }
}

/* ---- A match page: the matchbook, in the band; the tabs under it ---- */

/* The matchbook's heading is one size with the tabs: step 6 on phones and step 7 from 48rem, never
   larger than the title. */
.step-title {
  font-size: var(--bh-text-6);
  line-height: var(--bh-leading-6);
}

.step-line {
  max-width: 34rem;
  color: var(--bh-ink-2);
  text-wrap: pretty;
}

.band .step-line {
  color: var(--bh-band-muted);
}

/* The matchbook sits in the band under the title and the quick info. */
.matchbook {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: var(--bh-space-3);
  padding-top: var(--bh-space-5);
}

.matchbook .actions {
  margin-block: var(--bh-space-2);
}

/* A tab's head on a match page: the tab bar, then for Stages its counts and its line back to the
   matchbook. */
.step-head {
  display: grid;
  gap: var(--bh-space-2);
  padding: calc(var(--bh-space-6) * 1.5) var(--bh-gutter) var(--bh-space-5);
}

/* The counts break where the line below them would, so "1 SketchUp model" does not leave "model"
   alone on a phone. */
.step-head > .kicker {
  text-wrap: pretty;
}

@media (min-width: 48rem) {
  .step-title {
    font-size: var(--bh-text-7);
    line-height: var(--bh-leading-7);
  }
}

/* ---- The Schedule tab: each day's times on a rail ---- */

.day-tile-date {
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-6);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: var(--bh-leading-6);
}

/* The days, each its head over its times on a phone and beside them from 48rem, set apart by space
   alone. On a phone the head stays under the top bar while its times scroll by, so the day is always
   named. */
.days {
  display: grid;
  padding: 0 var(--bh-gutter) var(--bh-space-6);
}

.day {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: var(--bh-space-4);
}

.day-head {
  position: sticky;
  top: var(--top-bar);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--bh-space-4);
  padding-block: var(--bh-space-4);
  background: var(--bh-ground);
}

.day-name {
  display: grid;
  gap: var(--bh-space-1);
  min-width: 0;
}

.day-title {
  font-size: var(--bh-text-5);
  line-height: var(--bh-leading-5);
}

/* The date on a square tile in ink. The day a link jumped to fills its tile, the hottest mark on
   the tab (rule 1). */
.day-tile {
  display: grid;
  flex: none;
  place-content: center;
  justify-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0;
  border: var(--bh-hairline) solid var(--bh-ink);
  color: var(--bh-ink);
}

.day:target .day-tile {
  background: var(--bh-ink);
  color: var(--bh-ground);
}

.day:target .day-tile-month {
  color: var(--bh-ground);
}

/* The times on a rail: each time in Exo 2 like the other counts, set against the rail, a square
   node on it, then what happens in Inter. A key moment's node is solid and its words are ink at
   full weight, the hottest rows; the rest rest cooler in the second ink. */
.timeline {
  --time: 5rem;
  --rail: calc(var(--time) + var(--bh-space-3));
  display: grid;
  margin: 0;
  padding-bottom: var(--bh-space-5);
}

.timeline .slot {
  position: relative;
  display: grid;
  grid-template-columns: var(--time) minmax(0, 1fr);
  column-gap: var(--bh-space-5);
  padding-block: var(--bh-space-3);
}

.timeline .slot::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--rail);
  border-left: var(--bh-hairline) solid var(--bh-rule);
}

/* The rail runs from the first node to the last. */
.timeline .slot:first-child::before {
  top: calc(var(--bh-space-3) + 0.75rem);
}

.timeline .slot:last-child::before {
  bottom: auto;
  height: calc(var(--bh-space-3) + 0.75rem);
}

.timeline .slot:only-child::before {
  content: none;
}

.timeline .slot::after {
  content: "";
  position: absolute;
  top: calc(var(--bh-space-3) + 0.5rem);
  left: calc(var(--rail) - 3px);
  width: 7px;
  height: 7px;
  border: var(--bh-hairline) solid var(--bh-ink-2);
  background: var(--bh-ground);
}

.timeline dt {
  color: var(--bh-ink-2);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-3);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: var(--bh-leading-3);
  text-align: end;
  text-transform: uppercase;
}

.timeline dd {
  margin: 0;
  color: var(--bh-ink-2);
  line-height: var(--bh-leading-3);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.timeline .slot-key::after {
  border-color: var(--bh-ink);
  background: var(--bh-ink);
}

.timeline .slot-key dt {
  color: var(--bh-ink);
  font-weight: 800;
}

.timeline .slot-key dd {
  color: var(--bh-ink);
  font-weight: 600;
}

@media (min-width: 48rem) {
  .day {
    grid-template-columns: 16rem minmax(0, 1fr);
    column-gap: var(--bh-space-6);
  }

  .day-head {
    align-self: start;
    padding-block: var(--bh-space-5);
  }

  /* Times before any named day line up with the named days' times. */
  .days:has(.day-head) .day > .timeline:only-child {
    grid-column: 2;
  }

  .timeline {
    --time: 6rem;
    --rail: calc(var(--time) + var(--bh-space-4));
    max-width: 44rem;
    padding-block: var(--bh-space-4) var(--bh-space-5);
  }

  .timeline .slot {
    column-gap: var(--bh-space-6);
  }
}

/* ---- PDFs in lists, and the earlier versions ---- */

.documents {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--bh-space-1);
}

/* A row: the name, which wraps, then its links (View, Print), each a 2.75rem tap target; the sizes
   are for screen readers only. An earlier version's row has its link and its size. */
.documents li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0 var(--bh-space-4);
}

.documents a {
  display: inline-block;
  padding-block: var(--bh-space-3);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-2);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.documents .size {
  font-size: var(--bh-text-2);
}

/* An earlier version's note of the document it was is quieter than the name: muted, as the size
   is. The current documents are listed openly with the same list, under the matchbook button, or
   after the matchbook's own row in "Match documents", so they need nothing more to fit the band. */
.version-of {
  color: var(--bh-muted);
}

.band .version-of {
  color: var(--bh-band-muted);
}

/* The disclosure: a plus that turns into a minus, in place of the browser's triangle. The mark has
   empty alternative text, so a screen reader says "Earlier versions", not "plus Earlier versions";
   a browser without alternative text for content uses the plain line before it. */
.more > summary {
  display: flex;
  align-items: baseline;
  gap: var(--bh-space-1);
  padding-block: var(--bh-space-1);
  color: var(--bh-ink-2);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-1);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: var(--bh-leading-1);
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.more > summary::-webkit-details-marker,
.year > summary::-webkit-details-marker {
  display: none;
}

.more > summary::before {
  content: "+";
  content: "+" / "";
  flex: none;
}

.more[open] > summary::before {
  content: "\2212";
  content: "\2212" / "";
}

.more[open] > summary {
  margin-bottom: var(--bh-space-2);
}

.more-heading {
  margin-block: var(--bh-space-2) var(--bh-space-1);
  color: var(--bh-muted);
  font-size: var(--bh-text-kicker);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: var(--bh-leading-1);
}

.band .more-heading {
  color: var(--bh-band-muted);
}

/* ---- Sections below the band ---- */

/* The tab bar. */
.section-head {
  display: grid;
  gap: var(--bh-space-2);
  padding: calc(var(--bh-space-6) * 1.5) var(--bh-gutter) var(--bh-space-5);
}

/* ---- Stages: the rows ---- */

.rows > li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: var(--bh-space-2) var(--bh-space-4);
  padding: var(--bh-space-5) var(--bh-gutter);
  border-left: var(--bh-bar-hottest) solid transparent;
}

/* The row a link just jumped to gets the hottest row mark, the 4px ink bar (rule 1), for as long as
   it is the target. */
.rows > li:target {
  border-left-color: var(--bh-ink);
  background: var(--bh-panel);
}

.row-number {
  color: var(--bh-muted);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-6);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.row-body {
  min-width: 0;
}

/* A stage's name is step 5 on phones and step 7 from 48rem, never larger than the Stages tab, so
   no stage outranks "Read the matchbook". */
.rows h3 {
  font-size: var(--bh-text-5);
  line-height: var(--bh-leading-5);
  overflow-wrap: anywhere;
}

.row-meta {
  margin-top: var(--bh-space-1);
}

.row-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--bh-space-5);
  margin-top: var(--bh-space-2);
}

.file-link {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
  .rows > li {
    grid-template-columns: 5rem minmax(0, 1fr);
  }

  .rows h3 {
    font-size: var(--bh-text-7);
    line-height: var(--bh-leading-7);
  }
}

/* ---- The landing page's previous matches: one open disclosure per year ---- */

.year > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--bh-space-5);
  padding: var(--bh-space-4) var(--bh-gutter);
  cursor: pointer;
  list-style: none;
}

.year-name {
  color: var(--bh-ink);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-6);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.year-mark {
  width: 1rem;
  color: var(--bh-ink);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-6);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.year-mark::before {
  content: "+";
}

.year[open] .year-mark::before {
  content: "\2212";
}

.majors {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 var(--bh-gutter) var(--bh-space-5);
}

.major {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--bh-space-2) var(--bh-space-6);
  padding-block: var(--bh-space-4);
}

.major-title {
  font-size: var(--bh-text-3);
  line-height: var(--bh-leading-3);
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

/* A title links to its match's page. It keeps the heading's ink, and its underline says it is a
   link; the accent is left to the matchbook link beside it. */
.major-title a {
  color: var(--bh-ink);
}

.major .empty {
  font-size: var(--bh-text-3);
  line-height: var(--bh-leading-3);
}

.major-where {
  color: var(--bh-muted);
}

@media (min-width: 48rem) {
  .year-name {
    font-size: var(--bh-text-7);
  }
}

/* Wide screens: the date, the title and the matchbook on one line; a list of documents under the
   title. */
@media (min-width: 56rem) {
  .major {
    grid-template-columns: 6rem minmax(0, 1fr) auto;
    align-items: baseline;
  }

  .major > * {
    grid-column: 2 / -1;
  }

  .major > .major-date {
    grid-column: 1;
  }

  .major > .major-title {
    grid-column: 2;
  }

  .major > .major-file,
  .major > .major-where {
    grid-column: 3;
  }

  /* An upcoming match's full date ("September 30, 2026") needs a wider column than a short one. */
  .upcoming .major {
    grid-template-columns: 11rem minmax(0, 1fr) auto;
  }
}

/* ---- A document's viewer: its bar, its pages and its reader ---- */

/* The viewer holds the page shape that a page's box keeps until its image loads: landscape letter,
   the shape of every page made so far (1600 x 1237); site/viewer.js sets another once, from the
   first page to load, so the pages do not jump. It is the bar's containing block too, so the bar is
   held under the top bar while the pages scroll, and lets go at the end section. */
.viewer {
  --doc-page-ratio: 11 / 8.5;
  --doc-bar: 3.25rem;
}

/* The bar: Prev, Next and the page in view on the left, Contents on the right, one slim line on a
   320 px phone, every control 44 px. It is the band's black, under the black top bar, so the two
   read as one strip over the white pages, as the reader does (Anthony, 2026-11-02: "Yeah I meant
   the bar above as well, it still looks clunky"), with no line under it (2026-10-13). */
.doc-bar {
  position: sticky;
  top: var(--top-bar);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--bh-space-1);
  min-height: var(--doc-bar);
  padding: var(--bh-space-1) var(--bh-gutter);
  background: var(--bh-band);
  color: var(--bh-band-ink);
}

/* The hidden attribute wins over the bar's own display: without script, Prev, Next and the count
   stay hidden, and so does a bar with no contents. */
.doc-bar[hidden],
.doc-bar [hidden] {
  display: none;
}

/* The bar's and the reader's controls, quiet on the black: the band's ink with no outline and no
   face, square, Exo 2 as everything that names or counts, each still a 44 px target. */
.doc-bar button,
.doc-contents > summary,
.reader-bar button,
.reader-foot button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: var(--bh-space-1);
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 var(--bh-space-2);
  border: 0;
  border-radius: var(--bh-radius);
  background: transparent;
  color: var(--bh-band-ink);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-2);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: var(--bh-leading-2);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

/* Prev and Next are chevrons alone, a size up so they read as the way through. Scoped to their bar
   so they outrank the controls' rule above (its .doc-bar button is the more specific: without the
   scope every chevron and the × stayed at --bh-text-2, 14 px). */
.doc-bar .doc-prev,
.doc-bar .doc-next,
.reader-foot .reader-prev,
.reader-foot .reader-next {
  font-size: var(--bh-text-6);
}

.doc-bar button:disabled,
.reader-foot button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* The count is small and muted, "1 / 35" ("Page 1 of 35" to a screen reader). */
.doc-count,
.reader-count,
.doc-page figcaption,
.toc-page {
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.doc-count {
  min-width: 0;
  margin: 0 var(--bh-space-2);
  overflow: hidden;
  color: var(--bh-band-muted);
  text-overflow: ellipsis;
}

/* Contents on the right of the bar, a word and a small mark that says it opens; its list drops
   under the bar, inside it (the bar is its positioned box), never wider than the bar, and scrolls
   when it is longer than the window. */
.doc-contents {
  margin-left: auto;
}

.doc-contents > summary {
  list-style: none;
}

.doc-contents > summary::-webkit-details-marker {
  display: none;
}

.doc-contents > summary::after {
  content: "\25BE";
  content: "\25BE" / "";
  color: var(--bh-band-muted);
}

.doc-contents[open] > summary::after {
  content: "\25B4";
  content: "\25B4" / "";
}

.doc-toc {
  position: absolute;
  top: 100%;
  right: var(--bh-gutter);
  width: 24rem;
  max-width: calc(100% - var(--bh-gutter) * 2);
  max-height: calc(100vh - var(--top-bar) - var(--doc-bar) - var(--bh-space-6));
  max-height: calc(100dvh - var(--top-bar) - var(--doc-bar) - var(--bh-space-6));
  overflow-y: auto;
  padding: var(--bh-space-1) 0 var(--bh-space-2);
  background: var(--bh-band);
  overscroll-behavior: contain;
}

.doc-toc a {
  display: flex;
  align-items: baseline;
  gap: var(--bh-space-3);
  min-height: 2.75rem;
  padding: var(--bh-space-2) var(--bh-space-4);
  color: var(--bh-band-ink);
  text-decoration: none;
}

.doc-toc a:hover .toc-title {
  text-decoration: underline;
}

.toc-page {
  flex: none;
  min-width: 2ch;
  color: var(--bh-band-muted);
  text-align: right;
}

/* The pages, in order, set apart by space alone, centred, as wide as the window allows up to 86rem
   (about 1300 px of page on a desk); on a phone nearly the whole width, with small gutters. */
.doc-pages {
  display: grid;
  gap: var(--bh-space-5);
  width: 100%;
  max-width: 86rem;
  margin: 0 auto;
  padding: var(--bh-space-4) var(--bh-space-2) var(--bh-space-6);
}

/* A jump to #page-N lands clear of the top bar and the viewer's bar. */
.doc-page {
  display: grid;
  gap: var(--bh-space-2);
  min-width: 0;
  margin: 0;
  scroll-margin-top: var(--doc-bar);
}

.doc-page figcaption {
  color: var(--bh-muted);
  white-space: normal;
}

.doc-page-title {
  color: var(--bh-ink);
}

.doc-page a {
  display: block;
}

/* A page's edge: a white page on the light ground, or on the dark one, still shows where it ends.
   The frame is a faint mix of the ink into the ground, light in both appearances, round one page,
   not a line between things (docs/design.md, "Kept on purpose"). Until a page loads, a box of the
   document's page shape holds its place, so the pages below do not jump. */
.doc-page img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto var(--doc-page-ratio);
  border: var(--bh-hairline) solid color-mix(in srgb, var(--bh-ink) 15%, var(--bh-ground));
}

@media (min-width: 48rem) {
  .doc-pages {
    padding: var(--bh-space-5) var(--bh-gutter) var(--bh-space-6);
  }
}

/* The reader, a lightbox over the whole window (Anthony, 2026-11-02: "These should also be a modal
   or something sleeker"): the band's black in both appearances, a slim strip on top (the count
   and Close), the page area, and a strip at the foot (the hint and the chevrons). The page is as
   wide as the area, up to the image's own 1600 px (Anthony, 2026-11-02: "zoom in is useless, and
   'turn your phone sideways to see it bigger' doesn't actually make the photo bigger"), so a phone
   turned sideways shows it bigger; the page area scrolls and the browser pinch-zooms it. The page
   underneath does not scroll while it is open. */
html:has(.reader[open]) {
  overflow: hidden;
}

.reader[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.reader {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bh-band);
  color: var(--bh-band-ink);
}

/* The count on the left, Close in the right corner. It wraps rather than push a control off a
   narrow screen. */
.reader-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--bh-space-1);
  padding: var(--bh-space-1) var(--bh-space-2);
}

.reader-count {
  min-width: 0;
  margin: 0 auto 0 var(--bh-space-2);
  overflow: hidden;
  color: var(--bh-band-muted);
  text-overflow: ellipsis;
}

.reader-bar .reader-close {
  font-size: var(--bh-text-6);
}

/* Prev at the left edge and Next at the right, under the thumbs, the hint between them. */
.reader-foot {
  display: flex;
  align-items: center;
  gap: var(--bh-space-2);
  padding: var(--bh-space-1) var(--bh-space-2);
}

.reader-next {
  margin-left: auto;
}

/* Turn your phone sideways: on a portrait phone, for a landscape page only (viewer.js marks the
   viewer viewer-landscape), one muted line beside the chevrons. */
.reader-hint {
  display: none;
  min-width: 0;
  margin: 0;
  color: var(--bh-band-muted);
  font-size: var(--bh-text-2);
  line-height: var(--bh-leading-2);
  text-align: center;
}

@media (orientation: portrait) and (max-width: 48rem) {
  .viewer-landscape .reader .reader-hint {
    display: block;
    flex: 1;
  }
}

/* A phone held sideways gives the page the height: the strips lose their padding, each still a
   44 px row of controls, so the page area is the screen less 88 px (302 px of an 844 x 390 phone).
   They stay rows, not strips over the page, so they never cover any of it. */
@media (orientation: landscape) and (max-height: 32rem) {
  .reader-bar,
  .reader-foot {
    padding-block: 0;
  }
}

/* A desk's screen: the reader's ×, ‹ and › a size up and 56 px targets, so they read at arm's length
   beside a page 1,400 px wide (Anthony, 2026-11-02: "The x icons and left and right arrows for the
   matchbook pages are tiny on a full screen desktop"); the count a step up with them. */
@media (min-width: 48rem) and (min-height: 32.0625rem) {
  .reader-bar button,
  .reader-foot button {
    min-width: 3.5rem;
    min-height: 3.5rem;
  }

  .reader-bar .reader-close,
  .reader-foot .reader-prev,
  .reader-foot .reader-next {
    font-size: var(--bh-text-8);
  }

  .reader-count {
    font-size: var(--bh-text-3);
  }
}

/* A flick at the page's edge does not scroll the page under the reader. */
.reader-view {
  display: flex;
  overflow: auto;
  overscroll-behavior: contain;
}

/* The page is as wide as the area, up to the image's own 1600 px (a desk), its height following the
   image's own shape; it scrolls down when it is taller than the area (a phone held sideways). Auto
   margins centre it both ways, and the top one falls to 0 where the page is taller than the area,
   so it is never cut off at the top. */
.reader-image {
  display: block;
  flex: none;
  width: 100%;
  max-width: 1600px;
  height: auto;
  margin: auto;
}

/* ---- End section ---- */

.end {
  display: grid;
  flex-grow: 1;
  align-content: start;
  gap: var(--bh-space-5);
  padding: calc(var(--bh-space-6) * 1.5) var(--bh-gutter) var(--bh-space-6);
  background: var(--bh-panel);
}

.end-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bh-space-3) var(--bh-space-6);
}

.fine {
  color: var(--bh-cold);
  font-size: var(--bh-text-1);
  line-height: var(--bh-leading-1);
}

/* ---- The squad matrix: the note on the band, a squad's card, the squad links and the tables ---- */

/* "Find your schedule", on the band right under the title (Anthony, 2026-11-01: "Remove the find
   your squad search box, they can just select from the matrix. Make sure there's a note that says
   that"): its kicker, then one line whose link opens the squad links. A spot-scrim block like the
   band's other text, as wide as its words, up to 34rem as the band's other lines. */
.squad-hint {
  display: grid;
  gap: var(--bh-space-2);
  max-width: 34rem;
}

.squad-hint-line {
  color: var(--bh-band-muted);
  text-wrap: pretty;
}

/* "Match documents", under the band on a page with a squad matrix: on the ground, the rows, the
   matchbook's first (Anthony, 2026-11-01: "Move the competitor info sheet so that it looks like the
   other match docs"), at most 40rem wide. */
.match-documents {
  padding: var(--bh-space-6) var(--bh-gutter) 0;
}

.match-documents .documents {
  width: 100%;
  max-width: 40rem;
}

/* The tab's parts, under its head, set apart by space alone. */
.matrix {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--bh-space-6);
  padding: 0 var(--bh-gutter) var(--bh-space-6);
}

.matrix h3 {
  font-size: var(--bh-text-5);
  line-height: var(--bh-leading-5);
}

.matrix h4 {
  font-size: var(--bh-text-3);
  line-height: var(--bh-leading-3);
}

/* A squad's card shows only when the address points to it (a squad link, a remembered squad), with the 4px ink bar of a row jumped to (rule 1). It comes first in the tab, so on a phone
   it is right under the tab bar. Its head: the kicker, "SQUAD 205" at step 7, a pill per day and
   "Change squad"; then the summary's line and a card per day. */
.squad:not(:target) {
  display: none;
}

.squad {
  display: grid;
  gap: var(--bh-space-5);
  max-width: 44rem;
  padding-left: var(--bh-space-4);
  border-left: var(--bh-bar-hottest) solid var(--bh-ink);
}

.squad-head {
  display: grid;
  gap: var(--bh-space-2);
}

.matrix .squad-title {
  font-size: var(--bh-text-7);
  line-height: var(--bh-leading-7);
}

.squad-title:focus {
  outline: none;
}

/* A pill per day, "FRI · PM", outlined in ink: a count, so Exo 2. */
.squad-pattern {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bh-space-2);
}

.squad-pattern li {
  padding: var(--bh-space-1) var(--bh-space-2);
  border: var(--bh-hairline) solid var(--bh-ink);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-1);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: var(--bh-leading-1);
  text-transform: uppercase;
}

.squad-change a {
  display: inline-block;
  padding-block: var(--bh-space-3);
  font-size: var(--bh-text-2);
}

/* The live line (site/squad.js; issue #55): what is now and next, in Inter for reading, the card's
   hottest line, on the panel colour with no line round it; hidden while it is empty (no script, or
   after the match). The day that is today comes first: the head, this line and the summary's line
   keep their place above it. */
.squad-head,
.squad-now,
.squad-intro {
  order: -2;
}

.squad-day-today {
  order: -1;
}

.squad-now {
  padding: var(--bh-space-3) var(--bh-space-4);
  background: var(--bh-panel);
  color: var(--bh-ink);
  font-size: var(--bh-text-3);
  font-weight: 700;
  line-height: var(--bh-leading-3);
  text-wrap: pretty;
}

.squad-now:empty {
  display: none;
}

.squad-intro {
  color: var(--bh-ink);
  font-weight: 600;
  text-wrap: pretty;
}

/* A day: its head filled with the panel colour (the date's tile, "FRIDAY · RED ZONE", the sponsor and
   the session), the summary's sentence for the day, when to be where and when it ends, then its times. No line round it or between its
   rows: the fill and space set it apart. */
.squad-day {
  display: grid;
  gap: var(--bh-space-4);
}

.squad-day-head {
  display: flex;
  align-items: center;
  gap: var(--bh-space-4);
  padding: var(--bh-space-3) var(--bh-space-4);
  background: var(--bh-panel);
}

.matrix .squad-day-title {
  font-size: var(--bh-text-4);
  line-height: var(--bh-leading-4);
}

.squad-day-sub {
  color: var(--bh-ink-2);
  font-size: var(--bh-text-2);
  line-height: var(--bh-leading-2);
}

/* "TODAY", at the end of the day's head, solid ink: a pill like the days', the hottest of them. It
   sets no display, so its hidden attribute keeps it out until site/squad.js shows it. */
.squad-today {
  margin-left: auto;
  padding: var(--bh-space-1) var(--bh-space-2);
  background: var(--bh-ink);
  color: var(--bh-ground);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-1);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: var(--bh-leading-1);
  text-transform: uppercase;
}

/* The summary's sentence for the day (matrix.mjs squadSummary), under the day's head: Max's words in
   Inter, for reading, as written (its zone and first station in capitals), never set uppercase. */
.squad-day-line {
  padding-inline: var(--bh-space-4);
  color: var(--bh-ink);
  font-size: var(--bh-text-2);
  line-height: var(--bh-leading-2);
  text-wrap: pretty;
}

.squad-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--bh-space-3) var(--bh-space-6);
  margin: 0;
  padding-inline: var(--bh-space-4);
}

.squad-fact dt {
  color: var(--bh-muted);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-kicker);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: var(--bh-leading-1);
  text-transform: uppercase;
}

.squad-fact dd {
  margin: 0;
  color: var(--bh-ink-2);
  font-size: var(--bh-text-2);
}

/* The time to be there and the time it ends are the card's hottest words. */
.squad-clock {
  display: block;
  color: var(--bh-ink);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-6);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: var(--bh-leading-6);
}

/* The times: each time in Exo 2 in a 5.5rem column ("10:10 AM" fits; a note's range breaks after
   its dash), a square node, then the station in Exo 2 uppercase; the squad's own notes are quieter,
   in Inter in the cold ink. At least 2.75rem a row, as a list to read along. */
.squad-timeline {
  display: grid;
  padding-inline: var(--bh-space-4);
}

.squad-timeline li {
  display: grid;
  grid-template-columns: 5.5rem auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--bh-space-3);
  min-height: 2.75rem;
}

.squad-timeline li::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--bh-ink);
}

.squad-time {
  grid-column: 1;
  grid-row: 1;
  color: var(--bh-ink);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-2);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.squad-what {
  grid-column: 3;
  color: var(--bh-ink);
  font-family: var(--bh-font-naming);
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.squad-note .squad-what {
  color: var(--bh-cold);
  font-family: var(--bh-font-body);
  font-size: var(--bh-text-2);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.squad-timeline .squad-note::before {
  border-color: var(--bh-cold);
}

/* A station links to its zone's stages: a 3rem tap target (a 1.5rem line and 0.75rem above and
   below), and its row is at least 3rem tall, so the link never reaches into the rows beside it. */
.squad-what a {
  display: inline-block;
  padding-block: var(--bh-space-3);
}

.squad-timeline li:has(.squad-stage) {
  min-height: 3rem;
}

/* The match's own events that day (the release's schedule) are quieter still: a small "MATCH"
   kicker in Exo 2, then the event in Inter, in the cold ink, round a hollow cold node. */
.squad-event .squad-what {
  color: var(--bh-cold);
  font-family: var(--bh-font-body);
  font-size: var(--bh-text-2);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.squad-kicker {
  margin-right: var(--bh-space-1);
  color: var(--bh-muted);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-kicker);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.squad-timeline .squad-event::before {
  border-color: var(--bh-cold);
}

/* The squad's stations as the match goes (site/squad.js): one done is muted, the one now has a
   solid node, and the next is the hottest, its node solid and its row filled with the panel colour. */
.squad-slot-done .squad-time,
.squad-slot-done .squad-what {
  color: var(--bh-muted);
}

.squad-timeline .squad-slot-now::before,
.squad-timeline .squad-slot-next::before {
  background: var(--bh-ink);
}

.squad-timeline .squad-slot-next {
  background: var(--bh-panel);
}

.squad-slot-next .squad-time {
  font-weight: 800;
}

.squad-back a {
  display: inline-block;
  padding-block: var(--bh-space-3);
}

/* Each squad link is a square tap target in a wrapping row, its number in Exo 2. */
.squad-picker {
  display: grid;
  gap: var(--bh-space-3);
}

.squad-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bh-space-2);
}

.squad-links a {
  display: inline-grid;
  place-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: var(--bh-hairline) solid var(--bh-ink);
  border-radius: var(--bh-radius);
  color: var(--bh-ink);
  font-family: var(--bh-font-naming);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-decoration: none;
}

.squad-links a:hover {
  background: var(--bh-panel);
}

/* The full matrix: a table per day in a box that scrolls sideways on a phone, with the time column
   held at the left. No lines between the cells (2026-10-13): every other row is filled with the
   panel colour instead, in both appearances. */
.matrix-tables {
  display: grid;
  gap: var(--bh-space-4);
}

/* The scroll box is the containing block of the cells' positioned screen-reader text: without
   position: relative those spans escape it and widen the whole page, which a phone then shows
   zoomed out with blank space beside it. */
.matrix-scroll {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
}

.matrix-table {
  border-collapse: collapse;
  font-size: var(--bh-text-2);
  line-height: var(--bh-leading-2);
  font-variant-numeric: tabular-nums;
}

.matrix-table caption {
  padding-bottom: var(--bh-space-2);
  color: var(--bh-ink);
  font-family: var(--bh-font-naming);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
  text-transform: uppercase;
}

.matrix-table th,
.matrix-table td {
  padding: var(--bh-space-1) var(--bh-space-2);
  text-align: center;
  white-space: nowrap;
}

.matrix-table thead th {
  color: var(--bh-ink);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-1);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: var(--bh-leading-1);
  text-transform: uppercase;
  vertical-align: bottom;
}

.matrix-table th[scope="row"],
.matrix-table thead tr:first-child > th:first-child {
  position: sticky;
  left: 0;
  background: var(--bh-ground);
  color: var(--bh-ink);
  font-family: var(--bh-font-naming);
  font-weight: 600;
  text-align: left;
}

.matrix-table tbody tr:nth-child(even) > * {
  background: var(--bh-panel);
}

.matrix-table .matrix-note td {
  color: var(--bh-cold);
  font-style: italic;
  text-align: left;
}

/* A squad in a cell links to its card: a 2.75rem square tap target. The open card's cells are
   filled with ink, their numbers in the ground's colour (site/squad.js). */
.matrix-table td a {
  display: inline-grid;
  place-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.matrix-table tbody td.matrix-chosen {
  background: var(--bh-ink);
}

.matrix-table td.matrix-chosen a {
  color: var(--bh-ground);
  font-weight: 700;
}

/* ---- Dock: sticky at the bottom, on the band ---- */

.dock {
  position: sticky;
  bottom: 0;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bh-space-4);
  min-height: var(--dock);
  padding: var(--bh-space-1) var(--bh-gutter);
  background: var(--bh-band);
  color: var(--bh-band-ink);
}

/* Spread across a phone; together on the left of a wide screen. */
.dock-links {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: var(--bh-space-4);
}

.dock-links a {
  padding-block: var(--bh-space-2);
  border-bottom: 2px solid transparent;
  color: var(--bh-band-muted);
  font-family: var(--bh-font-naming);
  font-size: var(--bh-text-kicker);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: var(--bh-leading-1);
  text-decoration: none;
  text-transform: uppercase;
}

.dock-links a:hover {
  color: var(--bh-band-ink);
}

/* Four links (a match with a schedule and stages) share a phone's dock only with half the kicker's
   tracking and half the gap, up to 24rem; three keep both. :where() keeps these rules as specific
   as the ones above, so the wide screens' gap, later in the file, still wins. */
.dock-links:where(:has(> :nth-child(4))) {
  gap: var(--bh-space-2);
}

.dock-links:where(:has(> :nth-child(4))) a {
  letter-spacing: 0.08em;
}

@media (min-width: 24rem) {
  .dock-links:where(:has(> :nth-child(4))) {
    gap: var(--bh-space-4);
  }

  .dock-links:where(:has(> :nth-child(4))) a {
    letter-spacing: 0.16em;
  }
}

/* Five links (a match with a schedule, a squad matrix and stages) do not fit a phone's dock: below
   30rem it leaves out its last link, All majors, which the lock in the top bar also goes to, so four
   share it as above. */
.dock-links:where(:has(> :nth-child(5))) > :last-child {
  display: none;
}

@media (min-width: 30rem) {
  .dock-links:where(:has(> :nth-child(5))) > :last-child {
    display: inline;
  }
}

/* The part in view, from :target alone: a tab after a jump to it or into it (Stages after a jump to
   a row, Squads after a jump to a squad), Matchbook otherwise. All majors leaves the page and is never marked. The underline is the
   band's contour colour, FDE on the black band (rule 7), so it follows the band if DEPARTURE 2 is
   flipped, as the switch's fill does. */
.dock-links .dock-matchbook,
body:has(#schedule:target, #schedule :target) .dock-links .dock-schedule,
body:has(#matrix:target, #matrix :target) .dock-links .dock-matrix,
body:has(#stages:target, #stages :target) .dock-links .dock-stages {
  border-bottom-color: var(--bh-band-contour);
  color: var(--bh-band-ink);
}

body:has(#schedule:target, #schedule :target, #matrix:target, #matrix :target, #stages:target, #stages :target) .dock-links .dock-matchbook {
  border-bottom-color: transparent;
  color: var(--bh-band-muted);
}

@media (min-width: 48rem) {
  .dock-links {
    flex: none;
    justify-content: flex-start;
    gap: var(--bh-space-6);
  }
}

/* ---- Motion: only for those who have not asked for less ---- */

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

/* ---- Forced colours: a Windows contrast theme ---- */

/* The browser repaints the page in the theme's few colours, which leaves the selected half of the
   switch looking like the other, and paints the wordmark in the canvas colour it sits on. It also
   paints every transparent border in the text colour, so all three dock links would be underlined
   and every stage row would have the bar. System colours, the only ones a contrast theme keeps,
   mark the selection, draw the wordmark and hide the borders that mark nothing: the dock's
   underline and the row's bar show only on the step in view and the row jumped to. */
@media (forced-colors: active) {
  body:has(#appearance-dark:checked) label[for="appearance-dark"],
  body:has(#appearance-light:checked) label[for="appearance-light"] {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }

  .wordmark {
    background: CanvasText;
  }

  .dock-links a,
  body:has(#schedule:target, #schedule :target, #matrix:target, #matrix :target, #stages:target, #stages :target) .dock-links .dock-matchbook {
    border-bottom-color: Canvas;
  }

  .rows > li {
    border-left-color: Canvas;
  }
}
