/* ============================================================
   All United FC — style.css
   Full stylesheet for allunitedfc website
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --red: #c53030;
  --dark-red: #992828;
  --white: #ffffff;
  --light: #f8f9fa;
  --gray: #475569;
  --dark: #0f172a;
  --canvas: #f8f9fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #e2e8f0;
  --header: #ffffff;
  --header-text: #0f172a;
  --header-muted: #334155;
  --input-bg: #ffffff;
  --pill-bg: #e2e8f0;
  --pill-text: #0f172a;
  --row-alt: rgba(0, 0, 0, .02);
  --row-hover: #fff7f7;
  --table-header: #171f2c;
  --accent-text: #a61b1b;
  --category-bg: #fce8e8;
  --category-text: #8f1d24;
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --hero-start: #171f2c;
  --footer-bg: #171f2c;
  --footer-text: #d1d5db;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --light: #0f141c;
  --gray: #b7c3d3;
  --dark: #f8fafc;
  --canvas: #0f141c;
  --surface: #171f2c;
  --surface-raised: #171f2c;
  --border: #263346;
  --header: #171f2c;
  --header-text: #f8fafc;
  --header-muted: #cbd5e1;
  --input-bg: #171f2c;
  --pill-bg: #1e293b;
  --pill-text: #f8fafc;
  --row-alt: rgba(255, 255, 255, .03);
  --row-hover: #202b38;
  --table-header: #0b111a;
  --accent-text: #ff8383;
  --category-bg: #4a2024;
  --category-text: #ffd3d3;
  --shadow: 0 8px 28px rgba(0, 0, 0, .25);
  --hero-start: #171f2c;
  --footer-bg: #080c12;
  --footer-text: #cbd5e1;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--canvas);
  transition: background-color .2s ease, color .2s ease;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.urgent-alert {
  position: sticky;
  top: 0;
  z-index: 101;
  background: #8f1d14;
  border-bottom: 4px solid #f0a51c;
  color: #fff;
}

.urgent-alert[hidden] {
  display: none;
}

.urgent-alert a {
  display: flex;
  align-items: center;
  gap: .75rem 1rem;
  width: min(1100px, 100%);
  min-height: 48px;
  margin: 0 auto;
  padding: .65rem 2rem;
  color: inherit;
  text-decoration: none;
}

.urgent-alert strong {
  flex: 0 0 auto;
  color: #ffd27a;
  font-size: .75rem;
  text-transform: uppercase;
}

.urgent-alert span {
  min-width: 0;
}

.urgent-alert span:last-child {
  overflow: hidden;
  color: rgba(255, 255, 255, .86);
  text-overflow: ellipsis;
  white-space: nowrap;
}

nav {
  background: var(--header);
  position: sticky;
  top: var(--urgent-alert-height, 0px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-brand-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 0;
}

.crest {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
  background: #fff;
}

.crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-logo span {
  color: var(--header-text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .5px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem 1.5rem;
}

.nav-links a {
  color: var(--header-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .8rem 0;
  border-bottom: 3px solid transparent;
  transition: .2s;
}

.nav-links a:hover {
  color: var(--header-text);
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex: 0 0 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--header-text);
}

.theme-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .55rem .8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--header-text);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--pill-bg);
}

.theme-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.nav-toggle:focus-visible,
.theme-toggle:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--hero-start) 0%, #2a0000 60%, var(--dark-red) 100%);
  color: #fff;
  padding: 5rem 2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 8vw, 7rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(204, 0, 0, .05) 40px,
    rgba(204, 0, 0, .05) 80px
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-crest {
  position: relative;
  z-index: 1;
  width: clamp(190px, 27vw, 310px);
  aspect-ratio: 1;
  border: 8px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
  transform: rotate(3deg);
}

.hero-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero .badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent-text);
}

.hero p {
  font-size: 1.15rem;
  color: #ccc;
  max-width: 500px;
  margin: 0 0 2rem;
}

.home-masthead {
  position: relative;
  display: flex;
  min-height: 580px;
  height: min(660px, calc(100svh - 96px));
  align-items: center;
  overflow: hidden;
  padding: 4rem clamp(1.25rem, 6vw, 5rem);
  background-color: var(--hero-start);
  background-image:
    linear-gradient(90deg, rgba(7, 17, 12, .88) 0%, rgba(7, 17, 12, .62) 43%, rgba(7, 17, 12, .18) 100%),
    var(--home-background-image, url("images/home-hero.jpg?v=2"));
  background-position: center, center 38%;
  background-size: cover;
  color: #fff;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
}

.home-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #e4cf91;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-hero-eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

.home-hero-copy h1 {
  margin-top: 1.25rem;
  color: #fff;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: .98;
  text-transform: uppercase;
}

.home-hero-copy h1 span {
  color: #e4cf91;
}

.home-hero-intro {
  max-width: 460px;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, .9);
  font-size: 1rem;
  line-height: 1.55;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-top: 1.5rem;
}

.home-hero-primary,
.home-hero-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .8rem 1.1rem;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.home-hero-primary {
  background: var(--red);
}

.home-hero-primary:hover {
  background: var(--dark-red);
}

.home-hero-secondary {
  padding-inline: .5rem;
}

.home-about {
  margin-top: 1rem;
}

.home-about summary {
  width: fit-content;
  padding: .45rem .65rem;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(0, 0, 0, .28);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.home-about-content {
  max-width: 520px;
  max-height: 180px;
  margin-top: .6rem;
  padding: .9rem 1rem;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(5, 12, 9, .88);
  color: rgba(255, 255, 255, .92);
  font-size: .8rem;
  line-height: 1.5;
}

.home-about-content h2 {
  margin-bottom: .5rem;
  color: #fff;
  font-size: 1rem;
}

.home-about-content p + p {
  margin-top: .5rem;
}

.home-masthead-caption {
  position: absolute;
  right: 1.5rem;
  bottom: 3rem;
  z-index: 1;
  color: rgba(255, 255, 255, .8);
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.home-match-strip {
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

.home-match-strip-inner {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.home-match-strip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.home-match-strip-heading h2 {
  color: var(--dark);
  font-size: 1.2rem;
}

.home-match-preview-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.home-preview-match-card {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: .4rem;
  padding: .8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--canvas);
  color: var(--dark);
  text-decoration: none;
  scroll-snap-align: start;
}

.home-preview-match-card:hover {
  border-color: var(--accent-text);
}

.home-preview-league,
.home-preview-status {
  color: var(--accent-text);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-preview-status {
  color: var(--gray);
}

.home-preview-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .4rem;
  text-align: center;
}

.home-preview-matchup span {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.home-preview-matchup strong {
  font-size: .95rem;
  font-weight: 900;
  white-space: nowrap;
}

.home-preview-details,
.home-preview-empty {
  color: var(--gray);
  font-size: .72rem;
  line-height: 1.4;
  text-align: center;
}

.home-preview-empty {
  grid-column: 1 / -1;
  padding: .75rem;
}

.home-match-card {
  display: grid;
  gap: .4rem;
  min-width: 0;
  color: var(--dark);
}

.home-match-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  text-align: center;
}

.home-match-score {
  color: var(--dark);
  font-size: 1.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.home-match-team {
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.home-match-detail {
  margin-top: .1rem;
  color: var(--gray);
  font-size: .72rem;
  text-align: center;
}

.home-match-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .5rem .65rem;
  color: var(--dark);
  font-size: .65rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.home-match-link:hover {
  color: var(--accent-text);
}

.latest-matches-section {
  padding: 2rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.latest-matches-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.latest-matches-heading h2 {
  color: var(--dark);
  font-size: 1.4rem;
}

.latest-matches-all {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--accent-text);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
}

.latest-matches-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.latest-match-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--canvas);
}

.latest-match-status {
  color: var(--accent-text);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.latest-match-card h3 {
  margin-top: .45rem;
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.latest-match-card h3 span {
  color: var(--gray);
  font-weight: 500;
}

.latest-match-meta {
  margin-top: .4rem;
  color: var(--gray);
  font-size: .8rem;
  line-height: 1.4;
}

.latest-match-score {
  margin-top: .65rem;
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 900;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: .85rem 2rem;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: .2s;
}

.btn:hover {
  background: var(--dark-red);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  margin-left: 1rem;
}

.btn-outline:hover {
  background: #fff;
  color: #0f172a;
}

/* ── SECTIONS (shared) ────────────────────────────────────── */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: .5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: .5rem;
}

