/* ============================================================
   SNFCA — Southern Nevada Football Coaches Association
   Design system: mobile-first, sports-media aesthetic.
   Palette: black + SNFCA red. (--navy/--gold var names kept for compatibility.) No CSS framework.
   ============================================================ */

:root {
  --navy: #0d0d10;
  --navy-2: #17171c;
  --navy-3: #26262d;
  --gold: #d4212f;
  --gold-hi: #f4434f;
  --gold-dark: #a5121e;
  --ink: #17171b;
  --ink-muted: #5c5c65;
  --ink-dim: #8f8f99;
  --bg: #f5f5f6;
  --surface: #ffffff;
  --line: #e3e3e7;
  --line-strong: #cbcbd1;
  --green: #158a54;
  --red: #cc2f3e;
  --amber: #b97f0a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(10,10,14,.06), 0 8px 24px -16px rgba(10,10,14,.25);
  --font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-3); }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 22px; padding-bottom: 48px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: #fff;
  padding: 8px 16px; font-weight: 700; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Section headings ===== */
.kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 2px;
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-head h2 { margin: 0; text-transform: uppercase; }
.section-head .more { font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ===== Header — two-tier enterprise layout =====
   Tier 1 (.header-top): brand + account actions.
   Tier 2 (.header-navbar): primary navigation rail.
   Mobile: tier 2 collapses into a hamburger panel that also carries the
   account actions (.nav-account-mobile). */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, #0a0a0d 0%, #131317 100%);
  border-bottom: 3px solid var(--gold);
  color: #fff;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
}
.header-top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; flex: none; }
.brand-logo {
  width: 52px; height: 52px; object-fit: contain; flex: none;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.5));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; font-weight: 900; letter-spacing: .07em; }
.brand-text small { font-size: 8.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #9a9aa3; white-space: nowrap; }

/* Account actions (desktop top bar) */
.header-actions { display: none; align-items: center; gap: 20px; white-space: nowrap; }
.header-link {
  color: #c9c9d2; text-decoration: none; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 6px 0;
  transition: color .15s ease;
}
.header-link:hover { color: var(--gold-hi); }
.header-user {
  color: #9a9aa3; font-size: 12.5px; font-weight: 600;
  padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14);
}
.header-actions .btn, .nav-account-mobile .btn { flex: none; }

