/* ============================================================
   CollegeFootball1 — "Primetime / Gameday"
   Token-driven dark (default) + light theme. No framework.
   ============================================================ */

/* ---------- TOKENS : :root = LIGHT palette ----------------- */
:root {
  /* surfaces */
  --bg:            #f7f4ec;   /* warm cream page ground */
  --panel:         #ffffff;   /* raised cards */
  --panel-2:       #fbf9f3;   /* alt panel */
  --hero-fallback: #0b0f14;   /* hero always dark photo band */

  /* text */
  --text:          #171b21;   /* deep ink */
  --text-strong:   #0d1016;
  --text-muted:    #5b6472;

  /* accents */
  --gold:          #b8860b;   /* accent for icons / large display / CTA bg */
  --gold-text:     #8a6508;   /* AA-safe gold for small text on light */
  --gold-icon:     #a9760a;   /* icon strokes on light */
  --gold-soft:     rgba(184,134,11,.12);
  --green:         #14532d;   /* forest secondary */
  --green-dot:     #158a3d;

  /* ads + community (light) */
  --ad-edge:       rgba(184,134,11,.32);
  --ad-logo-bg:    #f1ede2;
  --solved:        #157f3c;   /* AA green text on light card */
  --solved-bg:     rgba(21,127,60,.10);
  --solved-border: rgba(21,127,60,.36);
  --warn:          #9a6a12;   /* muted-warn (unanswered) — AA on light */
  --warn-border:   rgba(154,106,18,.42);

  /* lines / fields */
  --border:        rgba(23,27,33,.12);
  --border-strong: rgba(23,27,33,.20);
  --field-bg:      #ffffff;
  --field-border:  rgba(23,27,33,.18);
  --chip-bg:       rgba(23,27,33,.04);
  --chip-border:   rgba(23,27,33,.14);

  /* card hover glow */
  --tile-glow:     rgba(184,134,11,.45);
  --shadow-card:   0 1px 2px rgba(23,27,33,.06), 0 8px 24px rgba(23,27,33,.06);
  --shadow-pop:    0 8px 30px rgba(23,27,33,.14);

  /* focus */
  --focus:         #b8860b;

  /* ---- CONSTANT tokens (identical in both themes) ---------- */
  --strip-bg:      #0a0e13;   /* broadcast ticker — always dark */
  --strip-panel:   #10161f;
  --strip-text:    #cbd2dd;
  --strip-muted:   #8a94a6;
  --strip-gold:    #f0b429;
  --strip-border:  rgba(255,255,255,.09);

  /* hero content sits on the dark photo in BOTH themes */
  --hero-text:     #ffffff;
  --hero-muted:    #d5dae2;
  --hero-gold:     #f0b429;
  --hero-field-bg: rgba(10,14,20,.72);
  --hero-field-border: rgba(240,180,41,.55);

  /* type scale */
  --fs-strip: .78rem;
  --fs-xs:  .78rem;
  --fs-sm:  .875rem;
  --fs-md:  1rem;
  --fs-lg:  1.15rem;
  --fs-xl:  1.5rem;
  --fs-2xl: 2rem;
  --fs-hero: clamp(2.1rem, 6vw, 4rem);

  /* spacing */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;

  --radius:   14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --maxw: 1440px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- DARK palette (explicit choice) ----------------- */
:root[data-theme="dark"] {
  --bg:            #0b0f14;
  --panel:         #0d1117;
  --panel-2:       #111826;
  --hero-fallback: #0b0f14;

  --text:          #ffffff;
  --text-strong:   #ffffff;
  --text-muted:    #8a94a6;

  --gold:          #f0b429;
  --gold-text:     #f0b429;
  --gold-icon:     #f0b429;
  --gold-soft:     rgba(240,180,41,.10);
  --green:         #1f7a44;
  --green-dot:     #2ea043;

  /* ads + community (dark) */
  --ad-edge:       rgba(240,180,41,.28);
  --ad-logo-bg:    #0f1622;
  --solved:        #3ecf6a;   /* bright green, AA on dark card */
  --solved-bg:     rgba(46,160,67,.16);
  --solved-border: rgba(46,160,67,.46);
  --warn:          #e0a53a;   /* muted-warn (unanswered) on dark */
  --warn-border:   rgba(224,165,58,.42);

  --border:        rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --field-bg:      #0a0e14;
  --field-border:  rgba(255,255,255,.14);
  --chip-bg:       rgba(255,255,255,.05);
  --chip-border:   rgba(255,255,255,.12);

  --tile-glow:     rgba(240,180,41,.55);
  --shadow-card:   0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  --shadow-pop:    0 10px 34px rgba(0,0,0,.5);

  --focus:         #f0b429;
}

/* ---------- system dark preference before any toggle ------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0b0f14;
    --panel:         #0d1117;
    --panel-2:       #111826;
    --hero-fallback: #0b0f14;

    --text:          #ffffff;
    --text-strong:   #ffffff;
    --text-muted:    #8a94a6;

    --gold:          #f0b429;
    --gold-text:     #f0b429;
    --gold-icon:     #f0b429;
    --gold-soft:     rgba(240,180,41,.10);
    --green:         #1f7a44;
    --green-dot:     #2ea043;

    --ad-edge:       rgba(240,180,41,.28);
    --ad-logo-bg:    #0f1622;
    --solved:        #3ecf6a;
    --solved-bg:     rgba(46,160,67,.16);
    --solved-border: rgba(46,160,67,.46);
    --warn:          #e0a53a;
    --warn-border:   rgba(224,165,58,.42);

    --border:        rgba(255,255,255,.08);
    --border-strong: rgba(255,255,255,.16);
    --field-bg:      #0a0e14;
    --field-border:  rgba(255,255,255,.14);
    --chip-bg:       rgba(255,255,255,.05);
    --chip-border:   rgba(255,255,255,.12);

    --tile-glow:     rgba(240,180,41,.55);
    --shadow-card:   0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    --shadow-pop:    0 10px 34px rgba(0,0,0,.5);

    --focus:         #f0b429;
  }
}

/* ---------- RESET / BASE ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; }

.display {
  font-family: "Saira Condensed", "Inter", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .01em;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-6); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-3); top: -60px; z-index: 100;
  background: var(--gold); color: #0b0f14; font-weight: 700;
  padding: .6rem 1rem; border-radius: var(--radius-sm); transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

/* Focus visibility (global) */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
:root[data-theme="dark"] :focus-visible,
:root:not([data-theme="light"]) :focus-visible { outline-color: #f0b429; }

.uplabel {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: var(--fs-xs);
}

/* ============================================================
   SCORES STRIP (broadcast ticker — always dark)
   ============================================================ */
.scores {
  background: var(--strip-bg);
  color: var(--strip-text);
  border-bottom: 1px solid var(--strip-border);
}
.scores__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: stretch; gap: 0;
  padding-inline: var(--sp-3);
}
.scores__label {
  flex: 0 0 auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: .55rem var(--sp-3) .55rem 0;
  border-right: 1px solid var(--strip-border);
  line-height: 1.15;
}
.scores__gameday {
  color: var(--strip-gold); font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; font-size: .72rem;
}
.scores__date {
  color: var(--strip-muted); text-transform: uppercase;
  letter-spacing: .08em; font-size: .68rem;
}
.scores__track {
  flex: 1 1 auto;
  display: flex; align-items: stretch; gap: 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin; scrollbar-color: var(--strip-border) transparent;
  scroll-snap-type: x proximity;
}
.scores__track::-webkit-scrollbar { height: 6px; }
.scores__track::-webkit-scrollbar-thumb { background: var(--strip-border); border-radius: 999px; }
.score-cell {
  flex: 0 0 auto; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: .12rem;
  padding: .4rem var(--sp-4);
  border-right: 1px solid var(--strip-border);
  min-width: 132px;
}
.score-cell__state {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--strip-muted); font-weight: 700; margin-bottom: .1rem;
}
.score-cell__state.is-live { color: var(--strip-gold); }
.score-row {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; line-height: 1.35;
}
.score-row__score { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--strip-text); }
.score-row.is-lead .score-row__score { color: #fff; }
.helmet { flex: 0 0 auto; width: 18px; height: 18px; display: block; }
.scores__all {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: 0 var(--sp-3);
  color: var(--strip-text); font-size: .76rem; font-weight: 600;
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.scores__all svg { width: 16px; height: 16px; }
.scores__all:hover { color: var(--strip-gold); }
.scores__all:active { transform: translateY(1px); }

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: var(--sp-4);
}
.brand {
  display: inline-flex; align-items: baseline; gap: .05rem;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800; font-size: 1.4rem; letter-spacing: .01em;
  color: var(--text-strong);
}
.brand__one { color: var(--gold); }
.brand:focus-visible { outline-offset: 4px; }

.nav__menu { display: flex; align-items: center; gap: var(--sp-2); }
.nav__links { display: flex; align-items: center; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--chip-bg); }
.nav__link[aria-current="page"] { color: var(--text); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.icon-btn:hover { color: var(--gold); border-color: var(--border-strong); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
.theme-toggle .sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .moon,
:root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun,
:root:not([data-theme="light"]) .theme-toggle .sun  { display: none; }

.btn-signin {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .5rem 1.05rem; border-radius: var(--radius-sm);
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong); font-weight: 700; font-size: var(--fs-sm);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.btn-signin:hover { border-color: var(--gold); color: var(--gold-text); }
.btn-signin:active { transform: translateY(1px); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); cursor: pointer;
}
.nav__toggle svg { width: 22px; height: 22px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(400px, 40vw, 520px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  /* rich dark fallback: floodlights + navy + faint yard lines */
  background:
    radial-gradient(120% 80% at 18% -8%, rgba(240,180,41,.16), transparent 42%),
    radial-gradient(120% 80% at 82% -8%, rgba(200,220,255,.12), transparent 42%),
    linear-gradient(180deg, #0a0f16 0%, #0d1826 55%, #091019 100%);
}
.hero::after { /* yard-line motif on the fallback ground */
  content: ""; position: absolute; inset: 55% 0 0 0; z-index: -1;
  background:
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(255,255,255,.05) 62px 64px),
    linear-gradient(180deg, rgba(20,70,40,.35), rgba(9,16,25,0));
  mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,9,13,.78) 0%, rgba(6,9,13,.28) 34%, rgba(6,9,13,.30) 62%, rgba(6,9,13,.72) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  width: 100%; max-width: 780px;
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
}
.hero__title {
  color: var(--hero-text);
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  font-size: var(--fs-hero);
  line-height: .98;
  letter-spacing: .005em;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
  margin-bottom: var(--sp-5);
}
.hero__search { margin: 0 auto var(--sp-4); max-width: 620px; }
.search {
  display: flex; align-items: center; gap: .6rem;
  background: var(--hero-field-bg);
  border: 1.5px solid var(--hero-field-border);
  border-radius: var(--radius-pill);
  padding: .35rem .5rem .35rem 1.1rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 0 26px rgba(240,180,41,.28), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.search__icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--hero-gold); }
