/* race200.css — the Race for 200 board.
 *
 * Mirrors stats.css's .mpf__row and games.css's .gt__row grid idiom so the three
 * generated pages read as one site. Loaded as an external sheet because
 * vercel.json's CSP sets `style-src 'self'` — an inline <style> block renders
 * unstyled in production, which is the one failure a local static server hides.
 */

.r200 { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.r200__row {
  display: grid;
  grid-template-columns: 3rem 1fr 5rem 6.4rem 6rem 7rem;
  gap: 0.4rem 0.9rem;
  align-items: baseline;
  padding: 0.65rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 10px;
  font-size: 0.92rem;
}

/* The leader carries the accent, same as stats.css gives it to the four picks
   Max PF actually decides — the eye should land on the thing the page is about. */
.r200__row:not(.r200__row--head):first-of-type { border-left-color: var(--accent); }

/* A team that has actually cleared 200 is the headline, not a row. */
.r200__row--cleared { border-left-color: var(--accent); background: var(--panel-2); }

.r200__row--head {
  background: none;
  border: 0;
  padding-bottom: 0.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.r200__rank { font-variant-numeric: tabular-nums; color: var(--ink-dim); }
.r200__who { font-weight: 600; overflow-wrap: anywhere; }
.r200__score { font-variant-numeric: tabular-nums; font-weight: 600; }
.r200__gap,
.r200__week { font-variant-numeric: tabular-nums; color: var(--ink-dim); font-size: 0.85rem; }

/* Progress toward 200. Decorative — the number is already in .r200__score, so
   this carries aria-hidden on the element and needs no label. */
.r200__bar {
  display: block;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.r200__bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.r200__lede { font-size: 1.05rem; margin: 0 0 0.6rem; }
.r200__why,
.r200__live,
.r200__asof { color: var(--ink-dim); font-size: 0.9rem; margin: 0.4rem 0 0; }
.r200__live { color: var(--accent); }

.r200__warn {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--panel);
}

/* Narrow phones: drop the bar and let the numbers wrap rather than squeezing a
   six-column grid into a phone width. Same 46rem breakpoint stats.css uses. */
@media (max-width: 46rem) {
  .r200__row { grid-template-columns: 2.4rem 1fr 4.6rem; }
  .r200__gap { grid-column: 2 / 4; }
  .r200__week { grid-column: 1 / 2; }
  .r200__bar { display: none; }
}
