/* The NFL's Super Bowls (super-bowl.js): every game, and a game's page. Names link as everywhere
   (us-players.css, .usp-a); every number and name is shown whole: columns of numbers fit their
   widest value, names wrap rather than being cut. */

/* ─── A game ───────────────────────────────────────────── */

/* The previous and next games keep their arrows (XXXVIII ›); the middle wraps */
.sb-nav > a { white-space: nowrap; }
.sb-nav .uh-mid { min-width: 0; }

/* The head: when and where, then both teams a row each like a scoreboard, the winner first; the
   MVP and the crowd under them */
.sb-head { padding: 14px 18px 16px; }
.sb-when { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); }
.sb-sides { display: grid; }
.sb-side { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 0; }
.sb-side + .sb-side { border-top: 1px solid var(--line); }
.sb-logo { display: block; width: 44px; height: 44px; object-fit: contain; }
.sb-who { display: grid; gap: 3px; min-width: 0; }
.sb-tn { font: 700 27px/1.05 var(--display); letter-spacing: .01em; overflow-wrap: anywhere; }
.sb-tn a { color: inherit; text-decoration: none; }
.sb-tn a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sb-champ {
  margin-left: 4px;
  font: 700 10.5px/1 system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 4px;
  color: var(--win);
}
.sb-coach { font-size: 13.5px; }
.sb-lbl { margin-right: 3px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sb-sc { min-width: 2ch; font: 700 42px/1 var(--display); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--muted); }
.sb-won .sb-sc { color: var(--ink); }
.sb-facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.sb-facts > div { display: grid; gap: 3px; min-width: 0; }
.sb-facts dt { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sb-facts dd { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 15px; font-weight: 600; }
.sb-mvp .usp-muted { margin-left: 6px; font-size: 13px; }

/* The box score: the team pages' (app.js), in a card of its own */
.sb-box .box { border-top: 0; padding-top: 2px; }

/* Each team's roster and staff, beside each other on a wide page (.uh-sides), one over the other
   narrower: a quiet label over each of the box's groups (.usr-lbl), dense rows */
.sb-team .usp-hd h2 { display: flex; align-items: center; gap: 8px; }
.sb-hlogo { flex: none; width: 22px; height: 22px; object-fit: contain; }
.sb-staffcard { margin-top: 12px; }
.sb-t { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.35; }
.sb-t thead th {
  padding: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
}
.sb-t td { padding: 4px 6px; border-top: 1px solid var(--line); vertical-align: baseline; }
.sb-t :is(th, td):first-child { padding-left: 12px; }
.sb-t :is(th, td):last-child { padding-right: 12px; }
.sb-t tbody:first-of-type .usr-lbl th { border-top: 0; }
/* number and position: as wide as the widest, never cut */
.sb-t .sb-n { width: 1%; white-space: nowrap; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.sb-t .sb-pos { width: 1%; white-space: nowrap; }
.sb-t th.sb-n { text-align: right; }
.sb-t td.sb-nm a { font-weight: 600; }
.sb-d { font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.sb-practice-squad td, .sb-practice-squad td.sb-nm a { color: var(--muted); font-weight: 500; }
.sb-aside { margin-left: 4px; font-weight: 500; letter-spacing: .02em; text-transform: none; }
.sb-staff .sb-nm { width: 48%; }
.sb-staff td.sb-ti { color: var(--muted); }

@media (max-width: 600px) {
  .sb-head { padding: 12px 14px 14px; }
  .sb-side { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
  .sb-logo { width: 36px; height: 36px; }
  .sb-tn { font-size: 22px; }
  .sb-sc { font-size: 34px; }
  .sb-facts { gap: 10px 24px; }
  .sb-t :is(th, td):first-child { padding-left: 10px; }
  .sb-t :is(th, td):last-child { padding-right: 10px; }
  .sb-box .box { padding: 2px 12px 16px; }
}

/* ─── Every game ───────────────────────────────────────── */

/* A table on a wide page: the numeral, the season and day, the result, the MVP, the venue and city.
   A phone stacks each game: numeral and season, the result, the MVP, the place. */
.sb-ix { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.35; }
.sb-ix thead th {
  padding: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
}
.sb-ix td { padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.sb-ix :is(th, td):first-child { padding-left: 14px; }
.sb-ix :is(th, td):last-child { padding-right: 14px; }
.sb-ix .sb-ig, .sb-ix .sb-iy { width: 1%; white-space: nowrap; }
.sb-ig a { font: 600 19px/1 var(--display); color: var(--ink); text-decoration: none; }
.sb-ig a:hover, .sb-isc:hover { text-decoration: underline; text-underline-offset: 3px; }
.sb-iyy { font-weight: 600; font-variant-numeric: tabular-nums; }
.sb-idt { display: block; font-size: 12px; color: var(--muted); }
.sb-res { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; }
.sb-itm { display: inline-flex; align-items: center; gap: 6px; }
.sb-iw { font-weight: 600; }
.sb-ilogo { flex: none; width: 20px; height: 20px; object-fit: contain; }
.sb-isc { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: inherit; text-decoration: none; }
.sb-im .sb-lbl { display: none; }
.sb-ic { display: block; font-size: 12px; color: var(--muted); }

@media (max-width: 760px) {
  .sb-ix thead { display: none; }
  .sb-ix tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; padding: 11px 12px; border-top: 1px solid var(--line); }
  .sb-ix tbody tr:first-child { border-top: 0; }
  .sb-ix td, .sb-ix .sb-ig, .sb-ix .sb-iy { display: block; width: auto; padding: 0; border: 0; }
  .sb-ix :is(th, td):first-child { padding-left: 0; }
  .sb-ix :is(th, td):last-child { padding-right: 0; }
  .sb-ix td.sb-ir, .sb-ix td.sb-im, .sb-ix td.sb-iv { flex: 1 0 100%; }
  .sb-iy { color: var(--muted); }
  .sb-iyy { color: var(--ink); }
  .sb-idt { display: inline; margin-left: 4px; font-size: 13px; }
  .sb-im .sb-lbl { display: inline; }
  .sb-iv { font-size: 12.5px; color: var(--muted); }
  .sb-ic { display: inline; font-size: inherit; }
  .sb-ic::before { content: ", "; }
}
