/* Grassroots Classic 2026: the public event pages: Schedule, Workouts, Leaderboard, and the
   home hero buttons. Option D "Broadcast on paper" (design 2026-09-03). Loads AFTER styles.css
   and reuses its tokens and fonts. This file never touches the sale (register, partner, setup). */

:root {
  --d-text: var(--ink);
  --d-dim: var(--ink-muted);
  --d-dim-2: rgba(19, 22, 20, 0.45);

  --d-rule: var(--rule);                 /* hairline on paper */
  --d-rule-hard: rgba(19, 22, 20, 0.28); /* the harder sheet edge */
  --d-rule-soft: rgba(19, 22, 20, 0.07);

  --d-sheet: var(--cream);               /* sheets, cards, panels, tiles */
  --d-sheet-hi: #FBF3E4;                 /* one step off cream for hover */
  --d-sunk: var(--paper-2);              /* lanes, standards, hint strips */

  --d-podium: rgba(60, 166, 115, 0.10);  /* the sanctioned podium tint */
  --d-podium-solid: #ECF1E2;             /* cream under that tint, flattened */
  --d-hit: var(--leaf-soft);
  --d-hit-solid: var(--leaf-soft);

  --d-moss-line: rgba(26, 77, 46, 0.45); /* moss hairline for live borders */
  --d-navh: 54px;

  /* styles.css has no capped colour, and the broadsheet prints one */
  --amber: #8A6D1F;

  /* the up-next light (Morgan 03/10): a true orange for the dot, a darker cut for text on paper */
  --orange: #E87D1E;
  --orange-ink: #B65D0E;
  --d-orange-line: rgba(182, 93, 14, 0.45);

  /* the hero stays dark, so it keeps its own dim ramp */
  --d-hero-text: var(--cream);
  --d-hero-dim: rgba(255, 249, 238, 0.62);
  --d-hero-dim-2: rgba(255, 249, 238, 0.45);
}

html { background: var(--paper); }

/* ★ Every page wears the coach console's surfaces (Morgan 06/09, first the Events page, then all):
   the console's page ground, white cards, its grey rules and its muted ink, instead of the paper
   palette. Values are the console's own (grc-coach-console src/index.css --surface-* tokens). */
html { background: #FAFAF9; }
body {
  --paper: #FAFAF9; --paper-2: #F5F5F4; --cream: #FFFFFF;
  --ink-muted: #4F554E; --rule: #E4E2E0; --rule-field: #E4E2E0;
  --d-sheet: #FFFFFF; --d-sheet-hi: #F5F5F4; --d-sunk: #F5F5F4; --d-rule: #E4E2E0; --d-rule-hard: #D6D3D1; --d-rule-soft: #EEEDEB;
  --d-dim: #4F554E; --d-dim-2: rgba(19, 22, 20, 0.45); --d-podium-solid: #F5F5F4;
  background: var(--paper); min-height: 100vh;
}
.topbar { background: rgba(250, 250, 249, 0.94); }
body {
  background: var(--paper);
  color: var(--d-text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--leaf-soft); color: var(--ink); }
a { color: var(--moss); }

.tnum { font-variant-numeric: tabular-nums; }

/* ---------- chrome bars ---------- */
.bar { position: relative; z-index: 5; }
.bar__inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}

.topbar .wordmark { display: inline-flex; line-height: 0; flex: 0 0 auto; }
/* the shared wordmark asset is white, so on paper it needs inverting */
.topbar .wordmark img { height: 26px; width: auto; filter: invert(1) brightness(0.12); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; }
/* Nav links (Morgan 06/09): our display face in mixed case, bold and a step bigger; the other pages
   sit muted; the current page is ink with a thick leaf bar beneath, the bar reaching the text edges. */