.section-sub {
  color: var(--gray);
  margin-bottom: 3rem;
}

.divider {
  width: 50px;
  height: 4px;
  background: var(--red);
  margin: .75rem 0 1.5rem;
}

.loading {
  color: var(--gray);
  font-size: .875rem;
  padding: 1rem 0;
}

/* ── NEWS ─────────────────────────────────────────────────── */
.news {
  background: var(--light);
}

@media (min-width: 641px) {
  .news {
    padding-top: 2.5rem;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.highlights-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.highlights-layout.single-highlight {
  grid-template-columns: 1fr;
}

.highlight-featured {
  background: var(--surface);
  width: 100%;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: fadeInFeature 0.6s ease;
}

.highlight-featured-link {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.highlight-featured-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  animation: fadeInFeature 0.6s ease;
}

.highlight-featured-content {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.75rem 1.75rem;
  color: var(--dark);
}

.highlight-featured-content .news-tag {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.highlight-featured-content h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
  color: var(--dark);
}

.highlight-featured-content p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  color: var(--gray);
  line-height: 1.6;
}

.highlight-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--accent-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .75rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.highlight-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
}

.highlight-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.highlight-dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--red);
}

.highlight-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.view-all-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: .2s ease;
}

.view-all-media::after {
  content: "→";
  font-size: 1rem;
  line-height: 1;
  color: #fff;
}

.view-all-media:hover {
  background: var(--dark-red);
}

