/* ==================================================================
   Hot Boards — Special Teams sheet
   One 8.5x11 (letter portrait) page PER TEAM: every specialist as a
   card with a LAST WK / SEASON / CAREER stat matrix, a hero metric, a
   kicker FG-by-distance strip, and one full-width notes block.
   Team-colored via inline vars set in specialteams.js:
     --st-p (primary) · --st-num (jersey number on white).
   Self-contained so the print window can reuse this stylesheet.
   ================================================================== */

/* ---- on-screen host ---- */
#specialteamsView .st-pad { padding: 18px 16px 40px; }
.st-toolbar {
  display:flex; align-items:center; gap:12px; max-width:1180px; margin:0 auto 16px;
  background:var(--surface-card,#181B21); border:1px solid var(--border-strong,rgba(255,255,255,.12));
  border-radius:10px; padding:10px 14px;
}
.st-toolbar-l { display:flex; align-items:center; gap:9px; min-width:0; }
.st-toolbar-ttl { font-family:var(--font-display,"Oswald",sans-serif); font-size:15px; font-weight:700;
  letter-spacing:.02em; color:var(--text-strong,#FBFAF6); white-space:nowrap; }
.st-toolbar-sub { font-size:12px; color:var(--text-muted,#9A958A); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Print button now reuses print-offense.css's .pb-ctrl-btn/.pb-print-btn classes
   directly (same component as My Hotboard's toolbar) -- see specialteams.js _toolbar(). */
.st-blank { max-width:1180px; margin:40px auto; text-align:center; color:var(--text-muted,#9A958A); font-size:14px; }
.st-pages { display:flex; flex-direction:column; align-items:center; gap:26px; }

/* Print fidelity: team color IS the sheet's identity — force Chrome to keep
   every background (header band, jersey-number blocks, FG-distance strip, hero
   wash) even when the print dialog's "Background graphics" is unchecked.
   Same convention as print-offense.css / styles.css .pp-* rules. */
.stp-page, .stp-page * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* ---- the printed letter page (8.5x11 @ ~96dpi: 816 x 1056) ---- */
.stp-page {
  width:816px; max-width:100%; min-height:1056px; background:#fff; color:#15171b;
  padding:30px 32px 22px; box-shadow:0 8px 30px rgba(0,0,0,.4);
  box-sizing:border-box; overflow:hidden;
  font-family:"Oswald","Helvetica Neue",Arial,sans-serif;
}
.stp-inner { transform-origin:top center; }   /* scaled by the one-page-fit pass */

/* ---- BOTH teams on ONE sheet: home = top half, away = bottom half ---- */
/* FIXED letter height (not just min-height) so on-screen == print: each half is
   exactly 50% and _fitPages scales a too-tall team's body to fit its half. */
.stp-split { height:1056px; min-height:0; padding:0; display:flex; flex-direction:column; }
.stp-half { flex:1 1 50%; min-height:0; box-sizing:border-box; overflow:hidden;
  display:flex; flex-direction:column; padding:24px 30px 14px; }
.stp-half + .stp-half { border-top:2px dashed #d9cfc0; }
.stp-half > .stp-head { flex:0 0 auto; }
.stp-half > .stp-foot { flex:0 0 auto; margin-top:6px; }
/* the body fills the half; the K|P and Returners rows grow, LS/backups stay put */
.stp-body { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; gap:10px; }
.stp-body > .stp-row { margin-bottom:0; }
/* grow to fill leftover space, but NEVER shrink a card below its own content
   (basis auto) — if the team is too tall for the half, _fitPages scales the whole
   body down uniformly instead of clipping individual cards. */
.stp-row-kp  { flex:2 0 auto; }
.stp-row-pr  { flex:3 0 auto; }
.stp-row-ls, .stp-row-bk { flex:0 0 auto; }
.stp-spacer { flex:1; }
/* Row 1 = Kicker + the primary Kick Returner, EQUAL width columns (flex-basis:0,
   same ratio) so neither dominates. Row 2 = Punter + everyone else (a standalone
   primary Punt Returner when different from the KR, plus backups) -- the punter
   and any full returner card share the emphasis, backups (.stc-mini) sit narrower. */
.stp-row-kp .stc-k, .stp-row-kp .stc-ret { flex:1 1 0; }
.stp-row-pr .stc-p, .stp-row-pr .stc-ret { flex:1.4 1 0; }
.stp-row-pr .stc-mini { flex:0.8 1 0; }

/* cards stretch to their (now taller) row; notes expand to consume the slack so
   the kicker + returner cards visibly fill the half */
.stp-row-kp .stc, .stp-row-pr .stc { min-height:0; }
.stp-row-kp .stc-note, .stp-row-pr .stc-note { flex:1 1 auto; display:flex; flex-direction:column; }
.stp-row-kp .stc-note-box, .stp-row-pr .stc-note-box { flex:1 1 auto; }
/* On the split sheet the notes must NOT force their 54px floor (two teams share
   one page) — let them collapse and flex-fill only the real leftover space, so
   the stat content is never clipped. */
.stp-split .stc-note-box { min-height:0; }
.stp-split .stc-mini .stc-note-box { min-height:16px; }

.stp-head { display:flex; align-items:center; gap:12px; overflow:hidden;
  background:var(--st-p,#003594); border-radius:5px; padding:7px 14px; margin:0 0 12px; }
.stp-head-team { flex:0 0 auto; font-size:17px; font-weight:700; letter-spacing:.05em; color:#fff; text-transform:uppercase; }
.stp-head-meta { flex:0 0 auto; font-size:10px; font-weight:600; letter-spacing:.10em; color:rgba(255,255,255,.72); text-transform:uppercase; white-space:nowrap; }
/* Long snapper: the SAME .stc-num + .stc-id language every other specialist
   card's top uses (number plate + stacked name/bio), scaled to the header's
   height, on the SAME row as the team name, pushed flush to the right edge
   (margin-left:auto). Capped to roughly half the header so it can never crowd
   the team name out; the bio (and, worst case, the name) ellipsize first. */
.stp-head-ls-row { display:flex; align-items:center; min-width:0; max-width:56%; margin-left:auto;
  background:rgba(0,0,0,.18); border-radius:5px; overflow:hidden; }
.stp-head-ls-numbox { flex:0 0 auto; width:38px; height:38px; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  background:var(--st-numbg,#fff); color:var(--st-numfg,#0E1722); border-right:2px solid var(--st-numbd,#0E1722); }
.stp-head-ls-numbox b { font-family:"Oswald",sans-serif; font-weight:700; font-size:18px; line-height:1; }
.stp-head-ls-numbox span { font-size:7px; font-weight:700; letter-spacing:.1em; opacity:.85; margin-top:1px; }
.stp-head-ls-id { min-width:0; padding:2px 10px; }
.stp-head-ls-name { font-family:"Oswald",sans-serif; font-weight:700; font-size:13.5px; color:#fff;
  letter-spacing:.02em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.stp-head-ls-bio { font-size:10px; color:rgba(255,255,255,.75); letter-spacing:.02em; margin-top:1px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.stp-row { display:flex; gap:10px; margin-bottom:10px; align-items:stretch; }
.stp-row > * { min-width:0; }

/* ---- a specialist card ---- */
.stc { flex:1; border:1.5px solid #9a9a9a; border-radius:5px; overflow:hidden;
  display:flex; flex-direction:column; background:#fff; }
.stc-top { display:flex; align-items:stretch; border-bottom:1px solid #ececec; }
.stc-num { min-width:72px; background:var(--st-numbg,var(--st-p,#003594)); color:var(--st-numfg,#fff); border-right:3px solid var(--st-numbd,#0E1722);
  display:flex; flex-direction:column; align-items:center; justify-content:center; }
.stc-num b { font-size:48px; font-weight:700; line-height:.86; font-family:"Oswald",sans-serif; }
.stc-num span { font-size:11px; font-weight:700; letter-spacing:.12em; color:inherit; opacity:.72; margin-top:2px; }
.stc-id { flex:1; min-width:0; padding:5px 10px; display:flex; flex-direction:column; justify-content:center; }
.stc-nm { display:flex; align-items:baseline; gap:7px; min-width:0; white-space:nowrap; }
.stc-first { font-size:12px; font-weight:500; color:#444; text-transform:uppercase; letter-spacing:.5px; flex:0 0 auto; }
.stc-last { font-size:24px; font-weight:700; color:#000; text-transform:uppercase; line-height:1;
  min-width:0; overflow:hidden; text-overflow:ellipsis; }
/* bio + honors share one row: bio flexes (ellipsis), badges pin to the right so
   the name line above never wraps regardless of badge count */
.stc-biorow { display:flex; align-items:center; gap:6px; margin-top:2px; }
.stc-bio { font-size:10.5px; font-weight:400; color:#555; flex:1 1 auto; min-width:0;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.stc-badges { display:inline-flex; gap:3px; flex:0 0 auto; }
.stc-bdg { font-size:8.5px; font-weight:600; padding:1px 4px; border-radius:2px; letter-spacing:.2px; text-transform:uppercase; }
.stc-bdg.cap { background:#e7b84b; color:#3a2a05; }
.stc-bdg.pb  { background:#d0e0ff; color:#1a50a0; }
.stc-bdg.ap  { background:#e4d0ff; color:#5020a0; }
.stc-hero { padding:4px 12px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:#f6f7fa; border-left:1px solid #ececec; min-width:74px; }
.stc-hero b { font-size:28px; font-weight:700; color:var(--st-p,#003594); line-height:.9; font-family:"JetBrains Mono",monospace; }
.stc-hero span { font-size:8.5px; font-weight:600; letter-spacing:.06em; color:#8a8f98; text-transform:uppercase; margin-top:3px; text-align:center; }

/* ---- stat matrix (metric × LAST WK · SEASON · CAREER) ---- */
.stc-stats { padding:5px 10px 2px; }
.stmx { width:100%; border-collapse:collapse; font-family:"JetBrains Mono",monospace; }
.stmx th { font-family:"Oswald",sans-serif; font-size:9px; font-weight:600; letter-spacing:.05em;
  color:#9a8a55; text-transform:uppercase; text-align:right; padding:0 0 3px; }
.stmx th:first-child { text-align:left; }
.stmx td { font-size:13px; font-weight:500; color:#222; text-align:right; padding:2px 0;
  border-top:1px solid #f1f1f1; font-variant-numeric:tabular-nums; }
.stmx td:first-child { font-family:"Oswald",sans-serif; font-size:10px; font-weight:600; color:#666;
  text-align:left; letter-spacing:.03em; text-transform:uppercase; }
.stmx .c-lw  { color:#106a3a; }
.stmx .c-ssn { color:var(--st-p,#003594); font-weight:700; }
.stmx .c-car { color:#999; }
.stmx thead .c-lw { color:#106a3a; } .stmx thead .c-ssn { color:var(--st-p,#003594); }
.stmx .na { color:#cfcdc6; font-style:italic; }
.stc-careerline { font-family:"JetBrains Mono",monospace; font-size:11px; color:#555;
  padding:3px 10px 0; }
.stc-careerline .lbl { font-family:"Oswald",sans-serif; font-weight:600; color:#9a8a55; font-size:9px;
  letter-spacing:.04em; margin-right:4px; text-transform:uppercase; }
.stc-nostat { font-size:12px; color:#9a988f; font-style:italic; padding:8px 10px; }

/* ---- FG-by-distance strip (kicker) ---- */
.stc-rng { padding:2px 10px 6px; }
.stc-rng-l { font-size:9px; font-weight:600; letter-spacing:.07em; color:#9a8a55; text-transform:uppercase; margin-bottom:3px; }
.stc-bks { display:flex; gap:4px; }
.stc-bk { flex:1; text-align:center; border-radius:3px; padding:3px 1px; border:1px solid #e2e0d8; background:#f6f5f1; }
.stc-bk.perfect { background:#e7f6ec; border-color:#bfe6cd; }
.stc-bk.miss { background:#fdf2e2; border-color:#f1d9ad; }
.stc-bk.zero { opacity:.5; }
.stc-bk small { display:block; font-size:8px; font-weight:600; color:#7a7a7a; font-family:"Oswald",sans-serif; }
.stc-bk b { font-size:13px; font-weight:700; font-family:"JetBrains Mono",monospace; color:#555; }
.stc-bk.perfect b { color:#106a3a; }
.stc-bk.miss b { color:#b9711a; }

/* ---- notes (single full-width block; ruled lines for handwriting) ---- */
.stc-note { border-top:1px dashed #cfcfcf; padding:3px 10px 6px; margin-top:auto; }
.stc-note-l { font-size:8.5px; font-weight:700; letter-spacing:.12em; color:#a8a59b; text-transform:uppercase; margin-bottom:2px; }
.stc-note-box {
  min-height:var(--st-noteh,54px);
  background:repeating-linear-gradient(transparent, transparent 20px, #eaeaea 20px, #eaeaea 21px);
  font-family:"Archivo","Oswald",sans-serif; font-size:13px; line-height:21px; color:#1a1a1a;
  outline:none; white-space:pre-wrap; word-break:break-word;
}
/* editability cue: empty note boxes show a faint prompt on screen (never prints) */
.stc-note-box:empty::before { content:"Add notes\2026"; color:#c0bcae; font-style:italic; font-weight:400;
  font-family:"Archivo","Oswald",sans-serif; pointer-events:none; }
.stc-note-box:focus { background:repeating-linear-gradient(rgba(200,167,102,.05), rgba(200,167,102,.05) 20px, #e6dcc4 20px, #e6dcc4 21px); }
.stc-note-box:focus:empty::before { color:#d4cfbf; }

/* ---- long-snapper slim strip — just an identifier, one line ---- */
.stc-ls { display:flex; flex-direction:row; align-items:stretch; }
.stc-ls-num { flex:0 0 auto; min-width:42px; background:#869397; color:#fff; border-right:3px solid #5b656b;
  display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1; padding:0 6px; }
.stc-ls-num b { font-size:19px; font-weight:600; font-family:"Oswald",sans-serif; }
.stc-ls-num span { font-size:8px; font-weight:600; letter-spacing:.1em; color:rgba(255,255,255,.8); margin-top:1px; }
.stc-ls-id { flex:0 1 auto; display:flex; align-items:baseline; gap:8px; padding:0 12px;
  min-width:0; white-space:nowrap; overflow:hidden; }
.stc-ls-nm { font-size:16px; font-weight:700; color:#000; text-transform:uppercase; flex:0 0 auto; }
.stc-ls-nm .lf { font-size:11px; font-weight:500; color:#444; }
.stc-ls-bio { font-size:10.5px; color:#666; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.stc-ls-note { flex:1 1 auto; align-self:stretch; display:flex; align-items:center; gap:8px;
  border-left:1px dashed #cfcfcf; padding:4px 10px; min-width:120px; }
.stc-ls-note .stc-note-l { margin:0; flex:0 0 auto; }
.stc-ls-note .stc-note-box { flex:1 1 auto; min-height:20px; }

/* ---- compact backup-returner card ---- */
.stc-mini .stc-num { min-width:54px; }
.stc-mini .stc-num b { font-size:30px; font-weight:700; }
.stc-mini .stc-last { font-size:17px; }
.stc-mini .stc-line { font-family:"JetBrains Mono",monospace; font-size:11px; color:#444; }
.stc-mini .stc-note-box { --st-noteh:24px; min-height:24px; }

/* DEGRADED-BOARD MARKING. Same amber language and the same words as the print
   board's .pb-sb-prov (print-offense.css) and the spotter sheet's .sp-prov.
   Amber, not red, so it reads as "check this" rather than as an injury
   designation, and it must survive the print stylesheet -- the original defect
   was that its on-screen predecessor did not. */
.stp-prov {
  margin:0 0 7px; padding:3px 7px;
  border:1px solid #b8860b; border-left:3px solid #b8860b; border-radius:3px;
  background:#fff8e1; color:#6b4a00;
  font:800 8.5px/1.3 Inter, system-ui, sans-serif;
  letter-spacing:.05em; text-transform:uppercase;
}
@media print { .stp-prov { -webkit-print-color-adjust:exact; print-color-adjust:exact; } }

.stp-foot { text-align:center; font-size:9px; font-weight:600; letter-spacing:.12em;
  text-transform:uppercase; color:#a8acb3; margin-top:8px; }
.stp-foot b { color:var(--st-p,#003594); }

@media (max-width:880px){ .stp-page{ padding:18px 16px; } .stp-row{ gap:8px; } }
@media print { .stc-note-box { background-position:0 0; } .stc-note-box:empty::before { content:""; } }

/* ---- Split sheet: tighten the stat blocks so notes get more room ----
   (notes flex-fill, so shrinking stats hands that space straight to the notes) */
.stp-split .stc-stats { padding:4px 10px 1px; }
.stp-split .stmx th { font-size:8px; padding-bottom:2px; }
.stp-split .stmx td { font-size:11px; padding:1px 0; }
.stp-split .stmx td:first-child { font-size:9px; }
.stp-split .stc-rng { padding:1px 10px 3px; }
.stp-split .stc-rng-l { margin-bottom:2px; }
.stp-split .stc-bk { padding:2px 1px; }
.stp-split .stc-bk b { font-size:11px; }
.stp-split .stc-bk small { font-size:7px; }
.stp-split .stc-careerline { font-size:10px; padding-top:2px; }
.stp-split .stc-line { font-size:10px; }