.nav a {
  font-family: var(--display); text-transform: none; letter-spacing: 0.01em;
  font-weight: 700; font-size: 18px; color: var(--d-dim-2); text-decoration: none;
  padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center;
  white-space: nowrap; position: relative;
}
.nav a:hover { color: var(--d-text); }
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px;
  height: 4px; border-radius: 2px; background: var(--leaf); transform: scaleX(0);
  transform-origin: left; transition: transform 200ms ease;
}
.nav a:hover::after { transform: scaleX(1); opacity: 0.55; }
@media (max-width: 480px) { .nav { gap: 0; } .nav a { font-size: 15px; padding: 0 7px; } .nav a::after { left: 7px; right: 7px; height: 3px; } }
@media (max-width: 340px) { .nav a { font-size: 13px; padding: 0 4px; letter-spacing: 0; } .nav a::after { left: 4px; right: 4px; } }
.nav a[aria-current="page"] { color: var(--moss); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* the hero bar sits on the photo, so it keeps the dark treatment */
.bar--hero .nav a { color: var(--d-hero-text); }
.bar--hero .nav a[aria-current="page"] { color: var(--leaf-hi); }

/* slim sticky bar on the inner pages (and on home once the hero is gone) */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 250, 249, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--d-rule-hard);
}
.topbar .bar__inner { padding-top: 4px; padding-bottom: 4px; }
.topbar--float {
  position: fixed; left: 0; right: 0; top: 0;
  transform: translateY(-100%); transition: transform 260ms ease;
}
.topbar--float.is-on { transform: none; }

/* ---------- buttons ---------- */
/* moss fill with a cream numeral-weight label, exactly as A's CTA */
.btn--primary { background: var(--moss); color: var(--cream); border-color: var(--moss); }
.btn--primary:hover { background: var(--moss-2); border-color: var(--moss-2); transform: translateY(-2px); }

/* the three page links ARE the home page now: no sale, no intro, no cost */
.hero__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 0 auto; max-width: 100%; }
.hero__links .btn { min-height: 48px; min-width: 150px; justify-content: center; }
@media (max-width: 480px) { .hero__links { flex-direction: column; align-items: stretch; width: min(100%, 320px); } }

/* ---------- section furniture ---------- */
.sect { padding: clamp(44px, 7vw, 96px) 0; border-top: 1px solid var(--d-rule); }
.sect--flush { border-top: 0; }
.eyebrow {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 12px; font-weight: 500; color: var(--d-dim);
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
}
.eyebrow b { color: var(--moss); font-weight: 600; letter-spacing: 0.12em; }
.eyebrow::after { content: ""; height: 1px; background: var(--d-rule); flex: 1; }
.sect-h {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em;
  font-weight: 600; font-size: var(--t-section); line-height: 0.94; margin: 0;
}
.sect-h em { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; color: var(--moss); font-weight: 400; }
.block-h {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; font-size: 15px; color: var(--d-dim); margin: 0 0 14px;
}
.lead { font-size: 18px; line-height: 1.62; color: var(--ink); max-width: 62ch; margin: 0; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr); } }

/* ---------- page head (inner pages) ---------- */
.phead { padding: clamp(28px, 4vw, 52px) 0 clamp(18px, 2.6vw, 30px); }
.phead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.stamp {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12px; color: var(--d-dim); display: flex; align-items: center; gap: 8px;
}
.stamp i { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); display: block; }

/* ---------- now / next board ---------- */
.nowboard { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
@media (max-width: 800px) { .nowboard { grid-template-columns: minmax(0, 1fr); } }
.panel {
  background: var(--d-sheet); border: 1px solid var(--d-rule); border-radius: var(--radius-card);
  padding: clamp(16px, 2.4vw, 24px); min-width: 0; display: flex; flex-direction: column; gap: 10px;
}
.panel--live { border-color: var(--d-moss-line); }
.panel__k {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 12px; font-weight: 600; color: var(--d-dim); display: flex; align-items: center; gap: 9px;
}
.panel--live .panel__k { color: var(--moss); }
/* the On now dot: one of the four places leaf survives */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); display: block; flex: 0 0 auto; }
.panel__h {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.015em; font-weight: 600;
  font-size: clamp(30px, 4.6vw, 54px); line-height: 0.95; margin: 0; overflow-wrap: break-word;
}
.panel__h--sm { font-size: clamp(22px, 2.6vw, 30px); }
.panel__meta { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; color: var(--d-dim); margin: 0; }
.panel__note { font-family: var(--serif); font-size: 15px; color: var(--d-dim); margin: 0; }
.prog { margin-top: 4px; }
.prog__track { height: 3px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
/* the progress fill: one of the four places leaf survives */
.prog__fill { height: 100%; background: var(--leaf); border-radius: 99px; }
.prog__row { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: var(--d-dim-2); }
.bigtime { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 58px); line-height: 0.9; letter-spacing: 0.01em; color: var(--moss); }
.lanes-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; color: var(--d-dim); }

