/* Maryland flag palette: Calvert black & gold, Crossland red & white */
:root {
  color-scheme: light;   /* light theme only (dark mode removed for now) */
  --md-gold: #f2b705; --md-gold-deep: #d79c00; --md-black: #111111; --md-red: #c8102e; --md-white: #ffffff;
  --bg: #f6f4ee; --surface: #ffffff; --surface-2: #faf8f3; --border: #e7e2d6;
  --text: #141414; --muted: #6b665c; --faint: #a39d90;
  --accent: var(--md-gold-deep); --accent-soft: rgba(242,183,5,.16); --accent-ink: #7a5800;
  --win: var(--md-gold); --win-ink: #1a1400; --loss: var(--md-red); --tie: #8b8b8b;
  --shadow: 0 1px 2px rgba(20,20,20,.05), 0 6px 20px rgba(20,20,20,.06);
  --hero-bg: #111111; --hero-ink: #f3f0e8;
  --ink: #f3f0e8; --ink-muted: #bdb8ad;   /* text on black panels (nav, hero, headers) */
  --logo-tile: #ffffff; --logo-dim: none; --flag-dim: none; --stripe-opacity: .8; --team-glow: .55;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* Overscroll (rubber-band) areas above the header and below the footer match their black */
html { background: var(--md-black); }
body { background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.display { font-family: "Barlow Condensed", Inter, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: var(--md-black); color: var(--ink); }
.nav-inner { max-width: 1360px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text b { font-family: "Barlow Condensed", sans-serif; font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--md-gold); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.brand-flag { width: 44px; height: 29px; border-radius: 4px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.brand-flag svg, .brand-flag img { display: block; object-fit: cover; width: 100%; height: 100%; filter: var(--flag-dim); }
.brand-flag.small { width: 30px; height: 20px; }
.brand .crumb a:hover { color: var(--md-gold); }
.brand .crumb .sep { color: var(--ink-muted); margin: 0 7px; font-weight: 600; }
.brand .crumb .sport { color: var(--md-gold); }
.brand .crumb .sport:hover { color: var(--ink); }
.nav-links { margin-left: auto; display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-muted); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--md-black); background: var(--md-gold); }
.flag-stripe { height: 3px; opacity: var(--stripe-opacity); background:
  repeating-linear-gradient(-45deg, var(--md-gold) 0 6px, #000 6px 12px) left / 50% 100% no-repeat,
  repeating-linear-gradient(-45deg, var(--md-red) 0 6px, var(--ink-muted) 6px 12px) right / 50% 100% no-repeat; }
@media (max-width: 640px) { .brand-text small { display: none; } .nav-links a[data-nav="how"] { display: none; } .brand-text b { font-size: 16px; } }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; }
.hero-inner { max-width: 1360px; margin: 0 auto; padding: 56px 16px 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(42px, 7vw, 76px); line-height: .92; margin: 10px 0 16px; letter-spacing: -.005em; }
.hero h1 span { color: var(--md-gold); }
.hero .eyebrow { color: var(--md-gold); }
.hero p { color: var(--ink-muted); max-width: 520px; font-size: 16px; margin: 0 0 24px; }
.hero-flag { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; transform: perspective(900px) rotateY(-14deg) rotateX(4deg); box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); animation: wave 7s ease-in-out infinite; }
.hero-flag svg, .hero-flag img { object-fit: cover; width: 100%; height: 100%; display: block; filter: var(--flag-dim); }
.hero-flag::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,.1), transparent 30%, rgba(0,0,0,.22) 55%, transparent 75%, rgba(255,255,255,.05)); background-size: 200% 100%; animation: sheen 7s ease-in-out infinite; }
@keyframes wave { 0%,100% { transform: perspective(900px) rotateY(-14deg) rotateX(4deg); } 50% { transform: perspective(900px) rotateY(-8deg) rotateX(2deg); } }
@keyframes sheen { 0%,100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .hero-flag, .hero-flag::after { animation: none; } }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700; border: 0; cursor: pointer; transition: transform .12s, background .12s; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--md-gold); color: var(--md-black); }
.btn.red { background: var(--md-red); color: var(--ink); }
.btn.ghost { background: rgba(255,255,255,.06); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 34px; font-weight: 800; line-height: 1; color: var(--ink); }
.hero-stats span { font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
@media (max-width: 820px) { .hero-inner { grid-template-columns: 1fr; padding: 36px 16px 44px; } .hero-flag { max-width: 360px; } }

/* Sections */
.section { padding: 44px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 34px; line-height: 1; margin: 6px 0 0; }
.section-head .eyebrow { color: var(--md-red); }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* Class picker */
.picker { display: grid; grid-template-columns: repeat(var(--picks, 2), 1fr); gap: 18px; }
@media (max-width: 820px) { .picker { grid-template-columns: 1fr; } }
.pick { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.pick-head { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.pick-head h3 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; font-size: 26px; margin: 0; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.pick-head h3 i { width: 10px; height: 26px; border-radius: 3px; background: var(--md-gold); display: inline-block; }
.pick.girls .pick-head h3 i { background: var(--md-red); }
.pick-head a { font-size: 13px; font-weight: 600; color: var(--muted); }
.pick-head a:hover { color: var(--text); }
.pick-grid { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); }
@media (max-width: 520px) { .pick-grid { grid-template-columns: repeat(2, 1fr); } }
.cls-tile { padding: 18px 14px; border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; transition: background .15s; }
.cls-tile:last-child { border-right: 0; }
.cls-tile:hover { background: var(--surface-2); }
.cls-tile .cls-big { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 40px; line-height: 1; }
.cls-tile small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.cls-tile .lead { font-size: 12px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .cls-tile:nth-child(2n) { border-right: 0; } .cls-tile:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--border); } }

