/* Sideline MN — light UI v5 · editorial + v4 readability · solid ink, no faded text */
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/BarlowCondensed-Black.ttf") format("truetype");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #F3F5F8;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --line: #CBD5E1;
  --ink: #0A0A0A;
  --ink-label: #1F2937;   /* meta / labels — never lighter */
  --ink-muted: #1F2937;   /* alias — solid dark, never faded gray */
  --accent: #0B5FFF;
  --accent-ink: #FFFFFF;
  --accent-soft: #DBEAFE;
  --link: #0747C7;
  --win: #047857;
  --loss: #B91C1C;
  --strip-bg: #0B1B3A;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,0.05), 0 6px 20px rgba(0,0,0,0.06);
  --max: 1120px;
  --nav-h: 56px;
  --bottom-nav-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Impact, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font);
  font-size: 17px; line-height: 1.55;
  font-weight: 500;
  /* Do NOT use antialiased — it lightens text */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}
a { color: var(--link); text-decoration: none; font-weight: 600; }
a:hover { color: var(--accent); text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.1rem 2.75rem; }

/* —— Top bar —— */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}
.topbar {
  max-width: var(--max); margin: 0 auto;
  padding: 0.7rem 1.1rem;
  display: flex; align-items: center; gap: 0.85rem;
  min-height: var(--nav-h);
}
.brand-link {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--ink); text-decoration: none; flex-shrink: 0;
}
.brand-link:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text {
  font-family: var(--display); font-weight: 800;
  font-size: 1.4rem; letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1; color: #000000;
}
.brand-text .mn {
  display: inline-block; margin-left: 0.35rem;
  background: var(--accent); color: #FFFFFF;
  padding: 0.14rem 0.42rem; border-radius: 5px; font-size: 0.85em;
}
.tagline-chip {
  display: none; color: var(--ink-label); font-size: 0.82rem; margin-left: auto;
  font-weight: 600;
}
@media (min-width: 720px) {
  .tagline-chip { display: block; }
}