/* ---------- controls (chips, search, tabs) ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; margin: 22px 0 8px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; max-width: 100%; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 44px; padding: 0 15px; display: inline-flex; align-items: center;
  background: var(--cream); color: var(--d-dim); border: 1px solid var(--rule-field);
  border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 500;
  white-space: nowrap; transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.chip:hover { color: var(--moss); border-color: var(--moss); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { color: var(--cream); background: var(--moss); border-color: var(--moss); font-weight: 600; }
.search { position: relative; flex: 0 1 300px; min-width: 0; }
.search input {
  width: 100%; min-height: 44px; padding: 10px 14px; color: var(--d-text);
  background: var(--cream); border: 1px solid var(--rule-field); border-radius: var(--radius-input);
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px;
}
.search input::placeholder { color: var(--d-dim-2); }
.search input:focus { border-color: var(--moss); outline: none; }

/* segmented control (workouts division switch) */
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule-field); border-radius: var(--radius-pill); overflow: hidden; background: var(--cream); max-width: 460px; width: 100%; }
.seg button {
  min-height: 46px; border: 0; background: transparent; color: var(--d-dim); cursor: pointer;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 500;
  border-right: 1px solid var(--rule-field); transition: color 180ms ease, background 180ms ease;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--moss); }
.seg button[aria-pressed="true"] { background: var(--moss); color: var(--cream); font-weight: 600; }
.segwrap { position: sticky; top: var(--d-navh); z-index: 30; background: var(--paper); padding: 12px 0; border-bottom: 1px solid var(--d-rule); }

/* ---------- schedule day rows ---------- */
.day { margin: 18px 0 0; display: flex; flex-direction: column; gap: 4px; }
/* styles.css gives every `section` the sale page's chapter padding (8vw at desktop). These two are
   sections for their landmarks, not chapters, so they take none of it. */
.nowboard, .brow { padding: 0; }
.brow {
  background: var(--d-sheet); border: 1px solid var(--d-rule); border-radius: var(--radius-panel);
  overflow: hidden; min-width: 0;
}
.brow--now { border-color: var(--d-moss-line); }
.brow--done .brow__head { opacity: 0.62; }
.brow__head { position: relative; display: grid; grid-template-columns: 108px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 15px 16px 15px 30px; }
@media (max-width: 560px) { .brow__head { grid-template-columns: 78px minmax(0, 1fr) auto; gap: 10px; } }
/* The event blocks are the cards; the minor rows around them (registration, briefing, lunch,
   awards) are plain small text so the events are what the eye lands on (Morgan 16/09). */
.brow--event { margin: 6px 0; }
.brow--minor { background: transparent; border: 0; border-radius: 0; }
.brow--minor .brow__head { min-height: 0; padding-top: 7px; padding-bottom: 7px; }
.brow--minor .brow__btn:hover { background: transparent; }
.brow--minor .brow__time { font-size: 15px; font-weight: 500; color: var(--d-dim); letter-spacing: 0.02em; }
.brow--minor .brow__l { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--d-dim); }
.brow--minor .brow__btn .caret { width: 16px; height: 16px; }
.brow--minor .brow__n { padding-bottom: 8px; font-size: 14px; }
.brow--minor.brow--done .brow__head { opacity: 0.5; }
/* The whole block head is the open/close control (Morgan 05/09: events compact down, not always open). */
/* Every row the same height, note or no note (Morgan 05/09): a two-line floor, centred; a closed row keeps its note to one line. */
.brow__btn { appearance: none; -webkit-appearance: none; width: 100%; min-height: 84px; align-items: center; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }

.brow__btn:hover { background: var(--d-sheet-hi); }
.brow__btn--flat { cursor: default; }
.brow__btn--flat:hover { background: transparent; }
.brow__btn:focus-visible { outline: 2px solid var(--moss); outline-offset: -2px; }
.brow__mid { display: block; min-width: 0; }
.brow__side { display: flex; align-items: center; gap: 10px; justify-self: end; }
.brow__btn .caret { width: 20px; height: 20px; color: var(--d-dim-2); transition: transform 160ms ease; flex: 0 0 auto; }
.brow__btn[aria-expanded="true"] .caret { transform: rotate(180deg); color: var(--moss); }
.brow__body[hidden] { display: none; }
.brow__time { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.05; letter-spacing: 0.01em; }
.brow--now .brow__time { color: var(--moss); }
.brow__l { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.045em; font-weight: 600; font-size: 19px; margin: 0; line-height: 1.1; overflow-wrap: break-word; }
/* The note sits just under the title inside the open dropdown, aligned with the title column. */
.brow__n { display: block; font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--d-dim); margin: -6px 0 0; padding: 0 16px 14px 152px; }
@media (max-width: 560px) { .brow__n { padding-left: 118px; } }
.brow__n + .heats { border-top: 1px solid var(--d-rule); }
/* ★ The live lights: no "On now" / "Up next" panels (Morgan 16/09). The running event and the
   running heat carry a glowing green light in the left gutter; the heat in front of it carries a
   glowing orange one (Morgan 03/10), and so does its event block when that block is not the running one.
   Steady glows, no pulse (brand motion rule). */