.highlight-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.highlight-card-image {
  height: 170px;
  background-size: cover;
  background-position: center;
}

.highlight-card-body {
  padding: 1rem 1rem 1.1rem;
}

.highlight-card-body h4 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-top: .25rem;
  color: var(--dark);
}

.highlight-card .news-tag {
  margin-bottom: .25rem;
}

.news-subtitle {
  margin-top: 1rem;
}

.news-card {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .2s;
}

@keyframes fadeInFeature {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.news-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red), var(--dark-red));
}

.news-image,
.news-detail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--dark-red));
}

.news-body {
  padding: 1.25rem;
}

.news-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: .4rem;
}

.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.4;
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--accent-text);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1rem;
}

.news-read-more {
  color: var(--accent-text);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.news-read-more:hover {
  color: var(--accent-text);
}

.news-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: .45rem;
  padding: .3rem .55rem;
  background: var(--category-bg);
  color: var(--category-text);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.news-article-context {
  display: grid;
  gap: .25rem;
  margin-top: .65rem;
  color: var(--gray);
  font-size: .82rem;
}

.news-video-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}

.news-video-link:hover {
  color: var(--accent-text);
}

.news-page {
  min-height: 70vh;
  background: var(--light);
}

.news-page-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--header-text);
  text-decoration: none;
  padding: .75rem 0;
}

.back-link {
  display: inline-block;
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 2rem;
}

.back-link:hover {
  color: var(--accent-text);
}

.news-page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: .5rem;
}

.news-page-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 780px;
  width: 100%;
  min-width: 0;
}

.news-page-list > * {
  min-width: 0;
}

.news-page-list.news-archive-list {
  max-width: 100%;
}

.archive-list {
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-featured-block {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-featured-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.news-featured-copy {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-featured-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  margin: .4rem 0 .75rem;
}

.news-featured-copy p {
  color: var(--gray);
  line-height: 1.7;
}

.tier-two-feature .btn {
  align-self: flex-start;
  margin-top: 1rem;
}

.news-headline-section,
.news-alert-archive {
  margin-top: 2.5rem;
}

.headline-archive-list {
  margin-top: 1rem;
}

.news-section-title {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-bottom: 1rem;
}

.news-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1rem;
}

.news-filter-bar label {
  font-size: .85rem;
  font-weight: 700;
}

.news-filter-pills {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: .5rem;
  overflow-x: auto;
  margin-bottom: 0;
  padding: .15rem 0 .4rem;
  scrollbar-width: thin;
}

.news-filter-pill {
  flex: 0 0 auto;
  min-height: 44px;
  padding: .6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}

.news-filter-pill[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.news-filter-pill:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

#news-filter-count {
  margin-left: auto;
  color: var(--gray);
  font-size: .85rem;
}

.news-card[hidden],
#news-filter-empty[hidden] {
  display: none;
}

.news-media-section,
.news-archive-section {
  margin-top: 2.5rem;
}

.news-content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: start;
  gap: 2rem;
  margin-top: 2.5rem;
}

.news-content-columns > section {
  min-width: 0;
  margin-top: 0;
  padding: 0;
}

.news-content-columns .archive-list {
  grid-template-columns: minmax(0, 1fr);
}

.news-content-columns .media-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.league-badge-placeholder,
.league-table-badge-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .3rem .55rem;
  border: 1px dashed var(--border);
  border-radius: 4px;
  color: var(--gray);
  font-size: .65rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.nav-league-badge {
  max-width: 130px;
}

.footer-league-badge {
  margin: 0 auto 1rem;
}

.league-table-badge-placeholder {
  margin-bottom: .65rem;
}

.league-badge-placeholder.has-league-badge {
  padding: 0;
  border: 0;
  background: transparent;
}

.league-badge-placeholder.has-league-badge a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.league-badge-placeholder.has-league-badge a:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.league-badge-image {
  display: block;
  width: auto;
  max-width: 124px;
  height: 36px;
  object-fit: contain;
}

.footer-league-badge .league-badge-image {
  height: 42px;
  margin: 0 auto 1rem;
}

.league-table-badge-placeholder .league-badge-image {
  max-width: 88px;
  height: 32px;
  margin-bottom: .65rem;
}

.sponsors-page {
  min-height: 70vh;
  background: var(--canvas);
}

.sponsors-hero {
  padding: 4.5rem 2rem;
  background: linear-gradient(130deg, #761c22, #c53030 62%, #8e2528);
  color: #fff;
}

.sponsors-hero-inner {
  max-width: 1100px;
}

.sponsors-hero .section-label {
  color: #ffe2ad;
}

.sponsors-hero h1 {
  max-width: 820px;
  margin-bottom: 1rem;
  font-size: 3.25rem;
  line-height: 1.06;
}

.sponsors-hero h1 span {
  color: #ffd27a;
}

.sponsors-hero p {
  max-width: 580px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, .92);
  line-height: 1.6;
}

