/* Power rankings + The Wire, and the champions year columns (v1.4.0).
   Navy/charcoal, restrained gold, tabular figures. Presentation only. */

/* ================= champions: year columns ================= */
#champbody .chx-years{
  display:grid; gap:14px; align-items:start;
  grid-template-columns:repeat(var(--ny,4), minmax(0,1fr));
}
#champbody .chx-col{ display:flex; flex-direction:column; gap:12px; min-width:0; }
#champbody .chx-colhead{
  margin:0 0 2px; font-family:var(--display); font-weight:800; font-size:1.9rem; line-height:1;
  color:#fff; letter-spacing:.02em; padding-bottom:10px; border-bottom:1px solid #1f2a3b; position:relative;
}
#champbody .chx-colhead::after{ content:""; position:absolute; left:0; bottom:-1px; width:44px; height:2px; background:var(--cp-gold,#d8b25a); }
#champbody .chx-card{ padding:16px 16px 14px; }
#champbody .chx-card .chx-top{ margin:0; }
#champbody .chx-champ{ margin-top:12px; align-items:flex-start; }
#champbody .chx-champ > span{ min-width:0; flex:1; }
#champbody .chx-champ b{ white-space:normal; overflow:visible; text-overflow:clip; font-size:1.08rem; line-height:1.08; word-break:break-word; }
#champbody .chx-champ img{ margin-top:2px; }
#champbody .chx-vs{ margin:12px 0 10px; }
#champbody .chx-run span{ white-space:normal; line-height:1.2; }
@media (max-width:1100px){ #champbody .chx-years{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px){ #champbody .chx-years{ grid-template-columns:1fr; } }

/* ================= power rankings ================= */
#v-power{ --pw-navy:#0b1019; --pw-edge:#1f2a3b; --pw-gold:#d8b25a; --pw-dim:#8e99ad; --pw-ink:#eef1f6; }
#v-power > h2{ font-family:var(--display); text-transform:uppercase; letter-spacing:.04em; font-weight:800; }
#powerbody{ font-variant-numeric:tabular-nums; }
#powerbody .podium{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0 20px; }
#powerbody .pod{
  position:relative; overflow:hidden; isolation:isolate; text-align:left; cursor:pointer; color:var(--pw-ink);
  display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto auto; column-gap:14px; row-gap:4px; align-items:center;
  padding:18px 18px 16px; border-radius:18px; border:1px solid var(--pw-edge); border-top:3px solid var(--ts);
  background:linear-gradient(170deg, color-mix(in srgb, var(--tc) 60%, #0a0f18) 0%, #0b1019 70%);
  transition:transform .2s ease, border-color .2s ease;
}
#powerbody .pod:hover{ transform:translateY(-2px); border-color:color-mix(in srgb, var(--ts) 60%, var(--pw-edge)); }
#powerbody .pod::after{ content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--ts) 24%, transparent), transparent 70%); }
#powerbody .pod img{ grid-row:1 / span 3; width:60px; height:60px; border-radius:50%; object-fit:cover; border:3px solid var(--ts); background:var(--pw-navy); box-shadow:0 0 0 4px rgba(10,15,24,.75); }
#powerbody .pod-rank{ grid-column:2; font-family:var(--display); font-weight:800; font-size:.8rem; letter-spacing:.2em; color:color-mix(in srgb, var(--ts) 85%, #fff); text-transform:uppercase; }
#powerbody .pod-name{ grid-column:2; font-family:var(--display); font-weight:800; font-size:1.2rem; line-height:1.05; text-transform:uppercase; color:#fff; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#powerbody .pod-score{ grid-column:2; font-family:var(--figure); font-weight:700; font-size:2rem; line-height:1; color:var(--pw-gold); }
#powerbody .pod-meta{ grid-column:1 / -1; margin-top:8px; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.62); }
#powerbody .pod1{ grid-row:span 1; }
@media (max-width:760px){ #powerbody .podium{ grid-template-columns:1fr; } }

/* table */
#powerbody .twrap{ border:1px solid var(--pw-edge); border-radius:16px; overflow:auto; background:#0c121c; }
#powerbody table{ width:100%; border-collapse:separate; border-spacing:0; }
#powerbody thead th{ position:sticky; top:0; z-index:2; background:#0e1520; font-family:var(--display); font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; color:var(--pw-dim); padding:12px 12px; border-bottom:1px solid var(--pw-edge); }
#powerbody tbody td{ padding:10px 12px; border-bottom:1px solid rgba(255,255,255,.04); }
#powerbody tbody tr.clickrow{ transition:background .15s ease; cursor:pointer; }
#powerbody tbody tr.clickrow:hover{ background:rgba(216,178,90,.06); }
#powerbody td.rank{ font-family:var(--display); font-weight:800; font-size:1.05rem; color:var(--pw-dim); }
#powerbody tbody tr:nth-child(-n+3) td.rank{ color:var(--pw-gold); }
#powerbody .oppcell img{ width:34px; height:34px; border-radius:50%; object-fit:cover; border:2px solid; background:var(--pw-navy); }
#powerbody .oppcell span{ font-weight:700; }
#powerbody .prbar{ display:block; height:4px; margin-top:6px; border-radius:99px; background:#1a2332; overflow:hidden; }
#powerbody .prbar i{ display:block; height:100%; background:linear-gradient(90deg, #8a6a24, var(--pw-gold)); border-radius:99px; }
#powerbody td.num b{ font-family:var(--figure); font-weight:700; font-size:1rem; }
#powerbody .medal{ font-size:.8rem; color:var(--pw-gold); margin-left:4px; }

/* ================= the wire ================= */
#txbody{ font-variant-numeric:tabular-nums; }
#txbody .txr, #txtab .txr{
  display:grid; grid-template-columns:86px minmax(0,1fr); gap:14px; align-items:start;
  padding:14px 16px; margin-bottom:10px; border-radius:14px; border:1px solid var(--pw-edge);
  background:linear-gradient(180deg,#111a28,#0b1019); border-left:3px solid #3a4658;
  transition:border-color .2s ease, background .2s ease;
}
#txtab .txr:hover{ border-color:#2d3a50; }
#txtab .txr.txfail{ opacity:.6; }
#txtab .txk{
  justify-self:start; font-family:var(--display); font-size:.68rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  padding:4px 9px; border-radius:99px; border:1px solid #3a4658; color:var(--pw-dim); white-space:nowrap;
}
#txtab .tx-trade .txk{ color:#9fbcff; border-color:rgba(111,156,255,.5); }
#txtab .tx-waiver .txk{ color:var(--pw-gold); border-color:rgba(216,178,90,.5); }
#txtab .tx-add .txk{ color:#7fd3a6; border-color:rgba(95,185,138,.5); }
#txtab .txmeta{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; font-size:.86rem; }
#txtab .txteam{ display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--pw-ink); }
#txtab .txteam img{ width:24px; height:24px; border-radius:50%; object-fit:cover; border:2px solid; background:var(--pw-navy); }
#txtab .cmt-when{ color:var(--pw-dim); font-size:.78rem; letter-spacing:.04em; }
#txtab .txline{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:8px; }
#txtab .txline em{ font-style:normal; font-family:var(--display); font-size:.66rem; letter-spacing:.16em; text-transform:uppercase; color:var(--pw-dim); width:30px; }
#txtab .txbad{ font-size:.66rem; letter-spacing:.12em; text-transform:uppercase; color:#e0707a; border:1px solid rgba(224,112,122,.5); border-radius:99px; padding:2px 8px; }
@media (max-width:620px){
  #txtab .txr{ grid-template-columns:1fr; gap:8px; }
  #powerbody .pod-score{ font-size:1.6rem; }
}

/* ---- wire v2: division stripe, kind washes, summary strip ---- */
#txtab{ --dv-elite:#d8b25a; --dv-second:#8fb3e0; --dv-third:#c9a7e8; }
#txtab .txr{ border-left-width:4px; }
#txtab .txr.d-elite{ border-left-color:var(--dv-elite) !important; }
#txtab .txr.d-second{ border-left-color:var(--dv-second) !important; }
#txtab .txr.d-third{ border-left-color:var(--dv-third) !important; }
#txtab .txr.tx-waiver{ background:linear-gradient(90deg, rgba(216,178,90,.13) 0%, #0d1420 42%); }
#txtab .txr.tx-trade{ background:linear-gradient(90deg, rgba(111,156,255,.12) 0%, #0d1420 42%); }
#txtab .txr.tx-add{ background:linear-gradient(90deg, rgba(95,185,138,.10) 0%, #0d1420 42%); }
#txtab .txdiv{
  font-family:var(--display); font-size:.66rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:#0b1019; background:var(--dv-elite); border-radius:99px; padding:3px 9px; white-space:nowrap;
}
#txtab .d-second .txdiv{ background:var(--dv-second); }
#txtab .d-third .txdiv{ background:var(--dv-third); }
#txtab .txline em{ color:var(--pw-dim); }
#txtab .txline:has(em) > em:first-child{ color:var(--pw-dim); }
#txtab .txr .txline:nth-of-type(2) em{ color:#7fd3a6; }
#txtab .txr .txline:nth-of-type(3) em{ color:#e0909a; }
#txtab .wire-sum{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:16px 0 18px; }
#txtab .wire-sum > div{
  position:relative; overflow:hidden; border-radius:14px; padding:14px 16px; border:1px solid var(--pw-edge);
  background:linear-gradient(180deg,#121a28,#0a0f18);
}
#txtab .wire-sum > div::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--ws-c,#3a4658); }
#txtab .wire-sum b{ display:block; font-family:var(--figure); font-weight:700; font-size:1.7rem; line-height:1; color:#fff; font-variant-numeric:tabular-nums; }
#txtab .wire-sum span{ display:block; margin-top:6px; font-size:.66rem; letter-spacing:.16em; text-transform:uppercase; color:var(--pw-dim); }
#txtab .ws-w{ --ws-c:var(--pw-gold); } #txtab .ws-w b{ color:var(--pw-gold); }
#txtab .ws-t{ --ws-c:#6f9cff; }
#txtab .ws-a{ --ws-c:#5fb98a; }
#txtab .ws-f{ --ws-c:#e0707a; } #txtab .ws-f b{ color:#e0909a; }
@media (max-width:620px){ #txtab .wire-sum{ grid-template-columns:1fr 1fr; } }

/* ---- division indicators v3: dark chip + coloured dot, palette clear of gold ----
   Elite = silver, Second = teal, Third = copper. Gold stays reserved for waivers. */
#txtab{ --dv-elite:#dfe5ee; --dv-second:#4fb8c4; --dv-third:#d08c5c; }
#txtab .txr.d-elite{ border-left-color:var(--dv-elite) !important; }
#txtab .txr.d-second{ border-left-color:var(--dv-second) !important; }
#txtab .txr.d-third{ border-left-color:var(--dv-third) !important; }
#txtab .txdiv{
  display:inline-flex; align-items:center; gap:7px;
  font-family:var(--display); font-size:.66rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:#e9edf4; background:rgba(8,11,18,.9); border:1px solid #2b3648; border-radius:99px; padding:4px 10px 4px 8px;
  white-space:nowrap;
}
#txtab .txdiv::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--dv-elite); box-shadow:0 0 0 2px rgba(223,229,238,.12); }
#txtab .txr.d-second .txdiv{ color:#d6f1f4; }
#txtab .txr.d-second .txdiv::before{ background:var(--dv-second); box-shadow:0 0 0 2px rgba(79,184,196,.18); }
#txtab .txr.d-third .txdiv{ color:#f3e2d6; }
#txtab .txr.d-third .txdiv::before{ background:var(--dv-third); box-shadow:0 0 0 2px rgba(208,140,92,.18); }
#txtab .txr.d-elite .txdiv{ color:#f2f4f8; }

/* ---- division colours v4: match the live hub logos ----
   Elite = gold, Second = green, Third = blue (as on the live hub headers).
   Waiver cards drop their gold so gold always means Elite. */
#txtab{ --dv-elite:#fbc02d; --dv-second:#34a35e; --dv-third:#3b78e7; }
#txtab .txr.d-elite{ border-left-color:var(--dv-elite) !important; }
#txtab .txr.d-second{ border-left-color:var(--dv-second) !important; }
#txtab .txr.d-third{ border-left-color:var(--dv-third) !important; }
#txtab .txdiv{
  display:inline-flex; align-items:center; gap:7px;
  font-family:var(--display); font-size:.66rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:#0b1019; border:0; border-radius:99px; padding:4px 11px; white-space:nowrap;
  background:var(--dv-elite); box-shadow:0 0 0 1px rgba(0,0,0,.25) inset;
}
#txtab .txdiv::before{ content:none; }
#txtab .txr.d-second .txdiv{ background:var(--dv-second); color:#06160c; }
#txtab .txr.d-third .txdiv{ background:var(--dv-third); color:#fff; }
#txtab .txr.d-elite .txdiv{ background:var(--dv-elite); color:#0b1019; }
/* waiver: neutral slate instead of gold */
#txtab .txr.tx-waiver{ background:linear-gradient(90deg, rgba(160,172,194,.10) 0%, #0d1420 42%); }
#txtab .tx-waiver .txk{ color:#d3dae6; border-color:rgba(160,172,194,.45); }
#txtab .ws-w{ --ws-c:#a0acc2; } #txtab .ws-w b{ color:#e6ebf3; }

/* ---- division labels v5: the hub's gold-title styling for all three divisions ----
   Same display face, weight and tracking as the hub's division headers; the text
   takes the division colour from the hub (Elite gold, Second green, Third blue)
   on the dark chip. */
#txtab .txdiv{
  font-family:var(--display); font-weight:800; font-size:.7rem; letter-spacing:.1em; text-transform:uppercase;
  background:rgba(8,11,18,.92); border:1px solid currentColor; color:#FBC02D; padding:4px 10px; border-radius:6px;
  box-shadow:none;
}
#txtab .txr.d-elite .txdiv{ color:#FBC02D; background:rgba(8,11,18,.92); }
#txtab .txr.d-second .txdiv{ color:#34d399; background:rgba(8,11,18,.92); border-color:#1F6145; }
#txtab .txr.d-third .txdiv{ color:#60a5fa; background:rgba(8,11,18,.92); border-color:#0544CF; }

/* read-only preview notices: neutral, not an error */
.cerr.cinfo{ background:rgba(142,153,173,.08); border:1px solid rgba(142,153,173,.35); color:#c9d1de; }