.light { position: absolute; left: 11px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; }
.light--on { background: var(--leaf); box-shadow: 0 0 0 3px rgba(60, 166, 115, 0.22), 0 0 10px 2px rgba(60, 166, 115, 0.55); }
.light--next { background: var(--orange); box-shadow: 0 0 0 3px rgba(232, 125, 30, 0.22), 0 0 10px 2px rgba(232, 125, 30, 0.55); }
.brow--next { border-color: var(--d-orange-line); }
.brow--next .brow__time { color: var(--orange-ink); }
.heats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--d-rule); }
/* Follow the lights (Morgan 03/10): a scrolled-to heat or block lands just under the sticky nav. */
.heat, .brow { scroll-margin-top: calc(var(--d-navh) + 8px); }
/* ★ Display mode (`?display=1`, the venue monitor): 90% so two open ten-lane heats fit a 1080p screen. */
html.is-display { zoom: 0.9; }
.heat { border-bottom: 1px solid var(--d-rule-soft); }
.heat:last-child { border-bottom: 0; }
.heat--now .heat__t { color: var(--moss); }
.heat--next .heat__t { color: var(--orange-ink); }
.heat__btn {
  width: 100%; background: transparent; border: 0; cursor: pointer; color: var(--d-text);
  position: relative; display: grid; grid-template-columns: 108px minmax(0, 1fr) auto 22px; gap: 14px; align-items: center;
  padding: 12px 16px 12px 30px; min-height: 52px; text-align: left; font: inherit;
}
@media (max-width: 560px) { .heat__btn { grid-template-columns: 74px minmax(0, 1fr) 22px; gap: 10px; padding-left: 26px; } .light { left: 9px; } }
.heat__btn:hover { background: var(--d-sheet-hi); }
.heat__t { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.02em; }
.heat__l { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.07em; font-size: 14px; font-weight: 500; color: var(--d-dim); min-width: 0; }
.heat__p { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: var(--d-dim-2); white-space: nowrap; }
@media (max-width: 560px) { .heat__p { display: none; } }
.caret { width: 22px; height: 22px; justify-self: end; color: var(--d-dim-2); transition: transform 200ms ease; }
.heat__btn[aria-expanded="true"] .caret { transform: rotate(180deg); color: var(--moss); }
.lanes { list-style: none; padding: 0; display: grid; gap: 1px; background: var(--d-rule); border-radius: 6px; margin: 0 16px 14px 30px; overflow: hidden; }
.lane { background: var(--d-sunk); padding: 10px 12px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.lane__n { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--d-dim-2); width: 22px; flex: 0 0 auto; }
.lane__t { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; font-size: 16px; min-width: 0; overflow-wrap: break-word; }
.lane--empty .lane__t { color: var(--d-dim-2); font-weight: 400; }
/* Female / Male after the team name, only in a heat that seats both (Event 2 from 03/10/2026). */
.lane__s { margin-left: 8px; font-size: 11px; font-weight: 400; letter-spacing: 0.08em; color: var(--d-dim-2); }
.lane__a { font-family: var(--serif); font-size: 14px; color: var(--d-dim); }
.lane.is-hit { background: var(--d-hit-solid); box-shadow: inset 3px 0 0 var(--moss); }
/* The judge on a lane (crew page only; the public payload never names one). Its own column on the
   right, the console's rule: aligned down the heat, nothing drawn on a lane nobody judges. The
   "Judge" eyebrow is CSS so the name is never read as a third athlete. */
.lane__j { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; font-size: 14px; color: var(--moss); white-space: nowrap; }
.lane__j::before { content: "Judge"; font-size: 11px; font-weight: 400; letter-spacing: 0.08em; color: var(--d-dim-2); }
.lane--empty .lane__j { color: var(--moss); }

