/* ════════════════════════════════════════════════════════════════════
   BOARD — the odds screen's page vocabulary, for the other data pages

   The odds screen (odds_tables.css) set the look the rest of the data pages
   are measured against: a left-aligned title over a hairline, instrument
   panels (a tinted caption bar naming the thing, the thing flush beneath
   it), selection marked by a blue rule along the foot, dense bordered
   tables with a shaded label column, numbers in Plex Mono. This file is
   that vocabulary without the odds-specific parts, so the lineup, player
   and team pages can speak it too without loading the whole odds sheet.

   The surface tokens live in main.css (:root), shared with odds_tables.css.
   ════════════════════════════════════════════════════════════════════ */

/* ── Page frame ─────────────────────────────────────────────────────── */
.board-page {
  --twill: #586572;
  max-width: var(--page-max-wide);
  margin: 0 auto;
  padding: 0 20px 28px;
  font-family: var(--font-body);
}

/* ── Page head: title, lede, a quiet meta line over the hairline ───── */
.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 18px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--board-rule);
}
.board-head h1 {
  margin: 0 0 4px;
  color: var(--board);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.005em;
}
.board-head__lede {
  max-width: 75ch;
  margin: 0;
  color: var(--twill);
  font-size: 13.5px;
  line-height: 1.5;
}
.board-head__meta {
  margin: 0;
  color: var(--twill);
  font-family: var(--font-data);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.board-head__meta strong { color: var(--ink-strong); font-weight: 600; }

/* ── Instrument panel ───────────────────────────────────────────────── */
.board-panel {
  margin: 0 0 16px;
  border: 1px solid var(--board-rule);
  background: var(--sheet);
}
.board-panel__bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  min-height: 30px;
  padding: 4px 12px;
  border-bottom: 1px solid var(--board-rule);
  background: var(--board-tint);
  color: var(--twill);
  font-size: 11.5px;
}
.board-panel__title {
  margin: 0 auto 0 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ── Team chooser: a tile per team, the chosen one white with a blue
   rule along its foot — the book strip's selection, as links. ─────── */
.board-team-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  background: var(--board-tint);
}
.board-team-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 6px;
  margin: 0 -1px -1px 0;
  border-right: 1px solid var(--board-rule);
  border-bottom: 1px solid var(--board-rule);
  background: var(--board-tint);
  box-shadow: inset 0 -3px transparent;
  color: var(--ink);
  font: 600 12.5px var(--font-body);
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .12s ease;
}
.board-team-strip img { width: 22px; height: 22px; object-fit: contain; }
.board-team-strip a:hover { background: var(--board-tint-2); color: var(--ink-strong); text-decoration: none; }
.board-team-strip a[aria-current] {
  background: var(--sheet);
  box-shadow: inset 0 -3px var(--blue-line);
  color: var(--board);
}
.board-team-strip a:focus-visible { outline: 2px solid var(--blue-line); outline-offset: -3px; position: relative; z-index: 1; }
/* The strip's own frame is the panel's; the tiles' outer rules tuck under it. */
.board-panel > .board-team-strip { overflow: hidden; }

@media (max-width: 640px) {
  .board-page { padding-inline: 12px; }
  .board-head { padding-top: 12px; }
  .board-head h1 { font-size: 24px; }
  .board-head__meta { white-space: normal; }
  .board-team-strip { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
  .board-team-strip a { height: 40px; font-size: 12px; }
  .board-team-strip img { width: 18px; height: 18px; }
}
