/* ─────────────────────────────────────────────────────────────────
   Euchreverse — base stylesheet
   Dark theme. Lato body, Anton display. Gold (#d4af37) accent.
   ───────────────────────────────────────────────────────────────── */

:root {
  --bg:          #0a0a0a;
  --bg-panel:    #111111;
  --bg-card:     #141414;
  --bg-card-2:   #0a0a0a;
  --border:      rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.05);

  /* Canonical card surface — used for every panel (POTW, Crown Race, Insights,
     Team cards, Broadcasts, TV Guide matches, charts, tables, etc.)
     Inky near-black with a faint cool tint, slightly lifted off the body so
     cards have a visible edge against --bg (#0a0a0a). */
  --card-bg: linear-gradient(150deg, #17171c 0%, #0b0b0f 100%);
  --text:        #ffffff;
  --text-dim:    rgba(255, 255, 255, 0.7);
  --text-mute:   rgba(255, 255, 255, 0.45);
  --gold:        #d4af37;                /* saturated gold — use for borders/frames only */
  --accent:      #c9b78a;                /* muted warm gold for text accents */
  --red:         #c0392b;
  --green:       #5ddfaf;
  --pink:        #ff69b4;

  --max:   1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --font-body:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Anton', 'Lato', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  /* Site-wide ambient gradient: soft cool blue-white glow from the top, a quieter
     blue accent lower-left, over the base near-black. Fixed so it stays put as
     you scroll. Applied globally so every page shares the same backdrop. */
  background:
    radial-gradient(1400px 900px at 50% -100px, rgba(180,205,240,0.10), transparent 65%),
    radial-gradient(900px 600px at 15% 500px, rgba(120,150,200,0.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Guard against any descendant accidentally pushing past the viewport at very
     narrow widths — prevents a horizontal scrollbar that would make centered
     sections look off-center (they'd center within the expanded scroll-width
     instead of the viewport). */
  overflow-x: clip;
}

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

a { color: var(--text); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-transform: uppercase;
  /* Avoid one-word last lines on multi-line titles; distribute evenly. */
  text-wrap: balance;
}

/* Site-wide heading scale. Hero/page titles (h1), section headings (h2),
   subsections (h3), minor labels (h4). The .article rules below relax h2/h3
   for long-form reading rhythm — only the Learn articles use them. */
h1 { font-size: clamp(44px, 7vw, 80px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: clamp(16px, 1.8vw, 20px); }

/* Prose wraps "prettily": browser avoids leaving a lone word on the last line. */
p { margin: 0 0 1em; text-wrap: pretty; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── Nav / Header ─────────────────────────────────────────────── */

/* Header shrinks + logo crossfades from centre to left + goes glass-translucent
   as you scroll. Driven by --scroll-progress (0→1) that JS updates over the
   first ~80px of scroll; every property is a calc() on that variable, so the
   motion is 1:1 with scroll with no transition jank. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  --scroll-progress: 0;
  /* Background fades from opaque to glass as progress climbs. */
  background: rgba(10, 10, 10, calc(1 - 0.35 * var(--scroll-progress)));
  backdrop-filter: saturate(1.3) blur(calc(14px * var(--scroll-progress)));
  -webkit-backdrop-filter: saturate(1.3) blur(calc(14px * var(--scroll-progress)));
  border-bottom: 1px solid rgba(255, 255, 255, calc(0.05 * var(--scroll-progress)));
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* hamburger hugs the right; logo is absolute */
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  /* min-height interpolates 96 → 56 over scroll. */
  min-height: calc(96px - 40px * var(--scroll-progress));
  padding-top: calc(14px - 4px * var(--scroll-progress));
  padding-bottom: calc(14px - 4px * var(--scroll-progress));
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.nav-logo img {
  width: auto;
  height: calc(72px - 36px * var(--scroll-progress));
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
}
.nav-site-name {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: var(--scroll-progress);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .nav-site-name { left: var(--gutter); }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}
.nav-bars, .nav-bars::before, .nav-bars::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.nav-bars::before { margin-bottom: 6px; }
.nav-bars::after  { margin-top: 6px; }
.nav-open .nav-bars { background: transparent; }
.nav-open .nav-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-bars::after  { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 86vw);
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 60px rgba(0,0,0,0.5);
  padding: 72px 28px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 120;
  display: flex;
  flex-direction: column;
}
.site-nav.is-open { transform: translateX(0); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 105;
}
.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .18s, background .18s;
}
.nav-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

body.nav-open { overflow: hidden; }

.nav-link {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border-soft);
  transition: color .18s, padding .18s;
}
.nav-link:hover { color: var(--text); padding-left: 8px; }
.nav-link.is-active {
  color: var(--text);
}

.has-submenu { position: relative; }
.submenu {
  display: none;
  padding: 4px 0 12px 14px;
  margin: 0;
}
.nav-link.is-active + .submenu { display: block; }
.submenu a {
  display: block;
  padding: 8px 4px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: color .18s, padding .18s;
}
.submenu a:hover { color: var(--text); padding-left: 6px; }

/* ─── Main / sections ──────────────────────────────────────────── */

.site-main { display: block; }

.section {
  padding: clamp(40px, 5vw, 72px) var(--gutter);
}

.section--learn { padding-top: clamp(32px, 3vw, 48px); padding-bottom: clamp(40px, 5vw, 72px); }

.section-center {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 1.8px;
  line-height: 1.65;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.lede {
  font-size: clamp(17px, 1.8vw, 21px);
  max-width: 62ch;
  margin: 0 auto 36px;
  color: var(--text-dim);
}

/* ─── Home hero (bento: lead + 3 tiles) ────────────────────────── */

/* Lead: edge-to-edge banner, no border, no radius. */
.home-lead {
  display: block;
}

.home-hero {
  padding: clamp(10px, 1.2vw, 16px);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1vw, 14px);
  max-width: var(--max);
  margin: 0 auto;
}

/* Secondary tiles: same border vocabulary as league.css cards
   (subtle var(--border) default, gold tint on hover). */
.home-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  isolation: isolate;
  transition: border-color .2s ease;
}
.home-tile:hover {
  color: var(--text);
  border-color: rgba(212,175,55,0.45);
}

