/* Public scores page (/scores/, spec 2026-10-19). Tokens only (cradl.css).
   A plain scoreboard: away over home, the score in mono on the right edge,
   status beside it. No mint here (One Signal Rule): the live mark is the red
   live fill, halts are caution yellow, finals neutral ink. */

.sc-shell { max-width: 760px; margin: 0 auto; }
.sc-head { margin-bottom: .75rem; }
.sc-sub { margin: .4rem 0 0; color: var(--text-2); font-size: var(--text-sm); }

.sc-note { margin: 0 0 .25rem; color: var(--text-2); font-size: var(--text-sm); }
.sc-day {
  margin: 0; color: var(--text-1);
  font-family: var(--font-sans); font-size: var(--text-md); font-weight: 700;
  letter-spacing: 0; text-transform: none;
}
.sc-count { margin: .5rem 0 0; }

/* Previous / next game day: plain links crawlers can follow. */
.sc-daynav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin: .75rem 0 0; }
.sc-daynav a {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .85rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface-input); color: var(--text-1);
  font-size: var(--text-sm); font-weight: 600; text-decoration: none;
}
.sc-daynav a:hover { border-color: var(--border-strong); color: var(--text-1); }
.sc-daynav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-daynav-next { margin-left: auto; }
/* Off-season panel, then the next games: the heading needs air above it. */
.sc-day-after-panel { margin-top: 1.75rem; }

/* Groups: Live, Delayed or postponed, Upcoming, Final. */
.sc-group { margin-top: 1.5rem; }
.sc-group-label {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; padding: 0 .25rem;
  color: var(--text-1); font-family: var(--font-sans); font-size: .85rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.sc-group-count { color: var(--text-3); font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: 0; }
.sc-live-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--live); }
.sc-list { display: flex; flex-direction: column; gap: .6rem; margin: 0; padding: 0; list-style: none; }

/* One game. */
.sc-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "teams status" "dest dest";
  column-gap: .75rem; padding: .35rem .9rem;
}
.sc-teams { grid-area: teams; min-width: 0; }
.sc-team { display: flex; align-items: center; gap: .5rem; min-height: 44px; min-width: 0; }
.sc-at {
  flex: 0 0 1.4rem; text-align: center; color: var(--text-3);
  font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: 600;
}
.sc-logo { width: 24px; height: 24px; flex: 0 0 24px; font-size: var(--text-2xs); }
.sc-name-cell { display: flex; align-items: center; gap: .35rem; flex: 1 1 auto; min-width: 0; }
.sc-rank { color: var(--text-3); font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: 700; }
.sc-name {
  display: flex; align-items: center; min-height: 44px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-1); font-size: var(--text-base); font-weight: 600; text-decoration: none;
}
a.sc-name:hover { color: var(--text-1); text-decoration: underline; text-underline-offset: 2px; }
a.sc-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-score {
  min-width: 2.2ch; margin-left: auto; text-align: right; color: var(--text-1);
  font-family: var(--font-mono); font-size: var(--text-lg); font-weight: 700; font-variant-numeric: tabular-nums;
}
/* Final: the losing score steps down a tier; the numbers still say who won. */
.sc-row[data-winner="home"] .sc-team--away .sc-score,
.sc-row[data-winner="away"] .sc-team--home .sc-score { color: var(--text-3); }

.sc-status {
  grid-area: status; display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  gap: .3rem; min-width: 5.5rem; text-align: right;
}
.sc-badge {
  display: none; padding: .15rem .45rem; border-radius: var(--radius-xs);
  background: var(--live); color: var(--on-accent);
  font-size: var(--text-2xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.sc-row[data-status="live"] .sc-badge { display: inline-block; }
.sc-detail { color: var(--text-2); font-family: var(--font-mono); font-size: var(--text-xs); white-space: nowrap; }
.sc-detail:empty { display: none; }
.sc-row[data-status="halted"] .sc-detail,
.sc-row[data-status="final"] .sc-detail {
  font-family: var(--font-sans); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.sc-row[data-status="halted"] .sc-detail { color: var(--warning); }
.sc-row[data-status="final"] .sc-detail { color: var(--text-1); }
.sc-tag { color: var(--text-3); font-size: var(--text-2xs); white-space: nowrap; }

.sc-dest {
  grid-area: dest; justify-self: start; display: inline-flex; align-items: center; gap: .3rem;
  min-height: 44px; color: var(--text-1); font-size: var(--text-sm); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.sc-dest:hover { color: var(--text-1); text-decoration-color: var(--text-1); }
.sc-dest:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Off-season and empty states. */
.sc-panel { margin-top: 1rem; padding: 1rem 1.1rem; }
.sc-panel-lead { margin: 0; color: var(--text-1); font-size: var(--text-md); font-weight: 600; }
.sc-panel-text { margin: .4rem 0 0; color: var(--text-2); font-size: var(--text-sm); }
.sc-champ { display: flex; flex-direction: column; gap: .2rem; margin: 1rem 0 0; color: var(--text-1); }
.sc-champ a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-1); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sc-champ-date { color: var(--text-3); font-size: var(--text-xs); }
.sc-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.sc-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-1); text-decoration: underline; text-underline-offset: 2px; }
.sc-links a:focus-visible, .sc-champ a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 576px) {
  .sc-row { padding: .3rem .7rem; column-gap: .5rem; }
  .sc-status { min-width: 4.75rem; }
  .sc-name { font-size: var(--text-sm); }
  .sc-score { font-size: var(--text-md); }
}
