/* State of the Cycling Club 2026 — theme. markup contract: brief/components.md */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --orange: #f56200; --orange-hover: #d95600; --orange-100: #fef6f0;
  --teal: #0b1c1c;
  --grey900: #1b2828; --grey800: #374242; --grey700: #5b6161; --grey600: #6e7575; --grey500: #989e9e;
  --grey400: #b7bdbd; --grey300: #dce0e0; --grey200: #eaeded; --grey100: #f3f5f5; --grey50: #f9fbfb;
  --cream: #ebeed7;

  --bg: #fff; --bg-2: var(--grey50); --card: #fff; --card-ink: var(--grey900); --card-line: var(--grey300); --chip: var(--grey100); --chip-ink: var(--grey900);
  --ink: var(--grey900); --ink-2: var(--grey800); --muted: var(--grey700);
  --line: var(--grey300); --line-strong: var(--grey400);
  --accent: var(--orange); --accent-hover: var(--orange-hover);
  --band-bg: var(--teal); --band-ink: #fff; --band-muted: rgba(255,255,255,.72); --band-line: rgba(255,255,255,.22);
  --note-bg: var(--cream); --note-ink: var(--grey900);
  --tip-bg: #fff; --tip-ink: var(--grey900); --tip-line: var(--grey300);
  --logo-invert: 0;

  --chart-bar: var(--grey400); --chart-emph: var(--accent); --chart-ink: var(--grey900);
  --chart-text: var(--grey900); --chart-text-2: var(--grey700); --chart-muted: var(--grey300); --chart-muted-2: var(--grey200); --chart-muted-row: var(--grey300); --chart-grid: var(--grey300);
  --chart-surface: var(--bg); --chart-blue: #0a68bb; --chart-tan: #eda149; --chart-brown: #aa4c0e;
  --chart-you: var(--accent); --chart-font: 14px;
  --chart-survey: var(--chart-emph); --chart-platform: var(--chart-emph); --chart-s2: var(--chart-blue); --chart-cat-1: var(--chart-blue); --chart-cat-2: var(--chart-tan); --chart-cat-3: var(--chart-brown);

  --font-body: "aktiv-grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --fs: 17px; --lh: 1.55; --measure: 68ch;
  --fs-title: 56px; --fs-hero: 72px;

  --r: 4px; --r-card: 8px;
  --gutter: 24px; --col: 800px; --rail-w: 280px; --navbar-h: 44px;
  --ease: 200ms ease;

  --turn-start: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Cpath d='M14 30V10M14 11h13l-4 5 4 5H14'/%3E%3C/svg%3E");
  --turn-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Cpath d='M25 29v-8a4 4 0 0 0-4-4h-9M17 12l-5 5 5 5'/%3E%3C/svg%3E");
  --turn-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Cpath d='M15 29v-8a4 4 0 0 1 4-4h9M23 12l5 5-5 5'/%3E%3C/svg%3E");
  --turn-straight: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Cpath d='M20 29V12M14 18l6-6 6 6'/%3E%3C/svg%3E");
  --turn-slight-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Cpath d='M22 29v-7l-8-8M14 21v-7h7'/%3E%3C/svg%3E");
  --turn-slight-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Cpath d='M18 29v-7l8-8M26 21v-7h-7'/%3E%3C/svg%3E");
  --turn-summit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Cpath d='M9 28l8-13 4.5 6.5L25 16l6 12'/%3E%3C/svg%3E");
  --turn-finish: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Cpath d='M13 30V10M13 10h15v11H13z'/%3E%3Cpath fill='%23000' stroke='none' d='M13 10h5v5.5h-5zM23 10h5v5.5h-5zM18 15.5h5V21h-5z'/%3E%3C/svg%3E");
  --turn-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Cpath d='M14 14l12 12M26 14L14 26'/%3E%3C/svg%3E");
  --glyph-compass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath fill='%23000' d='M15.8 8.2l-2.2 5.4-5.4 2.2 2.2-5.4z'/%3E%3C/svg%3E");
  --glyph-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  --glyph-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1.5 1.5'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1.5-1.5'/%3E%3C/svg%3E");
  --glyph-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E");
  --glyph-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.5 3.5L13 4.5'/%3E%3C/svg%3E");
}

/* dark: page = brand teal, band = a lifted teal so the two registers still separate */
/* dark mode is a toggle (data-theme), not the OS default: the audience reads and prints in daylight */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1c1c; --bg-2: #132525; --card: #1f3434; --card-ink: #f3f5f5; --card-line: rgba(255,255,255,.18); --chip: rgba(255,255,255,.14); --chip-ink: #f3f5f5;
  --ink: #f3f5f5; --ink-2: #dce0e0; --muted: #b7bdbd;
  --line: rgba(255,255,255,.14); --line-strong: rgba(255,255,255,.32);
  --band-bg: #152b2b; --band-line: rgba(255,255,255,.22);
  --note-bg: #1a2a26; --note-ink: #f3f5f5;
  --tip-bg: #1b2828; --tip-ink: #f3f5f5; --tip-line: rgba(255,255,255,.25);
  --logo-invert: 1;
  --chart-bar: #6e7575; --chart-ink: #eaeded; --chart-text: #f3f5f5; --chart-text-2: #b7bdbd;
  --chart-muted: #989e9e; --chart-muted-2: #4a5656; --chart-muted-row: #4a5656; --chart-grid: rgba(255,255,255,.14); --chart-blue: #1dafe6;
}

