/* =========================================================================
   Glass Edge - site styles
   Light sports-media theme: bright blue masthead, white cards on a cool gray
   page, three-column home page. Team colors carry identity; one orange accent.
   ========================================================================= */

:root {
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eceff4;
  --line: #e1e6ee;
  --line-2: #cdd5e1;
  --text: #0f1722;
  --text-2: #3d4757;
  --muted: #687385;
  --brand: #0b6bf2;        /* masthead blue */
  --brand-dark: #0857c9;
  --brand-soft: #e8f1ff;
  --accent: #e0581c;       /* orange: the "edge" */
  --accent-soft: #fff1e9;
  --home: #d9541a;         /* diverging pair, validated colorblind-safe on white */
  --away: #1f6fe0;
  --good: #128a4a;
  --bad: #d2283f;
  --warn: #b26b00;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 34, 0.06), 0 1px 1px rgba(15, 23, 34, 0.03);
  --shadow-hover: 0 6px 18px -6px rgba(15, 23, 34, 0.18);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px;
  line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
main { flex: 1; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- Masthead: blue brand bar + white quick-links bar ---------- */
.masthead { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line), 0 4px 14px -10px rgba(15,23,34,.3); }
.brandbar { background: var(--brand); color: #fff; }
.brandbar .wrap { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { flex: none; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: 0.03em; text-transform: uppercase;
  line-height: 1; }
.wordmark b { font-weight: 800; margin-left: 4px; }
.wordmark.dark { color: var(--text); font-size: 22px; }
.wordmark.dark b { color: var(--brand); }
.mainnav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; height: 100%; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { position: relative; display: flex; align-items: center; padding: 0 14px; font-weight: 700; font-size: 15px;
  color: rgba(255,255,255,.86); white-space: nowrap; transition: color .15s, background .15s; }
.mainnav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.mainnav a.active { color: #fff; }
.mainnav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 4px;
  background: #fff; border-radius: 3px 3px 0 0; }
.nav-status { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap;
  color: rgba(255,255,255,.9); background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #5df2a0; position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #5df2a0;
  opacity: 0; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

.quickbar { background: var(--surface); }
.quicklinks { display: flex; gap: 6px; height: 46px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.quicklinks::-webkit-scrollbar { display: none; }
.quicklinks a { padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--text-2);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: .15s; }
.quicklinks a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.hot { display: inline-flex; align-items: center; gap: 3px; font: 700 10.5px var(--sans); text-transform: uppercase;
  letter-spacing: .06em; color: #c2410c; background: #ffedd5; padding: 2px 7px; border-radius: 999px; }
.hot::before { content: "🔥"; font-size: 10px; }

/* ---------- Page headers (white band under the masthead) ---------- */
.page-head, .hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap, .hero .wrap { padding-top: 26px; padding-bottom: 22px; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700;
  font-size: 13px; color: var(--brand); margin: 0 0 4px; }
h1.title { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em;
  font-size: clamp(32px, 4.6vw, 48px); line-height: 1; margin: 0; }
.lede { color: var(--text-2); max-width: 680px; margin: 10px 0 0; font-size: 16px; }
.head-row, .hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.datebar { display: flex; align-items: center; gap: 8px; }
.datebar a, .datebar span.disabled {
  min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); transition: .15s; font-weight: 700;
}
.datebar a:hover { border-color: var(--brand); color: var(--brand); }
.datebar span.disabled { opacity: .35; }
.today-link { font-size: 14px; color: var(--brand) !important; }

.statstrip { display: flex; gap: 0; margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  width: fit-content; max-width: 100%; }
.statstrip > div { padding: 8px 18px; border-right: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.statstrip > div:last-child { border-right: 0; }
.statstrip .v { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.statstrip .k { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Stat tiles (other pages) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 22px; }
.tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.tile .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.tile .value { font-size: 28px; font-weight: 700; line-height: 1.15; margin-top: 2px; letter-spacing: -0.01em; }
.tile .sub { color: var(--text-2); font-size: 13px; }

/* ---------- Home: three columns ---------- */
.layout3 { display: grid; grid-template-columns: 280px minmax(0, 1fr) 340px; gap: 20px; padding-top: 20px; align-items: start; }
.layout3 > * { min-width: 0; }
.rail { display: grid; gap: 16px; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; }
.rcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line); }
.rcard-head h2 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  font-size: 17px; display: flex; align-items: center; gap: 8px; }
.rcard-head a { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.rcard-head .hint { font-size: 12px; }
.rrow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 14px;
  border-bottom: 1px solid var(--line); transition: background .12s; }
.rrow:last-of-type { border-bottom: 0; }
.rrow:hover { background: var(--surface-2); }
.rrow .logo, .rrow .logo-fallback { width: 28px; height: 28px; font-size: 9px; }
.rrow-main { min-width: 0; line-height: 1.25; }
.rrow-main b { display: block; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow-main .sub { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; padding: 3px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); }
.pill.warn { background: #fff4db; color: #8a5300; }
.pill.accent { background: var(--accent-soft); color: #b0420f; }
.rempty, .rnote { margin: 0; padding: 12px 14px; color: var(--muted); font-size: 13px; }
.rnote { padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; }
.rstat { display: flex; align-items: center; gap: 14px; padding: 14px; }
.rstat .v { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--brand); }
.rstat .k { color: var(--text-2); font-size: 13px; line-height: 1.35; }

table.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mini td { padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.mini tr:last-child td { border-bottom: 0; }
table.mini tr { cursor: pointer; transition: background .12s; }
table.mini tr:hover { background: var(--surface-2); }
table.mini .rk { font-family: var(--display); font-weight: 800; font-size: 17px; width: 30px; text-align: center; color: var(--brand); }
table.mini .teamcell span { overflow: hidden; text-overflow: ellipsis; max-width: 128px; }
table.mini .rec { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.mini .r { text-align: right; font-variant-numeric: tabular-nums; }
table.mini .em { font-weight: 700; }

/* ---------- Section headings ---------- */
.section { padding: 26px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 24px 0 12px;
  flex-wrap: wrap; }
.card .section-head { margin-top: 0; }
h2.h { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 800; font-size: 22px; margin: 0; }
.hint { color: var(--muted); font-size: 13px; }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { appearance: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2);
  font: 700 13px var(--sans); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip .count { opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; font-size: 11.5px; padding: 3px 8px; border-radius: 6px;
  background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.tossup { color: #4b5568; }
.tag.upset { color: #8a5300; background: #fff4db; }
.tag.edge { color: #b0420f; background: var(--accent-soft); }
.tag.live { color: var(--good); background: #e3f6ec; }
.tag.backtest { color: var(--muted); }

/* Result badges (status: icon + label, never color alone) */
.badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12px; padding: 2px 8px;
  border-radius: 6px; white-space: nowrap; }
.badge.win { color: var(--good); background: #e3f6ec; }
.badge.loss { color: var(--bad); background: #fde8eb; }
.badge.push { color: var(--text-2); background: var(--surface-3); }

/* ---------- Game cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gcard { position: relative; display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px 12px; box-shadow: var(--shadow);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease; }
.gcard:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.gcard[hidden] { display: none; }
.gcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; min-height: 22px; }
.gtime { color: var(--muted); font-size: 13px; font-weight: 700; }
.gtime .final { color: var(--text); }
.gtags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.trow { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 4px 0; }
.logo { width: 32px; height: 32px; object-fit: contain; }
.logo-fallback { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 700 11px var(--display); color: #fff; flex: none; }
.tname { min-width: 0; }
.tname .n { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block; color: var(--text-2); }
.trow.fav .tname .n { color: var(--text); }
.rank { font-family: var(--display); font-weight: 700; color: var(--muted); font-size: 13px; margin-right: 4px; }
.rec { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tprob { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; text-align: right; min-width: 44px; color: var(--muted); }
.trow.fav .tprob { color: var(--text); }
.tscore { font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; min-width: 28px; color: var(--muted); }
.trow.won .tscore { color: var(--text); font-weight: 800; }

/* Thin segmented bar (win probability): 8px, round ends, 2px gap */
.split { display: flex; gap: 2px; height: 8px; margin: 10px 0; }
.split .seg { height: 100%; border-radius: 999px; transform-origin: left; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
.split .seg + .seg { transform-origin: right; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.gfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 9px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.gfoot b { color: var(--text); font-weight: 700; }
.gfoot .lines { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Spotlight (game of the day) ---------- */
.spotlight { position: relative; display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); padding: 0 22px 16px; box-shadow: var(--shadow); transition: box-shadow .2s; }
.spotlight:hover { box-shadow: var(--shadow-hover); }
.spotlight::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--c-away) 0 50%, var(--c-home) 50% 100%); }
.spot-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 0 6px; font-size: 13px; font-weight: 600; }
.flag { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 13px;
  color: #fff; background: var(--brand); padding: 4px 10px; border-radius: 6px; }
.spot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px 0 4px; }
.spot-team { display: flex; align-items: center; gap: 14px; min-width: 0; }
.spot-team.home { flex-direction: row-reverse; text-align: right; }
.spot-team img, .spot-team .logo-fallback { width: 68px; height: 68px; }
.spot-team .logo-fallback { font-size: 18px; }
.spot-team > div { min-width: 0; }
.spot-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1; overflow-wrap: anywhere; }
.spot-meta { color: var(--muted); font-size: 13px; margin-top: 4px; font-weight: 600; }
.spot-prob { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; margin-top: 6px; }
.spot-mid { text-align: center; }
.spot-mid .vs { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .15em; }
.spot-mid .proj { font-size: 12.5px; color: var(--muted); margin-top: 6px; white-space: nowrap; font-weight: 600; line-height: 1.35; }
.spot-mid .proj b { color: var(--text); font-size: 15px; }
.spotlight .split { height: 10px; margin: 14px 0 12px; }
.spot-foot { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.spot-foot b { color: var(--text); }
.spot-foot .go { margin-left: auto; color: var(--brand); font-weight: 700; }

/* ---------- Tables ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 12px; color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--line-2);
  white-space: nowrap; position: sticky; top: 0; background: var(--surface-2); }
table.t th[data-sort] { cursor: pointer; user-select: none; }
table.t th[data-sort]:hover { color: var(--brand); }
table.t th.sorted { color: var(--text); }
table.t th.sorted::after { content: " ↓"; color: var(--brand); }
table.t th.sorted.asc::after { content: " ↑"; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .12s; }
table.t tbody tr:hover { background: var(--surface-2); }
table.t .r { text-align: right; font-variant-numeric: tabular-nums; }
table.t .c { text-align: center; }
.teamcell { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.teamcell img, .teamcell .logo-fallback { width: 24px; height: 24px; font-size: 9px; }
.sub-rank { color: var(--muted); font-size: 12px; margin-left: 4px; }
.move { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.move.up { color: var(--good); }
.move.down { color: var(--bad); }
.move.flat { color: var(--muted); }
.rankno { font-family: var(--display); font-weight: 800; font-size: 18px; width: 36px; color: var(--brand); }
.colorbar { width: 4px; height: 22px; border-radius: 2px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.input, .select { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font: 500 14px var(--sans);
  padding: 9px 14px; border-radius: 10px; outline: none; transition: border-color .15s; }
.input:focus, .select:focus { border-color: var(--brand); }
.input { min-width: 240px; }

/* ---------- Matchup page ---------- */
.matchup { display: grid; grid-template-columns: 1fr minmax(260px, 340px) 1fr; gap: 24px; align-items: center; }
.mteam { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.mteam img, .mteam .logo-fallback { width: 104px; height: 104px; font-size: 24px; }
.mteam .name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3.6vw, 40px); line-height: 1; }
.mteam .meta { color: var(--muted); font-size: 14px; font-weight: 600; }
.mteam:hover .name { color: var(--brand); }
.mcenter { text-align: center; }
.hero-fig { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.hero-fig-label { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.tallbar { display: flex; gap: 2px; height: 28px; margin: 18px 0 10px; }
.tallbar .seg { border-radius: 4px; display: flex; align-items: center; padding: 0 10px; font-weight: 800; font-size: 13px;
  animation: grow .8s cubic-bezier(.2,.8,.2,1) both; overflow: visible; white-space: nowrap; }
.tallbar .seg:first-child { justify-content: flex-start; transform-origin: left; }
.tallbar .seg:last-child { justify-content: flex-end; transform-origin: right; }
.proj-score { display: flex; justify-content: center; align-items: baseline; gap: 14px; font-size: 34px; font-weight: 800;
  font-variant-numeric: tabular-nums; margin-top: 8px; }
.proj-score .dash { color: var(--muted); font-size: 22px; }
.stamp { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.stamp svg { flex: none; }
.result-banner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px;
  padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; }

.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 10px;
  overflow: hidden; margin-top: 6px; border: 1px solid var(--line); }
.compare > div { background: var(--surface); padding: 14px; text-align: center; }
.compare .k { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.compare .v { font-size: 20px; font-weight: 800; margin-top: 2px; }

/* Why chart (diverging bars from a center line) */
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.why { display: grid; gap: 4px; }
.why-row { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 14px; min-height: 30px; border-radius: 8px; padding: 0 6px; }
.why-row:hover { background: var(--surface-2); }
.why-label { font-size: 13.5px; color: var(--text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.why-track { position: relative; height: 30px; }
.why-track::before { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 1px; background: var(--line-2); }
.why-bar { position: absolute; top: 50%; height: 14px; margin-top: -7px; }
.why-bar.home { left: calc(50% + 1px); background: var(--home); border-radius: 0 4px 4px 0; transform-origin: left;
  animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
.why-bar.away { right: calc(50% + 1px); background: var(--away); border-radius: 4px 0 0 4px; transform-origin: right;
  animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
.why-val { position: absolute; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.why-axis { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 6px 6px 0; font-size: 12px; color: var(--muted); }
.why-axis div { display: flex; justify-content: space-between; }

/* Tale of the tape */
.tape { display: grid; }
.tape-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tape-row:last-child { border-bottom: 0; }
.tape-row .lab { color: var(--muted); font-size: 13px; text-align: center; min-width: 150px; font-weight: 600; }
.tape-row .val { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.tape-row .val.best { color: var(--text); font-weight: 800; }
.tape-row .val.best::after { content: " ●"; font-size: 9px; vertical-align: middle; color: var(--accent); }
.tape-row .val.left { text-align: left; }
.tape-row .val.right { text-align: right; }
.tape-row .val.left.best::after { content: none; }
.tape-row .val.left.best::before { content: "● "; font-size: 9px; vertical-align: middle; color: var(--accent); }
.tape-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; font-family: var(--display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.tape-head div:last-child { text-align: right; }

details.tableview { margin-top: 14px; }
details.tableview summary { cursor: pointer; color: var(--brand); font-size: 13px; font-weight: 700; list-style: none; }
details.tableview summary::-webkit-details-marker { display: none; }
details.tableview summary::before { content: "▸ "; }
details.tableview[open] summary::before { content: "▾ "; }
details.tableview table { margin-top: 10px; }

/* ---------- Team page ---------- */
.team-hero { display: flex; align-items: center; gap: 22px; }
.team-hero img, .team-hero .logo-fallback { width: 96px; height: 96px; font-size: 22px; }
.team-hero .bigrank { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--brand); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font: 600 11.5px var(--sans); font-variant-numeric: tabular-nums; }
.chart .zero { stroke: var(--line-2); }
.chart .series { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .wash { fill: var(--brand); opacity: .08; }
.chart .enddot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.chart .endlab { fill: var(--text); font: 800 13px var(--sans); }
.chart .cross { stroke: var(--line-2); stroke-width: 1; }
.chart .hoverdot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.chart-wrap { position: relative; }

.sched { display: grid; gap: 6px; }
.srow { display: grid; grid-template-columns: 70px 28px 1fr auto 90px; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--line); transition: .15s; }
.srow:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); }
.srow .d { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 600; }
.srow .at { color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.srow .o { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; }
.srow .o img, .srow .o .logo-fallback { width: 24px; height: 24px; font-size: 9px; }
.srow .o span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .res { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.wl { font-weight: 800; margin-right: 6px; }
.wl.w { color: var(--good); }
.wl.l { color: var(--bad); }
.meter { display: block; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }

/* ---------- Record page ---------- */
.seg-control { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-3); border-radius: 10px; flex-wrap: wrap; }
.seg-control a { padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--text-2); }
.seg-control a:hover { color: var(--text); }
.seg-control a.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.bullet { display: grid; gap: 14px; }
.brow { display: grid; grid-template-columns: 90px 1fr 120px; align-items: center; gap: 14px; }
.brow .lab { font-weight: 700; font-size: 14px; }
.btrack { position: relative; height: 24px; border-radius: 6px; background: var(--surface-3); }
.btrack .fill { position: absolute; left: 0; top: 5px; bottom: 5px; background: var(--brand); border-radius: 0 4px 4px 0;
  transform-origin: left; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
.btrack .tick { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); border-radius: 1px; }
.brow .num { text-align: right; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.legend .tick-key { width: 2px; height: 14px; background: var(--text); border-radius: 1px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft);
  border: 1px solid #fbd2bb; color: var(--text-2); font-size: 14px; }
.notice svg { flex: none; margin-top: 2px; color: var(--accent); }

/* ---------- Edges ---------- */
.edge-meter { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.edge-meter .meter { flex: 1; }
.edge-meter .meter i { background: var(--accent); }
.pick { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.pick img, .pick .logo-fallback { width: 22px; height: 22px; font-size: 8px; }

/* ---------- Empty + footer ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { margin: 0 auto 12px; display: block; opacity: .5; }
footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; color: var(--muted); font-size: 13px; }
footer .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 26px; }
footer p { margin: 0; max-width: 640px; }
.foot-brand { display: flex; align-items: center; gap: 8px; }

/* ---------- Tooltip ---------- */
.tip { position: fixed; z-index: 100; pointer-events: none; background: #0f1722; color: #fff; font-size: 13px;
  padding: 8px 11px; border-radius: 8px; max-width: 260px; box-shadow: 0 10px 30px -10px rgba(15,23,34,.5);
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.tip.show { opacity: 1; transform: none; }
.tip b { display: block; margin-bottom: 2px; }
.tip span { color: #c9d2e0; }

/* ---------- Responsive ---------- */
.two > *, .matchup > *, .spot-grid > *, .grid > * { min-width: 0; }
.mteam .name { overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .layout3 { grid-template-columns: minmax(0, 1fr) 320px; }
  .rail-left { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 900px) {
  .layout3 { grid-template-columns: 1fr; }
  .rail-right { grid-row: 3; }
  .two { grid-template-columns: 1fr; }
  .matchup { grid-template-columns: 1fr 1fr; }
  .mcenter { grid-column: 1 / -1; grid-row: 2; }
  .nav-status { display: none; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .brandbar .wrap { height: auto; flex-wrap: wrap; gap: 0 16px; padding-top: 10px; }
  .wordmark { font-size: 23px; }
  .mainnav { width: 100%; height: 44px; margin: 0 -14px; padding: 0 4px; }
  .mainnav a { padding: 0 11px; font-size: 14px; }
  .rail-left { grid-template-columns: 1fr; }
  .statstrip { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .statstrip > div { padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .statstrip > div:nth-child(2n) { border-right: 0; }
  .statstrip > div:nth-last-child(-n+2) { border-bottom: 0; }
  .spot-team img, .spot-team .logo-fallback { width: 52px; height: 52px; }
  .spot-mid { display: flex; align-items: baseline; gap: 10px; padding-left: 66px; }
  .spot-mid .proj { margin-top: 0; }
  .spot-mid .proj br { display: none; }
  .grid { grid-template-columns: 1fr; }
  .spot-grid { grid-template-columns: 1fr; gap: 10px; }
  .spot-team.home { flex-direction: row; text-align: left; }
  .spot-mid { text-align: left; }
  .spot-prob { font-size: 28px; }
  .why-row, .why-axis { grid-template-columns: 110px 1fr; }
  .srow { grid-template-columns: 54px 22px 1fr auto; }
  .srow .meter-cell { display: none; }
  .brow { grid-template-columns: 70px 1fr; }
  .brow .num { grid-column: 2; text-align: left; }
  .hero-fig { font-size: 52px; }
  .input { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- AP Top 25 vs model ---------- */
.t25-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.t25-grid > * { min-width: 0; }
.pill.up { background: #e3f5ea; color: #17663a; }
.pill.down { background: #fde8e6; color: #a8281c; }
table.t25 .teamcell span { max-width: 190px; }
table.t25 .fpv { color: var(--muted); font-size: 12px; margin-left: 4px; }
table.t25 .other { width: 74px; }
.them { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: var(--brand-soft, #e7f0fe); color: var(--brand); font-variant-numeric: tabular-nums; }
.them.off { background: var(--surface-2); color: var(--muted); }
.t25-note { margin: 16px 0 32px; max-width: 760px; }
@media (max-width: 900px) {
  .t25-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  table.t25 .teamcell span { max-width: 130px; }
}

/* ---------- News ---------- */
.btn { display: inline-block; appearance: none; border: 1px solid var(--brand); background: var(--brand); color: #fff;
  font: inherit; font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--surface); color: var(--text-2); border-color: var(--line-2); }
.review-link { margin: 14px 0 0; }
.kicker { display: inline-block; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  font-size: 13px; color: var(--wc, var(--brand)); margin: 0 0 6px; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding-top: 20px; padding-bottom: 32px; align-items: start; }
.lead-story { display: block; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--wc);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; color: inherit; text-decoration: none; }
.lead-story h2 { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.05; margin: 2px 0 10px; }
.lead-story p { color: var(--text-2); font-size: 17px; margin: 0 0 12px; }
.lead-story:hover h2, .story:hover h3 { color: var(--brand); }
.story-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.story { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--wc);
  border-radius: var(--radius); padding: 14px 16px; color: inherit; text-decoration: none; }
.story h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; margin: 0 0 6px; }
.story p { color: var(--text-2); font-size: 14px; margin: 0 0 8px; }
.story-meta { color: var(--muted); font-size: 12.5px; margin-top: auto; }
.empty-news { padding: 22px; color: var(--text-2); }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .02em; flex: none; }
.rrow.staff.on { background: var(--brand-soft); }
.ai-tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); padding: 1px 6px; border-radius: 5px; margin-left: 4px; vertical-align: 1px; }
.byline { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.byline .avatar { width: 40px; height: 40px; font-size: 16px; }
.byline a { color: var(--text); text-decoration: none; }
.byline .sub { display: block; color: var(--muted); font-size: 13px; }
.story-page { max-width: 740px; padding-top: 28px; padding-bottom: 40px; }
.story-title { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1.02; margin: 0 0 10px; }
.story-title.small { font-size: 28px; margin: 10px 0 6px; }
.story-title a { color: inherit; text-decoration: none; }
.story-dek { color: var(--text-2); font-size: 19px; line-height: 1.4; margin: 0 0 6px; }
.prose { font-size: 17.5px; line-height: 1.7; color: var(--text); border-top: 1px solid var(--line); margin-top: 16px; padding-top: 8px; }
.prose p { margin: 16px 0; }
.prose h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 24px; margin: 30px 0 4px; }
.prose ul { padding-left: 22px; } .prose li { margin: 6px 0; }
.prose a { color: var(--brand); font-weight: 600; }
.prose blockquote { margin: 18px 0; padding: 4px 18px; border-left: 4px solid var(--brand); color: var(--text-2); font-style: italic; }
.story-teams, .story-sources { margin-top: 26px; }
.story-teams .chip { margin: 6px 6px 0 0; text-decoration: none; display: inline-block; }
.label { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--muted); }
.story-sources ul { margin: 6px 0 0; padding-left: 20px; font-size: 14px; }
.story-sources a { color: var(--brand); }
.story-disclosure { margin-top: 22px; padding: 12px 14px; background: var(--surface-2); border-radius: 10px; color: var(--text-2); font-size: 13.5px; }
.more-stories { margin-top: 34px; }
.draft-banner { background: #fff4db; color: #8a5300; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.review-list { padding-top: 20px; padding-bottom: 32px; display: grid; gap: 16px; max-width: 860px; }
.review-card { padding: 16px 20px; }
.review-card.flagged { border-color: #f0b4ad; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-head .byline { margin: 0; }
.review-card details { margin: 8px 0; } .review-card summary { cursor: pointer; color: var(--brand); font-weight: 700; }
.review-actions { display: flex; gap: 10px; margin-top: 10px; }
@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
  .story-list { grid-template-columns: 1fr; }
  .lead-story h2 { font-size: 28px; }
  .story-title { font-size: 34px; }
  .prose { font-size: 16.5px; }
}

/* ---------- Accounts & stars ---------- */
.acct { margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.acct + .nav-status { margin-left: 0; }
.acct a { font-weight: 700; font-size: 14px; color: #fff; text-decoration: none; padding: 7px 12px; border-radius: 8px; }
.acct-in:hover, .acct-me:hover { background: rgba(255,255,255,.12); }
.acct-join { background: #fff; color: var(--brand) !important; }
.acct-join:hover { filter: brightness(.95); }
.acct-ico { margin-right: 5px; color: #FFB648; }
@media (max-width: 1320px) { .acct + .nav-status { display: none; } }
.starform { display: inline; margin: 0; }
.star { appearance: none; border: 0; background: none; cursor: pointer; font: inherit; font-size: 20px; line-height: 1;
  color: #9aa4b2; padding: 4px; border-radius: 6px; }
.star:hover { color: #E09A00; background: #fff6e0; }
.star.on { color: #E09A00; }
.star.labeled { font-size: 14px; font-weight: 700; color: var(--text-2); border: 1px solid var(--line-2); background: var(--surface);
  padding: 7px 12px; border-radius: 999px; }
.star.labeled span { color: #E09A00; font-size: 16px; }
.star.labeled.on { background: #fff6e0; border-color: #f2cf7a; color: #7a5200; }
.follow-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.conf-stars { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
.conf-stars .star.labeled { font-size: 12.5px; padding: 5px 10px; }
table.roster td { vertical-align: middle; }
table.roster .star { font-size: 18px; }
.gcard.mine { border-color: #f2cf7a; box-shadow: 0 0 0 2px #fff1cc, var(--shadow); }
.gcard.mine::before { content: "★"; position: absolute; top: 8px; right: 10px; color: #E09A00; font-size: 14px; }
.foryou { color: #b07800; }
.join-card p { padding: 0 14px; margin: 4px 0 12px; color: var(--text-2); font-size: 14px; }
.join-card .btn { margin: 0 14px 14px; width: calc(100% - 28px); text-align: center; }
.mine-card .rcard-head h2 { color: #7a5200; }
.btn.wide { width: 100%; text-align: center; padding: 11px 16px; font-size: 15px; }
.auth-wrap { display: grid; place-items: start center; padding: 36px 16px 60px; }
.auth-card { width: 100%; max-width: 430px; padding: 26px 26px 20px; }
h1.title.small { font-size: 34px; margin: 0 0 4px; }
.auth-card .lede { font-size: 15px; margin-bottom: 16px; }
.field { display: block; margin: 14px 0; }
.field-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.field input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-2);
  border-radius: 8px; background: var(--surface); color: var(--text); }
.field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field-help { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.field-error, .form-error { display: block; color: #a8281c; font-size: 13.5px; font-weight: 600; margin-top: 5px; }
.form-error { background: #fde8e6; padding: 9px 12px; border-radius: 8px; margin: 8px 0; }
.field .helptext, .field ul { display: none; }
.auth-switch { text-align: center; color: var(--text-2); font-size: 14px; margin: 16px 0 0; }
.auth-switch a { color: var(--brand); font-weight: 700; }
.me-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.me-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; padding-top: 20px; padding-bottom: 32px; align-items: start; }
.me-main { display: grid; gap: 20px; min-width: 0; }
.rrow.me-team { grid-template-columns: 28px minmax(0, 1fr) auto; }
.rrow a.rrow-main { color: inherit; text-decoration: none; }
@media (max-width: 900px) {
  .acct { order: 1; }
  .mainnav { order: 2; }
  .acct a { padding: 6px 9px; font-size: 13px; }
  .me-grid { grid-template-columns: 1fr; }
  .me-head { flex-direction: column; }
}
.star.labeled span { color: #9aa4b2; }
.star.labeled.on span, .star.labeled:hover span { color: #E09A00; }

/* ---------- Privacy / delete ---------- */
.legal .prose h2 { font-size: 22px; }
.todo { background: #fff4db; color: #8a5300; padding: 1px 6px; border-radius: 5px; }
footer a { color: inherit; text-decoration: underline; }
.field.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.field.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.field.check .field-error { flex-basis: 100%; }
.field.check { flex-wrap: wrap; }
.field.check a { color: var(--brand); font-weight: 700; }
details.danger { padding: 12px 16px; }
details.danger summary { cursor: pointer; color: #a8281c; font-weight: 700; }
details.danger p { color: var(--text-2); font-size: 14px; }
.danger-btn { background: #c0322b; border-color: #c0322b; }
.delete-form .field input { max-width: 260px; }
.notice { background: #e3f5ea; color: #17663a; font-weight: 600; padding: 10px 14px; border-radius: 10px; margin: 14px 0 0; }