.home-tile--lead {
  display: block;
  width: 100%;
  aspect-ratio: auto;
  height: clamp(360px, 48vw, 580px);
  border: 0;
  border-radius: 0;
}
.home-tile--lead:hover { border: 0; }

/* Placeholder gradients — shown until posters are dropped into /assets/img/carousel/ */
.home-tile[data-theme="league"]   { background: linear-gradient(135deg, #2a1f4d 0%, #4d1f3a 100%); }
.home-tile[data-theme="gauntlet"] { background: linear-gradient(135deg, #3a0f10 0%, #5a1a1e 55%, #1a0507 100%); }
.home-tile[data-theme="learn"]    { background: linear-gradient(135deg, #0f2137 0%, #1f3a5a 100%); }
.home-tile[data-theme="connect"]  { background: linear-gradient(135deg, #1f1f3a 0%, #1f3a3a 100%); }

.home-tile-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.home-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-tile::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Clean tiles: poster carries the title, so minimize the scrim and leave the
   button as the only overlay element. */
.home-tile--clean::after {
  height: 35%;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
}

/* Lead tile hero video. Desktop: landscape phoenix clip, letterboxed on black.
   Mobile: portrait teaser, fit by height so top/bottom text stays intact. */
.home-tile--lead .hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  z-index: 1;
}
.home-tile--lead .hero-video-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.home-tile--lead .hero-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  pointer-events: none;
}

@media (max-width: 767px) {
  .home-tile--lead .hero-video-frame video {
    object-fit: cover;
  }
}

.home-tile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(14px, 2vw, 22px);
  z-index: 3;
}
.home-tile--lead .home-tile-overlay { padding: clamp(20px, 3.5vw, 48px); }

.home-tile-eyebrow {
  font-family: var(--font-body);
  font-size: clamp(10px, 0.9vw, 11px);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 700;
}
.home-tile--lead .home-tile-eyebrow {
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* Between mobile-stack and wide-desktop, the secondary tiles are narrow —
   hide the eyebrow so the button can breathe. It comes back at ≥1100px. */
@media (min-width: 768px) and (max-width: 1099px) {
  .home-tile:not(.home-tile--lead) .home-tile-eyebrow { display: none; }
}

.home-tile-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  margin: 0 0 12px;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.home-tile--lead .home-tile-title {
  font-size: clamp(32px, 5vw, 60px);
  max-width: 18ch;
  margin-bottom: 14px;
}
.home-tile-sub {
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  margin: 0 0 20px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  font-weight: 600;
}

.home-tile-overlay .btn {
  padding: 7px 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.home-tile--lead .home-tile-overlay .btn {
  padding: 12px 24px;
  font-size: 13px;
  letter-spacing: 0.12em;
}
.home-tile:hover .home-tile-overlay .btn {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.12);
  border-color: var(--text);
}

@media (max-width: 767px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }
  .home-tile--lead {
    aspect-ratio: 1160 / 1720;
    height: auto;
  }
  /* On mobile the portrait video has its own title text in the lower half —
     anchor the overlay to the top so it stays clear of the video copy. */
  .home-tile--lead .home-tile-overlay {
    bottom: auto;
    top: 0;
  }
  /* Swap the bottom-to-top scrim for a top-to-bottom one so the
     top-anchored text has a dark background behind it. */
  .home-tile--lead::after {
    bottom: auto;
    top: 0;
    height: 55%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.22) 65%, transparent 100%);
  }
}

/* ─── Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background .18s, border-color .18s, box-shadow .18s;
}
.btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-primary {
  background: transparent;
  border-color: var(--red);
  color: var(--text);
}
.btn-primary:hover {
  background: rgba(192,57,43,0.15);
  border-color: var(--red);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}

/* Primary CTA — gold outline, transparent interior, gold wash + glow on hover. */
.btn-gold {
  background: transparent;
  border-color: var(--gold);
  color: var(--text);
}
.btn-gold:hover {
  background: rgba(212,175,55,0.1);
  border-color: var(--gold);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

/* ─── Card grid (homepage Learn/League/Community) ──────────────── */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0;
}

/* 4-card grids: 1 → 2 → 4 (no orphaned 3+1 row at tablet widths). */
@media (min-width: 560px) {
  .card-grid[data-cols="4"] { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .card-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
}

/* 3-card grids: 1 → 3. */
@media (min-width: 640px) {
  .card-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform .18s ease, border-color .18s;
}
/* In grid rows all cards stretch to the tallest; the more-link hugs the bottom
   so CTA positions align across cards even when descriptions differ in length. */
.card .more-link { margin-top: auto; }
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(212,175,55,0.5);
}
.card a { display: block; }
.card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 8px;
}
.card p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

.card.is-featured {
  border-color: rgba(212,175,55,0.3);
}

/* Link that sits under a section's intro copy. */
.more-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 3px;
  transition: border-color .18s;
}
.more-link:hover { border-color: var(--text); }

/* ─── Section headings (legacy, still used in subpages) ─────────── */

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading h2 { margin-top: 8px; }

/* ─── Footer ───────────────────────────────────────────────────── */

.site-footer {
  margin-top: 80px;
  padding: 48px var(--gutter) 32px;
  background: #050505;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-cta {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.04em;
  color: var(--text-mute);
  margin: 0;
}

.footer-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
  transition: color .18s;
  text-align: left;
}
.footer-brand:hover { color: var(--text-dim); }
.footer-brand img { height: 24px; opacity: 0.4; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  white-space: nowrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
  transition: color .18s;
  margin-top: auto;
  align-self: flex-end;
}
.nav-brand:hover { color: var(--text-dim); }
.nav-brand img { height: 24px; opacity: 0.4; }
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  white-space: nowrap;
}

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
}
.footer-social a {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-dim);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: color .18s, background .18s, border-color .18s, transform .15s;
}
.footer-social a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 22px;
  height: 22px;
}
.footer-social a img {
  opacity: 0.7;
  transition: opacity .18s;
}
.footer-social a:hover img {
  opacity: 1;
}