@media (min-width: 1100px) { :root { --fs: 18px; --gutter: 40px; } }
@media (max-width: 699px) { :root { --fs-title: 44px; --fs-hero: 56px; --gutter: 20px; } }
@media (min-width: 700px) { :root { --navbar-h: 56px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs)/var(--lh) var(--font-body); text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; }
img, svg { max-width: 100%; }
img { height: auto; display: inline-block; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color var(--ease); }
a:hover { text-decoration-color: currentColor; }
b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--orange-100); color: var(--grey900); }
:target, .sec, .play, .ex { scroll-margin-top: calc(var(--navbar-h) + 16px); }

.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -200px; z-index: 100; padding: 12px 16px; background: var(--bg); color: var(--ink); border: 2px solid var(--accent); border-radius: var(--r); font-weight: 700; text-decoration: none; }
.skip:focus { position: fixed; top: 16px; }

/* ---------- type helpers ---------- */
.num { font-family: var(--font-display); font-weight: 400; line-height: 1; letter-spacing: .01em; color: var(--accent); }

/* ---------- turn glyphs (mask so they take currentColor). sections also carry data-turn — never match them ---------- */
:where(.cue-turn, .sec-turn, .navbar-turn, span[data-turn]) { display: inline-block; width: 28px; height: 28px; flex: none; background-color: currentColor; -webkit-mask: var(--turn) center / contain no-repeat; mask: var(--turn) center / contain no-repeat; }
[data-turn="start"] { --turn: var(--turn-start); }
[data-turn="left"] { --turn: var(--turn-left); }
[data-turn="right"] { --turn: var(--turn-right); }
[data-turn="straight"] { --turn: var(--turn-straight); }
[data-turn="slight-left"] { --turn: var(--turn-slight-left); }
[data-turn="slight-right"] { --turn: var(--turn-slight-right); }
[data-turn="summit"] { --turn: var(--turn-summit); }
[data-turn="finish"] { --turn: var(--turn-finish); }
[data-turn="close"] { --turn: var(--turn-close); }