/* Highlight cards */
.gender-tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.gender-tabs button { border: 0; background: transparent; padding: 8px 18px; border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--muted); }
.gender-tabs button[aria-selected="true"] { background: var(--md-black); color: var(--md-gold); }
.hl-grid { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 16px; }
@media (max-width: 1020px) { .hl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hl-grid { grid-template-columns: 1fr; } }
.hl { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.hl-top { position: relative; padding: 18px 16px 16px; color: var(--ink); background: var(--md-black); overflow: hidden; }
.hl-top::before { content: ""; position: absolute; inset: 0; background: var(--team, var(--md-gold)); opacity: var(--team-glow); mix-blend-mode: screen; }
.hl-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 30%, rgba(0,0,0,.65)); }
.hl-top > * { position: relative; z-index: 1; }
.hl-top .row { display: flex; justify-content: space-between; align-items: center; }
.hl-cls { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.45); padding: 3px 10px; border-radius: 6px; }
.hl-cls b { color: var(--md-gold); }
.hl-crown { font-size: 12px; font-weight: 700; color: var(--md-gold); text-transform: uppercase; letter-spacing: .1em; }
.hl-lead { display: flex; gap: 14px; align-items: center; margin-top: 16px; cursor: pointer; }
.hl-lead h4 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 26px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.hl-lead .sub { font-size: 12px; opacity: .85; margin-top: 4px; }
.hl-lead .big { font-family: "JetBrains Mono", monospace; font-weight: 600; font-size: 13px; margin-top: 6px; }
.hl-list { padding: 6px 0; flex: 1; }
.hl-row { display: grid; grid-template-columns: 22px 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 16px; cursor: pointer; }
.hl-row:hover { background: var(--surface-2); }
.hl-row .n { font-weight: 700; color: var(--faint); font-size: 13px; text-align: center; }
.hl-row .nm { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-row .nm small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.hl-foot { display: block; padding: 12px 16px; border-top: 1px solid var(--border); font-weight: 700; font-size: 13px; color: var(--accent-ink); }
.hl-foot:hover { background: var(--surface-2); }

.unbeaten { display: flex; flex-wrap: wrap; gap: 10px; }
.ub { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px 6px 6px; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s; }
.ub:hover { transform: translateY(-1px); }
.ub b { font-size: 14px; }
.ub small { color: var(--muted); font-size: 12px; }
.ub .tag { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 5px; background: var(--md-black); color: var(--md-gold); }

.how-grid { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 16px; }
@media (max-width: 820px) { .how-grid { grid-template-columns: 1fr; } }
.how-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.how-card .k { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 40px; line-height: 1; }
.how-card.w .k { color: var(--accent); } .how-card.t .k { color: var(--tie); } .how-card.l .k { color: var(--md-red); }
.how-card h4 { margin: 8px 0 6px; font-size: 16px; }
.how-card p { margin: 0; color: var(--muted); font-size: 14px; }
/* How it works: sections (football has three) separated by space and a rule */
.how-page { padding-top: 32px; }
.note-fun { margin-bottom: 36px; padding: 14px 18px; border-radius: 14px; border-left: 4px solid var(--md-gold); background: var(--accent-soft); font-size: 15px; line-height: 1.55; }
.how-section + .how-section { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--border); }
.example { margin-top: 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: 14px; padding: 16px 18px; color: var(--muted); font-size: 14px; }
.example b { color: var(--text); }

