/*
Theme Name: Anarchy Lacrosse
Theme URI: https://anarchylacrosse.com
Description: The unfiltered voice of lacrosse — news, scores, rankings, commits, gear reviews and hot takes. No corporate spin, no fluff.
Version: 1.0.0
Author: Anarchy Lacrosse
Text Domain: anarchylax
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ─────────────────────────────────────────────
   RESET & VARIABLES
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { appearance: none; -webkit-appearance: none; background: none; border: none; font: inherit; cursor: pointer; }

:root {
  --black:    #0A0A0A;
  --panel:    #141414;
  --panel-2:  #1A1A1A;
  --border:   #272727;
  --mid:      #4A4A46;
  --muted:    #8C8C84;
  --bone:     #EDE7D9;
  --bone-dim: #C9C3B6;
  --red:      #E8001C;
  --red-dim:  #7A0010;
  --yellow:   #F5C400;
  --blue:     #1AA7EC;

  /* Brand lockup — logo always 5:3 ratio to text */
  --brand-text-size: 42px;
  --brand-logo-size: 70px;
}

/* House rule: any element with a solid var(--red) background — buttons,
   active tabs/pills, badges — uses var(--black) text, never white or
   var(--bone). Keep every new red-background rule consistent with this. */

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--bone);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.display { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.mono { font-family: 'Space Mono', monospace; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--bone); }

img { max-width: 100%; height: auto; display: block; }

/* ─────────────────────────────────────────────
   TICKER — live score bug
───────────────────────────────────────────── */
.ticker-bar {
  background: var(--black);
  border-bottom: 2px solid var(--red);
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
  user-select: none;
}
.asb-label-badge {
  flex-shrink: 0;
  background: var(--red);
  color: var(--black);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.asb-ticker-wrap {
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0, var(--black) 16px, var(--black) calc(100% - 16px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, var(--black) 16px, var(--black) calc(100% - 16px), transparent 100%);
}
.asb-ticker {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: asb-scroll 70s linear infinite;
  will-change: transform;
}
.asb-ticker:hover { animation-play-state: paused; }
@keyframes asb-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.asb-section { color: var(--red); font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 12px 0 20px; padding: 2px 6px; border: 1px solid rgba(232,0,28,0.35); border-radius: 2px; flex-shrink: 0; }
.asb-sep { color: var(--border); margin: 0 10px; font-size: 10px; flex-shrink: 0; }
.asb-game { display: inline-flex; align-items: center; gap: 4px; margin: 0 4px; flex-shrink: 0; }
.asb-team { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--bone-dim); display: inline-flex; align-items: center; gap: 3px; }
.asb-team.asb-winner { color: var(--bone); font-weight: 700; }
.asb-logo { width: 14px; height: 14px; object-fit: contain; flex-shrink: 0; vertical-align: middle; }
.asb-score { font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; color: var(--bone); min-width: 11px; text-align: center; }
.asb-rank { font-size: 8px; font-weight: 700; color: var(--red); vertical-align: super; letter-spacing: 0; }
.asb-dash { color: var(--mid); font-size: 10px; margin: 0 1px; }
.asb-status-live { color: var(--red); font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; margin-left: 6px; animation: asb-pulse 1.4s ease-in-out infinite; flex-shrink: 0; }
.asb-period-clock { color: var(--muted); font-family: 'Space Mono', monospace; font-size: 9px; margin-left: 3px; }
@keyframes asb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.asb-status-final { color: var(--mid); font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.1em; margin-left: 6px; }
.asb-status-pre { color: var(--muted); font-family: 'Space Mono', monospace; font-size: 9px; margin-left: 6px; }
.asb-no-games, .asb-placeholder, .asb-coming-soon { color: var(--mid); font-family: 'Space Mono', monospace; font-size: 10px; margin: 0 8px; }
.asb-loading { color: var(--mid); font-family: 'Space Mono', monospace; font-size: 10px; padding-left: 20px; animation: asb-pulse 1.4s ease-in-out infinite; }
.asb-error { color: var(--red-dim); font-family: 'Space Mono', monospace; font-size: 10px; padding-left: 20px; }

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
#site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(4px);
}
.nav-inner { display: flex; align-items: center; height: 86px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  margin-right: 9px; flex-shrink: 0;
}
.logo-mark img { display: block; width: var(--brand-logo-size); height: var(--brand-logo-size); object-fit: contain; }
.logo-text { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: var(--brand-text-size); letter-spacing: 0.02em; }
.logo-text span { color: var(--red); }
/* Nav links — always visible, horizontal */
.nav-links { display: flex; flex: 1; align-items: center; }
.nav-links > ul { list-style: none; display: flex; flex-direction: row; gap: 20px; margin: 0; padding: 0; align-items: center; }
.nav-links > ul > li { margin: 0; padding: 0; position: relative; }
.nav-links > ul > li > a { padding: 0; font-size: 12.5px; border-bottom: none; }
.nav-links a { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bone-dim); transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--bone); }
.nav-arrow { font-size: 9px; margin-left: 3px; display: inline-block; transition: transform .2s; line-height: 1; vertical-align: middle; }
.menu-item-has-children:hover .nav-arrow,
.menu-item-has-children.open  .nav-arrow { transform: rotate(180deg); }
.nav-drop-btn {
  appearance: none; -webkit-appearance: none;
  background: none !important; border: none !important; outline: none;
  padding: 0 0 0 2px; cursor: pointer;
  color: inherit; display: inline-flex; align-items: center; vertical-align: middle;
}

/* ── Sub-menus (WP class: .sub-menu, custom class: .dropdown) ── */
.nav-links .sub-menu,
.nav-links .dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: rgba(10,10,10,0.98);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  min-width: 180px; z-index: 200;
  padding: 6px 0; backdrop-filter: blur(8px);
  list-style: none; margin: 0;
}
/* Nested flyouts: open to the right */
.nav-links .sub-menu .sub-menu,
.nav-links .dropdown .sub-menu {
  top: -1px; left: 100%;
  border-top: 2px solid var(--red);
  z-index: 300;
}
.nav-links .sub-menu .sub-menu .sub-menu { z-index: 400; }
.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu,
.nav-links .menu-item-has-children.open > .sub-menu,
.has-dropdown.open > .dropdown { display: block; }
/* Sub-menu item sizing resets */
.nav-links .sub-menu > li,
.nav-links .dropdown > li { position: relative; width: auto; margin: 0; padding: 0; }
.nav-links .sub-menu a,
.nav-links .dropdown a {
  display: block; padding: 8px 16px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--bone-dim); white-space: nowrap; transition: color .12s, background .12s;
  border-bottom: none;
}
.nav-links .sub-menu a:hover,
.nav-links .dropdown a:hover { color: var(--bone); background: var(--panel); }
/* Right-arrow indicator on items that have a nested flyout */
.nav-links .sub-menu .menu-item-has-children > a::after {
  content: ' ›'; font-size: 13px; line-height: 1; float: right; margin-left: 10px;
}
.dropdown-group-head {
  font-family: 'Space Mono', monospace; font-size: 8.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red); padding: 8px 16px 3px;
  pointer-events: none; white-space: nowrap;
}
.dropdown-divider { height: 1px; background: var(--border); margin: 5px 0; }
.nav-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-social-link {
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: color .15s;
}
.nav-social-link:hover { color: var(--bone); }

.nav-cta {
  font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700;
  background: var(--red); color: var(--black); padding: 9px 16px;
  text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0;
  border-radius: 2px;
  transition: background .15s;
}
.nav-cta:hover { background: #c0001a; color: var(--black); }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--bone);
  transition: transform .2s, opacity .2s;
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero { border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: 3fr 1.3fr; }

/* Lead — full-bleed image with gradient overlay */
.hero-lead { position: relative; overflow: hidden; }
.hero-lead-link { display: block; height: 100%; position: relative; text-decoration: none; }
.hero-lead-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-color: var(--panel);
  background-image: repeating-linear-gradient(115deg, rgba(232,0,28,0.05) 0 2px, transparent 2px 16px);
  transition: transform .5s ease;
}
.hero-lead:hover .hero-lead-bg { transform: scale(1.03); }
.hero-lead-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.08) 78%);
}
.hero-lead-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 28px 26px; z-index: 2; }
.hero-tag {
  display: inline-block; font-family: 'Space Mono', monospace;
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; margin-bottom: 14px;
}
.hero-tag.hot    { background: var(--red); color: var(--black); }
.hero-tag.commit { background: var(--yellow); color: var(--black); }
.hero-tag.news   { border: 1px solid rgba(255,255,255,0.3); color: rgba(237,231,217,0.8); }
.hero-headline-new {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: clamp(30px, 4vw, 54px); line-height: 1.01; letter-spacing: -0.01em;
  color: var(--bone); margin-bottom: 12px;
}
.hero-lead-meta { font-family: 'Space Mono', monospace; font-size: 10px; color: rgba(237,231,217,0.55); }