.search__input {
  flex: 1 1 auto; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: var(--hero-text); font-size: 1.05rem;
  padding: .55rem 0; min-height: 44px;
}
.search__input::placeholder { color: var(--hero-muted); }
.search:focus-within {
  border-color: var(--hero-gold);
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 0 32px rgba(240,180,41,.5), inset 0 1px 0 rgba(255,255,255,.08);
}
.search__btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.15rem; border: 0; cursor: pointer;
  background: var(--hero-gold); color: #0b0f14;
  font-weight: 800; font-size: var(--fs-sm); border-radius: var(--radius-pill);
  transition: filter .18s var(--ease), transform .12s var(--ease);
}
.search__btn:hover { filter: brightness(1.08); }
.search__btn:active { transform: translateY(1px); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; min-height: 38px;
  padding: .45rem .9rem; border-radius: var(--radius-pill); cursor: pointer;
  background: rgba(10,14,20,.55);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--hero-muted); font-weight: 600; font-size: var(--fs-sm);
  backdrop-filter: blur(3px);
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.chip:hover { color: var(--hero-text); border-color: rgba(240,180,41,.6); }
.chip.is-active {
  color: #0b0f14; background: var(--hero-gold); border-color: var(--hero-gold); font-weight: 700;
}

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */
.section { padding-block: 3.25rem; }
.section--tight { padding-top: 2.5rem; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.section-head h2 {
  font-family: "Saira Condensed", sans-serif; font-weight: 800;
  font-size: var(--fs-2xl); letter-spacing: .01em; color: var(--text-strong);
}
.link-more {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--gold-text); font-weight: 700; font-size: var(--fs-sm);
  padding: .4rem .3rem; border-radius: 8px; white-space: nowrap;
  transition: gap .18s var(--ease), color .18s var(--ease);
}
.link-more svg { width: 16px; height: 16px; }
.link-more:hover { gap: .55rem; }