/* Logos */
/* Circular avatars (circle + background baked into the image); ring in the team's color */
.logo { --sz: 32px; --ring: var(--border); width: var(--sz); height: var(--sz); border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  box-shadow: 0 0 0 calc(1px + var(--sz) * .03) var(--ring); filter: var(--logo-dim); }
.logo img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.logo.mono-logo { background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: calc(var(--sz) * .34); filter: none; }

/* Rankings page */
.page-head { background: var(--md-black); color: var(--ink); padding: 26px 0 30px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -40px; top: -20px; width: 420px; height: 280px; opacity: .07; background: var(--flag-url) center / cover no-repeat; transform: rotate(-8deg); border-radius: 12px; }
.crumbs { font-size: 13px; color: var(--ink-muted); display: flex; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 6vw, 56px); line-height: 1; margin: 10px 0 6px; }
.page-head h1 span { color: var(--md-gold); }
.page-head .sub { color: var(--ink); opacity: .82; font-size: 15px; line-height: 1.55; max-width: 860px; }
.page-head .sub b { color: var(--md-gold); font-weight: 700; }
/* Drawer: watch on NFHS Network */
.game .watch { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; background: var(--md-red); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.game .watch:hover, .game .tix:hover { filter: brightness(1.1); }
.game .links { display: flex; gap: 4px; justify-content: flex-end; }
.game .links:empty { display: none; }
.game .tix { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; margin-bottom: 4px; border-radius: 6px; color: var(--text); border: 1px solid var(--border); background: var(--surface); font-size: 11px; font-weight: 700; }
.game .tix .icon { width: 15px; height: 15px; }
.switches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.pill-group { display: inline-flex; background: rgba(255,255,255,.07); border-radius: 11px; padding: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.pill-group a, .pill-group button { padding: 7px 14px; border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--ink-muted); border: 0; background: none; cursor: pointer; }
.pill-group a:hover { color: var(--ink); }
.pill-group .on { background: var(--md-gold); color: var(--md-black); }
.pill-group.red .on { background: var(--md-red); color: var(--ink); }


.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); margin: 18px 0 40px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--border); }
/* Toolbar controls share one height so they line up */
.seg { display: inline-flex; height: 44px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 0 16px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.search { flex: 1; min-width: 180px; position: relative; }
.search input { width: 100%; height: 44px; padding: 0 12px 0 36px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); outline: none; }
.search input:focus, .sortsel:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.sortsel { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding-left: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.sortsel select { appearance: none; -webkit-appearance: none; height: 100%; border: 0; background: transparent; padding: 0 34px 0 2px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; outline: none; }
.sortsel select option { background: var(--surface); color: var(--text); }
.sortsel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; user-select: none; cursor: pointer; }
th:hover { color: var(--text); }
th .arrow { opacity: .35; margin-left: 4px; }
th.active .arrow { opacity: 1; color: var(--accent); }
td { padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; }
.rk { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 9px; font-weight: 700; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); }
.teamcell { display: flex; align-items: center; gap: 12px; }
.teamcell .nm { font-weight: 600; }
td.team-td { white-space: normal; width: 100%; }  /* the only column allowed to wrap, so long names never force a scroll */
.teamcell .nm, .teamcell small { line-height: 1.25; }
.teamcell small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.tag.cls { background: var(--md-black); color: var(--md-gold); border-color: transparent; font-weight: 800; }
.rec .w { color: var(--accent); font-weight: 600; } .rec .l { color: var(--loss); font-weight: 600; } .rec .t { color: var(--tie); font-weight: 600; }
.pct { font-size: 12px; color: var(--faint); margin-left: 6px; }
.sos { font-weight: 600; }
.sosrk { font-size: 11px; color: var(--faint); margin-left: 6px; display: inline-block; min-width: 26px; text-align: left; }
.avgcell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.bar { width: 110px; height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--md-gold-deep), var(--md-gold)); }
.avg { font-weight: 700; min-width: 44px; text-align: right; }
/* Drop lower-priority columns as the window narrows so the table never scrolls sideways */
@media (max-width: 1240px) { .hide-lg { display: none; } }
@media (max-width: 1060px) { .hide-md { display: none; } .bar { width: 70px; } }
@media (max-width: 900px) { .hide-reg { display: none; } }
@media (max-width: 760px) { .bar, .table-wrap .pct, .sosrk { display: none; } }
@media (max-width: 480px) { .hide-xs { display: none; } td, th { padding: 9px 5px; } .teamcell .logo { --sz: 28px !important; } .teamcell { gap: 8px; } }
@media (max-width: 760px) { .hide-sm { display: none; } .bar { width: 56px; } td, th { padding: 9px 8px; } .teamcell small { display: none; } }