/* Secondary story stack */
.hero-sidebar { display: flex; flex-direction: column; border-left: 1px solid var(--border); background: var(--panel); }
.hero-sec { flex: 1; background: var(--panel); overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-sec:last-child { border-bottom: none; }
.hero-sec > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.hero-sec-img {
  aspect-ratio: 16/9; flex-shrink: 0; overflow: hidden;
  background: #111 repeating-linear-gradient(115deg, rgba(232,0,28,0.04) 0 2px, transparent 2px 16px);
}
.hero-sec-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.hero-sec:hover .hero-sec-img img { transform: scale(1.05); }
.hero-sec-body { padding: 11px 13px 13px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.hero-sec-cat { font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 5px; }
.hero-sec-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 15px; line-height: 1.2; color: var(--bone); }
.hero-sec:hover .hero-sec-title { color: var(--bone-dim); }
.hero-sec-meta { font-family: 'Space Mono', monospace; font-size: 9px; color: var(--muted); margin-top: 8px; }

/* Kept for single/archive */
.stamp { position: absolute; top: -14px; right: 18px; z-index: 5; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px; color: var(--red); border: 2px solid var(--red); padding: 5px 11px; transform: rotate(6deg); letter-spacing: 0.08em; background: rgba(10,10,10,0.9); }
.eyebrow { font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 10px; }
.hero-headline { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 46px; line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 14px; }
.hero-headline a { color: inherit; }
.hero-headline a:hover { color: var(--bone-dim); }
.hero-dek { font-size: 16px; color: var(--bone-dim); max-width: 560px; margin-bottom: 14px; }
.byline { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); }

.side-stack { display: flex; flex-direction: column; gap: 14px; }
.side-card { background: var(--panel); border: 1px solid var(--border); padding: 16px; }
.side-card h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.commit-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.commit-row:last-child { border-bottom: none; padding-bottom: 0; }
.commit-row a { color: inherit; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commit-row .school { font-family: 'Space Mono', monospace; font-size: 10.5px; color: var(--blue); }

/* ─────────────────────────────────────────────
   SCORES STRIP
───────────────────────────────────────────── */
.scores-strip { padding: 22px 0; }
.scores-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.scores-head h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 20px; }
.scores-head a { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); }
.scores-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.score-card { background: var(--panel); border: 1px solid var(--border); padding: 13px; }
.score-card .league { font-family: 'Space Mono', monospace; font-size: 9px; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 8px; }
.score-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3px 0; }
.score-line.win { font-weight: 700; color: var(--bone); }
.score-line .num { font-family: 'Space Mono', monospace; }
.score-status { font-family: 'Space Mono', monospace; font-size: 9.5px; color: var(--red); margin-top: 7px; }

/* ─────────────────────────────────────────────
   CATEGORY TABS
───────────────────────────────────────────── */
.cat-tabs { background: var(--panel); border-bottom: 1px solid var(--border); }
.cat-tabs-inner { display: flex; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.cat-tabs-inner::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0; display: block;
  font-family: 'Space Mono', monospace; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  padding: 13px 18px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; transition: color .15s, border-color .15s;
}
.cat-tab:hover { color: var(--bone); border-bottom-color: var(--mid); }
.cat-tab.active { color: var(--bone); border-bottom-color: var(--red); }

/* ─────────────────────────────────────────────
   POST FEED / BLOG WALL
───────────────────────────────────────────── */
.wall { padding: 30px 0; }
.wall-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.wall-head h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 26px; }
.wall-head a { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); }
.wall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; position: relative; }
.post-card a.card-link { display: contents; color: inherit; }
.post-card.big { grid-column: span 2; grid-row: span 2; }
.post-thumb { aspect-ratio: 16/10; background: linear-gradient(150deg,#1c1c1c,#0c0c0c); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.post-card.big .post-thumb { aspect-ratio: 16/8; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-thumb img { transform: scale(1.03); }
.post-tag { position: absolute; top: 10px; left: 10px; font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border: 1px solid; z-index: 2; }
.post-tag.hot { color: var(--red); border-color: var(--red); background: rgba(10,10,10,0.85); }
.post-tag.news { color: var(--bone-dim); border-color: var(--mid); background: rgba(10,10,10,0.85); }
.post-tag.commit { color: var(--yellow); border-color: var(--yellow); background: rgba(10,10,10,0.85); }
.post-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.post-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 18px; line-height: 1.12; margin-bottom: 8px; }
.post-title a { color: inherit; }
.post-title a:hover { color: var(--bone-dim); }
.post-card.big .post-title { font-size: 28px; }
.post-dek { font-size: 12.5px; color: var(--bone-dim); flex: 1; margin-bottom: 10px; }
.post-meta { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--muted); }
.post-thumb-placeholder {
  position: absolute; inset: 0;
  background: #111 repeating-linear-gradient(115deg, rgba(232,0,28,0.04) 0 2px, transparent 2px 16px);
  display: flex; align-items: center; justify-content: center;
}
.ptp-cat {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: clamp(18px, 2.5vw, 26px); color: var(--border); letter-spacing: 0.08em;
  text-transform: uppercase; user-select: none; text-align: center; padding: 8px;
}