.sponsors-content {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.sponsor-preview-notice {
  margin-bottom: 1.5rem;
  padding: .9rem 1rem;
  border-left: 4px solid #d99212;
  background: #fff4d6;
  color: #3f2d0b;
  font-weight: 700;
}

.sponsor-preview-notice[hidden] {
  display: none;
}

.sponsor-tier-section {
  margin: 2.5rem 0;
}

.sponsor-tier-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.sponsor-tier-heading h2,
.sponsor-inquiry-copy h2,
.sponsor-flyer h2 {
  font-size: 1.8rem;
  line-height: 1.15;
}

.sponsor-tier-heading > p {
  max-width: 420px;
  color: var(--gray);
  line-height: 1.5;
}

.sponsor-diamond-list,
.sponsor-platinum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.sponsor-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sponsor-card-diamond {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  border-top: 4px solid #c38b25;
}

.sponsor-card-platinum {
  border-top: 3px solid #8b98a9;
}

.sponsor-card-gold {
  border-top: 3px solid #c38b25;
}

.sponsor-logo-frame {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 1.5rem;
  background: var(--surface-raised);
  color: var(--gray);
  text-align: center;
  text-decoration: none;
}

.sponsor-card-diamond .sponsor-logo-frame {
  min-height: 220px;
}

.sponsor-logo-frame img {
  display: block;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.sponsor-card-diamond .sponsor-logo-frame img {
  max-height: 170px;
}

.sponsor-logo-placeholder {
  display: grid;
  width: min(100%, 220px);
  min-height: 90px;
  place-items: center;
  border: 1px dashed var(--border);
  color: var(--gray);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sponsor-card-body {
  padding: 1.25rem;
}

.sponsor-card-body h3 {
  margin: .35rem 0 .5rem;
  font-size: 1.15rem;
}

.sponsor-card-body p {
  color: var(--gray);
  line-height: 1.55;
}

.sponsor-member-offer {
  margin-top: .75rem;
  padding-top: .7rem;
  border-top: 1px solid var(--border);
  color: var(--accent-text) !important;
  font-weight: 700;
}

.sponsor-demo-badge {
  display: inline-flex;
  padding: .25rem .5rem;
  border-radius: 3px;
  background: var(--category-bg);
  color: var(--category-text);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sponsor-gold-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.sponsor-card-gold {
  display: flex;
  width: min(100%, 240px);
  flex-direction: column;
}

.sponsor-card-gold .sponsor-logo-frame {
  min-height: 110px;
  padding: 1rem;
}

.sponsor-card-gold .sponsor-card-body {
  padding: .85rem 1rem;
}

.sponsor-card-gold .sponsor-card-body h3 {
  margin: 0;
  font-size: .95rem;
}

.sponsor-empty-state {
  grid-column: 1 / -1;
  padding: 1.25rem;
  border: 1px dashed var(--border);
  color: var(--gray);
}

.sponsor-inquiry-section {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.sponsor-inquiry-copy p {
  max-width: 400px;
  margin-top: .75rem;
  color: var(--gray);
  line-height: 1.6;
}

.sponsor-inquiry-copy .sponsor-form-privacy {
  font-size: .8rem;
}

.sponsor-inquiry-form {
  width: 100%;
  max-width: 680px;
}

.sponsor-inquiry-form .form-group span {
  color: var(--gray);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.sponsor-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sponsor-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sponsor-flyer {
  margin: 3rem 0 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.sponsor-flyer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sponsor-flyer > p {
  margin: .75rem 0 1rem;
  color: var(--gray);
}

.sponsor-flyer-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.sponsor-flyer-facts > div {
  display: grid;
  gap: .35rem;
  padding: .9rem;
  background: var(--pill-bg);
}

.sponsor-flyer-facts span,
.sponsor-package-summary {
  color: var(--gray);
  font-size: .85rem;
}

.sponsor-package-summary {
  display: grid;
  gap: .4rem;
  margin-top: 1rem;
}

.sponsor-footer-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 1.5rem auto;
}

.sponsor-footer-ribbon[hidden] {
  display: none;
}

.sponsor-footer-ribbon img {
  display: block;
  width: auto;
  max-width: 130px;
  height: 42px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .8;
  transition: filter .2s ease, opacity .2s ease;
}

.sponsor-footer-ribbon a:hover img {
  filter: grayscale(0);
  opacity: 1;
}

@media print {
  @page {
    margin: .55in;
  }

  body * {
    visibility: hidden;
  }

  .sponsor-flyer,
  .sponsor-flyer * {
    visibility: visible;
  }

  .sponsor-flyer {
    position: absolute;
    inset: 0;
    margin: 0;
    border: 0;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
  }

  .flyer-print-button {
    display: none;
  }
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1100px;
}

.media-gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.media-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
}

.media-gallery-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}

.media-gallery-item:hover .media-gallery-image {
  transform: scale(1.03);
}

.media-video-section {
  margin-top: 2.5rem;
}

.media-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.media-video-item h4 {
  margin-top: .65rem;
  font-size: .95rem;
}

.media-video-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}

.media-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-video-frame a {
  color: #fff;
  font-weight: 700;
}

.news-article {
  background: var(--surface);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
}

.news-article h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: .5rem;
}

.news-article p {
  color: var(--gray);
  line-height: 1.7;
  margin-top: 1rem;
}

.news-article .news-tag {
  margin-bottom: .75rem;
}

.news-detail-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 1rem;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.news-gallery-item {
  background: var(--surface-raised);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.news-gallery-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-gallery-item figcaption {
  font-size: .8rem;
  color: var(--gray);
  padding: .75rem 1rem;
}

.news-card p {
  font-size: .875rem;
  color: var(--gray);
  line-height: 1.6;
}

.news-date {
  font-size: .75rem;
  color: var(--gray);
  margin-top: .75rem;
}

/* ── MATCHES ──────────────────────────────────────────────── */
.matches {
  background: var(--canvas);
}

.matches-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.tab {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.5rem;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: var(--gray);
  transition: .2s;
}

.tab.active {
  color: var(--accent-text);
  border-bottom-color: var(--red);
}

.match-card {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  margin-bottom: .75rem;
  background: var(--light);
  border-left: 4px solid transparent;
  transition: .2s;
}

.match-card:hover {
  border-left-color: var(--red);
}

.match-info {
  flex: 1;
}

.match-teams {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .25rem;
}

.match-meta {
  font-size: .8rem;
  color: var(--gray);
}

.match-score {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-text);
  min-width: 80px;
  text-align: center;
}

.match-score.upcoming {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray);
  background: var(--surface);
  padding: .4rem .75rem;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.points-table-wrap {
  overflow-x: auto;
}

.points-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 560px;
}

.points-table th,
.points-table td {
  padding: .85rem .75rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: .85rem;
}

.points-table thead {
  background: var(--table-header);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.points-table tbody th {
  text-align: left;
  color: var(--dark);
}

.points-table tbody tr:nth-child(even) {
  background: var(--row-alt);
}

.points-table tbody tr:hover {
  background: var(--row-hover);
}

/* Result colors */
.win  { border-left-color: #22c55e !important; }
.draw { border-left-color: #f59e0b !important; }
.loss { border-left-color: #ef4444 !important; }

.league-page-hero {
  display: flex;
  min-height: 170px;
  align-items: center;
  padding: 2rem 1.5rem;
  background-color: var(--dark-red);
  background-image: linear-gradient(90deg, rgba(47, 8, 8, .88), rgba(47, 8, 8, .55)), var(--league-background-image, url("images/home-hero.jpg?v=2"));
  background-position: center 45%;
  background-size: cover;
  color: #fff;
}

.league-page-hero h1 {
  margin-top: .35rem;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1.1;
}

.league-page-hero p {
  margin-top: .45rem;
  color: rgba(255, 255, 255, .9);
  font-size: .98rem;
}

.league-browser {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.league-filter-bar {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(170px, 220px) auto minmax(0, 1fr);
  align-items: center;
  gap: .75rem 1rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}

.league-filter-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
}

.league-filter-field label {
  color: var(--dark);
  font-size: .75rem;
  font-weight: 800;
}

.league-filter-field select {
  min-width: 0;
  min-height: 42px;
  padding: .5rem 2rem .5rem .65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--dark);
  font: inherit;
  font-size: .85rem;
}

.league-season-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #e7f5e9;
  color: #28683a;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.league-filter-help {
  color: var(--gray);
  font-size: .72rem;
  text-align: right;
}

.league-content {
  min-height: 360px;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.league-state-message {
  padding: 2rem 1rem;
  color: var(--gray);
  text-align: center;
}

.league-state-message.error {
  color: #a61b1b;
}

.league-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.league-identity {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.league-logo,
.league-logo-fallback {
  display: flex;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  object-fit: contain;
}

.league-logo-fallback {
  color: var(--accent-text);
  font-size: .7rem;
  font-weight: 800;
}

.league-overview-details {
  min-width: 0;
}

.league-section-kicker {
  color: var(--gray);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.league-overview-title {
  margin-top: .3rem;
  color: var(--dark);
  font-size: 1.55rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.league-description {
  margin-top: .45rem;
  color: var(--gray);
  font-size: .88rem;
  line-height: 1.5;
}

.league-official-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: .5rem;
  color: var(--accent-text);
  font-size: .82rem;
  font-weight: 700;
}

.league-record-section {
  min-width: 0;
}

.league-record-section > h2 {
  margin-bottom: .65rem;
  color: var(--gray);
  font-size: .68rem;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.league-points-rule {
  margin-bottom: .65rem;
  color: var(--gray);
  font-size: .7rem;
  line-height: 1.35;
  text-align: center;
}

.league-record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem .35rem;
}

.league-record-stat {
  min-width: 0;
  text-align: center;
}

.league-record-stat dt {
  color: var(--gray);
  font-size: .68rem;
  line-height: 1.25;
}

.league-record-stat dd {
  margin-top: .15rem;
  color: var(--dark);
  font-size: 1.45rem;
  font-weight: 900;
}

.league-record-stat:nth-child(2) dd {
  color: #34814a;
}

.league-record-stat:nth-child(3) dd {
  color: #986a18;
}

.league-record-stat:nth-child(4) dd {
  color: var(--accent-text);
}

.league-matches-section {
  padding-top: 1.5rem;
}

.league-matches-title {
  color: var(--dark);
  font-size: 1.35rem;
}

.league-match-tabs {
  display: flex;
  gap: .35rem;
  margin-top: .8rem;
  border-bottom: 1px solid var(--border);
}

.league-match-tab {
  min-height: 44px;
  padding: .55rem .8rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--gray);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.league-match-tab[aria-selected="true"] {
  border-bottom-color: var(--red);
  color: var(--accent-text);
}

.league-match-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  padding-top: .9rem;
}

.league-match-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}

.league-match-status {
  color: var(--gray);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.league-match-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  margin-top: .55rem;
  text-align: center;
}

.league-match-team {
  color: var(--dark);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.league-match-score {
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 900;
  white-space: nowrap;
}

.league-match-date,
.league-match-location {
  display: block;
  margin-top: .55rem;
  color: var(--gray);
  font-size: .75rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 768px) {
  .league-page-hero {
    min-height: 145px;
    padding: 1.5rem 1rem;
  }

  .league-page-hero h1 {
    font-size: 1.8rem;
  }

  .league-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .league-filter-field {
    grid-template-columns: minmax(0, 1fr);
    gap: .3rem;
  }

  .league-filter-help {
    grid-column: 1 / -1;
    text-align: left;
  }

  .league-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .league-record-section {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--surface);
  }

  .league-match-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .league-page-hero h1 {
    font-size: 1.55rem;
  }

  .league-filter-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .league-season-badge {
    justify-self: start;
  }

  .league-record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .league-identity {
    gap: .7rem;
  }

  .league-logo,
  .league-logo-fallback {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .league-overview-title {
    font-size: 1.25rem;
  }
}

/* ── ROSTER ───────────────────────────────────────────────── */
.roster {
  background: var(--light);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.roster-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
  gap: 1.25rem;
}

.roster-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

#roster-filter-count {
  margin-left: auto;
  color: var(--gray);
  font-size: .85rem;
}

.player-card {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  padding: 0 0 .65rem;
  text-align: left;
  color: var(--dark);
  font: inherit;
  box-shadow: none;
  transition: .2s;
  position: relative;
  overflow: hidden;
}

.player-card::before {
  display: none;
}

.player-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.player-card[hidden] {
  display: none;
}

.roster-expand-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.roster-expand-button {
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--dark);
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
}

.roster-expand-button:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
}

.roster-expand-button:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.player-spotlight {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.player-spotlight[hidden] {
  display: none;
}

.player-spotlight h3 {
  margin-bottom: .75rem;
  font-size: .9rem;
  text-transform: uppercase;
}

.player-spotlight-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  object-fit: cover;
  object-position: center 30%;
}

.player-spotlight-details {
  padding-top: .65rem;
}

.player-spotlight-name {
  margin-top: .4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dark);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.player-spotlight-position,
.player-spotlight-bio {
  margin-top: .4rem;
  color: var(--gray);
  font-size: .85rem;
  line-height: 1.45;
}

.player-spotlight-link {
  min-height: 40px;
  margin-top: .75rem;
  padding: .5rem .75rem;
  border: 0;
  border-radius: 4px;
  background: var(--footer-bg);
  color: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

.player-photo-line {
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-bottom: .45rem;
}

/* Player portrait — consistent circular crop */
.player-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.05;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
  border: 0;
  background: var(--surface-raised);
  flex-shrink: 0;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.player-num {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 1;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .75);
}

.player-card h3 {
  padding: 0 .65rem;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.player-name-link {
  min-height: 44px;
  padding: .25rem .15rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.player-name-link:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.player-name-link:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.player-flag {
  display: block;
  width: 24px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.player-flag-code {
  display: inline-flex;
  min-width: 28px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--gray);
  font-size: .6rem;
  font-weight: 800;
}

.player-spotlight-identity {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.player-spotlight-identity .player-flag {
  width: 30px;
  height: 22px;
}

@media (max-width: 480px) {
  .roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

  .player-card {
    padding: 0 0 .55rem;
  }

  .player-avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.05;
  }
}

.player-profile-dialog {
  position: fixed;
  inset: 0;
  width: min(92vw, 620px);
  max-width: none;
  max-height: min(86vh, 720px);
  overflow: auto;
  margin: auto;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--dark);
  box-shadow: var(--shadow);
}

.player-profile-dialog::backdrop {
  background: rgba(0, 0, 0, .62);
}

.player-profile-card {
  display: grid;
  gap: 1rem;
  padding-top: .5rem;
}

.player-profile-header {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1.25rem;
}

.player-profile-media {
  position: relative;
  min-width: 0;
}

.player-profile-photo {
  display: block;
  width: 100%;
  min-height: 230px;
  max-height: 300px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 30%;
}

.player-profile-flag-row {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  display: flex;
  min-height: 26px;
  align-items: center;
  padding: .2rem;
  border-radius: 3px;
  background: var(--surface);
}

.player-profile-number {
  position: absolute;
  top: .5rem;
  left: .5rem;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 900;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .75);
}

.player-profile-name {
  font-size: 1.5rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.player-profile-position {
  margin-top: .4rem;
  color: var(--accent-text);
  font-weight: 700;
}

.player-profile-position {
  font-size: 1.15rem;
}

.player-profile-nationality {
  margin-top: .5rem;
  color: var(--gray);
}

.player-profile-bio {
  margin: 0;
  color: var(--dark);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.player-profile-bio.is-expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.player-profile-expand {
  width: 100%;
  min-height: 48px;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 5px;
  background: var(--footer-bg);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.player-profile-close {
  position: absolute;
  z-index: 1;
  top: .5rem;
  right: .5rem;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--pill-bg);
  color: var(--pill-text);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.player-profile-close:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .player-profile-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 1rem;
  }

  .player-profile-header {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: .75rem;
    padding-top: 1rem;
  }

  .player-profile-photo {
    min-height: 180px;
    max-height: 220px;
  }

  .player-profile-name {
    font-size: 1.2rem;
  }

  .player-profile-position {
    font-size: 1rem;
  }

  .player-profile-bio {
    font-size: 1rem;
  }
}

.player-pos {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
}

.player-card-bio {
  display: -webkit-box;
  max-width: 34ch;
  min-height: 2.9em;
  margin: .4rem auto 0;
  overflow: hidden;
  color: var(--gray);
  font-size: .8rem;
  line-height: 1.45;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* ── JOIN / PROSPECT FORM ─────────────────────────────────── */
.join {
  background: var(--canvas);
}

.form-card {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: .4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--input-bg);
  transition: .2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-text) 24%, transparent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
  opacity: .85;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-feedback {
  margin-top: .85rem;
  font-size: .85rem;
  font-weight: 600;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: #101820;
  color: #f8fafc;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-brand-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin-bottom: 1rem;
}

.footer-brand-marks .footer-crest {
  margin: 0;
}

.footer-brand-marks .footer-league-badge {
  max-width: 150px;
  margin: 0;
}

.footer-brand-marks .footer-league-badge .league-badge-image {
  margin: 0;
}

/* Footer logo circle */
.footer-crest {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #0a0a0a;
  margin: 0;
}

.footer-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

footer h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: .25rem;
}

footer p {
  font-size: .85rem;
  margin-bottom: 0;
}

.footer-links,
.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}

.footer-links a,
.social-links a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: .85rem;
  transition: .2s;
  line-height: 1.6;
}