.footer-copy {
  color: var(--text-mute);
  font-size: 13px;
  margin: 0;
  text-align: left;
}

/* ─── Learn article layout ─────────────────────────────────────── */

.article {
  max-width: 780px;
  margin: clamp(32px, 5vw, 72px) auto;
  padding: clamp(28px, 5vw, 56px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (max-width: 820px) {
  .article {
    margin-inline: clamp(12px, 3vw, 24px);
  }
}
.article h1 { margin-bottom: 0.3em; }
.article h2 { font-size: clamp(24px, 3vw, 36px); margin-top: 1.6em; }
.article h3 { font-size: clamp(20px, 2.4vw, 28px); margin-top: 1.4em; }
.article p, .article li { color: var(--text-dim); line-height: 1.75; font-size: 17px; }
.article ul, .article ol { padding-left: 1.4em; }
.article a:not(.btn) { color: var(--text); border-bottom: 1px solid rgba(255,255,255,0.3); }
.article a:not(.btn):hover { border-color: var(--text); }
.article blockquote {
  margin: 1.5em 0;
  padding: 1em 1.4em;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,0.03);
  font-style: italic;
  color: var(--text-dim);
}
.article img { border-radius: var(--radius); margin: 1.4em auto; }

.article-lede {
  font-size: 19px;
  color: var(--text);
  margin-top: 0.5em;
}

/* Prev / next navigation at the bottom of a Learn article. */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s ease, transform .15s ease;
}
.article-nav-link:hover {
  color: var(--text);
  border-color: rgba(212,175,55,0.45);
  transform: translateY(-1px);
}
.article-nav-prev { align-items: flex-start; text-align: left; }
.article-nav-next { align-items: flex-end; text-align: right; }
.article-nav-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 700;
}
.article-nav-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 20px);
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.2;
}
.article-nav-placeholder { /* keeps grid balanced when prev or next is missing */ }