/* ─────────────────────────────────────────────
   RANKINGS
───────────────────────────────────────────── */
.rankings { padding: 30px 0; border-top: 1px solid var(--border); }
.rankings-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.rankings-head h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 26px; }
.rankings-head a { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-family: 'Space Mono', monospace; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
td { padding: 10px 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
td.rank { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 17px; color: var(--bone-dim); width: 40px; }
td.team { font-weight: 700; }
td.move { font-family: 'Space Mono', monospace; font-size: 12px; }
.up { color: #4ADE80; } .down { color: var(--red); } .flat { color: var(--muted); }
.rankings-content { /* rankings post content drop-in */ }
.rankings-content table { width: 100%; }

/* ─────────────────────────────────────────────
   NEWSLETTER
───────────────────────────────────────────── */
.newsletter { background: var(--red); padding: 30px 0; }
.nl-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.nl-inner h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 28px; text-transform: uppercase; color: var(--black); }
.nl-inner p { color: rgba(10,10,10,0.75); font-size: 13px; }
.nl-form { display: flex; gap: 0; }
.nl-form input { padding: 11px 14px; border: 2px solid var(--black); border-radius: 2px 0 0 2px; background: var(--bone); font-family: 'Inter', sans-serif; font-size: 13px; width: 240px; outline: none; }
.nl-form button { padding: 11px 18px; background: var(--black); color: var(--bone); font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border: 2px solid var(--black); border-radius: 0 2px 2px 0; cursor: pointer; transition: background .15s; }
.nl-form button:hover { background: #1a1a1a; }

/* ─────────────────────────────────────────────
   GEAR
───────────────────────────────────────────── */
.gear { padding: 32px 0; }
.gear-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.gear-head h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 26px; }
.gear-head a { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); }
.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gear-card { background: var(--panel); border: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; }
.gear-card a { color: inherit; }
.gear-thumb { aspect-ratio: 4/3; background: linear-gradient(160deg,#1c1c1c,#0c0c0c); margin-bottom: 12px; overflow: hidden; }
.gear-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gear-card:hover .gear-thumb img { transform: scale(1.03); }
.gear-card h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.gear-dek { color: var(--bone-dim); font-size: 12.5px; margin-bottom: 8px; flex: 1; }
.gear-score { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--yellow); }

/* ─────────────────────────────────────────────
   MERCH BANNER
───────────────────────────────────────────── */
.merch-banner { background: var(--panel-2); border-top: 1px solid var(--border); padding: 36px 0; }
.merch-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.merch-inner h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 28px; }
.merch-inner h3 span { color: var(--red); }
.merch-inner p { color: var(--bone-dim); font-size: 13px; margin-top: 4px; }
.btn-white { background: var(--bone); color: var(--black); font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; padding: 12px 20px; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 2px; display: inline-block; transition: background .15s; }
.btn-white:hover { background: #d4cfc2; color: var(--black); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer { padding: 0 0 24px; }
.footer-top { display: grid; grid-template-columns: 2fr auto auto auto auto; gap: 52px; margin-bottom: 24px; }
.footer-logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo { width: var(--brand-logo-size); height: var(--brand-logo-size); object-fit: contain; display: block; }
.footer-logo-text { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: var(--brand-text-size); letter-spacing: 0.02em; color: var(--bone); }
.footer-logo-text span { color: var(--red); }
/* Footer brand lockup: inline-flex column so tagline/signup width is capped by the logo+wordmark */
.footer-brand-lockup { display: inline-flex; flex-direction: column; gap: 10px; }
/* Footer brand scales up — 5:3 ratio locked (logo:text = 110px:66px at max) */
.footer-brand-lockup .footer-logo { width: clamp(70px, 8vw, 110px); height: clamp(70px, 8vw, 110px); }
.footer-brand-lockup .footer-logo-text { font-size: clamp(42px, 4.8vw, 66px); }
/* Tagline: width:0 + min-width:100% fills lockup width without expanding it */
.footer-tagline { width: 0; min-width: 100%; color: var(--muted); font-size: 17px; line-height: 1.5; margin: 0; }
/* Email signup */
.footer-signup { display: flex; gap: 8px; width: 0; min-width: 100%; }
.footer-signup input[type="email"] { flex: 1; min-width: 0; background: var(--surface, #1a1a1a); border: 1px solid var(--border); color: var(--bone); border-radius: 2px; padding: 8px 12px; font-size: 13px; font-family: inherit; }
.footer-signup input::placeholder { color: var(--muted); }
.footer-signup button { white-space: nowrap; background: var(--red); color: var(--black); border: none; border-radius: 2px; padding: 8px 14px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; }
.footer-signup button:hover { opacity: 0.85; }
.footer-col { padding-top: 24px; }
.footer-col h4 { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.footer-col a { display: block; font-size: 13px; color: var(--bone-dim); padding: 4px 0; }
.footer-col a:hover { color: var(--bone); }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 18px; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--muted); }
.footer-socials { display: flex; gap: 16px; flex-wrap: wrap; }
.social-link { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--muted); letter-spacing: 0.05em; }
.social-link:hover { color: var(--bone-dim); }

/* ─────────────────────────────────────────────
   SINGLE POST
───────────────────────────────────────────── */
.single-hero { padding: 40px 0 0; }
.single-hero-inner { max-width: 800px; }
.single-hero .stamp { position: static; display: inline-block; margin-bottom: 18px; }
.article-header { padding: 0 0 24px; border-bottom: 1px solid var(--border); }
.article-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(32px, 5vw, 52px); line-height: 1.02; letter-spacing: -0.01em; margin: 14px 0 16px; }
.article-dek { font-size: 17px; color: var(--bone-dim); margin-bottom: 16px; max-width: 700px; }
.article-meta { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); }
.article-feat-img { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg,#1d1d1d,#0d0d0d); border: 1px solid var(--border); overflow: hidden; margin: 24px 0; }
.article-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 700px; }
.article-body p { margin-bottom: 1.4em; line-height: 1.7; color: var(--bone-dim); }
.article-body p:last-child { margin-bottom: 0; }
.article-body h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 26px; color: var(--bone); margin: 1.8em 0 0.6em; text-transform: uppercase; }
.article-body h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 20px; color: var(--bone); margin: 1.4em 0 0.5em; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.4em; color: var(--bone-dim); }
.article-body li { margin-bottom: 0.5em; }
.article-body strong { color: var(--bone); font-weight: 700; }
.article-body em { color: var(--bone-dim); }
.article-body blockquote { border-left: 3px solid var(--red); padding: 12px 20px; margin: 1.6em 0; background: var(--panel); }
.article-body blockquote p { color: var(--bone); font-size: 17px; font-style: italic; }
.article-body a { color: var(--red); text-decoration: underline; }
.article-body a:hover { color: var(--bone); }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

.article-wrap { padding: 0 0 48px; }
.article-cols { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.article-sidebar { position: sticky; top: 80px; }

.post-nav { padding: 32px 0; border-top: 1px solid var(--border); }
.post-nav-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-nav-item { background: var(--panel); border: 1px solid var(--border); padding: 16px; }
.post-nav-label { font-family: 'Space Mono', monospace; font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.post-nav-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 16px; line-height: 1.2; }
.post-nav-item a { color: inherit; }
.post-nav-item a:hover .post-nav-title { color: var(--red); }

/* ─────────────────────────────────────────────
   ARCHIVE / BLOG LIST
───────────────────────────────────────────── */
.archive-header { padding: 40px 0 24px; border-bottom: 1px solid var(--border); }
.archive-eyebrow { font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.archive-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(32px, 5vw, 52px); line-height: 1; }
.archive-desc { color: var(--bone-dim); font-size: 14px; margin-top: 10px; max-width: 500px; }
.archive-body { padding: 32px 0; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ─────────────────────────────────────────────
   PAGE
───────────────────────────────────────────── */
.page-wrap { padding: 48px 0; }
.page-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(32px, 5vw, 52px); margin-bottom: 24px; }
.page-content { max-width: 700px; }
.page-content p { margin-bottom: 1.4em; line-height: 1.7; color: var(--bone-dim); }
.page-content h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 24px; margin: 1.6em 0 0.6em; text-transform: uppercase; }
.page-content a { color: var(--red); text-decoration: underline; }
.page-content ul, .page-content ol { padding-left: 1.4em; margin-bottom: 1.4em; color: var(--bone-dim); }

/* ─────────────────────────────────────────────
   404 / SEARCH
───────────────────────────────────────────── */
.error-wrap { padding: 80px 0; text-align: center; }
.error-code { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 120px; line-height: 1; color: var(--border); margin-bottom: 16px; }
.error-msg { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 32px; margin-bottom: 16px; }
.error-sub { color: var(--bone-dim); margin-bottom: 32px; }
.btn-red { display: inline-block; background: var(--red); color: var(--black); font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; padding: 12px 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.btn-red:hover { background: #c0001a; color: var(--black); }

.search-wrap { padding: 40px 0; }
.search-header { margin-bottom: 32px; }
.search-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 32px; margin-bottom: 8px; }
.search-title span { color: var(--red); }
.search-count { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); }
.search-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ─────────────────────────────────────────────
   SEARCH FORM
───────────────────────────────────────────── */
.search-form { display: flex; gap: 0; }
.search-form input[type="search"] {
  flex: 1; padding: 11px 14px; background: var(--panel); border: 1px solid var(--border);
  color: var(--bone); font-family: 'Inter', sans-serif; font-size: 13px; outline: none;
}
.search-form button {
  padding: 11px 16px; background: var(--red); border: none; cursor: pointer;
  font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700;
  color: var(--black); text-transform: uppercase; letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────── */
.pagination { padding: 32px 0 16px; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; font-family: 'Space Mono', monospace; font-size: 11px;
  border: 1px solid var(--border); background: var(--panel); color: var(--bone-dim);
}
.pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: var(--black); font-weight: 700; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--mid); color: var(--bone); }