/* ============================================================
   CATEGORY GRID (3 x 2)
   ============================================================ */
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}
.cat-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: .6rem;
  min-height: 216px;
  padding: var(--sp-7) var(--sp-6);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cat-tile:hover {
  transform: translateY(-3px);
  border-color: var(--tile-glow);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--tile-glow), 0 0 24px -6px var(--tile-glow);
}
.cat-tile:active { transform: translateY(-1px); }
.cat-tile__icon { width: 46px; height: 46px; color: var(--gold-icon); margin-bottom: .2rem; }
.cat-tile__icon svg { width: 100%; height: 100%; }
.cat-tile__icon.is-glow { filter: drop-shadow(0 0 10px rgba(240,180,41,.55)); }
.cat-tile__title {
  font-family: "Saira Condensed", sans-serif; font-weight: 800;
  font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-strong);
}
.cat-tile__desc { color: var(--text-muted); font-size: var(--fs-sm); max-width: 24ch; }
.cat-tile__count {
  margin-top: .35rem; color: var(--gold-text); font-weight: 700;
  font-size: var(--fs-sm); font-variant-numeric: tabular-nums;
}

/* ============================================================
   LATEST DISCUSSIONS (list)
   ============================================================ */
.disc-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.disc-list { list-style: none; margin: 0; padding: 0; }
.disc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  transition: background .16s var(--ease);
}
.disc-row:last-child { border-bottom: 0; }
.disc-row:hover { background: var(--panel-2); }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--chip-bg); color: var(--text-muted);
  border: 1px solid var(--border); overflow: hidden; flex: 0 0 auto;
}
.avatar svg { width: 42px; height: 42px; }
.disc-row__body { min-width: 0; }
.disc-row__title {
  display: block; font-weight: 700; font-size: var(--fs-md); color: var(--text-strong);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .16s var(--ease);
}
.disc-row__title:hover { color: var(--gold-text); }
.disc-row__meta { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--text-muted); margin-top: .1rem; }
.tag {
  display: inline-flex; align-items: center;
  color: var(--gold-text); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.disc-row__stats {
  display: flex; align-items: center; gap: var(--sp-5);
  color: var(--text-muted); font-size: var(--fs-sm); white-space: nowrap;
}
.disc-row__replies { display: inline-flex; align-items: center; gap: .35rem; font-variant-numeric: tabular-nums; }
.disc-row__replies svg { width: 16px; height: 16px; color: var(--text-muted); }
.disc-row__time { font-variant-numeric: tabular-nums; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.stat {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-5);
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: 0; }
.stat__icon { width: 38px; height: 38px; color: var(--gold-icon); flex: 0 0 auto; }
.stat__icon svg { width: 100%; height: 100%; }
.stat__label {
  display: flex; align-items: center; gap: .45rem;
  text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700;
  color: var(--text-muted);
}
.stat__value {
  font-family: "Saira Condensed", sans-serif; font-weight: 800;
  font-size: 1.7rem; color: var(--text-strong); font-variant-numeric: tabular-nums; line-height: 1.05;
}
.dot-online {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green-dot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-dot) 28%, transparent);
  display: inline-block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--sp-6);
  margin-top: var(--sp-6);
  background: var(--panel);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.footer-nav a {
  display: inline-flex; min-height: 40px; align-items: center;
  padding: .3rem .6rem; color: var(--text-muted); font-size: var(--fs-sm); border-radius: 8px;
  transition: color .16s var(--ease);
}
.footer-nav a:hover { color: var(--gold-text); }
.footer-copy { color: var(--text-muted); font-size: var(--fs-sm); }