/* Hamburger */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Navigation rail — hidden panel on mobile */
.header-navbar { display: none; border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.header-navbar.open { display: block; }
.site-nav { display: flex; flex-direction: column; padding: 8px 0 4px; }
.site-nav a {
  color: #d9d9df; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 10px; border-radius: 8px;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.site-nav a.is-active { color: var(--gold-hi); font-weight: 700; }
.nav-account-mobile {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 10px 18px; margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav-account-mobile .header-user { border-left: 0; padding-left: 0; width: 100%; order: -1; }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .header-actions { display: flex; }
  .header-navbar { display: block; }
  .header-navbar-inner { display: flex; }
  .nav-account-mobile { display: none; }
  .site-nav {
    flex-direction: row; align-items: stretch; padding: 0;
    /* overflow must stay visible so the About dropdown can overlay the page */
    overflow: visible;
  }
  .site-nav a {
    display: inline-flex; align-items: center;
    padding: 0 11px; height: 46px; border-radius: 0;
    font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    white-space: nowrap; border-bottom: 3px solid transparent;
    transition: color .15s ease, border-color .15s ease;
  }
  .site-nav a:first-child { margin-left: -11px; }
  .site-nav a:hover { background: none; color: #fff; }
  .site-nav a.is-active { color: var(--gold-hi); border-bottom-color: var(--gold); font-weight: 700; }
}
@media (min-width: 1200px) {
  .site-nav a { padding: 0 15px; font-size: 12.5px; letter-spacing: .07em; }
  .site-nav a:first-child { margin-left: -15px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  font-family: var(--font); font-size: 13.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: all .15s ease; line-height: 1.2;
}
.btn-gold { background: var(--gold); color: #fff !important; box-shadow: 0 6px 16px -8px rgba(212,33,47,.7); }
.btn-gold:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff !important; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { background: transparent; color: inherit !important; border-color: rgba(150,150,160,.5); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark) !important; }
.site-header .btn-ghost:hover { color: var(--gold-hi) !important; }
.btn-danger { background: var(--red); color: #fff !important; }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Cards ===== */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-pad { padding: 18px; }
.card-head {
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--navy);
  background: linear-gradient(180deg, #fbfbfc, #f3f3f5);
}
.card-head .more { font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; }

/* Grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 980px) {
  .grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
}

/* ===== Hero (homepage) ===== */
.hero {
  background: radial-gradient(900px 400px at 85% -50%, rgba(212,33,47,.28), transparent 65%),
              linear-gradient(135deg, #0d0d10 0%, #1d1d23 70%, #0d0d10 100%);
  color: #fff; border-radius: 16px; padding: clamp(26px, 5vw, 48px);
  margin-bottom: 26px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 90px);
}
.hero h1 { color: #fff; margin-bottom: 6px; }
.hero p { color: #c6c6cf; max-width: 640px; font-size: 16px; }
.hero .kicker { color: var(--gold-hi); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; position: relative; z-index: 1; }

/* Homepage hero banner — full-width image, centered in the container */
.hero-banner {
  position: relative; overflow: hidden; border-radius: 16px; margin-bottom: 26px;
  background: url('/assets/images/banner.jpg') center / cover no-repeat, #0d0d10;
  aspect-ratio: 21 / 9; min-height: 260px; max-height: 480px;
  display: flex; align-items: flex-end;
  box-shadow: var(--shadow);
}
.hero-banner-overlay {
  width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: clamp(48px, 8vw, 90px) clamp(16px, 3vw, 28px) clamp(14px, 2.5vw, 22px);
  background: linear-gradient(180deg, transparent 0%, rgba(5,5,8,.55) 55%, rgba(5,5,8,.9) 100%);
}
.hero-banner .kicker { color: var(--gold-hi); }
.hero-banner-tag { color: #d9d9df; font-size: 13.5px; font-weight: 600; }
.hero-banner .hero-actions { margin-top: 0; }
.hero-banner .btn-ghost { background: rgba(8,8,12,.55); border-color: rgba(255,255,255,.45); backdrop-filter: blur(3px); color: #fff !important; }
.hero-banner .btn-ghost:hover { border-color: var(--gold-hi); }
@media (max-width: 560px) {
  .hero-banner { aspect-ratio: auto; min-height: 0; }
  .hero-banner-overlay { padding-top: 130px; }
  .hero-banner .hero-actions .btn { padding: 8px 12px; font-size: 12px; }
}

/* Visually hidden (screen readers only) */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== Team chips / logos ===== */
.team-logo { border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; padding: 2px; }
.team-logo-initial {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-2); color: var(--gold); font-weight: 800; font-size: .8em;
  border-radius: 50%; text-align: center; border: 0;
}

/* ===== Matchup / score cards ===== */
.matchup-list { display: grid; gap: 10px; }
.matchup {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: var(--shadow);
}
.matchup-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-muted); margin-bottom: 8px; }
.matchup-team { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.matchup-team .name { font-weight: 700; color: var(--navy); text-decoration: none; display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.matchup-team .name .rec { font-size: 12px; font-weight: 600; color: var(--ink-dim); }
.matchup-team .rank { font-size: 11px; font-weight: 800; color: var(--gold-dark); font-family: var(--mono); }
.matchup-team .score {
  margin-left: auto; font-family: var(--mono); font-weight: 800; font-size: 20px; color: var(--ink-dim); min-width: 34px; text-align: right;
}
.matchup-team.winner .score, .matchup-team.winner .name { color: var(--navy); }
.matchup-team.winner .score { color: var(--navy); }
.matchup-team.loser .name, .matchup-team.loser .score { color: var(--ink-dim); }
.matchup-venue { font-size: 12px; color: var(--ink-dim); margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; }

/* ===== Badges ===== */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 99px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.badge-final { background: var(--navy); color: #fff; }
.badge-live { background: var(--red); color: #fff; animation: pulse 1.6s infinite; }
.badge-scheduled { background: #ebebee; color: var(--ink-muted); }
.badge-warn { background: #fdf0d4; color: var(--amber); }
.badge-gold { background: var(--gold); color: #fff; }
.badge-green { background: #dcf3e7; color: var(--green); }
.badge-red { background: #fbe2e5; color: var(--red); }
@keyframes pulse { 50% { opacity: .65; } }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
table.data thead th {
  text-align: left; padding: 10px 12px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted);
  background: #f0f0f2; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
table.data tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #f8f8fa; }
table.data .num { text-align: right; font-family: var(--mono); font-weight: 600; white-space: nowrap; }
table.data .team-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
table.data .team-cell a { font-weight: 700; text-decoration: none; color: var(--navy); }
table.data .team-cell a:hover { color: var(--gold-dark); }
table.data td.pos { font-family: var(--mono); font-weight: 800; color: var(--ink-muted); }

/* Rank movement */
.mv { font-family: var(--mono); font-size: 12px; font-weight: 700; }
.mv-up { color: var(--green); }
.mv-down { color: var(--red); }
.mv-flat { color: var(--ink-dim); }
.mv-new { color: var(--gold-dark); }

/* Rank number cell */
.rank-num {
  font-family: var(--mono); font-weight: 900; font-size: 18px; color: var(--navy);
  width: 34px; text-align: center;
}
.fpv { font-size: 11px; color: var(--ink-dim); }

/* ===== Leader cards (stat leaders) ===== */
.leader-card .lead-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.leader-card .lead-row:last-child { border-bottom: 0; }
.leader-card .lead-rank { font-family: var(--mono); font-weight: 800; color: var(--ink-dim); width: 18px; font-size: 13px; }
.leader-card .lead-who { min-width: 0; flex: 1; }
.leader-card .lead-who a { font-weight: 700; text-decoration: none; color: var(--navy); font-size: 14px; }
.leader-card .lead-who .sub { font-size: 12px; color: var(--ink-muted); }
.leader-card .lead-val { font-family: var(--mono); font-weight: 800; font-size: 17px; color: var(--navy); }
.leader-card .lead-row:first-of-type { background: linear-gradient(90deg, rgba(212,33,47,.10), transparent); }

/* ===== Feature / award cards ===== */
.feature-card { display: flex; flex-direction: column; }
.feature-card .fc-body { padding: 16px 18px; flex: 1; }
.feature-card .fc-cat { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.feature-card h3 { margin: 4px 0 2px; }
.feature-card .fc-sub { font-size: 13px; color: var(--ink-muted); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink); margin: 0; }

/* GOTW hero card */
.gotw {
  border-radius: 16px; overflow: hidden; color: #fff;
  background: radial-gradient(700px 300px at 15% -30%, rgba(212,33,47,.35), transparent 60%),
              linear-gradient(120deg, #0f0f13 0%, #292931 100%);
  box-shadow: var(--shadow);
}
.gotw-inner { padding: clamp(20px, 4vw, 34px); }
.gotw .kicker { color: var(--gold-hi); }
.gotw-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 10px; flex-wrap: wrap; }
.gotw-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; flex: 1; min-width: 110px; }
.gotw-team a { color: #fff; text-decoration: none; font-weight: 800; font-size: clamp(15px, 2.5vw, 20px); }
.gotw-team .sub { font-size: 12.5px; color: #ababb5; }
.gotw-team .team-logo-initial { background: rgba(255,255,255,.12); }
.gotw-vs { font-family: var(--mono); font-weight: 900; font-size: clamp(18px, 3vw, 26px); color: var(--gold); }
.gotw-score { font-family: var(--mono); font-weight: 900; font-size: clamp(26px, 5vw, 40px); }
.gotw-meta { text-align: center; color: #c6c6cf; font-size: 14px; }
.gotw-text { max-width: 720px; margin: 14px auto 0; color: #dedee4; font-size: 14.5px; }

/* Player of week spotlight */
.pow-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); background: var(--navy-2); }
.pow-photo-initial { display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 26px; color: var(--gold); }

/* ===== Flash messages ===== */
.flash { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.flash-success { background: #e7f6ee; color: var(--green); border-color: #bfe6d2; }
.flash-error { background: #fdecee; color: var(--red); border-color: #f5c6cc; }
.flash-info { background: #efeff2; color: var(--navy-3); border-color: #d4d4dc; }

/* ===== Forms ===== */
form .field { margin-bottom: 14px; }
label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; letter-spacing: .02em; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=time], input[type=url], input[type=tel], input[type=search], input[type=color], select, textarea {
  width: 100%; padding: 9px 12px; font-family: var(--font); font-size: 14.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 8px;
}
input[type=color] { padding: 3px; height: 40px; width: 60px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,33,47,.22);
}
textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.field .hint { font-size: 12px; color: var(--ink-dim); margin-top: 3px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 16px; padding: 14px; }
legend { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); padding: 0 6px; }

/* Filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 18px; }
.filters .field { margin: 0; min-width: 130px; flex: 1; max-width: 220px; }
.filters .btn { flex: none; }

/* Stat entry grid */
.stat-entry input[type=number] { width: 58px; padding: 6px 6px; text-align: center; font-family: var(--mono); }
.stat-entry td, .stat-entry th { padding: 6px 6px !important; }
.stat-entry .player-name { white-space: nowrap; font-weight: 700; }
.stat-entry thead th { position: sticky; top: 0; z-index: 1; }

/* ===== Admin KPI cards (pattern from vegas-force dashboard) ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
@media (min-width: 800px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  position: relative; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(200px 70px at 85% -10%, rgba(212,33,47,.16), transparent 70%);
}
.kpi .label { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; color: var(--ink-muted); text-transform: uppercase; }
.kpi .num { font-family: var(--mono); font-size: 32px; font-weight: 900; color: var(--navy); margin-top: 2px; }
.kpi.alert .num { color: var(--red); }
.kpi .sub { font-size: 12px; color: var(--ink-dim); }

/* Poll ballot ranking control */
.ballot-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ballot-row .pos { font-family: var(--mono); font-weight: 900; width: 40px; color: var(--navy); }
.ballot-row select { flex: 1; }
.ballot-row .pts { font-size: 12px; color: var(--ink-dim); width: 48px; text-align: right; font-family: var(--mono); }

/* ===== Prose (markdown-rendered content) ===== */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }

/* ===== Footer ===== */
.site-footer { flex-shrink: 0; background: var(--navy); color: #a4a4af; margin-top: 40px; border-top: 3px solid var(--gold); }
.footer-inner { display: grid; gap: 20px; padding: 30px 16px; }
.footer-brand strong { color: #fff; font-size: 18px; letter-spacing: .06em; }
.footer-brand p { font-size: 13px; margin: 6px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: #c6c6cf; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.footer-nav a:hover { color: var(--gold-hi); }
.footer-meta { font-size: 12px; color: #8a8a94; display: flex; flex-direction: column; gap: 4px; }
.footer-meta a { color: #a4a4af; }
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 2fr 1fr; align-items: start; }
  .footer-meta { text-align: right; }
}

/* ===== Utilities ===== */
.muted { color: var(--ink-muted); }
.dim { color: var(--ink-dim); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; } .mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.w-100 { width: 100%; }
.hide-sm { display: none; }
@media (min-width: 700px) { .hide-sm { display: revert; } table.data .hide-sm { display: table-cell; } }

/* Pagination */
.pager { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager span {
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px;
  text-decoration: none; font-size: 13px; font-weight: 700; color: var(--navy);
}
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Week tabs */
.week-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.week-tabs a {
  flex: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-strong);
  background: var(--surface); text-decoration: none; font-size: 13px; font-weight: 700; color: var(--ink-muted);
}
.week-tabs a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.week-tabs a:hover:not(.is-active) { border-color: var(--gold); color: var(--gold-dark); }

/* Print */
@media print {
  .site-header, .site-footer, .filters, .week-tabs, .btn { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* ===== Cookie consent banner (bottom-right) ===== */
.cookie-banner {
  position: fixed; right: 16px; bottom: 16px; z-index: 300;
  max-width: 360px; width: calc(100% - 32px);
  background: #0d0d10; color: #d9d9df;
  border: 1px solid rgba(255,255,255,.12); border-top: 3px solid var(--gold);
  border-radius: 12px; padding: 16px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { margin: 0; font-size: 13px; line-height: 1.5; }
.cookie-banner-text a { color: var(--gold-hi); }
@media print { .cookie-banner { display: none !important; } }

/* ===== Promo banner (bottom of homepage) ===== */
.promo-banner { margin-top: 34px; }
.promo-banner a { display: block; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.promo-banner a:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -20px rgba(212,33,47,.45); }
.promo-banner img { display: block; width: 100%; height: auto; }

/* ===== Nav dropdown (About) =====
   Mobile: children render inline, indented under the parent.
   Desktop: hover / keyboard-focus panel anchored to the nav rail. */
.nav-drop { display: flex; flex-direction: column; }
.nav-drop > a::after { content: "▾"; font-size: 9px; margin-left: 6px; opacity: .65; }
.nav-drop-menu { display: flex; flex-direction: column; padding-left: 16px; }
.nav-drop-menu a { font-size: 14px; }

@media (min-width: 980px) {
  .nav-drop { position: relative; flex-direction: row; }
  .nav-drop-menu {
    display: none; position: absolute; top: 100%; right: 0; z-index: 120;
    flex-direction: column; min-width: 210px; padding: 8px 0 16px 0;
    background: #101014; border: 1px solid rgba(255,255,255,.12); border-top: 3px solid var(--gold);
    border-radius: 0 0 12px 12px; box-shadow: 0 18px 36px -14px rgba(0,0,0,.7);
  }
  .nav-drop:hover .nav-drop-menu,
  .nav-drop:focus-within .nav-drop-menu { display: flex; }
  .site-nav .nav-drop-menu a {
    height: auto; padding: 10px 16px; margin: 0;
    border-bottom: 0; border-radius: 0;
    font-size: 12px; letter-spacing: .05em; white-space: nowrap;
  }
  .site-nav .nav-drop-menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .site-nav .nav-drop-menu a.is-active { color: var(--gold-hi); }
}


/* Narrow desktop (980–1099px): tighten the nav rail so every link fits
   without horizontal scrolling (the rail must not clip the About dropdown). */
@media (min-width: 980px) and (max-width: 1099px) {
  .site-nav a { padding: 0 8px; font-size: 10.8px; letter-spacing: .04em; }
  .site-nav a:first-child { margin-left: -8px; }
}

/* ===== Coaches Corner feed ===== */
.corner-wrap { max-width: 680px; margin: 0 auto; }
.corner-post { margin-bottom: 16px; }
.corner-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: 50%; background: var(--navy); color: var(--gold-hi);
  font-weight: 800; font-size: .85em; letter-spacing: .02em;
}
.corner-body { margin: 6px 0 0; white-space: normal; overflow-wrap: break-word; }
.corner-image { display: block; max-height: 420px; border-radius: 12px; margin-top: 10px; border: 1px solid var(--line); }
.corner-action {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--ink-muted);
}
button.corner-action:hover { color: var(--navy); }
.corner-action.is-liked { color: var(--gold-dark); }
.corner-delete { color: var(--ink-dim); }
button.corner-delete:hover { color: var(--red); }
.corner-comments { border-top: 1px solid var(--line); background: #fafafb; padding: 10px 18px 14px; border-radius: 0 0 var(--radius) var(--radius); }
.corner-comment { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.corner-comment:last-of-type { border-bottom: 0; }
.corner-comment-form { display: flex; gap: 8px; margin-top: 10px; }
.corner-comment-form input[type=text] { flex: 1; }

/* ===== MaxPreps import tool ===== */
.mp-log {
  background: #0d0d10; color: #d9d9df; font-family: var(--mono); font-size: 12px; line-height: 1.5;
  border-radius: 10px; padding: 12px 14px; max-height: 320px; overflow-y: auto; margin: 12px 0 0; white-space: pre-wrap;
}
.mp-log .mp-ok { color: #6fdc9a; }
.mp-log .mp-err { color: #ff7b86; }
.mp-progress { position: relative; flex: 1; min-width: 200px; height: 10px; background: var(--line); border-radius: 99px; margin-bottom: 18px; }
.mp-progress-bar { height: 10px; background: var(--gold); border-radius: 99px; width: 0; transition: width .2s ease; }
.mp-progress span { position: absolute; right: 0; top: 14px; font-size: 12px; font-family: var(--mono); color: var(--ink-muted); }

/* Quarter line score (Game of the Week / game detail) */
.linescore { border-collapse: collapse; margin: 14px auto 0; font-family: var(--mono); font-size: 13px; }
.linescore th, .linescore td { padding: 4px 10px; text-align: center; }
.linescore th { font-size: 10.5px; letter-spacing: .1em; color: #a9bad2; font-weight: 700; }
.linescore td:first-child, .linescore th:first-child { text-align: left; font-family: var(--font); font-weight: 700; }
.linescore td.final { font-weight: 900; color: var(--gold-hi); }
.gotw .linescore { color: #fff; }

/* ===== Game Center ===== */
.matchup-link { font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
table.box-score thead th:first-child { color: var(--navy); font-size: 11.5px; }
table.box-score tbody td { padding: 7px 12px; }

/* ===== Top Performers (Game Center) ===== */
.performers .perf-section { padding: 6px 0 4px; }
.performers .perf-section + .perf-section { border-top: 1px solid var(--line); }
.perf-section-title {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 4px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark);
}
.perf-section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.perf-row { display: flex; gap: 12px; padding: 10px 16px; align-items: flex-start; }
.perf-row + .perf-row { border-top: 1px dashed var(--line); }
.perf-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: var(--gold-hi);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; letter-spacing: .02em; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
}
.perf-body { flex: 1; min-width: 0; }
.perf-name { font-weight: 800; color: var(--navy); font-size: 15px; line-height: 1.2; }
.perf-name a { color: var(--navy); text-decoration: none; }
.perf-name a:hover { color: var(--gold-dark); }
.perf-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 12.5px; color: var(--ink-muted); margin: 3px 0 7px; }
.perf-meta .team-logo { width: 18px; height: 18px; padding: 1px; }
.perf-dot { color: var(--ink-dim); }
.perf-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.perf-stat {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 52px;
  padding: 4px 9px; border-radius: 8px; background: #f2f2f4; border: 1px solid var(--line);
}
.perf-stat b { font-family: var(--mono); font-size: 14px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.perf-stat small { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); margin-top: 2px; white-space: nowrap; }