/* ─────────────────────────────────────────────
   WORDPRESS CORE HELPERS
───────────────────────────────────────────── */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.wp-caption { max-width: 100%; margin-bottom: 1em; }
.wp-caption-text { font-size: 12px; color: var(--muted); margin-top: 6px; font-style: italic; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-block-image figcaption { font-size: 12px; color: var(--muted); }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 860px) {
  /* ── Nav: show hamburger, hide desktop links ── */
  .nav-socials { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10,10,10,0.99);
    border-bottom: 2px solid var(--red);
    backdrop-filter: blur(8px);
    z-index: 99;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 0 16px;
  }
  .nav-links.open { display: flex; }

  /* Top-level items: full-width rows with touch targets */
  .nav-links > ul { flex-direction: column; gap: 0; width: 100%; }
  .nav-links > ul > li { position: relative; border-bottom: 1px solid var(--border); }
  .nav-links > ul > li > a {
    display: block; padding: 14px 24px;
    font-size: 13px; border-bottom: none;
  }

  /* Arrow toggle button: right-side tap target */
  .nav-drop-btn {
    position: absolute; right: 0; top: 0;
    height: 48px; width: 52px;
    display: flex; align-items: center; justify-content: center;
    border-left: 1px solid var(--border) !important;
  }

  /* Sub-menus: expand inline, no absolute flyout */
  .nav-links .sub-menu,
  .nav-links .dropdown {
    position: static;
    border: none; border-top: none;
    background: var(--panel);
    min-width: auto; width: 100%;
    padding: 4px 0;
  }
  .nav-links .sub-menu .sub-menu,
  .nav-links .dropdown .sub-menu { left: 0; top: 0; }
  .nav-links .sub-menu a,
  .nav-links .dropdown a { padding: 11px 40px; font-size: 11.5px; }

  /* ── Layouts ── */
  .hero-layout { grid-template-columns: 1fr; }
  .hero-sidebar { display: none; }
  .hero-lead-link { min-height: 340px; }
  .scores-row { grid-template-columns: repeat(2,1fr); }
  .wall-grid { grid-template-columns: 1fr; }
  .post-card.big { grid-column: span 1; grid-row: span 1; }
  .archive-grid { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col { padding-top: 0; }
  .article-cols { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .post-nav-inner { grid-template-columns: 1fr; }

  /* ── Newsletter: heading on its own line, form full width below ── */
  .newsletter { padding: 14px 0; }
  .nl-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .nl-inner p { display: none; }
  .nl-inner h3 { font-size: 20px; }
  .nl-form input { flex: 1; width: auto; min-width: 0; }

  /* ── Merch / Rep the Game - thinner, bigger text ── */
  .merch-banner { padding: 14px 0; }
  .merch-inner { flex-wrap: nowrap; }
  .merch-inner > div { flex: 1; min-width: 0; }
  .merch-inner h3 { font-size: 26px; }
  .merch-inner p { display: none; }

  /* ── Footer: brand spans full width, nav cols fill 2-col grid ── */
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand-lockup { display: flex; width: 100%; }

  /* ── Footer bottom: socials above copyright ── */
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

@media (max-width: 480px) {
  /* ── Tighter global padding on phones ── */
  .wrap { padding: 0 16px; }

  /* ── Nav bar: tighter height, scaled logo ── */
  .nav-inner { height: 64px; }
  .nav-links { max-height: calc(100vh - 64px); }
  :root { --brand-logo-size: 48px; --brand-text-size: 29px; }

  /* ── Layouts ── */
  .scores-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-headline { font-size: 26px; }

  /* ── Article ── */
  .article-title { font-size: 28px; }
  .article-dek { font-size: 15px; }
  .article-body p { font-size: 15px; }
}

/* ─────────────────────────────────────────────
   SCORES PAGE — division picker + tabs + ESPN-style scoreboard
───────────────────────────────────────────── */

/* Division selector bar */
.sp-division-bar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 86px;
  z-index: 50;
}
.sp-division-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sp-division-tabs::-webkit-scrollbar { display: none; }

.sp-div-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  text-transform: uppercase;
  transition: color .15s, border-color .15s, background .15s;
  line-height: 1;
  white-space: nowrap;
}
.sp-div-btn:hover { color: var(--bone); border-color: var(--mid); }
.sp-div-active {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: var(--black) !important;
  font-weight: 700;
}

/* Main content area */
.sp-main { padding: 0; }

.sp-tab-row {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.sp-tab-bar { display: flex; gap: 0; }

.sp-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 14px 20px 12px;
  text-transform: uppercase;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.sp-tab-btn:hover { color: var(--bone-dim); border-bottom-color: var(--mid); }
.sp-tab-active {
  color: var(--bone) !important;
  border-bottom-color: var(--red) !important;
}

/* Panel */
.sp-panel { padding: 0 0 80px; min-height: 320px; }

/* Loading / empty / error */
.sp-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 40px 0;
}
.sp-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: sp-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }

.sp-empty, .sp-error {
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 32px 0;
  letter-spacing: 0.04em;
  margin: 0;
}
.sp-error { color: var(--red); }

.sp-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 24px;
}
.sp-jump-recent {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--bone-dim);
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  transition: border-color 0.15s, color 0.15s;
}
.sp-jump-recent:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--bone);
}
.sp-jump-recent:disabled {
  opacity: 0.5;
  cursor: default;
}
.sp-today-btn {
  background: transparent;
  border: 1px solid var(--red-dim);
  border-radius: 2px;
  color: var(--bone);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  text-transform: uppercase;
  transition: border-color 0.15s;
  white-space: nowrap;
}
.sp-today-btn:hover { border-color: var(--red); }
.sp-today-hidden { display: none; }

/* ── Scoreboard header ── */
.sp-sb-header {
  padding: 28px 0 0;
}
.sp-sb-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
  line-height: 1;
  margin: 0 0 20px;
}

/* ── Weekly calendar strip ── */
.sp-week-nav {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  position: relative;
}

/* ── Calendar toggle wrap + popup ── */
.sp-cal-wrap {
  position: relative;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
}
.sp-cal-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-cal-popup {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  z-index: 300;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0 0 2px 2px;
  padding: 12px 14px 14px;
  min-width: 260px;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
}
.sp-cal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sp-cal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bone);
}
.sp-cal-nav {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  line-height: 1;
  transition: color .12s;
}
.sp-cal-nav:hover { color: var(--bone); }
.sp-cal-loading {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 16px 0;
}

/* 7-column calendar grid */
.sp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.sp-cal-dow {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  padding: 2px 0 6px;
  letter-spacing: .04em;
}
.sp-cal-day,
.sp-cal-day-blank {
  aspect-ratio: 1;
  background: transparent;
  border: none;
  border-radius: 2px;
  color: var(--muted);
  cursor: default;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
/* Dates with games: bold, bright, clickable */
.sp-cal-day.sp-cd-game {
  color: var(--bone);
  font-weight: 700;
  cursor: pointer;
}
.sp-cal-day.sp-cd-game:hover {
  background: var(--panel-2);
}
/* Today */
.sp-cal-day.sp-cd-today {
  color: var(--bone-dim);
}
.sp-cal-day.sp-cd-game.sp-cd-today {
  color: var(--bone);
}
/* Red circle on today when it has games */
.sp-cal-day.sp-cd-game.sp-cd-today::after,
.sp-cal-day.sp-cd-today.sp-cd-sel::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--red);
  z-index: -1;
}
.sp-cal-day.sp-cd-today { position: relative; }
/* Selected date: red circle */
.sp-cal-day.sp-cd-sel {
  background: var(--red);
  color: var(--bone) !important;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;
}
/* Before the league's earliest season — not just gameless, unreachable */
.sp-cal-day.sp-cd-disabled {
  color: var(--muted);
  opacity: .3;
  cursor: not-allowed;
}

.sp-cal-nav:disabled {
  color: var(--muted);
  opacity: .3;
  cursor: not-allowed;
}
.sp-cal-nav:disabled:hover { color: var(--muted); }

.sp-week-arrow {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 14px;
  height: 64px;
  flex-shrink: 0;
  transition: color .15s, background .15s;
}
.sp-week-arrow:hover { color: var(--bone); background: var(--panel-2); }
.sp-week-arrow:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.sp-week-arrow:disabled:hover { color: var(--muted); background: transparent; }

.sp-week-days {
  display: flex;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sp-week-days::-webkit-scrollbar { display: none; }

.sp-week-day {
  flex: 1;
  min-width: 62px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--bone-dim);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 4px 9px;
  transition: color .15s, border-color .15s, background .15s;
}
.sp-week-day:hover { color: var(--bone); background: var(--panel-2); }

/* Active (selected) day */
.sp-wday-active {
  color: var(--bone) !important;
  border-bottom-color: var(--red) !important;
}