.sport-nav {
  max-width: var(--max); margin: 0 auto;
  padding: 0 1.1rem 0.7rem;
  display: flex; gap: 0.4rem; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.sport-nav::-webkit-scrollbar { display: none; }
.sport-nav a {
  flex-shrink: 0;
  color: var(--ink-label); font-size: 0.9rem; font-weight: 600;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: transparent; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.sport-nav a:hover { color: #000000; background: var(--bg); text-decoration: none; }
.sport-nav a.active {
  color: #FFFFFF; background: var(--accent); border-color: var(--accent); font-weight: 700;
}

.section-nav {
  display: none;
  max-width: var(--max); margin: 0 auto;
  padding: 0 1.1rem 0.75rem;
  gap: 0.15rem; overflow-x: auto;
}
@media (min-width: 900px) {
  .section-nav { display: flex; }
}
.section-nav a {
  color: var(--ink-label); font-size: 0.9rem; font-weight: 600;
  padding: 0.45rem 0.75rem; border-radius: 8px; text-decoration: none;
}
.section-nav a:hover { color: #000000; background: var(--bg); text-decoration: none; }
.section-nav a.active { color: var(--accent); background: var(--accent-soft); font-weight: 700; }

/* —— Score ticker (dark band, white text only) —— */
.score-strip-wrap {
  border-bottom: 1px solid #061228;
  background: var(--strip-bg);
  color: #FFFFFF;
}
.score-strip {
  display: flex; gap: 0.6rem;
  overflow-x: auto; padding: 0.75rem 1.1rem;
  max-width: var(--max); margin: 0 auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.score-chip {
  flex: 0 0 auto; scroll-snap-align: start;
  min-width: 160px; max-width: 210px;
  background: #13284F; border: 1px solid #2A4570;
  border-radius: var(--radius-sm); padding: 0.6rem 0.75rem;
  text-decoration: none; color: #FFFFFF;
}
.score-chip:hover {
  border-color: #6B8FCF; background: #18325C;
  color: #FFFFFF; text-decoration: none;
}
.score-chip .chip-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: #FFFFFF; margin-bottom: 0.35rem;
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700;
}
.score-chip .chip-live {
  color: #061228; background: #86EFAC;
  padding: 0.12rem 0.4rem; border-radius: 4px; font-size: 0.7rem; font-weight: 800;
}
.score-chip .chip-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 0.5rem; font-size: 0.92rem; font-weight: 600; color: #FFFFFF;
}
.score-chip .chip-row + .chip-row { margin-top: 0.15rem; }
.score-chip .chip-name { color: #FFFFFF; font-weight: 600; }
.score-chip .chip-score {
  font-variant-numeric: tabular-nums; font-family: var(--display);
  font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em; color: #FFFFFF;
}
.score-chip .chip-row.winner .chip-name { color: #FFFFFF; font-weight: 700; }
.score-chip .chip-row.winner .chip-score { color: #86EFAC; font-weight: 800; }
.score-chip .chip-row.loser .chip-name,
.score-chip .chip-row.loser .chip-score { color: #FFFFFF; font-weight: 600; }

/* —— Typography —— */
h1, h2, .display {
  font-family: var(--display); font-weight: 800;
  letter-spacing: 0.02em; text-transform: uppercase; margin: 0;
  line-height: 1.1; color: #000000;
}
h2 { font-size: clamp(1.7rem, 4.2vw, 2.15rem); margin: 1.7rem 0 0.8rem; color: #000000; }
h3 {
  font-size: 1.12rem; margin: 1.15rem 0 0.5rem; color: #000000;
  text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 700;
}
.page-kicker {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--accent); margin: 1.35rem 0 0.4rem;
}
.meta { color: var(--ink-label); font-size: 0.95rem; line-height: 1.55; font-weight: 600; }
.note { font-size: 0.9rem; color: var(--ink-label); margin-top: 0.5rem; line-height: 1.5; font-weight: 600; }

.banner {
  background: var(--accent-soft);
  border: 1px solid #93C5FD;
  color: #000000; border-radius: var(--radius);
  padding: 0.9rem 1.05rem; margin: 1.15rem 0; font-size: 0.98rem; line-height: 1.55;
  font-weight: 500;
}
.banner strong { color: var(--accent); font-weight: 700; }

/* —— Cards / grids —— */
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.15rem; margin-bottom: 0.8rem;
  box-shadow: var(--shadow); color: var(--ink);
}
a.card:hover, .card.interactive:hover {
  border-color: #60A5FA; background: var(--bg-card-hover);
  text-decoration: none; color: var(--ink);
}
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.sport-card {
  display: block; position: relative; overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--line); border-radius: 18px;
  padding: 1.4rem 1.3rem 1.25rem; min-height: 156px;
  text-decoration: none; color: #000000;
  box-shadow: var(--shadow);
}
.sport-card:hover {
  border-color: var(--accent); color: #000000;
  text-decoration: none;
}
.sport-card .sc-label {
  font-family: var(--display); font-weight: 800; font-size: 1.95rem;
  letter-spacing: 0.03em; text-transform: uppercase; margin: 0.4rem 0; color: #000000;
}
.sport-card .sc-status {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.22rem 0.55rem; border-radius: 999px;
}
.sport-card .sc-status.live { background: var(--accent); color: #FFFFFF; }
.sport-card .sc-status.soon { background: #E5E7EB; color: #111827; border: 1px solid #9CA3AF; }
.sport-card .sc-note { color: var(--ink-label); font-size: 0.92rem; margin: 0.55rem 0 0; line-height: 1.45; font-weight: 600; }
.sport-card .sc-go {
  margin-top: 0.95rem; font-weight: 700; font-size: 0.95rem; color: var(--accent);
}

/* —— Scoreboard rows —— */
.scoreboard { display: flex; flex-direction: column; gap: 0.55rem; }
.score-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.8rem;
  align-items: center;
  background: #FFFFFF; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem;
}
.score-row:hover { border-color: #60A5FA; }
.score-teams { font-weight: 600; font-size: 1.02rem; color: #000000; }
.score-teams a { color: #000000; text-decoration: none; font-weight: 600; }
.score-teams a:hover { color: var(--accent); }
.score-teams .vs { color: var(--ink-label); font-weight: 600; margin: 0 0.3rem; font-size: 0.88rem; }
.score-teams .winner { color: #000000; font-weight: 700; }
.score-num {
  font-family: var(--display); font-weight: 800;
  font-size: 1.75rem; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums; color: #000000; line-height: 1;
}
.score-date { font-size: 0.85rem; color: var(--ink-label); margin-top: 0.28rem; font-weight: 600; }
.score-date a { color: var(--ink-label); font-weight: 600; }
.pill {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  padding: 0.18rem 0.5rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--link);
  margin-right: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em;
}

/* —— Rankings —— */
.rankings-page h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em; color: #000000; margin: 0.15rem 0 0.5rem; text-transform: uppercase;
}
.rank-note { max-width: 52rem; line-height: 1.5; margin: 0.35rem 0 0.75rem; }
.rank-summary {
  color: #000000; font-weight: 600; font-size: 0.95rem;
  margin: 0 0 1rem; padding: 0.7rem 0.9rem;
  background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 12px;
}
.rank-summary strong { font-weight: 800; color: var(--accent); }
.rank-panel-head h3 {
  font-family: var(--display); font-weight: 800; font-size: 1.45rem;
  color: #000000; margin: 0.4rem 0 0.75rem; text-transform: uppercase;
}
.rank-panel-head .meta { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; text-transform: none; }
.tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.4rem; margin-left: 0.25rem; padding: 0.05rem 0.4rem;
  border-radius: 999px; font-size: 0.78rem; font-weight: 800;
  background: #E2E8F0; color: #0F172A;
}
.tabs button.active .tab-count { background: rgba(255,255,255,0.25); color: #FFFFFF; }
.rank-tabs { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 0.45rem 0; }

.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 16px;
  background: #FFFFFF; box-shadow: var(--shadow);
  padding: 0;
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 999px; }

.rank-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 860px; }
.rank-table th, .rank-table td {
  text-align: left; padding: 0.65rem 0.55rem; border-bottom: 1px solid var(--line);
  color: #000000; font-weight: 500; white-space: nowrap;
}
.rank-table th {
  color: var(--ink-label); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 700; background: #F8FAFC;
  position: sticky; top: 0; z-index: 2;
}
.rank-table tr:hover td { background: #F1F5F9; }
.rank-table a { color: #000000; font-weight: 600; text-decoration: none; }
.rank-table a:hover { color: var(--accent); }
.rank-table .team-chip { max-width: 240px; }
.rank-table .team-cell { min-width: 11rem; }
.num { font-variant-numeric: tabular-nums; text-align: right; color: #000000; font-weight: 600; }
.rank-num {
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  color: #000000; width: 2.2rem;
}
.elo-cell { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: #000000; }
.margin-cell { font-weight: 800; }
.last-cell { white-space: nowrap; }
.last-result {
  display: inline-block; font-weight: 600; font-size: 0.88rem; color: #0F172A;
  background: #F1F5F9; border: 1px solid var(--line);
  padding: 0.22rem 0.5rem; border-radius: 8px;
}
.class-pill {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.18rem 0.45rem; border-radius: 999px;
  background: #DBEAFE; color: #1E3A8A;
}
.rank-move {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.7rem; font-size: 0.8rem; font-weight: 800; color: var(--ink-label);
}
.rank-move.up { color: var(--win); }
.rank-move.down { color: var(--loss); }
.move-cell { width: 2.4rem; }

/* Sticky rank + team on horizontal scroll */
.rank-table .sticky-col {
  position: sticky; left: 0; z-index: 3; background: #FFFFFF;
  box-shadow: 4px 0 8px -6px rgba(15, 23, 42, 0.35);
}
.rank-table .sticky-col-2 {
  position: sticky; left: 2.4rem; z-index: 3; background: #FFFFFF;
  box-shadow: 6px 0 10px -6px rgba(15, 23, 42, 0.3);
}
.rank-table thead .sticky-col,
.rank-table thead .sticky-col-2 { background: #F8FAFC; z-index: 4; }
.rank-table tr:hover .sticky-col,
.rank-table tr:hover .sticky-col-2 { background: #F1F5F9; }

@media (max-width: 640px) {
  .rank-table { font-size: 0.88rem; min-width: 780px; }
  .rank-table th, .rank-table td { padding: 0.55rem 0.4rem; }
  .rank-table .sticky-col-2 { left: 2rem; }
  .rank-summary { font-size: 0.85rem; }
}



table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.55rem 0.45rem; border-bottom: 1px solid var(--line); color: #000000; font-weight: 500; }
th { color: var(--ink-label); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
tr:hover td { background: #F1F5F9; }

/* —— POTW hero (dark, white text only) —— */
.potw-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0B1B3A 0%, #0E2448 55%, #12305A 100%);
  border: 1px solid #1E3A6E;
  border-radius: 20px; padding: 1.6rem 1.4rem 1.4rem;
  margin: 0.8rem 0 1.3rem;
  color: #FFFFFF;
  box-shadow: var(--shadow);
}
.potw-hero .hero-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: #FFFFFF; color: #0A0A0A;
  font-size: 0.76rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; padding: 0.32rem 0.7rem; border-radius: 999px;
}
.potw-hero .hero-name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.3rem, 8vw, 3.5rem); letter-spacing: 0.02em;
  text-transform: uppercase; margin: 0.7rem 0 0.25rem; line-height: 0.95;
  color: #FFFFFF;
}
.potw-hero .hero-school {
  font-size: 1.1rem; font-weight: 600; color: #FFFFFF;
}
.potw-hero .hero-stats {
  display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.05rem;
}
.potw-hero .stat-pill {
  background: #13284F; border: 1px solid #3B5A8C;
  border-radius: 10px; padding: 0.5rem 0.75rem;
}
.potw-hero .stat-pill .sv {
  font-family: var(--display); font-weight: 800; font-size: 1.4rem;
  color: #FFFFFF; line-height: 1; display: block;
}
.potw-hero .stat-pill .sl {
  font-size: 0.74rem; color: #FFFFFF; text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 700;
}
.potw-hero .note,
.potw-hero .meta,
.potw-hero .meta a,
.potw-hero li { color: #FFFFFF; font-weight: 600; }
.potw-hero .meta a:hover { color: #FFFFFF; text-decoration: underline; }
.potw-hero .btn {
  background: #FFFFFF; color: #0A0A0A; font-weight: 700;
}
.potw-hero .btn:hover { color: #0A0A0A; }
.potw-list .card h3 { font-size: 1.08rem; color: #000000; }
.potw-rank {
  font-family: var(--display); font-weight: 800; color: #000000;
  font-size: 1.45rem; margin-right: 0.35rem;
}

/* —— Brackets —— */
.bracket { margin-bottom: 1.3rem; }
.game-slot {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.75rem; border: 1px solid var(--line);
  border-radius: 8px; margin-bottom: 0.4rem; background: var(--bg);
  font-size: 0.98rem; color: #000000; font-weight: 500;
}
.game-slot .seed { color: var(--ink-label); font-size: 0.82rem; min-width: 1.5rem; font-weight: 700; }
.game-slot.bye { background: #EEF2F7; }
.game-slot.bye strong, .game-slot.bye { color: var(--ink-label); font-weight: 600; }
.status {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  color: var(--link); letter-spacing: 0.04em;
}

/* —— Embed / forms / misc —— */
.yt {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); background: #0B1B3A; margin: 0.5rem 0 1rem;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.form-card label { display: block; font-size: 0.95rem; font-weight: 600; margin: 0.65rem 0 0.3rem; color: #000000; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 0.65rem 0.8rem;
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-weight: 500; background: #FFFFFF; color: #000000;
}
.form-card input:focus { outline: 2px solid #93C5FD; border-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.9rem; padding: 0.65rem 1.2rem;
  background: var(--accent); color: #FFFFFF; border: none;
  border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  cursor: pointer; text-decoration: none; letter-spacing: 0.02em;
}
.btn:hover { color: #FFFFFF; text-decoration: none; }
.btn.secondary {
  background: #FFFFFF; color: #000000; border: 1.5px solid var(--line); font-weight: 700;
}
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }


.site-footer {
  margin-top: 2.2rem; padding: 1.85rem 1.1rem 2.1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-label); font-size: 0.9rem; text-align: center; line-height: 1.55;
  font-weight: 600;
}
.site-footer strong { color: #000000; font-weight: 700; }

.tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.8rem 0 1.05rem; }
.tabs button {
  border: 1.5px solid var(--line); background: #FFFFFF; color: var(--ink-label);
  padding: 0.45rem 0.9rem; border-radius: 999px; font-weight: 700;
  font-size: 0.9rem; cursor: pointer; font-family: inherit;
}
.tabs button:hover { color: #000000; border-color: #60A5FA; }
.tabs button.active {
  background: var(--accent); color: #FFFFFF; border-color: var(--accent);
}
.panel { display: none; }
.panel.active { display: block; }

.recap-card .recap-date {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.35rem;
}
.recap-card h3 { margin-top: 0; color: #000000; }
.recap-card h3 a { color: #000000; text-decoration: none; font-weight: 700; }
.recap-card h3 a:hover { color: var(--accent); }
.recap-body {
  white-space: pre-wrap; font: inherit; font-weight: 500;
  background: var(--bg); border: 1px solid var(--line);
  padding: 1.1rem; border-radius: var(--radius); color: #000000; line-height: 1.55;
}

.team-hero {
  background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 18px; padding: 1.4rem 1.3rem; margin: 1rem 0;
  box-shadow: var(--shadow);
}
.team-hero h2 {
  font-size: clamp(1.9rem, 5vw, 2.5rem); margin: 0.35rem 0 0.5rem; color: #000000;
}
.team-stat-row {
  display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.9rem;
}
.team-stat {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.55rem 0.8rem; min-width: 76px;
}
.team-stat .tv {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem;
  color: var(--accent); line-height: 1;
}
.team-stat .tl {
  font-size: 0.74rem; color: var(--ink-label); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 700;
}

/* —— Sticky bottom nav (mobile) —— */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #FFFFFF;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .bottom-nav { display: none; }
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.18rem;
  color: var(--ink-label); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none; padding: 0.4rem;
}
.bottom-nav a svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 2; }
.bottom-nav a.active { color: var(--accent); }
.bottom-nav a:hover { color: #000000; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
/* Keep entrance subtle but never leave text at opacity < 1 after load */
.fade-in { animation: none; }

code { font-size: 0.9em; background: #E5E7EB; padding: 0.1em 0.35em; border-radius: 4px; color: #000000; font-weight: 600; }


/* ===== v5 editorial / magazine ===== */
.section-head { margin: 1.75rem 0 0.85rem; }
.section-head h2 { margin-top: 0.25rem; }
.date-head { margin: 1.5rem 0 0.65rem; font-size: 1.05rem; }

.badge {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.22rem 0.55rem; border-radius: 999px;
  background: #E5E7EB; color: #000000;
}
.badge-gotw { background: #0B5FFF; color: #FFFFFF; }
.badge-upset { background: #DC2626; color: #FFFFFF; }
.badge-thriller { background: #C2410C; color: #FFFFFF; }
.badge-potw { background: #7C3AED; color: #FFFFFF; }
.badge-soon { background: #FFFFFF; color: #0A0A0A; }
.badge-class { background: #DBEAFE; color: #0747C7; }

.byline {
  font-size: 0.88rem; font-weight: 600; color: #1F2937;
  margin: 0.35rem 0 0;
}

/* Team chips / monograms */
.team-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  text-decoration: none; color: #000000; font-weight: 600;
  max-width: 100%;
}
.team-chip:hover { color: #0B5FFF; text-decoration: none; }
.team-chip .mono {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 0.85rem;
  color: #FFFFFF; letter-spacing: 0.02em;
}
.team-chip.sm .mono { width: 1.7rem; height: 1.7rem; font-size: 0.72rem; border-radius: 6px; }
.team-chip .tname {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.95rem; color: #000000; font-weight: 600;
}
.team-chip:hover .tname { color: #0B5FFF; }

/* Editorial hero */
.editorial-hero {
  position: relative; overflow: hidden;
  border-radius: 22px; margin: 1.1rem 0 1.35rem;
  background: linear-gradient(135deg, #0B1B3A 0%, #0B5FFF 48%, #00A3E0 100%);
  color: #FFFFFF; min-height: 280px;
  box-shadow: 0 12px 40px rgba(11, 27, 58, 0.22);
}
.editorial-hero.hero-soon {
  background: linear-gradient(145deg, #1E1B4B 0%, #5B21B6 50%, #0B5FFF 100%);
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-content { position: relative; padding: 1.6rem 1.4rem 1.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.hero-kicker {
  font-size: 0.88rem; font-weight: 700; color: #FFFFFF;
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.55rem;
}
.hero-matchup {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  text-transform: uppercase; letter-spacing: 0.02em;
  line-height: 1.05; color: #FFFFFF; margin: 0 0 0.85rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem 0.65rem;
}
.hero-matchup .hero-score {
  color: #FFFFFF; background: rgba(0,0,0,0.28);
  padding: 0.1rem 0.55rem; border-radius: 8px;
}
.hero-matchup .is-winner { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.hero-teams {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin: 0.75rem 0;
}
.hero-teams .team-chip .tname { color: #FFFFFF; }
.hero-teams .team-chip:hover .tname { color: #DBEAFE; }
.hero-teams .at { font-weight: 700; color: #FFFFFF; }
.hero-swatches { display: flex; gap: 0.35rem; margin: 0.75rem 0 1rem; }
.hero-swatches span { width: 2.5rem; height: 0.45rem; border-radius: 999px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.editorial-hero .btn.secondary {
  background: transparent; color: #FFFFFF; border-color: #FFFFFF;
}
.editorial-hero .btn.secondary:hover { background: #FFFFFF; color: #0A0A0A; }

/* Magazine grid */
.mag-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin: 1rem 0 1.5rem;
}
@media (min-width: 720px) {
  .mag-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .mag-grid > .mag-card { grid-column: span 3; }
  .mag-grid > .mag-feature { grid-column: span 4; grid-row: span 1; min-height: 180px; }
  .mag-grid > .mag-potw { grid-column: span 2; }
  .mag-grid > .mag-upset { grid-column: span 2; }
  .mag-grid-2 { grid-template-columns: 1fr 1fr; }
  .mag-grid-2 > * { grid-column: auto; }
}
.mag-card {
  display: block; background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 16px; padding: 1.15rem 1.2rem;
  text-decoration: none; color: #000000;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  min-height: 140px;
}
.mag-card:hover {
  border-color: #0B5FFF; transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(11,95,255,0.12);
  text-decoration: none; color: #000000;
}
.mag-card h3 {
  font-family: var(--display); font-weight: 800; font-size: 1.45rem;
  text-transform: uppercase; letter-spacing: 0.02em; margin: 0.5rem 0 0.35rem;
  color: #000000; line-height: 1.1;
}
.mag-date {
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #0B5FFF;
}
.mag-go { margin-top: 0.75rem; font-weight: 700; color: #0B5FFF; font-size: 0.92rem; }
.mag-feature {
  background: linear-gradient(160deg, #F8FAFF 0%, #FFFFFF 60%);
  border-color: #93C5FD;
}
.mag-potw {
  background: linear-gradient(160deg, #F5F3FF 0%, #FFFFFF 70%);
  border-color: #C4B5FD;
}
.mag-upset {
  background: linear-gradient(160deg, #FEF2F2 0%, #FFFFFF 70%);
  border-color: #FECACA;
}
.action-card h3 { margin-top: 0; }

/* Hot teams rail */
.hot-rail {
  display: flex; gap: 0.65rem; overflow-x: auto; padding: 0.15rem 0 0.5rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.hot-card {
  flex: 0 0 auto; scroll-snap-align: start;
  min-width: 168px; max-width: 200px;
  background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 14px; padding: 0.85rem 0.9rem;
  text-decoration: none; color: #000000;
  transition: border-color 0.15s, transform 0.15s;
}
.hot-card:hover {
  border-color: #0B5FFF; transform: translateY(-2px);
  text-decoration: none; color: #000000;
}
.hot-rank {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  color: #0B5FFF; display: block; line-height: 1; margin-bottom: 0.4rem;
}
.hot-meta {
  display: block; margin-top: 0.45rem;
  font-size: 0.82rem; font-weight: 600; color: #1F2937;
}
.hot-card .team-chip { display: flex; }
.hot-card .tname { white-space: normal; }

/* Top 10 visual */
.top10-block { margin: 1.25rem 0 1.75rem; }
.top10-list {
  background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.top10-row {
  display: grid; grid-template-columns: 3.2rem 1fr auto;
  gap: 0.65rem; align-items: center;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--line);
  text-decoration: none; color: #000000;
  transition: background 0.12s;
}
.top10-row:last-child { border-bottom: none; }
.top10-row:hover { background: #F1F5F9; text-decoration: none; color: #000000; }
.top10-num {
  font-family: var(--display); font-weight: 800;
  font-size: 2rem; line-height: 1; color: #0B5FFF;
}
.top10-main { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.top10-rec { font-size: 0.85rem; font-weight: 600; color: #1F2937; }
.top10-elo {
  font-family: var(--display); font-weight: 800;
  font-size: 1.25rem; color: #000000;
}

.score-badges { margin-bottom: 0.25rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.score-row { transition: border-color 0.15s, transform 0.15s; }
.score-row:hover { transform: translateY(-1px); }

.recap-hed {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  text-transform: uppercase; letter-spacing: 0.02em;
  color: #000000; margin: 0.35rem 0 0.9rem; line-height: 1.1;
}

.team-hero {
  display: grid; gap: 0.85rem;
  background: linear-gradient(160deg, var(--team-soft, #DBEAFE) 0%, #FFFFFF 55%);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 1.4rem 1.3rem; margin: 1rem 0;
  box-shadow: var(--shadow);
}
.team-mono {
  width: 4.2rem; height: 4.2rem; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  color: #FFFFFF; letter-spacing: 0.04em;
}
@media (min-width: 600px) {
  .team-hero {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
  .team-hero .team-stat-row { grid-column: 1 / -1; }
}

.potw-hero .team-chip .tname { color: #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
  .mag-card:hover, .hot-card:hover, .score-row:hover { transform: none; }
}

.hero-scoreboard { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.35rem 0 0.85rem; }
.hero-side {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  color: #FFFFFF;
}
.hero-team {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.65rem, 5.5vw, 2.5rem);
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05;
}
.hero-pts {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-side.is-winner .hero-team,
.hero-side.is-winner .hero-pts {
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px;
}

/* v6 rankings mobile rhythm */
@media (max-width: 640px) {
  .rankings-page .rank-note { font-size: 0.82rem; margin-bottom: 0.5rem; }
  .rankings-page .rank-summary {
    font-size: 0.8rem; padding: 0.55rem 0.7rem; margin-bottom: 0.65rem;
    /* keep counts; allow wrap */
    line-height: 1.35;
  }
  .rankings-page .section-head { margin-bottom: 0.25rem; }
  .rankings-page h1 { font-size: 1.85rem; margin-bottom: 0.25rem; }
  .rank-tabs { gap: 0.35rem; margin: 0.4rem 0 0.65rem; }
  .rank-panel-head h3 { font-size: 1.2rem; margin: 0.15rem 0 0.5rem; }
  .table-scroll { margin-bottom: 4.5rem; /* clear bottom nav */ }
}


/* —— v7 week selector + team schedule —— */
.week-scores { margin-top: 0.5rem; }
.week-selector {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line, #CBD5E1);
  -webkit-overflow-scrolling: touch;
}
a.week-tab { text-decoration: none; display: inline-block; box-sizing: border-box; }
.week-tab {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--line, #CBD5E1);
  background: #fff;
  color: var(--ink, #0A0A0A);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  min-height: 44px;
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.week-tab .week-count {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted, #1F2937);
  margin-top: 0.1rem;
}
.week-tab.active,
.week-tab[aria-selected="true"] {
  background: var(--accent, #0B5FFF);
  border-color: var(--accent, #0B5FFF);
  color: #fff;
}
.week-tab.active .week-count,
.week-tab[aria-selected="true"] .week-count { color: #FFFFFF; }
.week-panel.hidden,
.week-panel[hidden] { display: none !important; }
.schedule-card { overflow: hidden; }
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.schedule-table th,
.schedule-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line, #CBD5E1);
  vertical-align: middle;
}
.schedule-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted, #1F2937);
}
.sched-loc { color: var(--ink-muted, #1F2937); margin-right: 0.25rem; font-weight: 600; }
.sched-res { font-weight: 800; }
.sched-res.res-w { color: var(--win, #047857); }
.sched-res.res-l { color: var(--loss, #B91C1C); }
.sched-score { font-variant-numeric: tabular-nums; font-weight: 700; }
.sched-src a { font-size: 0.8rem; }


/* —— v8 search + playoff preview —— */
.topbar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.topbar .brand-link { margin-right: auto; }
.header-search { position: relative; margin-left: auto; }
.search-toggle {
  appearance: none; border: 1px solid var(--line, #CBD5E1); background: #fff;
  border-radius: 999px; padding: 0.45rem 0.85rem; font: inherit; font-weight: 650;
  font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink, #0A0A0A);
}
.search-toggle svg { width: 18px; height: 18px; }
.header-search.is-open .search-toggle { background: var(--accent, #0B5FFF); color: #fff; border-color: var(--accent, #0B5FFF); }
.search-panel {
  position: absolute; right: 0; top: calc(100% + 0.45rem); width: min(92vw, 380px);
  background: #fff; border: 1px solid var(--line, #CBD5E1); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14); z-index: 80; padding: 0.65rem;
}
.search-panel-head { display: flex; gap: 0.4rem; align-items: center; }
.search-input {
  flex: 1; border: 1px solid var(--line, #CBD5E1); border-radius: 10px;
  padding: 0.65rem 0.75rem; font: inherit; font-size: 1rem; font-weight: 600;
}
.search-input:focus { outline: 2px solid var(--accent, #0B5FFF); outline-offset: 1px; }
.search-close {
  appearance: none; border: 0; background: #F3F5F8; border-radius: 8px;
  width: 2.2rem; height: 2.2rem; font-size: 1.2rem; cursor: pointer; font-weight: 700;
}
.search-results { margin-top: 0.5rem; max-height: 60vh; overflow: auto; }
.search-hit {
  display: flex; flex-direction: column; gap: 0.1rem; padding: 0.55rem 0.65rem;
  border-radius: 10px; text-decoration: none; color: inherit;
}
.search-hit:hover, .search-hit:focus { background: #EFF6FF; }
.search-hit-name { font-weight: 750; }
.search-hit-meta { font-size: 0.8rem; color: var(--ink-muted, #1F2937); font-weight: 600; }
.search-empty { padding: 0.75rem; color: var(--ink-muted, #1F2937); font-weight: 600; margin: 0; }
@media (max-width: 720px) {
  .header-search.is-open .search-panel {
    position: fixed; left: 0.75rem; right: 0.75rem; top: 0.75rem; width: auto;
  }
  .tagline-chip { display: none; }
}

.playoff-preview { margin: 1.25rem 0 1.75rem; }
.playoff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.85rem; }
.playoff-card {
  background: #fff; border: 1px solid var(--line, #CBD5E1); border-radius: 14px;
  padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.55rem;
}
.playoff-card.is-final { border-color: #A7F3D0; background: #F0FDF4; }
.playoff-card-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.playoff-edge {
  font-size: 0.78rem; font-weight: 750; color: #0747C7; background: #DBEAFE;
  border-radius: 999px; padding: 0.2rem 0.55rem; white-space: nowrap;
}
.playoff-team { display: grid; grid-template-columns: 2rem 1fr auto; gap: 0.2rem 0.55rem; align-items: baseline; }
.playoff-seed { font-weight: 800; color: var(--ink-muted, #1F2937); min-width: 1.6rem; }
.playoff-name { font-weight: 750; text-decoration: none; color: inherit; }
.playoff-name:hover { color: var(--accent, #0B5FFF); }
.playoff-rec { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-muted, #1F2937); }
.playoff-path { grid-column: 2 / -1; font-size: 0.78rem; color: var(--ink-muted, #1F2937); font-weight: 600; margin-top: -0.25rem; }
.playoff-score { font-weight: 850; font-variant-numeric: tabular-nums; }
.playoff-final-tag { color: var(--win, #047857); font-weight: 800; font-size: 0.78rem; }
.playoff-bar {
  height: 8px; border-radius: 999px; background: #E2E8F0; overflow: hidden; display: flex;
}
.playoff-bar > span { display: block; height: 100%; background: var(--accent, #0B5FFF); }
.playoff-bar > span.away { background: #64748B; margin-left: auto; }


/* —— SEO / guide articles —— */
.article-prose { max-width: 42rem; }
.article-prose .byline { margin: 0 0 1.25rem; font-weight: 600; color: var(--ink-label, #1F2937); }
.article-prose h2 { margin: 1.75rem 0 0.65rem; font-size: 1.35rem; color: var(--ink, #0A0A0A); }
.article-prose h3 { margin: 1.35rem 0 0.5rem; font-size: 1.1rem; color: var(--ink, #0A0A0A); }
.article-prose p, .article-prose li { color: var(--ink, #0A0A0A); font-weight: 500; line-height: 1.55; }
.article-prose ul, .article-prose ol { padding-left: 1.25rem; margin: 0.6rem 0 1rem; }
.article-prose li { margin: 0.35rem 0; }
.article-prose hr { border: 0; border-top: 1px solid var(--line, #CBD5E1); margin: 1.75rem 0; }
.article-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.article-table th, .article-table td {
  text-align: left; padding: 0.55rem 0.65rem; border-bottom: 1px solid var(--line, #CBD5E1);
  color: var(--ink, #0A0A0A); font-weight: 500;
}
.article-table th { font-weight: 700; background: #F8FAFC; }