/* ============================================================
   BREADCRUMB / PAGE HEADS (board + thread)
   ============================================================ */
.crumb { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--text-muted); flex-wrap: wrap; }
.crumb a { color: var(--text-muted); transition: color .16s var(--ease); }
.crumb a:hover { color: var(--gold-text); }
.crumb__sep { color: var(--border-strong); }
.crumb b { color: var(--text); font-weight: 600; }

.page-head { padding-top: var(--sp-7); }
.page-head h1 {
  font-family: "Saira Condensed", sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: var(--text-strong);
  margin-top: .5rem; letter-spacing: .01em;
}
.page-head__desc { color: var(--text-muted); margin-top: .4rem; max-width: 62ch; }
.page-head__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-4); }

.btn-primary {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  padding: 0 1.15rem; border: 0; cursor: pointer; border-radius: var(--radius-sm);
  background: var(--gold); color: #0b0f14; font-weight: 800; font-size: var(--fs-sm);
  box-shadow: 0 0 22px -6px var(--tile-glow);
  transition: filter .18s var(--ease), transform .12s var(--ease);
}
.btn-primary svg { width: 18px; height: 18px; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); }

/* sort tabs */
.tabs { display: flex; gap: .35rem; background: var(--chip-bg); padding: .3rem; border-radius: var(--radius-pill); border: 1px solid var(--border); }
.tab {
  appearance: none; border: 0; cursor: pointer; background: transparent;
  min-height: 38px; padding: .4rem .95rem; border-radius: var(--radius-pill);
  color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm);
  transition: color .16s var(--ease), background .16s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--panel); color: var(--text-strong); box-shadow: var(--shadow-card); }