/* Days with no games — dimmed */
.sp-wday-empty {
  color: var(--mid) !important;
  cursor: default;
}
.sp-wday-empty:hover { background: transparent; color: var(--mid) !important; }

/* Today marker — red text */
.sp-wday-today .sp-wd-name,
.sp-wday-today .sp-wd-num {
  color: var(--red);
}

.sp-wd-name {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}
.sp-wd-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: inherit;
}

/* ── Full date label ── */
.sp-date-full {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 16px;
  padding: 0;
}

/* ── All-divisions sections ── */
.sp-all-section {
  margin-bottom: 24px;
}
.sp-all-section-hdr {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.sp-all-section-date {
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--mid);
}

/* ── Game cards grid ── */
.sp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.sp-game-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .15s;
}
.sp-game-card:hover { border-color: var(--mid); }

/* Tournament round label — sits above the header inside the card */
.sp-gc-round {
  padding: 4px 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Card header: status + TV */
.sp-gc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}

.sp-gc-status {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sp-status-final { color: var(--muted); }
.sp-status-pre   { color: var(--bone-dim); }
.sp-status-live  { color: var(--red); }

.sp-live-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  animation: sp-pulse 1.2s ease-in-out infinite;
}
@keyframes sp-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

.sp-gc-tv {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--mid);
  text-transform: uppercase;
}

/* Card matchup rows */
.sp-gc-matchup {
  padding: 8px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-gc-team-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sp-gc-rank {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  min-width: 18px;
  flex-shrink: 0;
}

.sp-gc-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bone-dim);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.sp-gc-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  color: var(--bone-dim);
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.sp-gc-score-dash {
  color: var(--border);
  font-size: 16px;
  font-weight: 400;
}

.sp-gc-record {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0 4px 0 2px;
  line-height: 1;
}

/* Winner row: name and score brighter */
.sp-gc-winner .sp-gc-name  { color: var(--bone); }
.sp-gc-winner .sp-gc-score { color: var(--bone); }

/* Team logos in score cards */
.sp-gc-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
}

/* Ithaca Bombers logo is solid black on a transparent background — it
   disappears against the site's dark theme without a light backdrop.
   Targets the exact logo URL so it applies everywhere it's used (score
   cards, rankings, standings, brackets) without affecting other teams. */
img[src="https://a.espncdn.com/i/teamlogos/ncaa/500/175.png"] {
  background: #fff;
  border-radius: 50%;
}

/* Card meta footer: venue */
.sp-gc-meta {
  padding: 0 12px 10px;
}
.sp-gc-venue {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--muted);
}

/* Standings / Polls / NPI placeholder panels */
.sp-ext-panel {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 40px 32px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.sp-ext-panel-heading {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}
.sp-ext-panel-body { color: var(--muted); font-size: 13px; }
.sp-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--red);
  color: var(--black);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border-radius: 2px;
  text-transform: uppercase;
  transition: opacity .15s;
  align-self: flex-start;
}
.sp-ext-link:hover { opacity: .85; color: var(--bone); }

/* Rankings cards */
.sp-rankings { display: flex; flex-direction: column; gap: 2px; margin-top: 32px; }

.sp-rank-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s;
}
.sp-rank-card:hover { border-color: var(--mid); }
.sp-rc-date { font-size: 10px; color: var(--mid); letter-spacing: 0.06em; }
.sp-rc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.sp-rc-title a { color: var(--bone); }
.sp-rc-title a:hover { color: var(--red); }
.sp-rc-excerpt { color: var(--muted); font-size: 13px; line-height: 1.5; }
.sp-rc-read {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  text-transform: uppercase;
  align-self: flex-start;
}
.sp-rc-read:hover { color: var(--bone); }

/* ── Standings table ─────────────────────────────────────────────────── */
.sp-st-wrap { padding: 24px 0 8px; }
.sp-st-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--bone); margin: 0 0 16px;
}
.sp-st-season {
  font-family: 'Space Mono', monospace;
  font-size: 13px; font-weight: 400; color: var(--muted);
  margin-left: 6px;
}
.sp-st-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sp-st-table { width: 100%; border-collapse: collapse; min-width: 480px; max-width: 620px; }
.sp-st-th {
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--muted); padding: 6px 10px 8px;
  border-bottom: 1px solid var(--mid); white-space: nowrap;
  text-transform: uppercase;
}
.sp-st-th-rk  { text-align: center; width: 36px; }
.sp-st-th-team { text-align: left; }
.sp-st-th-num { text-align: right; padding-left: 4px; padding-right: 8px; }
.sp-st-row   { border-bottom: 1px solid rgba(74,74,70,0.35); transition: background .1s; }
.sp-st-alt   { background: rgba(74,74,70,0.1); }
.sp-st-row:hover { background: rgba(74,74,70,0.22); }
.sp-st-rk   { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); text-align: center; padding: 10px 8px; }
.sp-st-name { padding: 10px 10px; color: var(--bone); font-size: 14px; font-weight: 600; }
.sp-st-num  { text-align: right; padding: 10px 8px 10px 4px; color: var(--bone-dim); font-size: 13px; }
.sp-st-w    { color: var(--bone); }
.sp-st-pos  { color: #5fb86e; }
.sp-st-neg  { color: var(--red); }
.sp-st-note { font-size: 11px; color: var(--muted); margin-top: 12px; font-style: italic; }

/* Conference view — every conference shown as its own grouped table */
.sp-st-conf-group + .sp-st-conf-group { margin-top: 28px; }
.sp-st-conf-heading {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

/* Clinched/eliminated letter-code prefix on a team's name (e.g. "xc-") */
.sp-st-flag {
  color: var(--red);
  font-size: 11px;
  margin-right: 2px;
}

/* Glossary footer — column definitions always shown, letter codes only
   when the backend actually computed clinch/eliminate status */
.sp-st-glossary {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.sp-st-gloss-title {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.sp-st-gloss-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.sp-st-gloss-item {
  font-size: 11px;
  color: var(--muted);
}
.sp-st-gloss-item b { color: var(--bone-dim); }

/* Team logos in standings table */
.sp-st-name { vertical-align: middle; }
.sp-st-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
}

/* sortable headers */
.sp-st-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.sp-st-sortable:hover { background: rgba(74,74,70,0.25); }
.sp-st-th-active { color: var(--bone) !important; }
.sp-st-arrow { font-size: 10px; color: var(--muted); }
.sp-st-th-active .sp-st-arrow { color: var(--bone); }

/* Conference filter select now lives in the controls row and reuses
   .sp-bkt-year-sel for its visual style — .sp-st-conf-sel is kept only
   as a JS hook, no styling of its own. */

/* ── Committee rankings table ────────────────────────────────────────── */
.sp-rkt-wrap { padding: 24px 0 8px; }
.sp-rkt-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--bone); margin: 0 0 16px;
}
.sp-rkt-table { width: 100%; border-collapse: collapse; max-width: 420px; }
.sp-rkt-th {
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--muted); padding: 6px 10px 8px;
  border-bottom: 1px solid var(--mid); white-space: nowrap;
  text-transform: uppercase;
}
.sp-rkt-th-rk  { text-align: center; width: 48px; }
.sp-rkt-th-team { text-align: left; }
.sp-rkt-th-rec { text-align: center; width: 90px; }
.sp-rkt-th-pts { text-align: center; width: 80px; }
.sp-rkt-row { border-bottom: 1px solid rgba(74,74,70,0.35); transition: background .1s; }
.sp-rkt-alt { background: rgba(74,74,70,0.1); }
.sp-rkt-row:hover { background: rgba(74,74,70,0.22); }
.sp-rkt-rk {
  font-family: 'Space Mono', monospace;
  font-size: 14px; font-weight: 700; color: var(--muted);
  text-align: center; padding: 10px 8px;
}
.sp-rkt-name { padding: 10px 10px; color: var(--bone); font-size: 14px; font-weight: 600; vertical-align: middle; }
.sp-rkt-name .sp-st-logo { vertical-align: middle; margin-right: 8px; display: inline-block; }
.sp-rkt-rec  { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--muted); text-align: center; padding: 10px 10px; }
.sp-rkt-pts  { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--bone-dim); text-align: center; padding: 10px 10px; }
.sp-rkt-fpv  { font-size: 12px; color: var(--muted); font-weight: 400; }
.sp-rkt-note   { font-size: 11px; color: var(--muted); margin-top: 12px; font-style: italic; }
.sp-rkt-source { font-size: 10px; color: var(--muted); margin-top: 8px; letter-spacing: 0.06em; }
.sp-rkt-source a { color: var(--muted); text-decoration: underline; }
.sp-rkt-source a:hover { color: var(--bone); }

