/* STATWIRE Top 100 Greatest Players of All Time: shared styles for /mlb/top-100, /nfl/top-100, /nba/top-100, /nhl/top-100
   (Option #1: Composite GOAT Index + Live Weight Lab). Loaded after /assets/site.css; script /assets/top100-core.js with
   the league config /assets/<league>-top100.js. Every badge pair below reaches >= 5:1 contrast (WCAG formula, ratios in
   the comments). Light surfaces only for content: #0C0C11 is kept to card title bands, table header rows and small badges. */
html[data-league="mlb"] { --accent: #C2410C; --accent2: #9A3412; --t1-ink: #9A3412; }   /* 7.3:1 on #FFFFFF */
html[data-league="nfl"] { --accent: #15803D; --accent2: #166534; --t1-ink: #166534; }   /* 7.1:1 */
html[data-league="nba"] { --accent: #6D28D9; --accent2: #5B21B6; --t1-ink: #6D28D9; }   /* 7.1:1 */
html[data-league="nhl"] { --accent: #0284C7; --accent2: #0369A1; --t1-ink: #0369A1; }   /* 5.9:1 */
.card[data-tone="games"] { --tone: #A3E635; }
.card[data-tone="players"] { --tone: var(--accent); }
.card[data-tone="league"] { --tone: #84CC16; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- containment: nothing wider than its card (horizontal table scroll stays inside .tbl-wrap) ---------- */
#goatCard, #methodCard { grid-column: 1 / -1; max-width: 100%; overflow-x: clip; min-width: 0; }
#goatCard > *, #methodCard > * { min-width: 0; max-width: 100%; }
#goatCard > .section-h, #methodCard > .section-h { max-width: none; }
.section-h h2 .t1-short { display: none; }
@media (max-width: 600px) { .section-h h2 .t1-long { display: none; } .section-h h2 .t1-short { display: inline; } }
.t1-empty { margin: 8px 0; color: var(--muted); font-size: 13px; }

/* ---------- band badge (right side of the dark band) ---------- */
.section-h .t1-badge {
  margin-left: auto; flex: 0 0 auto; height: 26px; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  background: #181E18; border: 1px solid #3F5F1A; color: #D9F99D; /* 13.9:1 on #181E18 */
  font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .06em; white-space: nowrap;
}
@media (max-width: 540px) { .section-h .t1-badge { font-size: 9px; padding: 0 8px; } }

/* ---------- shared badges ---------- */
.t1-pos, .t1-st, .t1-dl {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: 18px; padding: 0 6px; border-radius: 5px; white-space: nowrap;
  font-family: var(--mono); font-size: 9.5px; font-weight: 800; letter-spacing: .04em; line-height: 1;
}
.t1-pos { min-width: 38px; color: #FFFFFF; background: #374151; }    /* 10.3:1 */
html[data-league="mlb"] .t1-pos[data-g="OF"] { background: #1D4ED8; }   /* 6.7:1 */
html[data-league="mlb"] .t1-pos[data-g="IF"] { background: #9A3412; }   /* 7.3:1 */
html[data-league="mlb"] .t1-pos[data-g="C"]  { background: #6D28D9; }   /* 7.1:1 */
html[data-league="mlb"] .t1-pos[data-g="P"]  { background: #0F766E; }   /* 5.5:1 */
html[data-league="mlb"] .t1-pos[data-g="TWP"] { background: #0C0C11; color: #FDBA74; }   /* 11.6:1 */
html[data-league="nfl"] .t1-pos[data-g="QB"] { background: #B91C1C; }   /* 6.5:1 */
html[data-league="nfl"] .t1-pos[data-g="WRTE"] { background: #1D4ED8; } /* 6.7:1 */
html[data-league="nfl"] .t1-pos[data-g="RB"] { background: #9A3412; }   /* 7.3:1 */
html[data-league="nfl"] .t1-pos[data-g="OL"] { background: #854D0E; }   /* 7.0:1 */
html[data-league="nfl"] .t1-pos[data-g="DEF"] { background: #166534; }  /* 7.1:1 */
html[data-league="nfl"] .t1-pos[data-g="ST"] { background: #374151; }
html[data-league="nba"] .t1-pos[data-g="G"] { background: #1D4ED8; }    /* 6.7:1 */
html[data-league="nba"] .t1-pos[data-g="F"] { background: #6D28D9; }    /* 7.1:1 */
html[data-league="nba"] .t1-pos[data-g="C"] { background: #9A3412; }    /* 7.3:1 */
html[data-league="nhl"] .t1-pos[data-g="C"] { background: #0369A1; }    /* 5.9:1 */
html[data-league="nhl"] .t1-pos[data-g="W"] { background: #1D4ED8; }    /* 6.7:1 */
html[data-league="nhl"] .t1-pos[data-g="D"] { background: #B91C1C; }    /* 6.5:1 */
html[data-league="nhl"] .t1-pos[data-g="G"] { background: #0F766E; }    /* 5.5:1 */
.t1-st { min-width: 64px; border: 1px solid transparent; }
.t1-st[data-s="hof"] { background: #FEF3C7; color: #78350F; border-color: #F59E0B; }   /* 8.4:1 */
.t1-st[data-s="active"] { background: #1A2E05; color: #BEF264; border-color: #1A2E05; } /* 13.1:1 */
.t1-st[data-s="retired"] { background: #E5E7EB; color: #1F2937; border-color: #D1D5DB; } /* 11.9:1 */
.t1-dl { min-width: 34px; font-variant-numeric: tabular-nums; }
.t1-dl[data-d="up"] { background: #DCFCE7; color: #14532D; }         /* 9.6:1 */
.t1-dl[data-d="down"] { background: #FEE2E2; color: #7F1D1D; }       /* 8.9:1 */
.t1-dl[data-d="new"] { background: #0C0C11; color: #A3E635; }        /* 12.6:1 */
.t1-dl[data-d="flat"] { background: #F1F5F9; color: #475569; }       /* 7.0:1 */
.t1-dl[data-d="na"] { background: transparent; color: #6B6B76; }     /* 5.0:1 on #FFFFFF */
.t1-dl[data-d="act"] { background: #0C0C11; color: #FFFFFF; }

/* ---------- Card 2: toolbar ---------- */
.t1-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 12px; }
.t1-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.t1-chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid #CFD9DF; background: #FFFFFF; color: #0C0C11;
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; transition: border-color .15s, background .15s; }
.t1-chip:hover { border-color: #84CC16; }
.t1-chip[aria-pressed="true"] { background: #0C0C11; border-color: #0C0C11; color: #A3E635; }
.t1-search { flex: 1 1 200px; max-width: 280px; min-width: 0; }
.t1-search input { box-sizing: border-box; width: 100%; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #CFD9DF; background: #F8FAF5;
  font: inherit; font-size: 13px; color: #0C0C11; }
.t1-search input:focus { outline: none; border-color: #84CC16; box-shadow: 0 0 0 2px rgba(132, 204, 22, .25); }
@media (max-width: 640px) { .t1-search { max-width: none; flex-basis: 100%; } }

/* ---------- Card 2: table + dossier ---------- */
.t1-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1440px) { .t1-body { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); } }
.tbl-wrap { max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: visible; border: 1.5px solid #CFD9DF; border-radius: 12px; -webkit-overflow-scrolling: touch; }
.t1-tbl { width: 100%; min-width: var(--t1-min, 940px); border-collapse: collapse; font-size: 13px; }
.t1-tbl thead th { position: sticky; top: 0; z-index: 1; background: #0C0C11; color: #E5E7EB; padding: 9px 8px; text-align: left;
  font-family: var(--mono); font-size: 9.5px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.t1-tbl thead th:first-child { border-top-left-radius: 10px; }
.t1-tbl thead th:last-child { border-top-right-radius: 10px; }
.t1-tbl td { padding: 8px; border-top: 1px solid #EEF1EA; vertical-align: middle; white-space: nowrap; }
.t1-tbl .c-n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.t1-tbl th.c-n { text-align: right; }
.t1-tbl tbody tr.t1-row { cursor: pointer; transition: background .12s; }
.t1-tbl tbody tr.t1-row:hover { background: #F6FAEF; }
.t1-tbl tbody tr.t1-row.is-sel { background: #ECF8D8; box-shadow: inset 3px 0 0 #84CC16; }
.t1-tbl tbody tr.t1-row:focus-visible { outline: 2px solid #84CC16; outline-offset: -2px; }
.t1-rk { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 7px;
  font-family: var(--mono); font-size: 12px; font-weight: 800; color: #0C0C11; }
.t1-rk.is-top { background: #0C0C11; color: #A3E635; }               /* 12.6:1 */
.t1-pl { display: flex; align-items: center; gap: 7px; min-width: 0; }
.t1-pl b { font-weight: 800; font-size: 13.5px; }
/* POS + STATUS: own columns so every badge lines up down all 100 rows */
.t1-tbl th.c-pos, .t1-tbl td.c-pos, .t1-tbl th.c-st, .t1-tbl td.c-st { text-align: center; vertical-align: middle; }
.t1-tbl td.c-pos { width: 46px; } .t1-tbl td.c-st { width: 76px; }
.t1-era { font-family: var(--mono); font-size: 10.5px; color: #4B5563; }
.t1-ms { font-family: var(--mono); font-size: 11px; color: #0C0C11; }
.t1-gi { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.t1-bar { position: relative; flex: 1 1 auto; height: 8px; border-radius: 999px; background: #EEF1EA; overflow: hidden; min-width: 70px; }
.t1-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #84CC16, var(--accent)); }
.t1-gi .num { font-family: var(--mono); font-size: 12px; font-weight: 800; min-width: 34px; text-align: right; }
.t1-muted { color: #6B6B76; }
@media (max-width: 719px) {
  .t1-tbl { min-width: 0; }
  .t1-tbl .c-era, .t1-tbl .c-hm, .t1-tbl .c-ms { display: none; }
  .t1-tbl td, .t1-tbl thead th { padding: 7px 4px; }
  .t1-tbl td:first-child, .t1-tbl thead th:first-child { padding-left: 6px; }
  .t1-pl { white-space: normal; }
  .t1-pl b { font-size: 13px; overflow-wrap: anywhere; }
  .t1-tbl td.c-pos { width: 30px; } .t1-tbl td.c-st { width: 50px; }
  .t1-tbl .c-pos .t1-pos { min-width: 28px; padding: 0 3px; font-size: 8.5px; }
  .t1-tbl .c-st .t1-st { min-width: 50px; padding: 0 3px; font-size: 8.5px; letter-spacing: .02em; }
  .t1-tbl td.c-pl { white-space: normal; }
  .t1-tbl .c-dl .t1-dl { min-width: 0; padding: 0 4px; font-size: 9px; }
  .t1-tbl td.c-pl { width: 100%; }
  .t1-gi { min-width: 0; gap: 5px; }
  .t1-bar { display: none; }
  .t1-tbl th.c-gi { text-align: right; }
  .t1-tbl th .t1-long { display: none; } .t1-tbl th .t1-short { display: inline; }
  .t1-gi .num { min-width: 28px; font-size: 11.5px; }
}

/* ---------- dossier (light panel with a slim dark title band at >= 1440px; a pop-up sheet below). No player photos. ---------- */
.t1-dossier { min-width: 0; }
@media (min-width: 1440px) { .t1-dossier { position: sticky; top: 84px; } }
@media (max-width: 1439px) { .t1-dossier { display: none; } }
.t1-dos { background: #FFFFFF; color: #111810; border: 1px solid #CEDBC0; border-radius: 14px; overflow: hidden; min-width: 0; }
.t1-dos-band { background: #0C0C11; color: #F4F4F5; padding: 8px 14px; font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.t1-dos-body { padding: 14px; }
.t1-dos-hd { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 12px; }
.t1-dos-rk { width: 48px; height: 48px; box-sizing: border-box; border-radius: 10px; background: #ECF8D8; border: 1px solid #BFE08E; color: #1A2E05; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 16px; font-weight: 800; }                                  /* 14.6:1, typographic rank badge (no player photos) */
.t1-dos-nm { font-size: 18px; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; color: #111810; }
.t1-dos-sub { margin-top: 4px; font-family: var(--mono); font-size: 10.5px; color: #465343; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }   /* 8.3:1 */
.t1-dos-score { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #ECF8D8; border: 1px solid #BFE08E; margin-bottom: 10px; }
.t1-dos-score span { font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #1A2E05; }   /* 14.6:1 */
.t1-dos-score b { font-family: var(--mono); font-size: 22px; color: #3F6212; }                   /* 6.9:1 on #ECF8D8 */
.t1-src { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.t1-src section { background: #F5F8F1; border: 1px solid #E3ECDA; border-radius: 10px; padding: 9px 10px; min-width: 0; }
.t1-src section.wide { grid-column: 1 / -1; }
.t1-src h4 { margin: 0 0 6px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: #465343; font-weight: 800; text-transform: uppercase; }   /* 7.9:1 */
.t1-kv { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 1.6; min-width: 0; }
.t1-kv span { color: #465343; white-space: nowrap; }
.t1-kv b { font-family: var(--mono); font-weight: 700; color: #111810; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* 17.4:1 */
.t1-aw { display: flex; flex-wrap: wrap; gap: 5px; }
.t1-aw span { padding: 2px 7px; border-radius: 6px; background: #FFFFFF; border: 1px solid #CEDBC0; color: #111810; font-family: var(--mono); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.t1-aw span b { color: #3F6212; }                                                               /* 7.6:1 */
.t1-dos a { color: var(--t1-ink); }
.t1-dos-aw { margin: 0 0 10px; }
@media (max-width: 420px) { .t1-src { grid-template-columns: minmax(0, 1fr); } }

.t1-tbl th .t1-short { display: none; }
@media (max-width: 360px) { .t1-tbl .c-h360 { display: none; } }   /* e.g. MLB career bWAR: still the first line of the dossier */
.t1-kv > span:only-child { white-space: normal; overflow-wrap: anywhere; }   /* note rows wrap inside their box */

/* ---------- pop-up dossier sheet below 1440px (site.css .scrim / .sheet: bottom sheet < 720px, centered modal 720-1439px) ---------- */
.t1-sheet[hidden] { display: none; }
.t1-sheet .sh-kind { font-weight: 800; color: var(--t1-ink); }
.t1-sheet .sh-head { position: sticky; top: 0; z-index: 1; margin: -6px -20px 10px; padding: 6px 20px 8px; background: var(--panel, #FFFFFF); }
.t1-sheet .t1-dos { border: 0; border-radius: 0; overflow: visible; background: transparent; }
.t1-sheet .t1-dos-body { padding: 0; }
.t1-sheet .t1-kv b { white-space: normal; overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .t1-sheet { width: min(600px, calc(100% - 48px)); }
  .t1-sheet .sh-head { margin: -10px -24px 12px; padding: 10px 24px 8px; }
}
@media (min-width: 1440px) { .t1-sheet, #t1Scrim { display: none; } }