.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; padding: 16px; }
.class-label { grid-column: 1 / -1; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 24px; text-transform: uppercase; margin: 8px 0 -4px; }
.rcard { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.rhead { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--md-black); color: var(--ink); }
.rhead h3 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.rhead h3 span { color: var(--md-gold); }
.rhead small { color: var(--ink-muted); font-size: 12px; }
.rrow { display: grid; grid-template-columns: 30px 32px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.rrow:last-child { border-bottom: 0; }
.rrow:hover { background: var(--surface-2); }
.rrow .rk { min-width: 26px; height: 26px; font-size: 12px; }
.rrow .nm { font-weight: 600; font-size: 14px; }
.rrow .meta { font-size: 12px; color: var(--muted); }
.rrow .ov { font-size: 11px; color: var(--faint); text-align: right; line-height: 1.2; }
.empty { padding: 48px; text-align: center; color: var(--muted); }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(660px, 100%); background: var(--bg); z-index: 21; transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.3); }
.drawer.open { transform: none; }
.dhead { position: relative; flex: none; background: var(--md-black); color: var(--ink); padding: 22px 20px 18px; overflow: hidden; }
.dhead::before { content: ""; position: absolute; inset: 0; background: var(--team, var(--md-gold)); opacity: var(--team-glow); mix-blend-mode: screen; }
.dhead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 20%, rgba(0,0,0,.7)); }
.dhead > * { position: relative; z-index: 1; }
.dhead .close { position: absolute; top: 14px; right: 14px; border: 0; background: rgba(0,0,0,.35); color: var(--ink); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 16px; z-index: 2; }
.dhead .close:hover { background: rgba(0,0,0,.55); }
.dhead-main { display: flex; gap: 16px; align-items: center; padding-right: 36px; }
.dhead h2 { margin: 4px 0 2px; font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 32px; line-height: 1; }
.dhead .eyebrow { color: var(--md-gold); }
.dmeta { font-size: 13px; opacity: .85; }
.dbody { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 36px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.tile > b, .olr-head b { display: block; font-size: 20px; font-weight: 700; }
.tile > span, .olr-head span { font-size: 12px; color: var(--muted); }
@media (max-width: 620px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.form { display: flex; gap: 4px; margin-top: 14px; flex-wrap: wrap; }
.form i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; }
.W { background: var(--win); color: var(--win-ink); } .L { background: var(--loss); color: var(--ink); } .T { background: var(--tie); color: var(--ink); }
.sect { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 6px 0 10px; }
.best { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; display: flex; gap: 12px; align-items: center; }
.game { display: grid; grid-template-columns: 30px 34px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.game .res { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.game .opp { font-weight: 600; }
.game .opp button { background: none; border: 0; padding: 0; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.game .opp button:hover { color: var(--accent); text-decoration-color: var(--accent); }
.game .det { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.form i.U { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.game.upcoming { background: var(--surface-2); border-style: dashed; }
.game .when { width: 30px; text-align: center; line-height: 1.05; }
.game .when small { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.game .when b { font-size: 16px; }
.game .worth { font-weight: 700; }
.stat { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.ctag { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: var(--md-black); color: var(--md-gold); }
.ctag.nm { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); font-weight: 600; }
.right { text-align: right; }
.score { font-weight: 600; }
.pts { font-size: 12px; color: var(--muted); }
.pts b { color: var(--text); font-size: 15px; }
.pts.missed { font-size: 11px; color: var(--faint); }

.footer { background: var(--md-black); color: var(--ink-muted); padding: 22px 0; font-size: 13px; margin-top: 40px; }
.footer .wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.footer .muted { color: #8a857b; margin-left: auto; }
/* Footer: Old Line Rankings home + sport switcher */
.footer .family-home { color: var(--ink); font-weight: 700; }
.footer .family-home:hover { color: var(--md-gold); }
.family { display: flex; gap: 6px; flex-wrap: wrap; }
.family a, .family > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid #2c2c2c; color: var(--ink-muted); white-space: nowrap; }
.family a:hover { color: var(--ink); border-color: #4a4a4a; }
.family a.on { background: var(--md-gold); border-color: var(--md-gold); color: var(--md-black); font-weight: 700; }
.family .soon { opacity: .55; }
.family .soon small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

/* Splash: one card per sport */
.sport-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.sport-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; transition: transform .15s, border-color .15s; }
a.sport-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.sport-top { display: flex; gap: 14px; align-items: center; }
.sport-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--md-black); color: var(--md-gold); }
.sport-icon .icon { width: 30px; height: 30px; }
.sport-card.soon .sport-icon { background: var(--surface-2); color: var(--muted); }
.family .icon { width: 15px; height: 15px; }
.sport-top h2 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 32px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.sport-top small { color: var(--muted); font-size: 13px; }
.ranked-by { margin-top: 14px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.ranked-by b { color: var(--text); font-weight: 700; }
.sport-sub { margin: 16px 0 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.leaders-head { margin: 16px 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--md-gold); font-family: "Barlow Condensed", sans-serif;
  font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.leaders-head span { color: var(--muted); font-weight: 700; }
.leaders { list-style: none; margin: 14px 0 14px; padding: 0; display: grid; gap: 2px; }
.leaders li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.leaders li:last-child { border-bottom: 0; }
.leaders b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaders small { color: var(--muted); font-size: 12px; font-weight: 600; }
.sport-go { margin-top: auto; font-weight: 700; color: var(--accent-ink); }
.coming-head { margin-top: 28px; }
.sport-grid.coming { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sport-card.soon { opacity: .65; border-style: dashed; box-shadow: none; padding: 14px 16px; }
.sport-card.soon h2 { font-size: 24px; }
.sport-card.soon .sport-icon { width: 42px; height: 42px; border-radius: 12px; }
.sport-card.soon .sport-icon .icon { width: 24px; height: 24px; }

/* Final 8 bracket. Every column's games area is the same height and each match sits centred in an
   equal share of it, so a pair of feeders (centred at 25% / 75% of the pair) lines up with the next
   round's match (centred at 50%). A pair draws ] on its right; a fed match draws a stub on its left. */
.bracket { --line: #cfc7b4; --gap: 32px; --colw: 220px; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(var(--colw), 1fr)); gap: 0 var(--gap); padding: 16px; overflow-x: auto; }
.bcol { display: flex; flex-direction: column; min-width: 0; }
.bcol h4 .h4-pct { float: right; padding-right: 8px; font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--faint); }
.bcol h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.bgames { flex: 1; display: flex; flex-direction: column; }
.bpair { flex: 2; display: flex; flex-direction: column; position: relative; }
.bpair::after { content: ""; position: absolute; top: 25%; bottom: 25%; right: calc(var(--gap) / -2 - 1px); width: calc(var(--gap) / 2 + 1px);
  border: 2px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; }
.bslot { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 7px 0; position: relative; }
.match { position: relative; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
/* Stubs are measured from inside the 1px match border, so each reaches 2px further to overlap its partner */
.fed .match::before { content: ""; position: absolute; right: 100%; top: calc(50% - 1px); width: calc(var(--gap) / 2 + 3px); border-top: 2px solid var(--line); }
.to-next .match::after { content: ""; position: absolute; left: 100%; top: calc(50% - 1px); width: calc(var(--gap) / 2 + 3px); border-top: 2px solid var(--line); }
/* Region mini brackets: tighter columns and type */
.bracket.mini { --gap: 28px; --colw: 190px; --colmax: 300px; padding: 12px 16px 14px; }
.bracket.mini .bcol h4 { font-size: 10px; margin-bottom: 6px; }
.bracket.mini .bslot { padding: 4px 0; }
.bracket.mini .slot { grid-template-columns: 16px 24px 1fr auto; gap: 6px; padding: 5px 7px; }
.bracket.mini .slot .nm { font-size: 13px; }
.bracket .slot .nm { white-space: normal; overflow-wrap: anywhere; }   /* wrap long names rather than cut them */
.bracket.mini .slot .nm small { font-size: 10px; }
.bracket.mini .slot.tbd { min-height: 38px; }
.f8-toggle { margin-bottom: 0; }
.f8-toggle + .section-head { margin-top: 40px; }
.f8-toggle .toolbar { border-bottom: 0; }
.f8-note { font-size: 13px; flex: 1; min-width: 220px; line-height: 1.4; }
.slot { display: grid; grid-template-columns: 22px 26px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; cursor: pointer; }
.slot + .slot { border-top: 1px solid var(--border); }
.slot:hover { background: var(--surface-2); }
/* Rounded like the match box, so the hover highlight doesn't poke past its corners (the box can't clip:
   the bracket connector lines sit outside it) */
.match > .slot:first-child { border-top-left-radius: 11px; border-top-right-radius: 11px; }
.match > .slot:last-child { border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; }
.slot .seed { font-size: 12px; color: var(--muted); text-align: center; }
.slot .nm { font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .nm small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); white-space: normal; line-height: 1.35; }
.slot .avg { font-size: 12px; }
/* Winners are bold; losers are not faded */
.slot.win .nm { font-weight: 800; }
.slot.lose .nm { font-weight: 500; }
.slot.tbd { cursor: default; color: var(--faint); }
.champ .match { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bracket .slot.tbd { cursor: default; color: var(--faint); min-height: 46px; }
.f8-regions { padding: 0; margin: 16px 0 40px; grid-template-columns: 1fr; }   /* one region per row */
@media (max-width: 820px) { .f8-regions { grid-template-columns: 1fr; } }
.rrow.out { opacity: .5; }
.champ-odds { padding: 6px 10px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.game .prob { font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.tiles.odds { margin-bottom: 6px; }
.rrow .adv { color: var(--accent-ink); font-weight: 700; }
.proj-tag { font-weight: 700; color: var(--accent-ink); }
.avg.mp { line-height: 1.1; }
.avg.mp small { display: block; font-family: Inter, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Schedule: games grouped by day; away | result | home | links */
.check { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.sday { padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.srow { display: grid; grid-template-columns: 72px minmax(0, 1fr) 110px minmax(0, 1fr) 150px; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.srow:hover { background: var(--surface-2); }
.stime { font-size: 13px; color: var(--muted); }
.side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side .who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.side .tm { all: unset; cursor: pointer; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .tm:hover { color: var(--accent-ink); text-decoration: underline; }
.side .tm.nm { cursor: default; font-weight: 600; color: var(--muted); }
.side .tm.nm:hover { color: var(--muted); text-decoration: none; }
.side small { font-size: 11px; color: var(--muted); }
.side .ctag { font-size: 10px; padding: 1px 5px; }
.side .sc { font-size: 18px; }
.side.won .tm, .side.won .sc { font-weight: 800; }
.side.lost .tm, .side.lost .sc { font-weight: 500; }
.smid { text-align: center; font-size: 12px; color: var(--muted); }
.smid .fin { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.smid .odds { font-size: 12px; }
.sact { display: flex; gap: 6px; justify-content: flex-end; }
.sact .watch, .sact .tix { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sact .watch { background: var(--md-red); color: #fff; }
.sact .tix { background: var(--md-gold); color: var(--md-black); }
@media (max-width: 820px) {
  .srow { grid-template-columns: 1fr auto; grid-template-areas: "away mid" "home act"; row-gap: 6px; }
  .srow .stime { display: none; }
  .srow .away { grid-area: away; } .srow .home { grid-area: home; }
  .srow .smid { grid-area: mid; } .srow .sact { grid-area: act; }
}

/* Drawer: Old Line Rating breakdown */
/* The Old Line Rating tile: the site's headline number, gold; it expands to the full row to show the calculation */
.tile-olr { position: relative; background: var(--md-gold) !important; border-color: var(--md-gold) !important; color: var(--md-black); padding: 0; }
.tile-olr.open { grid-column: 1 / -1; }
.olr-head { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 12px 34px 12px 12px; cursor: pointer; position: relative; }
.olr-head b, .olr-head span { color: var(--md-black) !important; }
.olr-head .chev { position: absolute; top: 10px; right: 10px; color: var(--md-black); transition: transform .2s; }
.tile-olr.open .chev { transform: rotate(180deg); }
.tile-olr:hover { filter: brightness(1.04); }
.olr-body { padding: 0 12px 12px; color: var(--md-black); }
.olr-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 2px 0 6px; }
.tile-olr .olr-break p, .tile-olr .muted { color: rgba(0,0,0,.7) !important; }
.olr-break { margin: 0; font-size: 13px; }
.ob-note { margin: 0 0 6px; font-size: 12px; color: rgba(0,0,0,.7); }
.ob-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid rgba(0,0,0,.12); }
.ob-opp, .ob-val { display: flex; flex-direction: column; min-width: 0; }
.ob-opp b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-val { text-align: right; }
.ob-val b { font-size: 15px; }
.ob-row small, .ob-fine { font-size: 11px; color: rgba(0,0,0,.65); }
.ob-math { display: grid; gap: 3px; margin-top: 4px; padding-top: 8px; border-top: 2px solid rgba(0,0,0,.25); }
.ob-math .eq { font-size: 14px; margin: 2px 0; }
/* Ticket warning */
.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 16px; background: rgba(0,0,0,.55); }
.modal.open { display: grid; }
.modal-box { max-width: 460px; background: var(--surface); color: var(--text); border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.modal-box h3 { margin: 0 0 10px; font-family: "Barlow Condensed", sans-serif; font-size: 26px; text-transform: uppercase; }
.modal-box p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.modal-box .tix-game { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.modal-actions .btn.ghost { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }

/* Embedded team drawer (splash page panel): just the drawer, full width */
body.embed .nav, body.embed main, body.embed .footer, body.embed .scrim { display: none; }
body.embed .drawer { width: 100%; box-shadow: none; transition: none; }
/* Splash: team panel that loads a sport's team drawer */
.team-panel { position: fixed; top: 0; right: 0; height: 100%; width: min(660px, 100%); z-index: 41; transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
  box-shadow: -12px 0 40px rgba(0,0,0,.3); background: var(--bg); }
.team-panel.open { transform: none; }
.team-panel iframe { width: 100%; height: 100%; border: 0; display: block; }
.team-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.team-scrim.open { opacity: 1; pointer-events: auto; }
.hero .sport-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .sport-links .btn .icon { width: 18px; height: 18px; }

/* Team page (/<sport>/<team>/): drawer content as a full page, header tinted with the team color */
.team-head::before { content: ""; position: absolute; inset: 0; background: var(--team, var(--md-gold)); opacity: var(--team-glow); mix-blend-mode: screen; }
.team-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 20%, rgba(0,0,0,.7)); }
.team-head > .wrap { position: relative; z-index: 1; }
.team-hero { display: flex; gap: 20px; align-items: center; margin-top: 6px; }
.team-hero .eyebrow { color: var(--md-gold); }
.team-hero h1 { margin: 4px 0 2px; }
.team-page { max-width: 920px; padding-top: 22px; padding-bottom: 20px; }
.dmeta .fullpage { margin-left: 6px; color: var(--md-gold); font-weight: 700; white-space: nowrap; }
.dmeta .fullpage:hover { text-decoration: underline; }
@media (max-width: 620px) { .team-hero { flex-direction: column; align-items: flex-start; } }

/* Plain team summary in a team page's HTML (search engines; replaced by the full page once app.js runs) */
.seo { padding-top: 28px; padding-bottom: 28px; }
.seo table { border-collapse: collapse; margin-top: 8px; }
.seo td { padding: 4px 12px 4px 0; border-bottom: 1px solid var(--border); font-size: 14px; }

/* Splash: games of the week */
.gw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.gw-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.gw-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; background: var(--md-black); color: var(--ink); }
.gw-sport { display: inline-flex; align-items: center; gap: 8px; font-family: "Barlow Condensed", sans-serif; font-size: 18px; font-weight: 800; text-transform: uppercase; color: var(--md-gold); }
.gw-sport .icon { width: 20px; height: 20px; }
.gw-when { font-size: 12px; color: var(--ink-muted); text-align: right; }
.gw-team { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; }
.gw-team:hover { background: var(--surface-2); }
.gw-who { display: flex; flex-direction: column; min-width: 0; }
.gw-who b { font-size: 16px; font-weight: 700; }
.gw-who small { font-size: 12px; color: var(--muted); }
.gw-p { font-family: "JetBrains Mono", monospace; font-size: 18px; font-weight: 700; }
.gw-at { padding: 0 16px 0 68px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.gw-actions { display: flex; gap: 8px; margin: auto 16px 14px; padding-top: 4px; }
.gw-watch, .gw-tix { padding: 10px 14px; border-radius: 10px; text-align: center; font-size: 14px; font-weight: 700; }
.gw-watch { flex: 1; background: var(--surface); color: var(--md-red); border: 1px solid rgba(200,16,46,.35); }
.gw-watch:hover { background: rgba(200,16,46,.06); }
.gw-tix { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.gw-tix .icon { width: 20px; height: 20px; }
.gw-tix:hover { border-color: var(--text); }

/* Splash: where the name comes from */
.origin { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; margin-top: 8px; padding: 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.origin .origin-flag { aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; }
.origin .origin-flag img { width: 100%; height: 100%; display: block; object-fit: cover; }
.origin h2 { margin: 0 0 8px; font-family: "Barlow Condensed", sans-serif; font-size: 28px; font-weight: 800; text-transform: uppercase; }
.origin p { margin: 0 0 8px; color: var(--muted); line-height: 1.6; }
.origin a { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 640px) { .origin { grid-template-columns: 1fr; } .origin .origin-flag { max-width: 180px; } }

/* Bracket detail lines and the "Projected" chip + panel */
.proj-pop { position: absolute; z-index: 60; width: 300px; max-width: calc(100vw - 16px); padding: 12px 14px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(0,0,0,.25); font-size: 13px; }
.proj-pop .pp-title { font-weight: 800; margin-bottom: 6px; }
.proj-pop .pp-row { display: flex; justify-content: space-between; gap: 10px; }
.proj-pop .pp-row span { color: var(--muted); }
.proj-pop .pp-row.total { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.proj-pop .pp-sub { margin: 8px 0 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.proj-pop .pp-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.proj-pop .pp-games li { display: grid; grid-template-columns: 1fr 18px 38px; gap: 6px; align-items: center; }
.proj-pop .pp-games b.w { color: var(--accent-ink); } .proj-pop .pp-games b.l { color: var(--loss); }
.proj-pop .pp-games small { color: var(--muted); text-align: right; }
.proj-pop .pp-none { color: var(--muted); }

/* Bracket team cards: seed + logo | name, region, record | win chance */
.bracket .slot.tcard { grid-template-columns: 16px max-content 1fr auto; gap: 10px; align-items: center; padding: 10px 0 10px 10px; }
.bracket .slot.tcard .info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bracket .slot.tcard .nm { font-size: 14px; white-space: normal; overflow: visible; }
.bracket .slot.tcard .d-sub { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.bracket .slot.tcard .d-rec { font-size: 14px; font-weight: 700; color: var(--text); }
.bracket .slot.tcard .d-pts { font-size: 11px; color: var(--muted); }
.bracket .slot.tcard .wp { align-self: stretch; display: flex; align-items: center; justify-content: center; min-width: 56px; padding: 0 10px;
  border-left: 1px solid var(--border); font-size: 15px; font-weight: 700; }
.bracket .slot.tcard.win .wp { color: var(--accent-ink); }
.bracket.mini .slot.tcard { padding: 8px 0 8px 8px; gap: 8px; }
.bracket.mini .slot.tcard .nm { font-size: 13px; }
.bracket.mini .slot.tcard .wp { min-width: 48px; font-size: 13px; }
.proj-link { all: unset; margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; }
.proj-link:hover { color: var(--accent-ink); }
.bracket .slot.tcard .d-done { margin-top: 3px; font-size: 11px; color: var(--faint); }

/* Schedule: a grid of game cards per day (away team above home team) */
.sched .sday { border-bottom: 0; background: none; padding: 18px 16px 8px; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 0 16px 8px; }
.gcard { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.gc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); min-height: 36px; box-sizing: border-box; }
.gc-when { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gc-act { display: flex; gap: 6px; }
.gc-act .watch, .gc-act .tix { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.gc-act .watch { background: var(--md-red); color: #fff; }
.gc-act .tix { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; color: var(--text); border: 1px solid var(--border); background: var(--surface); }
.gc-act .tix .icon { width: 15px; height: 15px; }
.gc-team { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; }
.gc-team + .gc-team { border-top: 1px solid var(--border); }
.gc-team .who { display: flex; flex-direction: column; min-width: 0; }
.gc-team .tm { all: unset; cursor: pointer; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-team .tm:hover { color: var(--accent-ink); text-decoration: underline; }
.gc-team .tm.nm { cursor: default; color: var(--muted); }
.gc-team .tm.nm:hover { color: var(--muted); text-decoration: none; }
.gc-team small { font-size: 11px; color: var(--muted); }
.gc-team .gc-r { font-size: 18px; font-weight: 600; min-width: 28px; text-align: right; }
.gc-team .gc-p { font-size: 14px; color: var(--muted); }
.gc-team.won .tm, .gc-team.won .gc-r { font-weight: 800; }

/* Phones: drop the big hero flag */
@media (max-width: 640px) {
  .hero-flag { display: none; }
  .hero-inner { padding: 28px 16px 32px; }
}