/* Regional rankings: North / South side-by-side */
.sp-rgl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; max-width: 900px; }
.sp-rgl-3col  { grid-template-columns: 1fr 1fr 1fr; max-width: 1050px; }
.sp-rgl-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--bone); margin-bottom: 10px; }
.sp-rgl-group .sp-rkt-table { max-width: 100%; width: 100%; }
.sp-rgl-group .sp-rkt-name { white-space: nowrap; }
.sp-rkt-num  { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--muted); text-align: center; padding: 10px 8px; }
.sp-rkt-th-num { text-align: center; width: 70px; }

/* ── High school state badge */
.sp-hs-state { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); margin-left: 4px; }

/* ── NPI table (reuses sp-st-* base, adds specifics) */
.sp-npi-table { min-width: 560px; max-width: 680px; }
.sp-npi-val   { color: var(--bone) !important; font-weight: 700; }

/* ── Bracket ────────────────────────────────────────────────────────── */

/* Outer wrapper injected by renderBracket() */
.sp-bkt-wrap {
  padding-top: 24px;
}
.sp-bkt-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
  line-height: 1;
  margin: 0 0 20px;
}

/* Controls row: year selector + NCAA link */
.sp-bkt-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
#spStConfWrap:empty { display: none; }
.sp-bkt-year-sel {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--bone);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 2px;
  cursor: pointer;
}
.sp-bkt-year-sel:focus { outline: 1px solid var(--red); }
.sp-bkt-ncaa-link {
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: auto;
}
.sp-bkt-ncaa-link:hover { color: var(--bone); }

/* Regular / Champ Series toggle (PLL 2023+, WLL 2025+) — the wrap div stays
   in the DOM even for years without Champ Series (so JS can repopulate it
   later without losing the element), :empty just collapses it visually. */
.sp-bkt-mode-wrap {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.sp-bkt-mode-wrap:empty {
  display: none;
  border: none;
}
.sp-bkt-mode-btn {
  background: var(--panel);
  border: none;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
}
.sp-bkt-mode-btn + .sp-bkt-mode-btn { border-left: 1px solid var(--border); }
.sp-bkt-mode-btn:hover { color: var(--bone); }
.sp-bkt-mode-btn.sp-bkt-mode-active { background: var(--red); color: var(--black); }

/* Empty / error states */
.sp-bkt-empty {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ── Champ Series pool play (round-robin stage that seeded the bracket above) ── */
.sp-bkt-pool {
  max-width: 480px;
  margin: 28px auto 0;
}
.sp-bkt-pp-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
}
.sp-bkt-pp-table th {
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0 8px 6px;
  border-bottom: 1px solid var(--border);
}
.sp-bkt-pp-table th:nth-child(n+3) { text-align: right; }
.sp-bkt-pp-row td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--bone);
}
.sp-bkt-pp-seed { color: var(--muted); }
.sp-bkt-pp-num  { text-align: right; }
.sp-bkt-pp-team {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-bkt-pp-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: none;
}
.sp-bkt-pp-games {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sp-bkt-pp-game {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 10px;
}
.sp-bkt-pp-date { flex: none; width: 46px; }
.sp-bkt-pp-at   { margin: 0 6px; }

/* Scroll wrapper — horizontal scroll on small viewports */
.sp-bkt-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

/* The main bracket flex row */
.sp-bkt-bracket {
  display: flex;
  align-items: stretch;
  width: max-content;
  min-width: 640px;
  margin: 0 auto;
  padding-bottom: 16px;
}

/* ── Sides ── */
.sp-bkt-side {
  display: flex;
  align-items: stretch;
}
.sp-bkt-side-left  { flex-direction: row; }
.sp-bkt-side-right { flex-direction: row; }

/* ── Round columns ── */
/* 250px across every league (PLL/WLL/NLL) — originally widened just for
   NLL so a Best of 3 series card's game-by-game recap line ("May 9
   Swarm 21 at Thunderbirds 10", or an OT line like "Bandits 13 at
   Roughnecks 14 OT") fit without truncating; applied to all brackets
   for a consistent box size. 246px is the measured exact fit for the
   longest real NLL line (an OT line, not a plain one — easy to
   undercount); 250px adds a small render-variance margin on top. */
.sp-bkt-round {
  display: flex;
  flex-direction: column;
  width: 250px;
  flex: none;
}
.sp-bkt-rlabel {
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
  padding: 0 4px 10px;
  white-space: nowrap;
}
.sp-bkt-rlabel-date {
  display: block;
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: none;
  opacity: 0.7;
  margin-top: 3px;
}

/* Games container — space-around gives bracket alignment */
.sp-bkt-games {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  padding: 0 6px;
  position: relative;
}

/* ── Pair wrapper ── */
.sp-bkt-pair {
  display: flex;
  flex-direction: column;
  gap: 3px;
}



/* ── Game card ── */
.sp-bkt-game {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sp-bkt-game a {
  display: block;
  text-decoration: none;
}
.sp-bkt-game:hover { border-color: #444; }
.sp-bkt-game.sp-bkt-final { border-left: 2px solid var(--border); }
.sp-bkt-game.sp-bkt-live  { border-left: 2px solid var(--red); }
.sp-bkt-game-empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

/* ── Card header (status bar) ── */
.sp-bkt-header {
  padding: 4px 8px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sp-bkt-status {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sp-bkt-status.sp-status-final { color: var(--muted); }
.sp-bkt-status.sp-status-live  { color: var(--red); }

/* OT badge — moved up from the score line into the header, same
   font/size as .sp-bkt-score but always plain white regardless of
   winner/loser styling. */
.sp-bkt-ot {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

/* ── Matchup area ── */
.sp-bkt-matchup {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

/* ── Team row ── */
.sp-bkt-team {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.2;
}
.sp-bkt-team:last-of-type { border-bottom: none; }
.sp-bkt-winner { color: var(--bone); }

/* ── Logo ── */
.sp-bkt-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
}
.sp-bkt-logo-ph {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* ── Seed ── */
.sp-bkt-seed {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  min-width: 12px;
  text-align: right;
  flex-shrink: 0;
}
.sp-bkt-winner .sp-bkt-seed { color: var(--mid, #666); }

/* ── Team name ── */
.sp-bkt-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.sp-bkt-winner .sp-bkt-name { color: var(--bone); }

/* ── Score ── */
.sp-bkt-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 900;
  min-width: 22px;
  text-align: right;
  flex-shrink: 0;
  line-height: 1;
}
.sp-bkt-winner .sp-bkt-score { color: var(--bone); }

/* ── Individual game scores under a Best of 3 series card ── */
.sp-bkt-series-games {
  border-top: 1px solid var(--border);
  padding: 4px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-bkt-series-game {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  gap: 10px; /* matches .sp-bkt-pp-game, the PLL pool-play date/matchup gap */
}
/* Fixed width (like .sp-bkt-pp-date for PLL pool play) so single- and
   double-digit dates ("May 2" vs "May 10") line up their matchup text
   at the same starting position instead of the gap sliding over.
   Right-aligned so the date text itself sits flush against the gap —
   left-aligned, a short date like "May 1" left extra blank space inside
   this fixed box on top of the gap, making single-digit-date boxes read
   with a much wider gap than double-digit ones. Right-aligning moves
   that slack to the left of the date instead, so the gap is the same
   6px everywhere regardless of date length. */
.sp-bkt-series-date { flex: none; width: 36px; text-align: right; }
.sp-bkt-series-matchup {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Center column (Championship) ── */
.sp-bkt-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  gap: 12px;
  min-width: 180px;
}
.sp-bkt-center .sp-bkt-rlabel { text-align: center; padding-bottom: 0; }
.sp-bkt-center .sp-bkt-game   { width: 250px; }

/* ── Champion display ── */
.sp-bkt-champion {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 14px 20px;
  width: 190px;
}
.sp-bkt-champ-label {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.sp-bkt-champ-logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}
.sp-bkt-champ-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Clickable score cards ── */
.sp-game-card-clickable {
  cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.sp-game-card-clickable:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}

/* ── Game detail modal ── */
.sp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9000;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 16px;
}
.sp-modal-overlay.sp-modal-open { display: flex; }

.sp-modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  width: 100%;
  max-width: 760px;
  position: relative;
  margin: auto;
}
.sp-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}
.sp-modal-close:hover { color: var(--bone); }
.sp-modal-body { padding: 24px 20px 20px; }

/* Header */
.sp-gd-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.sp-gd-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 6px;
  text-align: center;
}
.sp-gd-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.sp-gd-logo-ph { width: 56px; height: 56px; }
.sp-gd-tname {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bone-dim);
  line-height: 1.2;
}
.sp-gd-winner .sp-gd-tname { color: var(--bone); }
.sp-gd-record {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--muted);
}
.sp-gd-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.sp-gd-scoreline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sp-gd-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  color: var(--bone-dim);
}
.sp-gd-score-winner { color: var(--bone); }
.sp-gd-sep {
  font-size: 28px;
  color: var(--border);
  font-weight: 300;
}
.sp-gd-status {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sp-gd-broadcast {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--mid);
}

/* Sections */
.sp-gd-section { margin-bottom: 20px; }
.sp-gd-section-title {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.sp-gd-table-wrap { overflow-x: auto; }

/* Linescore */
.sp-gd-linescore {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
}
.sp-gd-linescore th, .sp-gd-linescore td {
  padding: 6px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--bone-dim);
}
.sp-gd-linescore th {
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.sp-ls-team {
  text-align: left !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bone-dim);
  white-space: nowrap;
}
.sp-ls-total {
  font-weight: 700 !important;
  color: var(--bone) !important;
  border-left: 1px solid var(--border);
}

/* Box score */
.sp-gd-boxscore {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sp-gd-boxscore th, .sp-gd-boxscore td {
  padding: 5px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--bone-dim);
  white-space: nowrap;
}
.sp-gd-boxscore th {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.sp-bs-sub td { color: var(--muted); }
.sp-bs-name { text-align: left !important; white-space: nowrap; }
.sp-bs-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  min-width: 24px;
}
.sp-bs-pos {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}
.sp-bs-pts { font-weight: 700; }
.sp-gd-boxscore tr:hover td { background: var(--panel-2); }

/* Linescore wrapper (always above tabs) */
.sp-gd-linescore-wrap {
  overflow-x: auto;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

/* Tabs */
.sp-gd-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin: 0;
  padding: 0;
}
.sp-gd-tab {
  padding: 10px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--muted);
  background: none;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.sp-gd-tab:hover { color: var(--bone-dim); }
.sp-gd-tab-active { color: var(--bone) !important; border-bottom-color: var(--red) !important; }

/* Panels — fixed-height scroll container so tab switches never resize the modal */
.sp-gd-panels {
  height: 380px;
  overflow-y: auto;
}
.sp-gd-panel { display: none; }
.sp-gd-unavail {
  padding: 24px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-family: 'Space Mono', monospace;
}

/* Team Stats comparison table */
.sp-gd-teamstats {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sp-gd-teamstats th, .sp-gd-teamstats td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--bone-dim);
}
.sp-gd-teamstats thead tr { border-bottom: 2px solid var(--border); }
.sp-gd-teamstats th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bone);
  padding: 10px 12px;
}
.sp-ts-val {
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  width: 32%;
  color: var(--bone);
}
.sp-ts-label {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .03em;
}
.sp-ts-banner {
  display: flex;
  align-items: center;
  padding: 12px 12px 10px;
  border-bottom: 2px solid var(--border);
}
.sp-ts-banner-side {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-ts-banner-away { justify-content: center; }
.sp-ts-banner-home { justify-content: center; }
.sp-ts-banner-mid {
  width: 36%;
  flex-shrink: 0;
}
.sp-ts-banner-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}
.sp-ts-banner-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bone);
}
.sp-gd-teamstats tr:hover td { background: var(--panel-2); }