.article-back {
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
  margin-top: 32px;
}
.article-back a {
  color: var(--text-mute);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
}
.article-back a:hover { color: var(--text); border-color: var(--text); }

@media (max-width: 560px) {
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-next { align-items: flex-start; text-align: left; }
}

/* ─── Divider ──────────────────────────────────────────────────── */

.divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 24px auto;
  border: 0;
}

/* ─── Homepage: League section ─────────────────────────────────── */

.league-lead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 48px);
}
.league-lead-text { text-align: left; }
.league-lead-text .eyebrow { margin-bottom: 14px; }
.league-lead-text h2 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 80px);
}
.league-lead-text .lede {
  margin: 0 0 22px;
  text-align: left;
  max-width: 44ch;
}

.league-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 24px 40px;
  justify-content: end;
  margin: 0;
}
.league-facts > div { text-align: right; }
.league-facts dt {
  margin: 0;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.league-facts dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .league-lead {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 32px;
  }
  .league-facts {
    grid-template-columns: repeat(3, 1fr);
    justify-content: start;
    gap: 20px 24px;
  }
  .league-facts > div { text-align: left; }
}

.division-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  counter-reset: none;
}
.division-list li { border-bottom: 1px solid var(--border); }
.division-list a {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  column-gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(22px, 2.8vw, 34px) 8px;
  transition: background .18s, padding .18s;
}
.division-list a:hover {
  background: rgba(255,255,255,0.03);
  padding-left: 20px;
}
.division-list .num {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: 0.12em;
  color: var(--text-mute);
}
.division-list .name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 42px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}
.division-list .when {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.division-list .arrow {
  font-size: 18px;
  color: var(--text-mute);
  transition: transform .18s, color .18s;
}
.division-list a:hover .arrow {
  color: var(--text);
  transform: translateX(6px);
}

@media (max-width: 640px) {
  .division-list a {
    grid-template-columns: auto 1fr auto;
    row-gap: 4px;
    padding: 18px 4px;
  }
  .division-list a:hover { padding-left: 10px; }
  .division-list .when {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
}

/* ─── Homepage: Learn panel ────────────────────────────────────── */

.learn-panel {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 48px);
}

.learn-panel-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.learn-panel-head .eyebrow { margin-bottom: 10px; }
.learn-panel-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
}
.learn-panel-head .more-link { justify-self: end; }

.learn-panel-topics {
  list-style: none;
  margin: 0;
  padding: 0;
}
.learn-panel-topics li + li { border-top: 1px solid var(--border-soft); }
.learn-panel-topics a {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: 18px 4px;
  transition: padding .18s;
}
.learn-panel-topics a:hover { padding-left: 12px; }
.learn-panel-topics .topic-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}
.learn-panel-topics .topic-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}
.learn-panel-topics .arrow {
  font-size: 18px;
  color: var(--text-mute);
  transition: transform .18s, color .18s;
}
.learn-panel-topics a:hover .arrow {
  color: var(--gold);
  transform: translateX(4px);
}

@media (max-width: 680px) {
  .learn-panel-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .learn-panel-head .more-link { justify-self: start; }
  .learn-panel-topics a {
    grid-template-columns: 1fr auto;
    row-gap: 4px;
  }
  .learn-panel-topics .topic-desc { grid-column: 1; }
  .learn-panel-topics .arrow { grid-row: 1 / span 2; align-self: center; }
}

/* ─── Homepage: Community logos ────────────────────────────────
   Three brand-logo cards (Discord / Reddit / YouTube) sitting below the
   bento hero. Each is a full clickable card with a large brand-coloured
   icon and platform name. Card chrome matches league.css (var(--card-bg),
   var(--border), gold-tinted hover). */

.community-logos {
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}
.community-logos-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
}
@media (max-width: 640px) {
  .community-logos-grid { grid-template-columns: 1fr; }
}

.community-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(28px, 4vw, 44px) 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color .18s ease, transform .15s ease;
}
.community-logo-card:hover {
  color: var(--text);
  border-color: rgba(212,175,55,0.45);
  transform: translateY(-2px);
}

.community-logo-icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
}
.community-logo-icon svg { width: 100%; height: 100%; display: block; }
.community-logo-icon--discord svg { color: #5865F2; }
.community-logo-icon--reddit  svg { color: #FF4500; }
.community-logo-icon--youtube svg { color: #FF0033; }

.community-logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