:root[data-theme="dark"] .tab.is-active,
:root:not([data-theme="light"]) .tab.is-active { background: var(--panel-2); }

/* ============================================================
   BOARD : thread list
   ============================================================ */
.thread-list { list-style: none; margin: var(--sp-5) 0 0; padding: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); overflow: hidden; }
.trow {
  display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center;
  gap: var(--sp-4); padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border); transition: background .16s var(--ease);
}
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--panel-2); }
.trow__pin { color: var(--gold); width: 18px; height: 18px; flex: 0 0 auto; }
.trow__pin svg { width: 18px; height: 18px; }
.trow__main { min-width: 0; }
.trow__title { display: block; font-weight: 700; color: var(--text-strong); transition: color .16s var(--ease); }
.trow__title:hover { color: var(--gold-text); }
.trow__sub { display: flex; align-items: center; gap: .5rem; margin-top: .15rem; font-size: var(--fs-sm); color: var(--text-muted); flex-wrap: wrap; }
.pin-badge {
  display: inline-flex; align-items: center; gap: .25rem; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: var(--gold-text);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 6px; padding: .05rem .4rem;
}
.trow__col { text-align: center; font-size: var(--fs-sm); color: var(--text-muted); min-width: 62px; }
.trow__col b { display: block; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.trow__col-label { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; }
.trow__last { min-width: 116px; text-align: right; font-size: var(--fs-sm); color: var(--text-muted); }
.trow__last b { color: var(--text); font-weight: 600; }

/* pagination */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; margin-top: var(--sp-5); }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 .5rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm);
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.pager a:hover { color: var(--text); border-color: var(--border-strong); }
.pager .is-current { background: var(--gold); color: #0b0f14; border-color: var(--gold); }
.pager .is-disabled { opacity: .45; pointer-events: none; }

/* ============================================================
   THREAD PAGE
   ============================================================ */
.thread-layout { display: grid; grid-template-columns: minmax(0, 1fr) 322px; gap: var(--sp-6); align-items: start; margin-top: var(--sp-6); }
.thread-layout > * { min-width: 0; }
.posts { display: flex; flex-direction: column; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.post {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5);
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: var(--sp-6);
}
.post__aside { display: flex; flex-direction: column; align-items: center; gap: .4rem; width: 76px; text-align: center; }
.post__avatar { width: 52px; height: 52px; }
.post__author { font-weight: 700; font-size: var(--fs-sm); color: var(--text-strong); line-height: 1.15; }
.role-badge {
  display: inline-block; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  color: #0b0f14; background: var(--gold); border-radius: 6px; padding: .1rem .4rem;
}
.role-badge.is-ghost { color: var(--gold-text); background: transparent; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.post__body { min-width: 0; }
.post__head { display: flex; align-items: center; gap: .6rem; justify-content: space-between; margin-bottom: .5rem; flex-wrap: wrap; }
.post__meta { font-size: var(--fs-sm); color: var(--text-muted); }
.post__no { color: var(--gold-text); font-weight: 700; }
.post__content p { margin: 0 0 .8rem; color: var(--text); }
.post__content p:last-child { margin-bottom: 0; }
.post__actions { display: flex; gap: .5rem; margin-top: var(--sp-4); flex-wrap: wrap; }
.action-btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px;
  padding: .4rem .8rem; border-radius: var(--radius-sm); cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  font-weight: 600; font-size: var(--fs-sm);
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.action-btn svg { width: 16px; height: 16px; }
.action-btn:hover { color: var(--text); border-color: var(--border-strong); }
.action-btn:active { transform: translateY(1px); }
.action-btn.is-liked { color: var(--gold-text); border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: var(--gold-soft); }
.action-btn.is-liked svg { fill: var(--gold); }

/* composer */
.composer {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: var(--sp-6); margin-top: var(--sp-6);
}
.composer h2 { font-family: "Saira Condensed", sans-serif; font-size: 1.4rem; margin-bottom: var(--sp-3); color: var(--text-strong); }
.composer__field {
  width: 100%; min-height: 120px; resize: vertical;
  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  color: var(--text); font-family: inherit; font-size: var(--fs-md); padding: .85rem 1rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.composer__field::placeholder { color: var(--text-muted); }
.composer__field:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.composer__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-4); flex-wrap: wrap; }
.composer__note { font-size: var(--fs-sm); color: var(--text-muted); }

/* thread rail */
.rail {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: var(--sp-6);
  position: sticky; top: 80px;
}
.rail h2 { font-family: "Saira Condensed", sans-serif; font-size: 1.25rem; color: var(--text-strong); margin-bottom: var(--sp-3); }
.rail__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.rail__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-sm); }
.rail__row span:first-child { color: var(--text-muted); }
.rail__row b { color: var(--text-strong); font-weight: 700; font-variant-numeric: tabular-nums; }
.rail__people { display: flex; align-items: center; margin-top: var(--sp-4); }
.rail__people .avatar { width: 34px; height: 34px; margin-left: -8px; border: 2px solid var(--panel); }
.rail__people .avatar:first-child { margin-left: 0; }
.rail__people svg { width: 34px; height: 34px; }
.rail__more { margin-left: .6rem; font-size: var(--fs-sm); color: var(--text-muted); }