/* Box Score — inner team selector tabs */
.sp-gd-team-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}
.sp-gd-team-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--muted);
  background: none;
  transition: color .15s, border-color .15s;
}
.sp-gd-team-tab:hover { color: var(--bone-dim); }
.sp-gd-team-tab-active { color: var(--bone) !important; border-bottom-color: var(--red) !important; }
.sp-gd-ttab-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.sp-gd-team-panel { display: none; }

/* Play-by-Play */
.sp-pbp-period { border-bottom: 1px solid var(--border); }
.sp-pbp-period:last-child { border-bottom: none; }
.sp-pbp-period-label {
  padding: 9px 20px 7px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.sp-pbp-play {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.sp-pbp-play:last-child { border-bottom: none; }
.sp-pbp-play:hover { background: var(--panel-2); }
.sp-pbp-time {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  min-width: 38px;
  text-align: right;
}
.sp-pbp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.sp-pbp-dot-away { background: var(--bone-dim); }
.sp-pbp-dot-home { background: var(--red); }
.sp-pbp-desc { flex: 1; color: var(--bone-dim); }
.sp-pbp-goal .sp-pbp-desc { color: var(--bone); font-weight: 600; }
.sp-pbp-goal { background: color-mix(in srgb, var(--red) 6%, transparent); }
.sp-pbp-goal:hover { background: color-mix(in srgb, var(--red) 10%, transparent) !important; }
.sp-pbp-score {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--bone);
  white-space: nowrap;
  min-width: 38px;
  text-align: right;
}

/* Venue */
.sp-gd-venue {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .04em;
  text-align: center;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 700px) {
  .sp-cards {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .sp-sb-title { font-size: 24px; }
  .sp-div-btn  { padding: 12px 14px 9px; font-size: 12px; }
  .sp-week-arrow { padding: 0 10px; }
}
@media (max-width: 440px) {
  .sp-cards { grid-template-columns: 1fr; }
  .sp-week-day { min-width: 56px; }
}

/* ─────────────────────────────────────────────
   GEAR LANDING PAGE
───────────────────────────────────────────── */
.gp-hero {
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--border);
}
.gp-hero-eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.gp-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
}
.gp-hero-dek {
  font-size: 16px;
  color: var(--bone-dim);
  max-width: 580px;
  line-height: 1.6;
}

/* Sticky category pill nav */
.gp-nav {
  position: sticky;
  top: 86px; /* height of #site-nav */
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  z-index: 90;
}
.gp-nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gp-nav-inner::-webkit-scrollbar { display: none; }
.gp-pill {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  line-height: 1;
}
.gp-pill:hover { color: var(--bone); border-color: var(--mid); }
.gp-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--black);
  font-weight: 700;
}

/* Gear sections */
.gp-body { padding: 40px 0 60px; }
.gp-section { margin-bottom: 52px; }
.gp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.gp-section-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 5px;
}
.gp-section-dek {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}
.gp-section-all {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
  transition: color .15s;
}
.gp-section-all:hover { color: var(--bone); }

/* Gear card footer */
.gear-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
}
.gear-card-date { font-size: 10px; color: var(--muted); }

/* Gear thumb placeholder for no-image state */
.gear-thumb-ph {
  width: 100%;
  height: 100%;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gtp-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--mid);
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .gp-section-head { flex-direction: column; gap: 6px; }
  .gp-section-all { margin-top: 0; }
  .gp-hero-dek { font-size: 14px; }
}

/* ══════════════════════════════════════════
   HIGH SCHOOL RANKINGS PAGE
══════════════════════════════════════════ */
.hs-wrap { min-height: 60vh; }

