/* =====================================================================
   Extra pieces for the winter team sites (basketball, hockey, wrestling),
   loaded after each site's css/styles.css. Same colors, fonts and
   variables as the fall sites; this only styles what's new here.
   ===================================================================== */

/* home: the season opener on the scoreboard card */
.scoreboard.spot-board { box-shadow: 0 0 0 2px var(--white), 0 16px 40px rgba(5, 14, 40, .45); }
.sb-row .rec { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.spot-board .sb-row .nm { color: var(--ink); }
.sb-row .rec { flex: none; white-space: nowrap; }
.spot-board .sb-row .nm { min-width: 0; overflow-wrap: anywhere; line-height: 1.05; }

/* a tile whose value is a few words, not a number */
.tile .v .words { display: block; font-size: 26px; line-height: 1.08; padding: 6px 0 4px; white-space: normal; text-transform: uppercase; }
.tile .v.long:has(.words) { white-space: normal; padding: 0; }

/* team: coaching staff and the program write-up */
.staffer { padding: 16px 18px 18px; border-top: 4px solid var(--royal); }
.staffer .k { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.staffer h3 { font-size: 30px; line-height: 1.02; margin-top: 4px; }
.staffer p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.prose { padding: 22px 26px; }
.prose p { margin: 0 0 12px; max-width: 78ch; }
.prose p:last-child { margin-bottom: 0; }

/* past seasons: a row of season tabs, that season's honors, and its games */
.season-tabs { margin-bottom: 18px; }
.chip[aria-selected="true"] { background: var(--royal); border-color: var(--royal); color: var(--white); }
.season-honors { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 28px; margin: 18px 0 0; padding: 6px 22px; }
.season-honors[hidden] { display: none; }
.season-honors div { padding: 12px 0; }
.season-honors dt { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.season-honors dd { margin: 2px 0 0; font-weight: 600; }
.game.past { grid-template-columns: 70px 1fr auto; cursor: default; }
.season-photo { margin: 22px 0 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.season-photo[hidden] { display: none; }
.season-photo img { width: 100%; height: auto; }
.season-photo figcaption { padding: 10px 16px 12px; font-size: 14px; color: var(--muted); }

/* history: record-book cards with long numbers (1,024) and season labels (2025–26) */
.book li { grid-template-columns: minmax(52px, auto) 1fr; }
.records .yr { white-space: nowrap; }
.show-more[hidden] { display: none !important; }

/* history: individual state champions */
.champions td:first-child { width: 90px; }

/* media: link and news cards (same card the golf and cross country sites use) */
.news { display: flex; flex-direction: column; padding: 20px 22px 22px; text-decoration: none; color: inherit; border-top: 4px solid var(--royal); }
.news .when { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.news h3 { font-size: 25px; line-height: 1.05; margin: 8px 0 10px; }
.news p { margin: 0 0 14px; font-size: 15px; color: var(--muted); flex: 1; }
.news .go { font-size: 14px; font-weight: 700; color: var(--royal); }

@media (max-width: 720px) {
  .game.past { grid-template-columns: 60px 1fr; }
  .staffer h3 { font-size: 26px; }
  .prose { padding: 18px 18px; }
  .tile .v .words { font-size: 21px; }
}
.strip[hidden] { display: none; }

/* a placing at a competition (cheer): the place, with its score under it */
.result.placed { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--royal); font-size: 28px; }
.result.placed small { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.sc .res.pl { color: var(--royal); }
@media (max-width: 720px) { .result.placed { align-items: flex-start; font-size: 24px; } }

/* past games: a game story under the row */
.game.past details.recap { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.game.past details.recap summary { cursor: pointer; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--royal); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.game.past details.recap summary::-webkit-details-marker { display: none; }
.game.past details.recap summary::after { content: "+"; font-size: 15px; line-height: 1; }
.game.past details.recap[open] summary::after { content: "–"; }
.game.past details.recap p { margin: 6px 0 2px; max-width: 64ch; }
/* key players of a past season, and returning players on the Team chapter */
.season-keys[hidden] { display: none; }
.season-keys, .returning { margin: 18px 0 8px; }
.keys-h { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--navy); text-transform: uppercase; margin: 0 0 10px; }
/* past season: state meet results, athlete by athlete (indoor track) */
.season-results { margin-top: 26px; }
.season-results[hidden] { display: none; }
.season-results .keys-h { margin-top: 22px; }
.season-results .keys-h span { font-size: 15px; letter-spacing: .1em; color: var(--muted); margin-left: 6px; }
.season-results .sub { margin: -4px 0 10px; }
table.records.results td:last-child { min-width: 0; }
table.records.results td:nth-child(2) { white-space: normal; min-width: 160px; }
table.records.results .yr { font-size: 19px; }
table.records.results td.res-note { font-size: 14.5px; color: var(--muted); white-space: normal; min-width: 180px; }
@media (max-width: 720px) {
  /* phone: one stacked row per result, athlete and event on the left, place and mark on the right */
  table.records.results thead { display: none; }
  table.records.results tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 10px 14px; border-top: 1px solid var(--line); }
  table.records.results tr:first-child { border-top: 0; }
  table.records.results td { padding: 0; border: 0; background: none !important; white-space: normal; min-width: 0; }
  table.records.results td:nth-child(1) { grid-column: 1; grid-row: 2; font-size: 13.5px; color: var(--muted); }
  table.records.results td:nth-child(2) { grid-column: 1; grid-row: 1; font-weight: 600; }
  table.records.results td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; font-size: 17px; }
  table.records.results td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; font-size: 15px; color: var(--muted); }
  table.records.results tr:nth-child(even) { background: #f8f9fc; }
  table.records.results td.res-note { grid-column: 1 / -1; grid-row: 3; text-align: left; font-size: 13.5px; min-width: 0; }
  table.records.results td.res-note:empty { display: none; }
}
.card.kp { padding: 16px 18px; }
.card.kp h4 { margin: 0 0 6px; font-size: 18px; line-height: 1.2; }
.card.kp h4 span { font-weight: 600; font-size: 13px; color: var(--muted); margin-left: 4px; }
.card.kp p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.returning .fine { margin-top: 8px; }
/* a past game with no score on file: not struck through like a cancelled one, and the label wraps on phones */
.game.past.no-score .result.cancelled { white-space: normal; text-align: center; max-width: 9.5em; line-height: 1.25; }
@media (max-width: 640px) { .game.past .result.cancelled { font-size: 11px; padding: 5px 8px; max-width: 100%; white-space: normal; } }
/* long co-op names like Marblehead/Swampscott wrap instead of running off a phone screen */
.game .opp { overflow-wrap: anywhere; }

/* the season opener's countdown, on the scoreboard card at the top before the first game */
.sb-count { padding: 14px 18px 2px; border-top: 1px solid var(--line); }
.sb-count div { background: var(--navy); color: var(--white); min-width: 62px; }
.sb-count span { color: #b9c6e6; }

/* a strip of three tiles in two columns on a phone: the last one runs the full width instead of sitting alone */
@media (max-width: 980px) { .home-strip .strip > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* before the first game the strip is three plain tiles (the opener's countdown is on the scoreboard): even columns */
@media (min-width: 981px) { .home-strip .strip:not(:has(.next-game)) { grid-template-columns: repeat(3, 1fr); } }

/* Past Seasons now sits inside History: a little room above its game-by-game list */
.bygame-h { margin: 34px 0 14px; }

/* record books: "Show all" under an event's top five, or one event at a time picked from a row of buttons */
.book .rb-all { margin: 6px 0 8px; padding: 6px 0; border: 0; background: none; color: var(--royal); font: 700 13px var(--body); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.book-pick { margin-bottom: 14px; }
.book-one .book { max-width: 560px; }
.book li.rb-more[hidden] { display: none; }
@media (max-width: 720px) {
  /* one row of event buttons to swipe through, so the list itself shows on the first screen */
  .book-pick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .book-pick::-webkit-scrollbar { display: none; }
  .book-pick .chip { flex: none; }
}
/* text for screen readers only */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.book li b abbr { text-decoration: none; }
/* record books: the marks share one column, as wide as the widest mark in the list, so every name starts at the same place */
.book ol { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.book li { grid-column: 1 / -1; grid-template-columns: subgrid; }
.book li b { font-variant-numeric: tabular-nums; }
/* record books as cards (every event, top five): three across on a computer, two on a tablet, one on a phone,
   so each name and its year and meet have room to read */
#record-book .grid.g4 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { #record-book .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { #record-book .grid.g4 { grid-template-columns: 1fr; } }

/* action photos: the fall sports' 4:3 frame (from styles.css), and one big photo per row on phones (the designer panel's pick, Dec. 1, 2026) */
@media (max-width: 720px) { #photos.g4 { grid-template-columns: 1fr; } }