/* Phone fit (Morgan, 02/10/2026): shorter event cards, one-line heat labels,
   every team row the same two-line shape (team name, then the first names). */
@media (max-width: 560px) {
  .brow__btn { min-height: 60px; }
  .brow__head { padding: 11px 14px 11px 22px; grid-template-columns: 72px minmax(0, 1fr) auto; }
  .brow__time { font-size: 20px; }
  .brow__l { font-size: 17px; }
  .brow--minor .brow__head { padding-left: 22px; }
  .heat__btn { grid-template-columns: 66px minmax(0, 1fr) 20px; padding-left: 20px; }
  .heat__t { font-size: 15px; }
  .heat__l { font-size: 12.5px; letter-spacing: 0.04em; }
  .lanes { margin: 0 12px 12px 12px; }
  .lane { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; row-gap: 2px; padding: 9px 10px; }
  .lane__t { font-size: 15px; }
  .lane__a { grid-column: 2; font-size: 13.5px; }
  .lane__j { grid-column: 2; margin-left: 0; font-size: 13.5px; white-space: normal; }
}
.empty { font-family: var(--serif); color: var(--d-dim); padding: 22px 4px; margin: 0; }
/* a heat list that is not up yet: the note takes the list's place, on the list's own margins */
.brow > .empty { border-top: 1px solid var(--d-rule); padding: 14px 16px; }

/* ---------- broadsheet ---------- */
.sheet {
  background: var(--d-sheet); border: 1px solid var(--d-rule); border-radius: var(--radius-card);
  overflow: hidden; margin-top: 14px;
}
.sheet__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--d-rule-hard) transparent; }
.sheet__scroll::-webkit-scrollbar { height: 8px; }
.sheet__scroll::-webkit-scrollbar-thumb { background: var(--d-rule-hard); border-radius: 99px; }
table.bs { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 100%; font-variant-numeric: tabular-nums; }
table.bs th, table.bs td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--d-rule-soft); white-space: nowrap; }
table.bs thead th {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; font-weight: 600;
  color: var(--d-dim); background: var(--d-sheet); padding-top: 14px; padding-bottom: 10px; vertical-align: bottom;
  border-bottom: 1px solid var(--d-rule-hard);
}
table.bs thead th.ev { border-left: 1px solid var(--d-rule-soft); }
table.bs thead th small { display: block; font-size: 10px; letter-spacing: 0.1em; color: var(--d-dim-2); font-weight: 500; margin-top: 3px; }
table.bs thead th.dim { color: var(--d-dim-2); }
table.bs tbody tr:last-child td { border-bottom: 0; }
td.c-rank { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: 0.01em; width: 1%; }
td.c-team { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; font-size: 15px; }
td.c-team small { display: block; font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--d-dim); margin-top: 2px; }
td.c-total { font-family: var(--display); font-weight: 600; font-size: 17px; border-left: 1px solid var(--d-rule-soft); }
td.c-place { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--d-dim); border-left: 1px solid var(--d-rule-soft); }
td.c-score { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: 0.03em; color: var(--d-text); }
td.c-score.is-cap { color: var(--amber); }
td.c-score.is-wd, td.c-place.is-wd { color: var(--d-dim-2); }
td.dim { color: var(--d-dim-2); border-left: 1px solid var(--d-rule-soft); }

/* sticky first two columns: the grid stays intact, the sheet slides under it */
table.bs th.stick-1, table.bs td.stick-1 { position: sticky; left: 0; z-index: 2; background: var(--d-sheet); }
/* the pinned edge is one grey hairline, no shadow (Morgan 16/09, option A) */
table.bs th.stick-2, table.bs td.stick-2 { position: sticky; z-index: 2; background: var(--d-sheet); border-right: 1px solid var(--d-rule); }
/* the sanctioned tint, first place only (Morgan 16/09), with a moss rank numeral */
tr.podium { background: var(--d-podium); }
/* the podium tint stays off the pinned pair so the team name never sits on green (Morgan 16/09) */
tr.podium td.stick-1, tr.podium td.stick-2 { background: var(--d-sheet); }
tr.podium td.c-rank { color: var(--moss); }
tr.is-hit { background: var(--d-hit); }
tr.is-hit td.stick-1, tr.is-hit td.stick-2 { background: var(--d-hit-solid); }
tr.is-hit td.stick-1 { box-shadow: inset 3px 0 0 var(--moss); }
tr.wd td.c-team { color: var(--d-dim); }