.hs-gender-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}
.hs-gender-tabs button {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.hs-gender-tabs button:hover {
  color: var(--text);
  border-color: var(--mid);
}
.hs-gender-tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Rankings content wrapper */
.hs-rankings-wrap { padding: 0 0 32px; }

.hs-rankings-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.hs-rankings-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hs-rankings-desc {
  font-size: 11px;
  color: var(--muted);
}
.hs-rankings-source {
  font-size: 10px;
  color: var(--mid);
  margin-top: 2px;
}
.hs-rankings-source a {
  color: var(--accent);
  text-decoration: none;
}
.hs-rankings-source a:hover { text-decoration: underline; }

/* Table */
.hs-table-wrap { overflow-x: auto; max-width: 680px; }

.hs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.hs-table thead th {
  background: var(--panel-2);
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.hs-table thead th.hs-col-rating,
.hs-table thead th.hs-col-agd,
.hs-table thead th.hs-col-sched { text-align: right; }

.hs-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.hs-table tbody tr:hover { background: var(--panel-2); }
.hs-table tbody tr.hs-row-alt { background: rgba(255,255,255,0.02); }

.hs-table td {
  padding: 9px 10px;
  color: var(--text);
  white-space: nowrap;
}

.hs-col-rank {
  width: 36px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent) !important;
}
.hs-col-team {
  font-weight: 600;
  white-space: normal;
  min-width: 160px;
}
.hs-col-team-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.hs-team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.hs-col-state {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  width: 36px;
}
.hs-col-record {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  width: 56px;
}
.hs-col-rating,
.hs-col-agd,
.hs-col-sched {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-align: right;
}
.hs-col-rating { color: var(--accent) !important; }

.hs-rankings-footer {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.hs-rankings-footer a {
  color: var(--accent);
  text-decoration: none;
}
.hs-rankings-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .hs-table .hs-col-agd,
  .hs-table .hs-col-sched { display: none; }
  .hs-col-team { min-width: 120px; }
}

#hsHomeGrid .hs-col-team { white-space: nowrap; }

/* ─────────────────────────────────────────────
   HS RANKINGS — HOMEPAGE GRID
───────────────────────────────────────────── */
.hs-rankings-section {
  padding: 32px 0;
}
.hs-rankings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.hs-home-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.hs-home-tab { font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 22px; background: transparent; border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.hs-home-tab.active { background: var(--red); border-color: var(--red); color: var(--black); }
.hs-home-tab:hover:not(.active) { border-color: var(--bone-dim); color: var(--bone); }

/* ─────────────────────────────────────────────
   PLL / NCAA HOMEPAGE SCORE ROWS
───────────────────────────────────────────── */
.pll-feed {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.scores-head h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.scores-head-link {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
}
.scores-head-link:hover { color: var(--bone-dim); }

.pll-league-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.pll-league-row:last-child { border-bottom: none; }

.pll-row-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  padding-top: 6px;
}

.pll-row-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pll-row-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hp-col-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.ncaa-gender-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.pll-row-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.pll-loading,
.pll-empty {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  padding: 10px 0;
  grid-column: 1 / -1;
}

.pll-card-ghost {
  background: transparent;
  border: 1px solid transparent;
  min-height: 72px;
}

.hp-upcoming-extra {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.hp-more-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.hp-more-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 2px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.hp-more-btn:hover {
  color: var(--bone);
  border-color: var(--mid);
}

@media (max-width: 860px) {
  .pll-row-inner { grid-template-columns: 1fr; }
  .pll-league-row { grid-template-columns: 44px 1fr; }
}
@media (max-width: 600px) {
  .pll-league-row { grid-template-columns: 1fr; }
  .pll-row-label { padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
  .pll-row-cards { grid-template-columns: 1fr; }
}

/* ── Contact Page ── */
.ct-body {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 60px;
  padding: 48px 0 80px;
  align-items: start;
}
.ct-form-col { min-width: 0; }

/* Form fields */
.ct-field { margin-bottom: 20px; }
.ct-field-row { display: flex; gap: 16px; margin-bottom: 20px; }
.ct-field-row .ct-field { flex: 1; margin-bottom: 0; }
.ct-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.ct-input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--bone);
  font-family: inherit;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 2px;
  box-sizing: border-box;
  transition: border-color .15s;
  appearance: none;
  -webkit-appearance: none;
}
.ct-input:focus {
  outline: none;
  border-color: var(--mid);
}
.ct-textarea { resize: vertical; min-height: 160px; line-height: 1.6; }

.ct-select-wrap { position: relative; }
.ct-select-wrap .ct-select { padding-right: 32px; cursor: pointer; }
.ct-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 10px;
  pointer-events: none;
}

/* Submit button */
.ct-submit {
  display: inline-block;
  background: var(--red);
  color: var(--black);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  padding: 12px 32px;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s;
}
.ct-submit:hover { background: var(--red-dim); }

/* Error list */
.ct-errors {
  background: rgba(232,0,28,0.08);
  border: 1px solid var(--red-dim);
  border-radius: 2px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.ct-errors p { color: var(--bone-dim); font-size: 13px; margin: 0 0 4px; }
.ct-errors p:last-child { margin-bottom: 0; }

/* Success state */
.ct-sent { text-align: center; padding: 60px 0; }
.ct-sent-icon { font-size: 48px; color: var(--red); margin-bottom: 16px; }
.ct-sent h2 { font-size: 32px; margin-bottom: 10px; }
.ct-sent p { color: var(--bone-dim); margin-bottom: 24px; }
.ct-back { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-decoration: none; }
.ct-back:hover { color: var(--bone); }

/* ── Newsletter plugin form (/newsletter/ page, built from [newsletter_form]
   + [newsletter_field] shortcodes in page-newsletter.php) — the plugin's own
   default form/label/input selectors (e.g. "form.tnp-subscription") include
   an element type and beat a class-only selector on specificity, so every
   property here needs !important to reliably win and match the contact
   form's exact layout, fonts and sizes — not just look close to it. */
.tnp-subscription {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  display: block !important;
}
.tnp-subscription .tnp-field { margin-bottom: 20px !important; }
.tnp-subscription .tnp-field-row { display: flex !important; gap: 16px !important; margin-bottom: 20px !important; }
.tnp-subscription .tnp-field-row .tnp-field { flex: 1 !important; margin-bottom: 0 !important; }
.tnp-subscription label {
  display: block !important;
  font-family: 'Space Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  margin-bottom: 6px !important;
}
.tnp-subscription input[type="email"],
.tnp-subscription input[type="text"] {
  width: 100% !important;
  background: var(--panel) !important;
  border: 1px solid var(--border) !important;
  color: var(--bone) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  padding: 10px 14px !important;
  border-radius: 2px !important;
  box-sizing: border-box !important;
  height: auto !important;
  margin: 0 !important;
  transition: border-color .15s;
}
.tnp-subscription input[type="email"]:focus,
.tnp-subscription input[type="text"]:focus { outline: none !important; border-color: var(--mid) !important; }
.tnp-subscription input.tnp-submit {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  background: var(--red) !important;
  color: var(--black) !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border: none !important;
  padding: 12px 32px !important;
  border-radius: 2px !important;
  cursor: pointer;
  margin: 8px 0 0 !important;
  transition: background .15s;
}
.tnp-subscription input.tnp-submit:hover { background: var(--red-dim) !important; }
.tnp-subscription .tnp-field-button { text-align: left !important; }
@media (max-width: 480px) {
  .tnp-subscription .tnp-field-row { flex-direction: column; gap: 20px; }
}

/* Sidebar */
.ct-aside { border-left: 1px solid var(--border); padding-left: 36px; }
.ct-aside-block { margin-bottom: 32px; }
.ct-aside-head { font-size: 16px; font-weight: 900; margin-bottom: 8px; }
.ct-aside-block p { font-size: 14px; color: var(--bone-dim); line-height: 1.65; margin: 0 0 12px; }
.ct-aside-block a { color: var(--bone-dim); }
.ct-aside-block a:hover { color: var(--bone); }
.ct-aside-list { margin: 0; padding-left: 18px; }
.ct-aside-list li { font-size: 14px; color: var(--bone-dim); line-height: 1.65; margin-bottom: 8px; }
.ct-aside-list li:last-child { margin-bottom: 0; }

/* Newsletter page: note under the subscribe form */
.ct-nl-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.ct-aside-email { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.ct-aside-email span { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ct-aside-email a { font-size: 15px; color: var(--bone); text-decoration: none; }
.ct-aside-email a:hover { color: var(--red); }

@media (max-width: 780px) {
  .ct-body { grid-template-columns: 1fr; gap: 40px; }
  .ct-aside { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 32px; }
}
@media (max-width: 480px) {
  .ct-field-row { flex-direction: column; gap: 20px; }
}