/* ============================================================
   AD / SPONSOR ZONES  (always clearly labeled)
   ============================================================ */
.ad {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--ad-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.ad__eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
}
.ad__eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px;
  background: var(--gold); flex: 0 0 auto;
}
.ad__logo {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--ad-logo-bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
}
.ad__logo svg { width: 24px; height: 24px; opacity: .75; }
.ad__title { font-weight: 700; color: var(--text-strong); line-height: 1.25; }
.ad__text { color: var(--text-muted); font-size: var(--fs-sm); margin-top: .1rem; }
.ad__cta {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 40px;
  padding: .4rem .9rem; border-radius: var(--radius-sm); cursor: pointer;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap;
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.ad__cta:hover { color: var(--gold-text); border-color: var(--gold); }
.ad__cta:active { transform: translateY(1px); }

/* horizontal band (homepage) + leaderboard (board) */
.ad--band, .ad--leaderboard {
  display: flex; align-items: center; gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
}
.ad--band .ad__body, .ad--leaderboard .ad__body { flex: 1 1 auto; min-width: 0; }
.ad--band .ad__logo { flex: 0 0 auto; width: 132px; height: 66px; }
.ad--leaderboard { margin-top: var(--sp-5); }
.ad--leaderboard .ad__logo { flex: 0 0 auto; width: 120px; height: 60px; }
.ad--band .ad__cta, .ad--leaderboard .ad__cta { flex: 0 0 auto; }

/* sidebar card (board + thread rails) */
.ad--card { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.ad--card .ad__logo { width: 100%; height: 92px; margin: .6rem 0 .7rem; }
.ad--card .ad__cta { margin-top: .8rem; width: 100%; justify-content: center; }

/* in-thread inline unit (centered, between posts) */
.ad--inline {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .5rem; padding: var(--sp-5); max-width: 520px; margin-inline: auto;
}
.ad--inline .ad__logo { width: 148px; height: 64px; margin: .3rem 0; }
.ad-slot { list-style: none; }

/* ============================================================
   COMMUNITY FEATURES : vote / reactions / follow / solved
   ============================================================ */
/* --- vote control --- */
.vote { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.vote__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 38px; border-radius: 9px; cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.vote__btn svg { width: 18px; height: 18px; }
.vote__btn:hover { color: var(--text); border-color: var(--border-strong); }
.vote__btn:active { transform: translateY(1px); }
.vote__up.is-active { color: var(--gold-text); border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: var(--gold-soft); }
.vote__up.is-active svg { fill: currentColor; }
.vote__down.is-active { color: var(--text); border-color: var(--border-strong); background: var(--chip-bg); }
.vote__down.is-active svg { fill: currentColor; }
.vote__score { font-weight: 800; font-size: .95rem; color: var(--text-strong); font-variant-numeric: tabular-nums; }

/* --- reactions --- */
.reactions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--sp-3); }
.reaction {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px;
  padding: .3rem .75rem; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--chip-bg); border: 1px solid var(--border);
  color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm);
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.reaction:hover { color: var(--text); border-color: var(--border-strong); }
.reaction.is-active { color: var(--gold-text); border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: var(--gold-soft); }
.reaction__emoji { font-size: 1rem; line-height: 1; }
.reaction__count { font-variant-numeric: tabular-nums; }

