/* Shared game research headers. Keep body statistics and rank colors intact. */
body.game-page {
  --game-column-header-size: clamp(11px, .65rem, 13px);
  --game-column-detail-size: clamp(9px, .52rem, 10px);
}

body.game-page table thead th,
body.game-page #gameDetails table thead th,
body.game-page #hockeyGoalies table thead th,
body.game-page #hockeyTeamStats table thead th,
body.game-page #hockeyLineups table thead th,
body.game-page .pitcher-history-layer .pitcher-history-table thead th,
body.game-page .pitcher-pitch-mix-pitch-table thead th {
  font-size: 11px !important;
  font-size: var(--game-column-header-size) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: .025em !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  opacity: 1;
}

/* History's optional ranked column titles keep their intentional tier colors. */
body.game-page table thead th:not(.pitcher-history-combined-header.global-tier-highlight),
body.game-page #gameDetails table thead th:not(.pitcher-history-combined-header.global-tier-highlight),
body.game-page #hockeyGoalies table thead th,
body.game-page #hockeyTeamStats table thead th,
body.game-page #hockeyLineups table thead th,
body.game-page .pitcher-history-table thead th.is-highlight-disabled,
html[data-highlight-display-mode="off"] body.game-page .pitcher-history-table thead th,
html[data-highlight-display-mode="off"] body.game-page .pitcher-history-table[data-history-neutral] thead th.pitcher-history-combined-header.global-tier-highlight {
  color: #f5f7f6 !important;
  -webkit-text-fill-color: currentColor !important;
}

body.game-page table thead th :is(button, span, abbr, a, strong):not(.matchup-bat-side),
body.game-page #hockeyGoalies table thead .g-expected-toggle {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

body.game-page table thead th button,
body.game-page #hockeyGoalies table thead .g-expected-toggle {
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

/* Sample counts and dates stay secondary, with enough contrast to read. */
body.game-page table thead th small,
body.game-page #hockeyGoalies .g-comparison thead small,
body.game-page #hockeyTeamStats .ht-table thead small {
  color: #c6d0c9 !important;
  font-size: 9px !important;
  font-size: var(--game-column-detail-size) !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}

/* Pitch scouting and lineup grids use labels rather than table headings. */
body.game-page .offense-pitch-rank-column-headings,
body.game-page .offense-module-content.offense-lineup-is-open > .offense-pitch-mix-dropdown .offense-pitch-rank-column-headings,
body.game-page .offense-lineup-shell-away.is-lineup-open .offense-pitch-rank-column-headings,
body.game-page .offense-lineup-shell-home.is-lineup-open .offense-pitch-rank-column-headings,
body.game-page #hockeyLineups .hl-column-head {
  color: #f5f7f6 !important;
  font-size: 11px !important;
  font-size: var(--game-column-header-size) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .025em !important;
  opacity: 1 !important;
}

body.game-page .offense-pitch-rank-column-headings > span {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  opacity: 1 !important;
}

/* The NHL Stat header now shares the single row with the sample groups. */
body.game-page #hockeyTeamStats .ht-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: var(--panel);
}

/* Keep the longer interactive goalie label readable in its narrow column. */
body.game-page #hockeyGoalies .g-comparison thead .g-expected-toggle {
  text-transform: none;
}