/* ---------- cover ---------- */
.cover { position: relative; background: var(--teal); color: #fff; overflow: hidden; isolation: isolate; }
.cover-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .75; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11,28,28,.92) 0%, rgba(11,28,28,.55) 45%, rgba(11,28,28,.15) 100%); }
.cover-in { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: 28px var(--gutter) 88px; max-width: 1240px; margin: 0 auto; }
.cover-logo { display: inline-block; width: 174px; margin-bottom: 36px; }
.cover-logo img { display: block; }
.cover-kicker { margin-top: auto; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 20px; }
.cover-title { font-family: var(--font-display); font-size: clamp(64px, 11vw, 132px); line-height: .9; text-transform: uppercase; letter-spacing: .005em; margin-bottom: 28px; text-shadow: 0 2px 24px rgba(11,28,28,.45); }
.cover-title span { display: block; }
.cover-title em { font-style: normal; color: var(--accent); }
.cover-thesis { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); line-height: 1.05; text-transform: uppercase; max-width: 22ch; margin-bottom: 20px; }
.cover-stand { font-size: 20px; line-height: 1.45; max-width: 58ch; color: rgba(255,255,255,.92); margin-bottom: 32px; }
.cover-meta { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.cover-meta b { color: #fff; }
.cover-byline { font-size: 15px; color: rgba(255,255,255,.75); margin-top: 8px; }
.cover-down { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); color: var(--accent); width: 44px; height: 44px; display: grid; place-items: center; }
.cover-down svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- shell: rail + main ---------- */
.shell { display: block; }
.report { min-width: 0; padding-bottom: 96px; }

/* ---------- cue sheet ---------- */
.cues { display: none; background: var(--bg); }
.cues-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; }
.cues-route { font-family: var(--font-display); font-size: 22px; line-height: 1; text-transform: uppercase; }
.cues-dist { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cues-profile { height: 44px; margin-bottom: 14px; }
.cues-profile svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cues-profile path, .cues-profile polygon, .cues-profile polyline { fill: var(--grey200); stroke: var(--grey400); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cues-profile line { stroke: var(--grey400); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cues-rider { fill: var(--accent); stroke: var(--bg); stroke-width: 2; r: 5; vector-effect: non-scaling-stroke; }
.cues-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cue a { display: grid; grid-template-columns: 28px 40px 1fr; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color var(--ease); }
.cue a:hover { background: var(--bg-2); }
.cue-mi { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; padding-right: 4px; }
.cue-name { font-size: 15px; line-height: 1.3; }
.cue.is-active a { background: var(--bg-2); }
.cue.is-active .cue-name { font-weight: 700; }
.cue.is-active .cue-turn { color: var(--accent); }
.cues-tools { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 16px; }
.cues-tools .btn-ghost { height: 36px; padding: 0 12px; font-size: 14px; }

/* ---------- navbar (the app's turn banner) ---------- */
.navbar { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--navbar-h); background: var(--teal); color: #fff; align-items: center; gap: 12px; padding: 0 12px 0 6px; }
.navbar:not([hidden]) { display: flex; }
.navbar-open { display: flex; align-items: center; gap: 10px; height: 100%; min-width: 0; padding: 0 8px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; }
.navbar-turn { width: 28px; height: 28px; color: var(--accent); }
.navbar-next { display: flex; flex-direction: column; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.2; }
.navbar-next small { font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.navbar-next-text { display: flex; gap: 4px; min-width: 0; white-space: nowrap; }
.navbar-next-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.navbar-next-min { flex: none; }
.navbar-profile { flex: 1 1 80px; min-width: 60px; height: 28px; }
.navbar-profile svg { display: block; width: 100%; height: 100%; overflow: visible; }
.navbar-profile path, .navbar-profile polygon, .navbar-profile polyline { fill: rgba(255,255,255,.22); stroke: rgba(255,255,255,.5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.navbar-profile line { stroke: rgba(255,255,255,.35); vector-effect: non-scaling-stroke; }
.navbar-profile .cues-rider { stroke: var(--teal); r: 4; }
.navbar-logo { flex: none; display: grid; place-items: center; width: 40px; height: 100%; }
.navbar-logo img { display: block; }

/* cue sheet as a drawer under the navbar (app.js toggles .is-open / aria-expanded) */
@media (max-width: 1099px) {
  .cues.is-open, body:has(.navbar-open[aria-expanded="true"]) .cues { display: block; position: fixed; top: var(--navbar-h); left: 0; right: 0; bottom: 0; z-index: 45; overflow-y: auto; overscroll-behavior: contain; padding: 20px var(--gutter) 40px; }
  body:has(.navbar-open[aria-expanded="true"]) { overflow: hidden; }
}

/* ---------- sections: centered column, bands break out ---------- */
.sec { display: grid; grid-template-columns: [full-start] minmax(var(--gutter), 1fr) [col-start] minmax(0, var(--col)) [col-end] minmax(var(--gutter), 1fr) [full-end]; }
.sec > * { grid-column: col; min-width: 0; }
.sec > .band { grid-column: full; }
.sec-head { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; margin: 96px 0 40px; }
.sec:first-child .sec-head { margin-top: 64px; }
.sec-turn { width: 40px; height: 40px; }
.sec-mi { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sec-title { grid-column: 1 / -1; font-family: var(--font-display); font-size: var(--fs-title); line-height: .95; text-transform: uppercase; margin: 14px 0 12px; }
.sec-stand { grid-column: 1 / -1; font-size: 20px; line-height: 1.45; color: var(--ink-2); max-width: var(--measure); }
.sec-aside { --col: 640px; margin: 64px 0; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-aside .sec-head { margin: 0 0 24px; grid-template-columns: 28px 1fr; }
.sec-aside .sec-turn { width: 28px; height: 28px; }
.sec-aside .sec-title { font-size: 34px; margin: 10px 0 8px; }
.sec-aside .sec-stand { font-size: 18px; }
.sec-aside + .sec-aside { border-top: 0; margin-top: -64px; padding-top: 0; }

/* ---------- prose ---------- */
.sec > p, .sec > .lead, .sec > .aside, .plays > .aside, .sec > ul, .sec > ol, .band-in > p, .band-in > ul, .band-in > .lead, .band-in > .aside, .band-in > .sub { max-width: var(--measure); margin-bottom: 1.2em; }
.band-in > p { color: var(--band-ink); }
.lead { font-size: 20px; line-height: 1.45; }
.aside { font-size: 16px; color: var(--ink-2); padding-left: 16px; border-left: 3px solid var(--line); }
.sub { font-size: 22px; font-weight: 700; line-height: 1.25; margin: 40px 0 12px; max-width: var(--measure); }
.sec > .sub + p { margin-top: 0; }

/* ---------- exhibits ---------- */
.ex { margin: 48px 0; }
.ex-survey { border-top: 1px solid var(--line); padding-top: 20px; }
.ex-head { position: relative; padding-right: 88px; display: grid; gap: 6px; }
.ex-title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.ex-q { font-size: 15px; font-style: italic; color: var(--muted); line-height: 1.45; max-width: var(--measure); }
.ex-link { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; background: none; border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; color: var(--muted); cursor: pointer; transition: border-color var(--ease), color var(--ease); }
.ex-link::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--glyph-link) center / contain no-repeat; mask: var(--glyph-link) center / contain no-repeat; }
.ex-link:hover { color: var(--ink); border-color: var(--line-strong); }
.chart, .calstrip, .xtab { position: relative; margin: 20px 0 8px; font-size: var(--chart-font); color: var(--chart-text); }
.chart svg, .calstrip svg, .xtab svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
.chart [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-foot { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 10px; max-width: var(--measure); }
.ex-table { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ex-table:hover { color: var(--ink); }
.ex-hero { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: end; margin: 24px 0 8px; max-width: var(--measure); }
.ex-hero .num { font-size: var(--fs-hero); line-height: .85; }
.ex-hero span { font-size: 18px; line-height: 1.35; color: var(--ink-2); max-width: 30ch; padding-bottom: 3px; }
.ex-hero > button { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }
.ex-stat .ex-hero { margin-top: 20px; }

/* table twin (data-action="table") */
.chart table, .chart-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.chart th, .chart td, .chart-table th, .chart-table td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.chart td:last-child, .chart-table td:last-child, .chart th:last-child, .chart-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* tooltip */
.chart-tip { position: absolute; z-index: 20; pointer-events: none; max-width: 240px; padding: 8px 10px; background: var(--tip-bg); color: var(--tip-ink); border: 1px solid var(--tip-line); border-radius: var(--r); font-size: 13px; line-height: 1.35; box-shadow: 0 2px 10px rgba(11,28,28,.14); }
.chart-tip b { display: block; font-size: 15px; }

/* "you" marker from the club picker */
.you { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--grey900); background: var(--accent); border-radius: 3px; padding: 4px 6px; vertical-align: middle; }

/* ---------- platform band ---------- */
.band { background: var(--band-bg); color: var(--band-ink); padding: 56px 0; margin: 56px 0; --chart-bar: rgba(255,255,255,.62); --chart-emph: #f56200; --chart-ink: #eaeded; --chart-text: #fff; --chart-text-2: rgba(255,255,255,.78); --chart-muted: rgba(255,255,255,.62); --chart-muted-2: rgba(255,255,255,.28); --chart-muted-row: rgba(255,255,255,.3); --chart-grid: rgba(255,255,255,.15); --chart-surface: var(--band-bg); --chart-blue: #1dafe6; --line: var(--band-line); --line-strong: rgba(255,255,255,.45); --muted: var(--band-muted); --ink: #fff; --ink-2: rgba(255,255,255,.88); --bg-2: rgba(255,255,255,.08); }
.band-in { max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }
.band-tag { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); padding-bottom: 16px; border-bottom: 1px solid var(--band-line); }
.band-tag img { display: block; }
.band .ex { margin: 32px 0 0; border-top: 0; padding-top: 0; }
.band .ex + .ex { margin-top: 48px; }
.band .ex-title { color: #fff; }
.band .ex-link { color: rgba(255,255,255,.8); border-color: var(--band-line); }
.band .ex-link:hover { color: #fff; border-color: rgba(255,255,255,.6); }
.band-cols { display: grid; column-gap: 40px; row-gap: 40px; margin-top: 32px; }
.band-cols > .ex { min-width: 0; }
.band .band-cols > .ex { margin-top: 0; }
@media (min-width: 900px) {
  .band-cols { grid-template-columns: 1fr 1fr; row-gap: 0; }
  .band-cols > .ex { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; }
}

/* find your own number */
.find { position: relative; margin-top: 36px; padding: 16px 20px 16px 56px; border: 1px solid var(--line); border-radius: var(--r-card); font-size: 15px; line-height: 1.45; max-width: var(--measure); }
.find::before { content: ""; position: absolute; left: 18px; top: 17px; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--glyph-compass) center / contain no-repeat; mask: var(--glyph-compass) center / contain no-repeat; }
.band .find { color: #fff; border-color: var(--band-line); }

/* ---------- waffle: 100 riders ---------- */
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; max-width: 460px; margin: 24px 0 8px; }
.waffle > svg { display: block; width: 100%; height: auto; aspect-ratio: 49.6 / 35.1; overflow: visible; }
.waffle > .waffle-legend, .waffle > ul { grid-column: 1 / -1; }
.w1 { fill: var(--accent); stroke: none; }
.w2 { fill: var(--grey500); stroke: none; }
.w3 { fill: var(--grey300); stroke: none; }
.w4 { fill: none; stroke: currentColor; stroke-width: 1.6; }
.band .w2 { fill: rgba(255,255,255,.72); }
.band .w3 { fill: rgba(255,255,255,.42); }
.band .w4 { stroke: rgba(255,255,255,.75); }
.waffle-legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.waffle-legend li { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 10px; }
.waffle-legend svg { width: 26px; height: 18px; overflow: visible; }
.waffle-legend b { font-variant-numeric: tabular-nums; }

/* ---------- ride listings (product chrome) ---------- */
.listings { display: grid; gap: 16px; margin: 24px 0 8px; }
@media (min-width: 800px) { .listings { grid-template-columns: 1fr 1fr; } }
.listing { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: start; padding: 14px 16px; background: var(--card); color: var(--card-ink); border: 1px solid var(--card-line); border-radius: var(--r-card); }
.listing-day { display: grid; place-items: center; width: 56px; height: 56px; background: var(--chip); color: var(--chip-ink); border-radius: var(--r); font-family: var(--font-display); font-size: 24px; line-height: 1; text-transform: uppercase; padding-top: 3px; }
.listing-body { display: grid; gap: 4px; min-width: 0; padding-top: 4px; }
.listing-body > b { font-size: 18px; line-height: 1.25; }
.listing-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; font-size: 15px; line-height: 1.6; opacity: .85; }
.listing-note { grid-column: 1 / -1; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--card-line); font-size: 14px; opacity: .8; }
.band .listing { border-color: transparent; }

/* ---------- dot-and-range (app.js draws the svg) ---------- */
.range { position: relative; margin: 28px 0 8px; min-height: 92px; font-size: 14px; color: var(--ink-2); }
.range svg { display: block; width: 100%; height: auto; overflow: visible; }
.range line, .range path { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.range .tick { stroke: var(--ink); stroke-width: 2; }
.range .dot, .range circle { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.range text { font-family: var(--font-body); font-size: 14px; fill: var(--ink-2); }
.range .range-label { fill: var(--ink); font-weight: 700; }
.range .range-desc { font-size: 12px; fill: var(--muted); }

/* ---------- two-level list ---------- */
.tiers { margin: 24px 0 8px; max-width: var(--measure); }
.tiers dt { font-weight: 700; font-size: 16px; margin: 22px 0 4px; }
.tiers dt:first-child { margin-top: 0; }
.tiers dd { position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; align-items: baseline; padding: 6px 0 16px; }
.tiers dd b { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.tiers dd[data-n]::before { content: ""; position: absolute; left: 60px; right: 0; bottom: 4px; height: 6px; background: var(--bg-2); border-radius: 3px; }
.tiers dd[data-n]::after { content: ""; position: absolute; left: 60px; bottom: 4px; height: 6px; width: min(calc(100% - 60px), calc(var(--n, 0) * 9px)); background: var(--grey400); border-radius: 3px; }
.band .tiers dd[data-n]::before { background: rgba(255,255,255,.1); }
.band .tiers dd[data-n]::after { background: rgba(255,255,255,.5); }

/* ---------- club picker ---------- */
.picker { background: var(--note-bg); color: var(--note-ink); border-radius: var(--r-card); padding: 24px; margin: 32px 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.picker-lead { font-size: 17px; line-height: 1.4; }
.picker label { position: relative; display: grid; gap: 6px; font-size: 14px; font-weight: 700; min-width: 0; }
.picker select { appearance: none; -webkit-appearance: none; height: 44px; width: 100%; padding: 0 40px 0 12px; background: var(--card); color: var(--ink); border: 1px solid var(--grey400); border-radius: var(--r); font: 400 16px/1 var(--font-body); cursor: pointer; transition: border-color var(--ease); }
.picker select:hover { border-color: var(--grey600); }
.picker label::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 16px; height: 16px; pointer-events: none; background: var(--ink); -webkit-mask: var(--glyph-chevron) center / contain no-repeat; mask: var(--glyph-chevron) center / contain no-repeat; }
.picker .btn { justify-self: start; align-self: end; background: none; color: var(--note-ink); border: 1px solid var(--grey600); }
.picker .btn:hover { background: rgba(0,0,0,.05); }
@media (min-width: 900px) { .picker { grid-template-columns: repeat(5, 1fr) auto; align-items: end; gap: 14px; } .picker-lead { grid-column: 1 / -1; } }
@media (min-width: 600px) and (max-width: 899px) { .picker { grid-template-columns: repeat(3, 1fr); } .picker-lead { grid-column: 1 / -1; } }

/* ---------- benchmark strip ---------- */
.bench { list-style: none; margin: 32px 0; padding: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bench li { display: grid; align-content: start; gap: 6px; position: relative; padding-left: 12px; border-left: 3px solid transparent; }
.bench .num { font-size: 40px; color: var(--ink); }
.bench span { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.bench li.is-you { border-left-color: var(--accent); }
.bench .you { justify-self: start; margin-top: 2px; }
@media (max-width: 1000px) { .bench { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; } }
@media (max-width: 599px) { .bench { grid-template-columns: repeat(2, 1fr); } }

/* ---------- quotes ---------- */
.pull { position: relative; margin: 40px 0; padding: 6px 0 0 56px; max-width: var(--measure); }
/* Bebas's quote glyph is ~.3em tall, so 96px lands at the 64px visual the spec asks for */
.pull::before { content: "\201C"; position: absolute; left: 0; top: -4px; font-family: var(--font-display); font-size: 96px; line-height: 1; color: var(--accent); }
.pull p { font-size: 20px; line-height: 1.45; margin-bottom: 10px; }
.pull footer { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pull footer::before { content: ""; }
.pull-sm { margin: 20px 0; padding-left: 40px; }
.pull-sm::before { font-size: 64px; top: -2px; }
.pull-sm p { font-size: 17px; }

/* one multicol per headed group: a column-span heading inside a multicol makes Safari leak the next group's first quote into the previous one */
.letters, .letters-set { margin: 32px 0; }
.letters-set .letters { margin: 0; }
@media (min-width: 900px) { .letters { columns: 2; column-gap: 56px; } }
.letters-lead { font-size: 22px; font-weight: 700; line-height: 1.25; margin: 40px 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.letters-set > .letters-lead:first-child { margin-top: 0; }
.letter { break-inside: avoid; margin: 0 0 30px; padding-left: 20px; }
.letter p { font-size: 16px; line-height: 1.5; margin-bottom: 6px; }
.letter footer { margin-left: -20px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.letter footer::before { content: ""; }

/* ---------- cross-tab strip ---------- */
.xtab { margin: 24px 0 8px; font-size: 14px; }

/* ---------- the playbook ---------- */
.plays { margin: 24px 0 8px; }
.plays-group { font-family: var(--font-display); font-size: 30px; line-height: 1; text-transform: uppercase; margin: 48px 0 8px; }
.plays-group:first-child { margin-top: 8px; }
.play { display: grid; grid-template-columns: 36px 1fr; column-gap: 20px; align-items: start; padding: 24px 0 28px; border-top: 1px solid var(--line); }
.play-num { width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; line-height: 1; margin-top: 2px; }
.play-num span { padding-top: .12em; }
.play-body { min-width: 0; max-width: var(--measure); }
.play-title { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 8px 0 8px; }
.play-why { margin-bottom: 8px; }
.try { list-style: none; margin: 16px 0; padding: 16px 18px; background: var(--note-bg); color: var(--note-ink); border-radius: var(--r-card); display: grid; gap: 10px; }
.try li label { display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; align-items: start; font-size: 16px; line-height: 1.45; cursor: pointer; }
.try input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 3px 0 0; background: var(--card); border: 2px solid var(--ink); border-radius: 2px; display: grid; place-items: center; cursor: pointer; }
.try input[type="checkbox"]:checked::before { content: ""; width: 12px; height: 12px; background: var(--ink); -webkit-mask: var(--glyph-check) center / contain no-repeat; mask: var(--glyph-check) center / contain no-repeat; }
.try input[type="checkbox"]:checked + * , .try li:has(input:checked) label { text-decoration: none; }
.play-when { margin-top: 12px; }
.when { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r); padding: 5px 8px; }
.src { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.src::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.src-survey::before { background: var(--accent); }
.src-platform::before { background: var(--teal); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
:root[data-theme="dark"] .src-platform::before, .band .src-platform::before { background: #eaeded; box-shadow: none; }

/* ---------- method table, colophon ---------- */
.mini { border-collapse: collapse; font-size: 15px; margin: 20px 0 28px; min-width: 260px; max-width: 420px; }
.mini th, .mini td { text-align: left; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini th { font-weight: 700; }
.mini td:last-child, .mini th:last-child { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.colophon { border-top: 1px solid var(--line); padding: 40px var(--gutter) 64px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.colophon img { display: block; height: 32px; width: auto; margin-bottom: 16px; filter: invert(var(--logo-invert)) hue-rotate(calc(var(--logo-invert) * 180deg)); }
.colophon p { max-width: var(--measure); }

/* ---------- buttons and small things ---------- */
.btn, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r); font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--ease), border-color var(--ease), color var(--ease); }
.btn { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: none; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink); }
.band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.band .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.badge { display: inline-block; background: var(--chip); color: var(--chip-ink); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .04em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.print-head { display: none; }

/* ---------- calls to action ---------- */
.cta { background: var(--note-bg); color: var(--note-ink); border-radius: var(--r-card); padding: 24px; margin: 40px 0; display: grid; gap: 16px; align-content: start; min-width: 0; }
.cta-lead { font-size: 17px; line-height: 1.4; max-width: var(--measure); }
.cta .btn { justify-self: start; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: -6px; word-break: break-word; }
.cta-note a { color: inherit; }
.cta-form { display: grid; gap: 12px; }
.cta-field { display: block; }
.cta-form input[type="email"] { height: 44px; width: 100%; padding: 0 12px; background: var(--card); color: var(--ink); border: 1px solid var(--grey400); border-radius: var(--r); font: 400 16px/1 var(--font-body); }
.cta-form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cta-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.cta-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.cta-form .btn { justify-self: start; }
.cta-form.is-done .cta-field, .cta-form.is-done .cta-check { display: none; }
.cta-msg { font-size: 14px; color: var(--muted); }
.cta-msg.is-error { color: #b42318; }
:root[data-theme="dark"] .cta-msg.is-error { color: #ff8a80; }
.cta-row { display: grid; gap: 16px; margin: 40px 0; }
.cta-row > .cta { margin: 0; }
@media (min-width: 700px) { .cta-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .sec > .cta-row-4 { grid-column: full; width: 100%; max-width: 1180px; justify-self: center; padding: 0 var(--gutter); }
  .cta-row-4 { grid-template-columns: repeat(4, 1fr); }
  .cta-row-4 > .cta { padding: 20px; }
  .cta-row-4 .btn { white-space: normal; text-align: center; height: auto; min-height: 44px; padding: 10px 14px; }
}

/* ---------- layout breakpoints ---------- */
@media (min-width: 1100px) {
  .shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .cues { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; overflow-y: auto; padding: 24px 20px 24px var(--gutter); border-right: 1px solid var(--line); }
  .navbar, .navbar:not([hidden]) { display: none; }
  :target, .sec, .play, .ex { scroll-margin-top: 24px; }
  .colophon { padding-left: var(--rail-w); padding-right: 0; display: grid; grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, var(--col)) minmax(var(--gutter), 1fr); }
  .colophon > * { grid-column: 2; min-width: 0; }
}
@media (max-width: 1099px) {
  .sec-head { margin-top: 72px; }
}
@media (max-width: 699px) {
  .cover-in { padding-bottom: 72px; }
  .cover-logo { width: 140px; margin-bottom: 24px; }
  .cover-stand { font-size: 18px; }
  .sec-head { grid-template-columns: 32px 1fr; margin-top: 56px; }
  .sec-turn { width: 32px; height: 32px; }
  .lead, .sec-stand { font-size: 18px; }
  .pull { padding-left: 40px; }
  .pull::before { font-size: 48px; }
  .pull p { font-size: 18px; }
  .ex-head { padding-right: 0; }
  .ex-link { position: static; justify-self: start; margin-top: 4px; height: 44px; padding: 0 14px; }
  .ex-table { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 6px; margin: -12px 0; }
  .cues-tools .btn-ghost { height: 44px; }
  .navbar-profile { flex: 0 1 72px; min-width: 48px; }
  .ex-hero { grid-template-columns: 1fr; row-gap: 8px; }
  .ex-hero span { padding-bottom: 0; }
  .band { padding: 40px 0; margin: 40px 0; }
  .play { grid-template-columns: 32px 1fr; column-gap: 14px; }
  .play-num { width: 32px; height: 32px; font-size: 20px; }
  .plays-group { font-size: 26px; }
  .mini { width: 100%; max-width: none; }
}

/* ---------- language menu (details.lang-switch; markup from work/instrument.py, hrefs kept current by app.js) ---------- */
.lang-switch { position: relative; }
.lang-switch > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 11px; border: 1px solid var(--line-strong); border-radius: var(--r); font-size: 14px; font-weight: 700; line-height: 1; color: var(--ink); cursor: pointer; white-space: nowrap; user-select: none; transition: background-color var(--ease), border-color var(--ease); }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::before, .lang-switch > summary::after { content: ""; flex: none; background: currentColor; }
.lang-switch > summary::before { width: 16px; height: 16px; -webkit-mask: var(--glyph-globe) center / contain no-repeat; mask: var(--glyph-globe) center / contain no-repeat; }
.lang-switch > summary::after { width: 14px; height: 14px; -webkit-mask: var(--glyph-chevron) center / contain no-repeat; mask: var(--glyph-chevron) center / contain no-repeat; transition: transform var(--ease); }
.lang-switch[open] > summary::after { transform: rotate(180deg); }
.lang-switch > summary:hover { background: var(--bg-2); border-color: var(--ink); }
.lang-menu { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; min-width: 176px; margin: 0; padding: 6px; list-style: none; background: var(--card); color: var(--card-ink); border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: 0 8px 24px rgba(11,28,28,.18); }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 10px; border-radius: var(--r); font-size: 15px; line-height: 1.2; text-decoration: none; color: inherit; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--chip); }
.lang-menu a[aria-current] { font-weight: 700; }
.lang-menu a[aria-current]::after { content: ""; flex: none; width: 14px; height: 14px; background: var(--accent); -webkit-mask: var(--glyph-check) center / contain no-repeat; mask: var(--glyph-check) center / contain no-repeat; }
.cover-in { position: relative; }
.lang-switch-cover { position: absolute; top: 31px; right: var(--gutter); }
.lang-switch-cover > summary { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(11,28,28,.3); }
.lang-switch-cover > summary:hover { background: rgba(255,255,255,.12); border-color: #fff; }
/* the rail and the mobile drawer both scroll (and clip sideways): open upward over the cue list, as wide as the tools row */
.cues-tools { position: relative; }
.cues-tools .lang-switch { position: static; }
.cues-tools .lang-menu { top: auto; bottom: calc(100% - 10px); left: 0; right: 0; min-width: 0; }
@media (max-width: 699px) {
  .lang-switch > summary { height: 44px; padding: 0 12px; }
  .lang-menu a { min-height: 44px; }
  .lang-switch-cover { top: 23px; }
}

/* ---------- other languages ---------- */
/* Bebas Neue and aktiv-grotesk have no CJK glyphs; name the system fonts so ja doesn't land on a serif fallback */
:root:lang(ja) { --font-body: "aktiv-grotesk", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; --font-display: "Bebas Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; }
:root:lang(ja) body { line-break: strict; }
/* long compounds (de, nl) in the display caps */
:root:not([lang="en"]) :is(.cover-title, .cover-thesis, .sec-title, .plays-group) { overflow-wrap: break-word; hyphens: manual; }
:root:not([lang="en"]) :is(.cues-route, .cues li, .cues a) { overflow-wrap: break-word; hyphens: auto; }
:root:lang(ja) :is(.cover-title, .cover-thesis, .sec-title, .plays-group, h1, h2, h3) { word-break: auto-phrase; }
:root:lang(ja) .cover-title { font-size: clamp(30px, 8.5vw, 96px); line-height: 1.1; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- spacing after exhibits ---------- */
.band .ex + p, .band .ex + .lead { margin-top: 28px; }
.sec > .ex + p, .sec > .ex + .sub { margin-top: 28px; }

/* ---------- print ---------- */
/* every --chart-* the band/dark blocks set on screen is re-set here; charts.js bakes var() into inline fills, so an unset token prints white-on-white */
@media print {
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    color-scheme: light !important;
    --bg: #fff; --bg-2: #fff; --card: #fff; --card-ink: #000; --card-line: #000; --chip: #fff; --chip-ink: #000; --ink: #000; --ink-2: #222; --muted: #444;
    --line: #999; --line-strong: #000; --note-bg: #fff; --note-ink: #000; --band-bg: #fff; --band-ink: #000; --band-muted: #444; --band-line: #000;
    --logo-invert: 0; --fs: 11pt; --fs-title: 30pt; --fs-hero: 40pt;
    --chart-bar: #999; --chart-emph: #000; --chart-ink: #000; --chart-text: #000; --chart-text-2: #444; --chart-muted: #555; --chart-muted-2: #bbb; --chart-muted-row: #ccc; --chart-grid: #ccc; --chart-surface: #fff;
  }
  @page { margin: 12mm; @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 8pt var(--font-body); color: #444; } }
  html { scroll-behavior: auto; }
  html, body { background: #fff !important; color: #000; }
  .skip, .navbar, .cues, .cover-down, .lang-switch, .ex-link, .ex-table, .picker, .cues-tools, .ex-hero > button, .chart-tip, .chart-table-toggle, [data-action="print-playbook"], [data-action="theme"], .sr-status, .cta, .cta-row { display: none !important; }
  .shell { display: block; }
  .report { padding-bottom: 0; }
  .sec { display: block; }
  .cover { min-height: 0; background: none; color: #000; break-after: page; }
  .cover-photo, .cover::before { display: none; }
  .cover-in { min-height: 0; padding: 0 0 24pt; }
  .cover-logo img { filter: brightness(0); }
  .cover-logo { margin-bottom: 24pt; }
  .cover-kicker { margin-top: 0; }
  .cover-title { font-size: 60pt; text-shadow: none; }
  .cover-kicker, .cover-meta, .cover-meta b, .cover-byline, .cover-stand { color: #000; }
  .sec-head { margin: 28pt 0 12pt; break-inside: avoid; break-after: avoid; }
  .sub, .ex-title, .plays-group, .play-title, .ex-head { break-after: avoid; }
  .band, .ex { break-inside: auto; }
  .ex-head, .chart, .calstrip, .xtab, .ex-hero, .find, .waffle, .listings, .range, .pull, .letter, .listing, .bench, .play { break-inside: avoid; }
  .band { background: none; color: #000; border: 1.5pt solid #000; border-radius: 8px; padding: 14pt 16pt; margin: 18pt 0; --ink: #000; --ink-2: #222; --muted: #444; --line: #999; --chart-bar: #999; --chart-emph: #000; --chart-text: #000; --chart-text-2: #444; --chart-muted: #555; --chart-muted-2: #bbb; --chart-muted-row: #ccc; --chart-grid: #ccc; --chart-surface: #fff; }
  .band-in { padding: 0; max-width: none; }
  .band-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14pt; }
  .band-cols > .ex { display: block; }
  .band-tag { color: #000; border-color: #000; }
  .band .ex-title, .band .find, .band .ex-hero span { color: #000; }
  .band .listing { border: 1px solid #000; }
  .num, .ex-hero .num, .pull::before, .cue.is-active .cue-turn { color: #000; }
  .w1 { fill: #000; } .w2, .band .w2 { fill: #777; } .w3, .band .w3 { fill: #ccc; stroke: #000; stroke-width: .6; } .w4, .band .w4 { fill: none; stroke: #000; }
  .src-survey::before { background: #000; } .src-platform::before { background: #fff; box-shadow: inset 0 0 0 1.5px #000; }
  .you { color: #000; background: none; border: 1px solid #000; }
  .tiers dd[data-n]::before { background: #eee; } .tiers dd[data-n]::after { background: #555; }
  .try { border: 1px solid #000; padding: 8pt 10pt; }
  .try input[type="checkbox"] { border-color: #000; background: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .try input[type="checkbox"]:checked::before { background: #000; }
  .badge, .when, .listing-day { border: 1px solid #000; background: none; color: #000; }
  a { text-decoration: none; }
  .letters { columns: 2; column-gap: 24pt; }

  /* playbook only: two Letter/A4 pages, cue-sheet style. the closing .aside flows inside .plays */
  body.print-playbook .cover, body.print-playbook .colophon, body.print-playbook .report > .sec:not(#playbook) { display: none; }
  body.print-playbook { --fs: 9pt; }
  body.print-playbook .print-head { display: flex; align-items: center; justify-content: space-between; gap: 12pt; padding-bottom: 6pt; margin-bottom: 8pt; border-bottom: 1.5pt solid #000; font-size: 9pt; }
  body.print-playbook .print-head img { height: 18pt; width: auto; }
  body.print-playbook .print-head b { font-family: var(--font-display); font-size: 14pt; font-weight: 400; text-transform: uppercase; }
  body.print-playbook #playbook .sec-head { display: none; }
  body.print-playbook #playbook > .lead { font-size: 9.5pt; margin-bottom: 6pt; }
  body.print-playbook .plays { columns: 2; column-gap: 20pt; column-fill: auto; margin: 0; }
  body.print-playbook .plays-group { column-span: none; font-size: 14pt; margin: 5pt 0 1pt; break-after: avoid; break-inside: avoid; }
  body.print-playbook .plays-group + .play { break-before: avoid; }
  body.print-playbook .play { grid-template-columns: 22pt 1fr; column-gap: 8pt; padding: 2pt 0 3pt; border-top: 1px solid #999; break-inside: auto; }
  body.print-playbook .play-num { width: 22pt; height: 22pt; font-size: 12pt; border-width: 1.5pt; margin-top: 0; }
  body.print-playbook .play-title { font-size: 10.5pt; margin: 3pt 0 1pt; break-after: avoid; }
  body.print-playbook .play-why { font-size: 8.5pt; line-height: 1.3; margin: 1pt 0 3pt; }
  body.print-playbook .try { padding: 4pt 6pt; gap: 2pt; margin: 4pt 0; break-inside: avoid; break-after: avoid; }
  body.print-playbook .try li { padding: 1.5pt 0; }
  body.print-playbook .try li label { font-size: 8.5pt; line-height: 1.3; grid-template-columns: 12pt 1fr; column-gap: 6pt; }
  body.print-playbook .try input[type="checkbox"] { width: 11pt; height: 11pt; margin-top: 1pt; border-width: 1.2pt; }
  body.print-playbook .play .pull { display: none; }
  body.print-playbook .play-when { margin-top: 2pt; break-before: avoid; }
  body.print-playbook .when { font-size: 7.5pt; padding: 1.5pt 4pt; }
  body.print-playbook .src { display: none; }
  body.print-playbook .plays > .aside, body.print-playbook #playbook > .aside { font-size: 8.5pt; line-height: 1.3; margin-top: 8pt; break-inside: avoid; }
}