/* --- follow button --- */
.follow {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px;
  padding: .4rem .9rem; border-radius: var(--radius-sm); cursor: pointer;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text); font-weight: 700; font-size: var(--fs-sm);
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.follow svg { width: 16px; height: 16px; }
.follow:hover { border-color: var(--gold); color: var(--gold-text); }
.follow:active { transform: translateY(1px); }
.follow.is-following { background: var(--gold); color: #0b0f14; border-color: var(--gold); }
.follow.is-following:hover { color: #0b0f14; filter: brightness(1.05); }

/* --- solved badges --- */
.solved-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  color: var(--solved); background: var(--solved-bg);
  border: 1px solid var(--solved-border); border-radius: var(--radius-pill);
  padding: .2rem .55rem; white-space: nowrap;
}
.solved-badge svg { width: 13px; height: 13px; }
.title-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: .5rem; }
.title-row h1 { margin-top: 0; }

/* accepted answer highlight (no left-stripe) */
.post.is-accepted {
  border-color: var(--solved-border);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--solved-border), 0 0 22px -8px var(--solved);
}
.accepted-flag {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--solved); font-weight: 800; font-size: var(--fs-sm);
}
.accepted-flag svg { width: 16px; height: 16px; }

/* board row vote + solved */
.trow__votes {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--gold-text); font-weight: 700; font-variant-numeric: tabular-nums;
}
.trow__votes svg { width: 14px; height: 14px; }

/* ============================================================
   HOMEPAGE : quick-links, feed, status badges, sidebar widgets
   ============================================================ */
/* top leaderboard slot */
.leaderboard-slot { padding-block: var(--sp-5); }

/* quick links row */
.quicklinks {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .3rem 1.25rem; padding: var(--sp-5) 0; border-bottom: 1px solid var(--border);
}
.quicklink {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px;
  padding: .3rem .3rem; color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm);
  transition: color .16s var(--ease);
}
.quicklink svg { width: 16px; height: 16px; color: var(--gold-icon); }
.quicklink:hover { color: var(--text); }

/* home two-column feed head */
.home-feedhead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.home-feedhead h2 { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: var(--fs-2xl); color: var(--text-strong); }
.feed-tabs { margin-bottom: var(--sp-4); flex-wrap: wrap; }