/* the console's own win badge: 22px moss square, cream numeral */
.win {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; background: var(--moss); color: var(--cream);
  font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 1;
}
.swipe {
  display: none; align-items: center; gap: 8px; padding: 9px 14px;
  border-bottom: 1px solid var(--d-rule); background: var(--d-sunk);
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 11px; color: var(--d-dim);
}
.swipe svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--moss); }
@media (max-width: 900px) { .swipe { display: flex; } }

.legend { margin-top: 22px; border-top: 1px solid var(--d-rule); padding-top: 16px; }
.legend dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 24px; margin: 10px 0 0; }
.legend div { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.legend dt { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; font-size: 14px; color: var(--moss); flex: 0 0 auto; }
.legend dd { margin: 0; font-family: var(--serif); font-size: 14px; color: var(--d-dim); min-width: 0; }

/* ---------- workouts ---------- */
.wcards { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.wcard {
  background: var(--d-sheet); border: 1px solid var(--d-rule); border-radius: var(--radius-card);
  padding: clamp(18px, 2.6vw, 30px); min-width: 0;
}
.wcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.wcard__labels { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.wcard__full {
  appearance: none; -webkit-appearance: none; cursor: pointer; flex: 0 0 auto; margin-left: auto;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--d-rule-hard); background: var(--cream); color: var(--moss);
  display: inline-flex; align-items: center; justify-content: center; padding: 0; align-self: center;
}
.wcard__full svg { width: 18px; height: 18px; }
.wcard__full:hover { background: var(--d-sheet-hi); }
.wcard__full:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
/* Full screen card: the same card markup in a dialog that fills the viewport, at bigger type. */
.wfull {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0;
  padding: clamp(18px, 4vw, 56px); border: 0; background: var(--paper); color: var(--d-text); overflow: auto; overscroll-behavior: contain;
}
.wfull::backdrop { background: rgba(19, 22, 20, 0.55); }
.wfull:not([open]) { display: none; }
.wfull__close {
  appearance: none; -webkit-appearance: none; cursor: pointer; position: fixed; top: clamp(12px, 2vw, 22px); right: clamp(12px, 2vw, 22px); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--d-rule-hard); background: var(--cream); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.wfull__close svg { width: 20px; height: 20px; }
.wfull__close:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.wfull__body { --fs-zoom: 1; max-width: 1100px; margin: 0 auto; padding-top: 52px; padding-bottom: 80px; }
.wfull .wcard { border: 0; background: transparent; padding: 0; }
.wfull .wcard__n { font-size: calc(clamp(13px, 1.4vw, 18px) * var(--fs-zoom)); }
.wfull .wcard__h { font-size: calc(clamp(34px, 6vw, 76px) * var(--fs-zoom)); margin-bottom: 20px; }
.wfull .wchip { font-size: calc(clamp(12px, 1.2vw, 15px) * var(--fs-zoom)); padding: 7px 14px; }
.wfull .wsub { font-size: calc(clamp(16px, 1.8vw, 22px) * var(--fs-zoom)); }
.wfull .moves { gap: 10px; }
.wfull .moves li { font-size: calc(clamp(20px, 2.8vw, 36px) * var(--fs-zoom)); }
.wfull .moves i { font-size: calc(clamp(15px, 1.8vw, 22px) * var(--fs-zoom)); }
.wfull .wnotes__l li { font-size: calc(clamp(16px, 1.7vw, 22px) * var(--fs-zoom)); }
.wfull .wnotes__k { font-size: calc(clamp(12px, 1.2vw, 15px) * var(--fs-zoom)); }
.wfull .locked p { font-size: calc(16px * var(--fs-zoom)); }
/* Division toggle inside the full screen view: the page's own segmented control, pinned top left. */
.wfull__seg { position: fixed; top: clamp(12px, 2vw, 22px); left: clamp(12px, 2vw, 22px); right: 72px; z-index: 2; width: auto; max-width: 420px; }
.wfull__seg button { min-height: 40px; }
/* Zoom pod: the coach console's fs-zoom pod. 44px collapsed in the bottom left; expands on hover or focus. */
.fszoom {
  position: fixed; left: clamp(12px, 2vw, 22px); bottom: clamp(12px, 2vw, 22px); z-index: 2;
  display: flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 6px; border-radius: var(--radius-pill);
  border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer;
}
.fszoom__icon { flex: 0 0 auto; width: 20px; height: 20px; margin: 0 6px; opacity: 0.55; }
.fszoom__body { display: flex; align-items: center; gap: 10px; width: 0; opacity: 0; overflow: hidden; transition: width 160ms ease, opacity 160ms ease; }
.fszoom__slider { width: 200px; flex: 0 0 auto; accent-color: var(--moss); }
.fszoom__pct { flex: 0 0 auto; width: 44px; text-align: right; font-family: var(--display); font-size: 12px; letter-spacing: 0.08em; color: var(--d-dim); }
.fszoom:hover, .fszoom:focus-within { background: var(--cream); border-color: var(--d-rule-hard); box-shadow: 0 1px 4px rgba(19, 22, 20, 0.18); }
.fszoom:hover .fszoom__icon, .fszoom:focus-within .fszoom__icon, .fszoom.is-open .fszoom__icon { opacity: 0.9; }
.fszoom:hover .fszoom__body, .fszoom:focus-within .fszoom__body, .fszoom.is-open .fszoom__body { width: 266px; margin-left: 4px; opacity: 1; }
.fszoom__pct { padding-right: 4px; }
.fszoom.is-open { background: var(--cream); border-color: var(--d-rule-hard); box-shadow: 0 1px 4px rgba(19, 22, 20, 0.18); }
/* Phones have no hover: the pod opens and closes on a tap of the magnifier. */
@media (hover: none) {
  .fszoom:hover:not(.is-open) .fszoom__body { width: 0; margin-left: 0; opacity: 0; }
  .fszoom:hover:not(.is-open) { background: transparent; border-color: transparent; box-shadow: none; }
  .fszoom__slider { width: min(200px, calc(100vw - 150px)); }
}
.wfull-open { overflow: hidden; }
/* The event label reads in the same display face as the format line, a step bigger (Morgan 05/09). */
.wcard__n { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 17px; font-weight: 600; color: var(--moss); margin: 0; line-height: 1.1; }
.wcard__h {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.015em; font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1; margin: 0 0 14px; overflow-wrap: break-word;
}
.wchips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.wchip {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; font-weight: 600;
  padding: 5px 11px; border-radius: var(--radius-pill); border: 1px solid var(--rule-field); color: var(--d-dim);
  background: var(--cream);
}
.wchip--score { color: var(--cream); background: var(--moss); border-color: var(--moss); }
.moves { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.moves li {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.035em; font-weight: 500;
  font-size: 20px; line-height: 1.2; padding-left: 18px; position: relative; overflow-wrap: break-word;
}
.moves li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 1px; background: var(--moss); }
.moves b { color: var(--moss); font-weight: 600; }
.moves i { font-style: normal; color: var(--d-dim-2); letter-spacing: 0.08em; font-size: 15px; }
/* Phone readability (Morgan 02/10, option B): movements in the serif reading face, sentence case,
   loads still bold moss in the display face, the bracket detail on its own small line under. */
@media (max-width: 560px) {
  .wcard__h { font-size: 24px; }
  .moves { gap: 10px; }
  .moves li { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 17px; line-height: 1.35; font-weight: 400; }
  .moves li::before { top: 0.75em; }
  .moves b { font-family: var(--display); font-size: 17px; letter-spacing: 0.03em; }
  .moves i { display: block; font-family: var(--display); text-transform: uppercase; font-size: 12px; letter-spacing: 0.1em; margin-top: 1px; color: var(--d-dim); }
}
/* the one public note under the movements (the `notes` column; Morgan 02/10) */
.wnote { font-family: var(--serif); font-size: 15px; line-height: 1.55; color: var(--d-dim); margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--moss); background: var(--d-sunk); border-radius: 0 6px 6px 0; }
.wfull .wnote { font-size: calc(clamp(16px, 1.7vw, 22px) * var(--fs-zoom)); }
.wnotes { margin: 0; padding: 16px 0 0; border-top: 1px solid var(--d-rule); }
.wnotes__k { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; font-weight: 600; color: var(--d-dim); margin: 0 0 10px; }
.wnotes__l { margin: 0; padding: 0 0 0 1.4em; display: flex; flex-direction: column; gap: 8px; }
.wnotes__l li { font-family: var(--serif); font-size: 15px; line-height: 1.55; color: var(--d-dim); padding-left: 4px; }
.wnotes__l li::marker { font-family: var(--display); font-weight: 600; color: var(--moss); }
.locked { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px dashed var(--d-rule-hard); border-radius: var(--radius-panel); background: var(--d-sunk); }
.locked svg { width: 26px; height: 26px; color: var(--moss); flex: 0 0 auto; margin-top: 1px; }
.locked p { margin: 0; font-family: var(--serif); font-size: 15px; color: var(--d-dim); }
.locked p b { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; color: var(--d-text); display: block; margin-bottom: 4px; font-weight: 600; }

/* ---------- kiosk ---------- */
body.kiosk .topbar, body.kiosk .controls, body.kiosk .legend, body.kiosk .foot { display: none; }
body.kiosk { font-size: 19px; }
body.kiosk .phead { padding-top: 26px; }
body.kiosk td.c-rank { font-size: 34px; }
body.kiosk td.c-team { font-size: 25px; }
body.kiosk td.c-total { font-size: 27px; }
body.kiosk td.c-place, body.kiosk td.c-score { font-size: 20px; }
body.kiosk table.bs thead th { font-size: 14px; }
body.kiosk table.bs th, body.kiosk table.bs td { padding: 15px 18px; }
body.kiosk .win { width: 30px; height: 30px; font-size: 19px; }
body.kiosk .kiosk-title { display: block; }
.kiosk-title { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* sticky column geometry: the two columns that must survive the slide */
table.bs th.stick-1, table.bs td.stick-1 { width: 54px; min-width: 54px; }
table.bs th.stick-2, table.bs td.stick-2 { left: 54px; }
table.bs td.c-team, table.bs th.stick-2 { white-space: normal; max-width: 168px; min-width: 130px; }
body.kiosk table.bs th.stick-1, body.kiosk table.bs td.stick-1 { width: 72px; min-width: 72px; }
body.kiosk table.bs th.stick-2, body.kiosk table.bs td.stick-2 { left: 72px; }
body.kiosk table.bs td.c-team, body.kiosk table.bs th.stick-2 { max-width: 260px; min-width: 190px; }
.kiosk-title { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; font-size: 34px; margin: 0 0 4px; }

/* narrow chrome: the nav drops to its own full width row and scrolls,
   so four caps links never push the bar past the viewport */
@media (max-width: 620px) {
  .bar__inner { gap: 6px; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 0 10px; letter-spacing: 0.1em; }
  .nav a::after { left: 10px; right: 10px; }
  .foot__in { gap: 6px; }
}
@media (max-width: 480px) {
  table.bs th.stick-1, table.bs td.stick-1 { width: 44px; min-width: 44px; }
  table.bs th.stick-2, table.bs td.stick-2 { left: 44px; }
  table.bs td.c-team, table.bs th.stick-2 { max-width: 132px; min-width: 112px; }
  table.bs th, table.bs td { padding: 10px 10px; }
  td.c-rank { font-size: 20px; }
  td.c-team { font-size: 15px; }
}

/* the bar grows a second row once the nav wraps, so the sticky offset grows too */
@media (max-width: 620px) { :root { --d-navh: 85px; } }
.wsub { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.09em; font-size: 14px; font-weight: 500; color: var(--d-dim); margin: -8px 0 18px; }

/* home is hero only now: the footer sits straight under it */
.hero--full + .foot { margin-top: 0; }

/* ---------- leaderboard dropdowns (Morgan 03/09: divisions and events as drop downs) ---------- */
.selects { display: flex; flex-wrap: wrap; gap: 10px 12px; min-width: 0; }
.select { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.select__l { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; font-weight: 600; color: var(--d-dim); }
.select select {
  appearance: none; -webkit-appearance: none;
  min-height: 44px; padding: 0 40px 0 14px; min-width: 200px; max-width: 100%;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 15px; font-weight: 600;
  color: var(--ink); background-color: var(--cream);
  border: 1px solid var(--rule-field); border-radius: var(--radius-input); cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%231A4D2E' stroke-width='2'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select select:hover { border-color: var(--moss); }
.select select:focus-visible { outline: 3px solid var(--moss-2); outline-offset: 2px; }
@media (max-width: 560px) {
  .selects { width: 100%; }
  .select { flex: 1 1 100%; }
  .select select { width: 100%; min-width: 0; }
  .search, .search input { width: 100%; }
}

/* ---------- footer: home only ---------- */
.foot { border-top: 1px solid var(--d-rule-hard); padding: 30px 0 44px; margin-top: 0; }
.foot__in { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.foot p { margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--d-dim); }