.footer-links a:hover,
.social-links a:hover {
  color: #fff;
}

.copy {
  margin-top: 2rem;
  font-size: .75rem;
  color: var(--footer-text);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.home-footer {
  text-align: left;
}

.home-footer-layout {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(0, 3fr);
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.home-footer-brand {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
}

.home-footer-brand .footer-brand-marks {
  justify-content: flex-start;
}

.home-footer-brand h3 {
  margin-top: .75rem;
  color: #fff;
}

.home-footer-brand > p {
  color: rgba(255, 255, 255, .92);
}

.home-footer-columns {
  position: static;
  top: auto;
  z-index: auto;
  display: grid;
  align-items: start;
  justify-content: initial;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0;
  background: transparent;
  color: #f1f5f9;
}

.home-footer-column {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: .45rem;
}

.home-footer-column h4 {
  margin-bottom: .2rem;
  color: #fff;
  font-size: .85rem;
}

.home-footer-column a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: #f1f5f9;
  font-size: .8rem;
  line-height: 1.4;
  text-decoration: none;
}

.home-footer-column a:hover {
  color: #f3d37a;
}

.home-footer-column span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: #f1f5f9;
  font-size: .8rem;
  line-height: 1.4;
}

.home-footer .copy {
  max-width: 1180px;
  margin: 1.5rem auto 0;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (min-width: 481px) and (max-width: 768px) {
  .roster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-masthead {
    min-height: 450px;
    height: auto;
    align-items: flex-end;
    padding: 2rem 1.25rem 3rem;
    background-position: center, center 35%;
  }

  .home-hero-copy {
    width: 100%;
    max-width: 560px;
  }

  .home-hero-copy h1 {
    margin-top: 1rem;
    font-size: 2.8rem;
  }

  .home-hero-intro {
    max-width: 360px;
    font-size: .95rem;
  }

  .home-hero-actions {
    gap: .35rem .7rem;
  }

  .home-hero-primary,
  .home-hero-secondary {
    min-height: 46px;
    font-size: .68rem;
  }

  .home-masthead-caption {
    display: none;
  }

  .home-about-content {
    max-height: 150px;
  }

  .home-match-strip {
    margin-top: -22px;
    padding: 0 1rem;
  }

  .home-match-strip-inner {
    padding: .85rem;
  }

  .home-match-preview-row {
    grid-template-columns: none;
    grid-auto-columns: min(80vw, 320px);
    grid-auto-flow: column;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: .4rem;
    scroll-snap-type: x mandatory;
  }

  .home-match-strip-heading h2 {
    font-size: 1.05rem;
  }

  .latest-matches-section {
    padding: 1.5rem 1rem;
  }

  .latest-matches-row {
    grid-template-columns: none;
    grid-auto-columns: min(80vw, 320px);
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type: x mandatory;
  }

  .latest-match-card {
    scroll-snap-align: start;
  }

  .roster-content-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .player-spotlight {
    display: none;
  }

  nav {
    padding: 0 1.25rem;
    flex-wrap: wrap;
  }

  .nav-links {
    gap: .35rem 1rem;
  }

  .hero {
    flex-direction: column-reverse;
    gap: 2rem;
    padding: 4rem 1.5rem;
    text-align: center;
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-outline {
    margin-left: .5rem;
  }

  .highlights-layout,
  .news-featured-block {
    grid-template-columns: 1fr;
  }

  .news-content-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .sponsor-inquiry-section,
  .sponsor-card-diamond {
    grid-template-columns: minmax(0, 1fr);
  }

  .sponsor-tier-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
  }

  .news-featured-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .media-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .urgent-alert a {
    padding: .65rem 1.25rem;
  }

  .matches-tabs {
    flex-wrap: wrap;
  }

  .tab {
    flex: 1 1 140px;
    text-align: center;
  }

  .container {
    width: 100%;
  }

  footer {
    text-align: center;
  }

  .home-footer-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .home-footer-brand {
    padding: 1.25rem;
    text-align: center;
  }

  .footer-brand-marks {
    justify-content: center;
  }

  .home-footer-brand .footer-brand-marks {
    justify-content: center;
  }

  .home-footer-columns {
    gap: .75rem;
    text-align: left;
  }
}

@media (max-width: 480px) {
  nav {
    align-items: center;
    flex-direction: row;
    gap: 0 .75rem;
    padding: .35rem 1rem;
  }

  .nav-logo,
  .news-page-brand {
    min-width: 0;
    margin-right: 0;
    padding: .35rem 0;
    gap: .5rem;
  }

  .nav-brand-group {
    flex: 1 1 auto;
    gap: .35rem;
  }

  .nav-logo .crest,
  .news-page-brand .crest {
    width: 36px;
    height: 36px;
  }

  .nav-logo span,
  .news-page-brand strong {
    font-size: .95rem;
  }

  .nav-league-badge {
    display: none;
  }

  .nav-league-badge.has-league-badge {
    display: inline-flex;
    max-width: 52px;
  }

  .nav-league-badge .league-badge-image {
    max-width: 52px;
    height: 32px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    order: 3;
    padding: .25rem 0 .5rem;
  }

  nav[data-menu-open="true"] .nav-links {
    display: flex;
  }

  .nav-links a {
    min-height: 44px;
    padding: .75rem .25rem;
    font-size: .8rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .nav-links .theme-toggle {
    align-self: stretch;
    justify-content: flex-start;
    margin-top: .35rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-crest {
    width: 160px;
  }

  .highlight-featured-content {
    min-height: 260px;
    padding: 1.25rem;
  }

  .hero .btn {
    display: block;
    width: min(100%, 260px);
    margin: .5rem auto;
  }

  .btn-outline {
    display: block;
  }

  section {
    padding: 3rem 1rem;
  }

  .container {
    min-width: 0;
  }

  .news-page-title {
    font-size: 2rem;
  }

  .sponsors-hero {
    padding: 2.5rem 1rem;
  }

  .sponsors-hero h1 {
    font-size: 2.2rem;
  }

  .sponsor-form-row,
  .sponsor-flyer-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .sponsor-flyer-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .sponsor-gold-row .sponsor-card-gold {
    width: 100%;
  }

  .news-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .news-filter-pills {
    width: 100%;
  }

  #news-filter-count {
    margin-left: 0;
  }

  .archive-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .media-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }

  .urgent-alert a {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
    padding: .55rem 1rem;
  }

  .urgent-alert span:last-child {
    max-width: 100%;
  }

  .match-card {
    gap: .5rem;
    padding: 1rem .75rem;
  }

  .match-info {
    min-width: 0;
  }

  .match-score {
    min-width: 64px;
    font-size: 1.15rem;
  }

  footer {
    padding: 2.5rem 1rem;
  }

  .home-footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
  }

  .home-footer-column {
    gap: .2rem;
  }

  .home-footer-column h4 {
    min-height: 2em;
    font-size: .68rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .home-footer-column a,
  .home-footer-column span {
    min-height: 34px;
    font-size: .62rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-bottom: .5rem;
  }

  section {
    padding: .5rem 1rem;
  }

  .highlights-layout {
    margin-bottom: .75rem;
  }

  .news-headline-section,
  .news-alert-archive,
  .news-media-section,
  .news-archive-section,
  .media-video-section {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
