/* salaries_hub.css — /salaries. Builds on stats_hub.css. */

.sal-updated { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 4px; }
.sal-note { color: var(--muted); font-size: 13px; margin-top: 8px; }
.muted { color: var(--muted); }

/* shared bits */
.sal-team { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.sal-team img { width: 26px; height: 26px; object-fit: contain; flex: none; }
img.on-dark { background: var(--navy-2); border-radius: 50%; padding: 3px; }
.sal-card.neg b, .sbx.neg b { color: #B42318; }
.sal-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--rule); background: #fff; white-space: nowrap; }
.sal-chip.room { color: #1E7B45; background: #E7F5EC; border-color: #BFE3CC; }
.sal-chip.over { color: var(--ink); background: var(--paper); }
.sal-chip.tax { color: #8A4B00; background: var(--gold-tint); border-color: #F1D49A; }
.sal-chip.a1 { color: #B42318; background: #FDECEA; border-color: #F5C6C1; }
.sal-chip.a2 { color: #fff; background: #B42318; border-color: #B42318; }

/* ---------- sheet layout (league view and team view) ----------
   Dark fills (title band, solid buttons, summary headings) use --navy-2, the site header color. */
.sal-view { padding-top: 16px; }
.sal-band { display: flex; align-items: center; gap: 14px; background: var(--team, var(--navy-2)); color: var(--team-ink, #fff); padding: 10px 18px; }
.sal-band { min-height: 66px; box-sizing: border-box; }
.sal-band img, .sal-band img.on-dark { width: 48px; height: 48px; object-fit: contain; background: none; border-radius: 0; padding: 0; flex: none; }
.sal-band h2 { font-family: var(--cond); font-weight: 700; font-size: 34px; line-height: 1.05; margin: 0; }
.sal-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; background: var(--card); border: 1px solid var(--rule); border-top: 0; padding: 10px 18px 12px; margin-bottom: 16px; }
.sal-bar .ctl { flex-direction: column; align-items: flex-start; gap: 3px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sal-bar #salTeam { min-width: 200px; }
.sal-bar #salSeason { min-width: 104px; }
.sal-bar .sal-chip { margin-bottom: 6px; }
.sal-acts { display: flex; gap: 8px; margin-left: auto; }
.hub a.sal-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.hub a.sal-btn.solid { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.hub a.sal-btn:hover { text-decoration: none; border-color: var(--navy-3); }
.hub a.sal-btn.solid:hover { background: var(--navy-3); }

.sal-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sal-card { display: flex; flex-direction: column; text-align: center; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.sal-card span { background: var(--navy-3); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 8px; }
.sal-card b { font-family: var(--cond); font-size: 28px; line-height: 1.1; padding: 9px 8px; font-variant-numeric: tabular-nums; }
.sal-card small { margin: -4px 8px 9px; font-size: 12px; color: var(--muted); }

.sal-sec { margin-top: 26px; }
.sal-h { position: relative; font-family: var(--cond); font-weight: 700; font-size: 26px; line-height: 1.1; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--rule); }
.sal-h::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--navy); }
.sal-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.sal-key span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.sal-key .k { width: 12px; height: 12px; border-radius: 2px; background: var(--bx); flex: none; }
.sal-key .k.s-NG { background: #fff; border: 1px dashed #8A96A3; }
.sal-key .pc { font-size: 10px; font-weight: 600; background: #EEF1F4; border: 1px solid var(--rule); border-radius: 2px; padding: 0 3px; }

/* status colors: option years and free agency */
.sal-view { --pn: 236px; --ps: 46px; --ag: 42px; --yr: 130px; }
.s-TO { --bx: #D92D20; --bx2: #A9231A; }
.s-PO { --bx: #6941C6; --bx2: #4F2FA0; }
.s-MO { --bx: #0E9384; --bx2: #0A6F64; }
.s-UFA { --bx: #1D6FD6; --bx2: #134C96; }
.s-RFA { --bx: #8C1D18; --bx2: #5E1210; }

.sal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border: 1px solid var(--rule); }
.sal-scroll + .sal-scroll { margin-top: 18px; }
table.sal-t { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100%; min-width: calc(var(--pn) + var(--ps) + var(--ag) + var(--n) * var(--yr)); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sal-t col.c-pn { width: var(--pn); }
.sal-t col.c-ps { width: var(--ps); }
.sal-t col.c-ag { width: var(--ag); }
.sal-t col.c-lb { width: calc(var(--pn) + var(--ps) + var(--ag)); }
.sal-t th, .sal-t td { padding: 7px 4px; text-align: center; white-space: nowrap; vertical-align: middle; border-bottom: 1px solid var(--rule-soft); background: var(--card); }
.sal-t thead th { background: #F2F5F8; color: var(--navy); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 10px 6px; border-bottom: 2px solid var(--navy); }
.sal-t thead th small { font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.sal-t tbody tr:nth-child(even) td { background: var(--row-alt); }
.sal-t tbody tr:last-child td { border-bottom: 0; }
.sal-t .pn, .sal-t .lb { position: sticky; left: 0; z-index: 1; text-align: left; padding-left: 12px; overflow: hidden; text-overflow: ellipsis; }
.sal-t td.pn { font-size: 13.5px; font-weight: 600; }
.hub .sal-t a.pl { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: #B9C3CE; text-underline-offset: 2px; }
.hub .sal-t a.pl:hover { color: var(--accent); text-decoration-color: currentColor; }
.sal-t td.pn small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.sal-t td.ps, .sal-t td.ag { color: var(--muted); }
.sal-t thead th.cur { background: #D5E3F6; }
.sal-t td.yc.cur { background: #E6EFFB; }
.sal-t tbody tr:nth-child(even) td.yc.cur { background: #DEE9F8; }
.sal-t tr.tw.first td { border-top: 2px solid var(--rule); }
.sal-t small.gtd { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }

/* one season's figure: amount plus its share of that season's cap */
.sbx { display: inline-flex; align-items: stretch; vertical-align: middle; line-height: 1; border: 1px solid var(--rule); border-radius: 3px; background: #fff; overflow: hidden; }
.sbx b { box-sizing: border-box; width: 80px; padding: 6px 5px 5px; text-align: right; font-weight: 500; }
.sbx i { box-sizing: border-box; width: 36px; padding: 7px 0 0; text-align: center; font-style: normal; font-size: 10px; font-weight: 600; color: var(--muted); background: #EEF1F4; border-left: 1px solid var(--rule); }
.sbx.s-NG { border-style: dashed; border-color: #AEB8C2; }
.sbx.s-NG b { color: #8A96A3; }
.sbx.s-EST b { font-style: italic; }
.sbx.s-TW b { width: 116px; text-align: left; color: var(--muted); }
.sbx.s-TO, .sbx.s-PO, .sbx.s-MO, .sbx.fa { background: var(--bx); border-color: var(--bx); color: #fff; }
.sbx.s-TO b, .sbx.s-PO b, .sbx.s-MO b { font-weight: 600; }
.sbx.s-TO i, .sbx.s-PO i, .sbx.s-MO i, .sbx.fa i { background: var(--bx2); border-left: 0; color: #fff; }
.sbx.fa b { display: flex; justify-content: space-between; gap: 6px; text-align: left; font-weight: 700; letter-spacing: .04em; }
.sbx.fa b:only-child { width: 116px; }
.sbx.fa em { font-style: normal; font-weight: 500; letter-spacing: 0; }

/* summary blocks */
.sal-sum thead th { background: var(--navy-2); color: #fff; border-bottom: 0; font-size: 12px; }
.sal-sum thead th.cur { background: var(--accent-ink); }
.sal-sum td { padding: 10px 6px; }
.sal-sum td.lb { color: var(--ink); }
.sal-sum td.neg { color: #B42318; }
.sal-sum tr.hl td, .sal-sum tbody tr.hl:nth-child(even) td { background: #DCE5F1; font-weight: 700; }
.sal-sum tr.hl td.yc.cur, .sal-sum tbody tr.hl:nth-child(even) td.yc.cur { background: #CFDCEE; }
.sal-lock { display: inline-block; margin-left: 6px; padding: 1px 5px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8A4B00; background: var(--gold-tint); border: 1px solid #F1D49A; border-radius: 3px; vertical-align: 1px; }

/* all-teams table */
.sal-cards + .sal-sec { margin-top: 22px; }
table.sal-lg { min-width: calc(var(--tm) + var(--ro) + var(--st) + 5 * var(--lyr)); }
.sal-view { --tm: 250px; --ro: 120px; --st: 150px; --lyr: 128px; }
.sal-lg col.c-tm { width: var(--tm); }
.sal-lg col.c-ro { width: var(--ro); }
.sal-lg col.c-st { width: var(--st); }
.sal-lg thead th.sortable { cursor: pointer; }
.sal-lg thead th.sortable:hover { background: #E4EAF1; }
.sal-lg thead th.sorted::after { content: " \25BE"; font-size: 10px; }
.sal-lg thead th.sorted.asc::after { content: " \25B4"; }
.sal-lg td { padding-top: 6px; padding-bottom: 6px; }
.sal-lg td.pn { font-size: 14px; }
.sal-lg td.pn.cur, .sal-lg td.ro.cur { background: #E6EFFB; }
.sal-lg tbody tr:nth-child(even) td.pn.cur, .sal-lg tbody tr:nth-child(even) td.ro.cur { background: #DEE9F8; }
.sal-lg .sal-team { max-width: 100%; }
.sal-lg .sal-team span { overflow: hidden; text-overflow: ellipsis; }
.sal-lg .sbx b { width: 104px; }
.sal-lg td.ro small { color: var(--muted); font-size: 11.5px; }
.sal-lg td.st, .sal-lg th.st { text-align: left; padding-left: 10px; }

/* deadlines */
table.sal-dl { table-layout: auto; min-width: 0; }
.sal-dl th, .sal-dl td { text-align: left; padding: 8px 10px; }
.sal-dl .dd { width: 104px; padding-left: 12px; color: var(--ink); }
.sal-dl .dp { width: 24%; }
.sal-dl .dp b { font-size: 13.5px; font-weight: 600; }
.sal-dl td.dt { white-space: normal; }
.sal-dl .dv { text-align: right; padding-right: 12px; width: 120px; }
.sal-dl .dl-under { display: none; }
.dl-b { display: inline-block; box-sizing: border-box; width: 132px; margin-right: 10px; padding: 4px 6px; border-radius: 3px; background: var(--bx); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-align: center; line-height: 1.1; vertical-align: middle; white-space: nowrap; }
.dl-b.k-G { --bx: #8792A0; }
.dl-b.k-X { --bx: #1877B5; }
.dl-t small { font-size: 11px; font-style: italic; color: var(--muted); }

/* ---------- player page: Stats | Contract switch and the contract view (player_contract.js) ---------- */
.pc-switch { display: flex; background: var(--card); border: 1px solid var(--rule); border-top: 0; }
.pc-switch button { border: 0; border-bottom: 3px solid transparent; background: none; padding: 12px 28px 9px; font-family: var(--cond); font-size: 22px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.pc-switch button:hover { color: var(--ink); }
.pc-switch button.on { color: var(--ink); border-bottom-color: var(--gold); }
.sal-view.pc { padding-top: 22px; }
.pc .sal-band h3 { font-family: var(--cond); font-weight: 700; font-size: 30px; line-height: 1.05; margin: 0; }
.pc .sal-band h3 small { margin-left: 10px; font-family: var(--text); font-size: 14px; font-weight: 500; opacity: .9; }
.pc .sal-bar { align-items: center; min-height: 34px; }
.pc .sal-bar .sal-chip { margin: 0; }
table.pc-t, table.pc-dl { table-layout: auto; min-width: 0; }
.pc-t th, .pc-t td { text-align: left; padding: 8px 12px; }
.pc-t thead th, .pc-dl thead th { padding: 10px 12px; text-align: left; }
.pc-t thead th.ag { text-align: center; }
.pc-dl thead th.dv { text-align: right; }
.pc-t .se { width: 110px; font-weight: 600; color: var(--ink); }
.pc-t .ag { width: 56px; text-align: center; }
.pc-t .ch { width: 150px; }
.pc-t .st { width: 210px; }
.pc-t td.nt { white-space: normal; color: var(--muted); }
.pc-t tr.tot td { border-top: 2px solid var(--rule); background: #DCE5F1; font-weight: 700; }
.pc-t tr.tot td.nt { color: var(--ink); }
.pc-t tr.tot .sbx b { font-weight: 700; width: 118px; }
.pc-dead .sbx b { width: 118px; }
.pc-dl .dd { width: 110px; }
.pc-dl .dt { display: table-cell; }

@media (max-width: 860px) {
  .sal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 699px) {
  .sal-view { padding-top: 10px; --pn: 118px; --ps: 0px; --ag: 0px; --yr: 120px; }
  .sal-band { padding: 8px 12px; gap: 10px; }
  .sal-band { min-height: 52px; }
  .sal-band img, .sal-band img.on-dark { width: 38px; height: 38px; }
  .sal-band h2 { font-size: 24px; }
  .sal-bar { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 8px 10px; padding: 8px 12px 10px; margin-bottom: 12px; }
  .sal-bar .ctl select { width: 100%; min-width: 0 !important; }
  .sal-bar .sal-chip { justify-self: start; margin: 0; align-self: center; }
  .sal-acts { margin-left: 0; justify-self: end; }
  .sal-band.lg + .sal-bar .sal-acts { grid-column: 1 / -1; justify-self: stretch; }
  .sal-band.lg + .sal-bar a.sal-btn { flex: 1; justify-content: center; }
  .hub a.sal-btn { height: 30px; padding: 0 10px; font-size: 12px; }
  .sal-card span { font-size: 11px; padding: 5px 4px; }
  .sal-card b { font-size: 22px; padding: 7px 4px; }
  .sal-sec { margin-top: 22px; }
  .sal-h { font-size: 23px; }
  table.sal-t { font-size: 12px; }
  .sal-t th, .sal-t td { padding: 6px 3px; }
  .sal-t .pn, .sal-t .lb { padding-left: 8px; border-right: 1px solid var(--rule); }
  .sal-t td.pn { font-size: 12.5px; white-space: normal; line-height: 1.2; }
  .sal-t td.pn small { font-size: 10px; white-space: normal; }
  .sal-t td.lb { white-space: normal; line-height: 1.2; }
  .sbx b { width: 76px; padding: 6px 4px 5px; }
  .sbx i { width: 34px; font-size: 9.5px; }
  .sbx.s-TW b, .sbx.fa b:only-child { width: 110px; }
  .sbx.fa b { letter-spacing: 0; gap: 3px; }
  .sal-view { --tm: 132px; --ro: 78px; --st: 124px; --lyr: 116px; }
  .sal-lg .sal-team { gap: 6px; }
  .sal-lg .sal-team img { width: 22px; height: 22px; }
  .sal-lg td.pn { font-size: 12.5px; }
  .sal-lg .sal-team span { white-space: normal; overflow: visible; }
  .sal-lg .sbx b { width: 100px; }
  .sal-lg td.ro small { display: block; }
  .sal-dl .dt { display: none; }
  .sal-dl .dd { width: 70px; padding-left: 8px; }
  .sal-dl .dp { width: auto; white-space: normal; }
  .sal-dl .dl-under { display: block; margin-top: 4px; }
  .sal-dl .dv { width: 84px; padding-right: 8px; }
  .dl-b { width: auto; margin-right: 6px; padding: 3px 6px; font-size: 9.5px; }
  .dl-t { font-size: 11.5px; color: var(--muted); }
  .pc-switch button { flex: 1; padding: 10px 8px 8px; font-size: 20px; }
  .sal-view.pc { padding-top: 14px; }
  .pc .sal-band h3 { font-size: 22px; }
  .pc .sal-band h3 small { display: block; margin: 2px 0 0; font-size: 12px; }
  .pc .sal-bar { display: flex; flex-wrap: wrap; }
  .pc .sal-bar .sal-acts { width: 100%; }
  .pc .sal-bar .sal-acts a.sal-btn { flex: 1; justify-content: center; }
  .sal-card small { font-size: 11px; margin: -3px 6px 8px; }
  .pc-t th, .pc-t td { padding: 7px 6px; }
  .pc-t thead th, .pc-dl thead th { padding: 9px 6px; }
  .pc-t .se { width: 62px; }
  .pc-t .ag { width: 30px; }
  .pc-t .ch { width: 118px; }
  .pc-t .st { width: auto; white-space: normal; }
  .pc-t .nt { display: none; }
  .pc-dead .nt { display: table-cell; }
  .pc-dl .dt { display: table-cell; white-space: normal; }
  .pc-dl .dl-b { display: inline-block; margin-bottom: 3px; }
}