/* feed panel + rows */
.feed { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-row { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--border); transition: background .16s var(--ease); }
.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: var(--panel-2); }
.feed-row .avatar { width: 44px; height: 44px; }
.feed-row .avatar svg { width: 44px; height: 44px; }
.feed-row__main { min-width: 0; }
.feed-row__titleline { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.feed-row__title { font-weight: 700; color: var(--text-strong); font-size: 1.02rem; transition: color .16s var(--ease); }
.feed-row__title:hover { color: var(--gold-text); }
.feed-row__excerpt { color: var(--text-muted); font-size: var(--fs-sm); margin: .25rem 0 .45rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row__meta { display: flex; align-items: center; gap: .35rem .9rem; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-muted); }
.feed-row__votes { display: inline-flex; align-items: center; gap: .3rem; color: var(--gold-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.feed-row__votes svg { width: 14px; height: 14px; }
.feed-row__stat { display: inline-flex; align-items: center; gap: .3rem; font-variant-numeric: tabular-nums; }
.feed-row__stat svg { width: 15px; height: 15px; opacity: .85; }
.feed-row__by { color: var(--text-muted); }
.feed-empty { padding: var(--sp-6) var(--sp-5); text-align: center; color: var(--text-muted); font-size: var(--fs-sm); }

/* in-feed sponsored row */
.feed-row--ad { display: block; padding: var(--sp-3) var(--sp-4); background: var(--panel-2); }

/* status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  padding: .16rem .5rem; border-radius: var(--radius-pill); border: 1px solid transparent; white-space: nowrap;
}
.status-badge svg { width: 12px; height: 12px; }
.status-badge--solved { color: var(--solved); background: var(--solved-bg); border-color: var(--solved-border); }
.status-badge--popular { color: var(--gold-text); background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.status-badge--unanswered { color: var(--warn); background: transparent; border-color: var(--warn-border); }
.status-badge--active { color: var(--text-muted); background: var(--chip-bg); border-color: var(--border); }
.status-badge--active .dot-online { width: 7px; height: 7px; box-shadow: none; }

/* sidebar widgets */
.widget { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: var(--sp-6); }
.widget + .widget, .thread-layout aside > .ad + .widget, .thread-layout aside > .widget + .ad { margin-top: var(--sp-4); }
.thread-layout aside > * + * { margin-top: var(--sp-4); }
.widget__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.widget h3 { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--text-strong); letter-spacing: .01em; }
.wlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.wpost { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.wpost a { font-weight: 600; color: var(--text-strong); font-size: var(--fs-sm); transition: color .16s var(--ease); }
.wpost a:hover { color: var(--gold-text); }
.wpost__meta { font-size: .76rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.wmember { display: flex; align-items: center; gap: .7rem; }
.wmember__rank { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 1rem; color: var(--gold-text); width: 1.2rem; text-align: center; flex: 0 0 auto; }
.wmember .avatar { width: 38px; height: 38px; flex: 0 0 auto; }
.wmember .avatar svg { width: 38px; height: 38px; }
.wmember__info { min-width: 0; }
.wmember__name { font-weight: 700; color: var(--text-strong); font-size: var(--fs-sm); }
.wmember__pts { font-size: .76rem; color: var(--gold-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.wstats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.wstat { display: flex; align-items: center; gap: .75rem; }
.wstat__icon { width: 30px; height: 30px; color: var(--gold-icon); flex: 0 0 auto; }
.wstat__icon svg { width: 100%; height: 100%; }
.wstat__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.wstat__value { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--text-strong); font-variant-numeric: tabular-nums; line-height: 1.1; }
.join-card p { color: var(--text-muted); font-size: var(--fs-sm); margin: .3rem 0 var(--sp-4); }
.join-card .btn-primary { width: 100%; justify-content: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .thread-layout { grid-template-columns: 1fr; }
  .rail { position: static; }
  .trow { grid-template-columns: auto 1fr auto; }
  .trow__col--views, .trow__last { display: none; }
}

@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: .35rem;
    background: var(--panel); border-bottom: 1px solid var(--border);
    padding: var(--sp-3) var(--sp-4);
    box-shadow: var(--shadow-pop);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__link { min-height: 48px; }
  .nav__utility { display: flex; align-items: center; gap: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--border); }
  .btn-signin { flex: 1 1 auto; justify-content: center; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--border); }
  .stat:first-child { border-top: 0; }
  .section-head h2 { font-size: 1.6rem; }
}

@media (max-width: 560px) {
  .container { padding-inline: var(--sp-4); }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-tile { min-height: 0; padding: var(--sp-6) var(--sp-5); }
  .feed-row { padding: var(--sp-4) var(--sp-4); }
  .widget, .post, .rail, .composer { padding: var(--sp-5); }
  .trow { padding: var(--sp-4) var(--sp-4); }
  .disc-row { grid-template-columns: auto 1fr; row-gap: .4rem; }
  .disc-row__stats { grid-column: 2; gap: var(--sp-4); }
  .stat__value { font-size: 1.5rem; }

  /* ad bands stack */
  .ad--band, .ad--leaderboard { flex-wrap: wrap; gap: var(--sp-3); }
  .ad--band .ad__logo, .ad--leaderboard .ad__logo { width: 100%; height: 72px; }
  .ad--band .ad__cta, .ad--leaderboard .ad__cta { width: 100%; justify-content: center; }
}

/* ---------- reduced motion --------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .cat-tile:hover { transform: none; }
}
