/* =====================================================================
   FootballSportsTalk — design system
   Bold broadcast / talk-radio energy, executed clean like a TV studio.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --studio-black: #0b0f14;   /* page ground */
  --charcoal:     #1f2632;   /* raised dark surfaces */
  --charcoal-2:   #161c26;   /* slightly deeper panel */
  --white:        #ffffff;   /* primary cards + text on dark */
  --accent:       #e8451f;   /* electric red-orange — the one vivid accent */
  --accent-600:   #cf3a17;   /* accent pressed */
  --accent-050:   rgba(232, 69, 31, 0.12);
  --steel:        #64748b;   /* muted text / borders */
  --steel-300:    #94a3b8;   /* lighter muted text on dark */
  --steel-700:    #3b4656;   /* hairline borders on dark */
  --ink:          #0f141a;   /* body text on white cards */
  --ink-soft:     #45505f;   /* secondary text on white cards */

  /* Derived surfaces */
  --line-dark:    rgba(255, 255, 255, 0.09);
  --line-card:    #e6e9ee;
  --card-bg:      #ffffff;

  /* Type */
  --font-display: "Saira Condensed", "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body:    "Inter", "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale */
  --fs-hero:   clamp(3.25rem, 8.5vw, 6.5rem);
  --fs-h1:     clamp(2rem, 4vw, 3rem);
  --fs-h2:     clamp(1.35rem, 2.4vw, 1.75rem);
  --fs-title:  1.05rem;
  --fs-body:   1rem;
  --fs-sm:     0.875rem;
  --fs-xs:     0.75rem;

  /* Spacing scale (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  /* Radii + shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.28);
  --shadow-pop:  0 12px 40px rgba(0,0,0,.45);

  /* Layout */
  --wrap: 1440px;
  --wrap-pad: 32px;
  --nav-h: 64px;
  --col-side: 322px;   /* sidebar width */
  --col-gap: 32px;     /* main↔sidebar gutter */

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

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

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

body {
  margin: 0;
  background: var(--studio-black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  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; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; line-height: 1.05; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}

.sr-only {
  position: absolute; 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-4); top: -60px;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm);
  z-index: 200; transition: top .18s var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

/* Uppercase section label */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  font-size: var(--fs-xs);
  color: var(--steel-300);
}

.section-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: 1.55rem;
  line-height: 1;
}

.accent { color: var(--accent); }

/* =====================================================================
   Top navigation
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.6rem;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.brand:focus-visible { outline-offset: 4px; }

.nav-right {
  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: 0 var(--sp-4);
  font-weight: 600;
  color: var(--steel-300);
  border-radius: var(--r-sm);
  transition: color .16s var(--ease), background .16s var(--ease);
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--white); }
.nav-link:hover { background: rgba(255,255,255,.05); }

.btn {
  --btn-bg: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-5);
  border: 0;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .01em;
  transition: transform .12s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:hover { background: var(--accent-600); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--steel-700);
}
.btn--ghost:hover { background: rgba(255,255,255,.06); }
.btn--lg { min-height: 48px; padding: 0 var(--sp-6); font-size: var(--fs-body); }
.btn--block { width: 100%; }

/* Sign-in dropdown */
.signin { position: relative; }
.signin-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
  background: var(--charcoal);
  border: 1px solid var(--steel-700);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  padding: var(--sp-5);
  display: none;
  z-index: 120;
}
.signin-panel[data-open="true"] { display: block; animation: pop .16s var(--ease); }
.signin-panel h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: 1.25rem; margin-bottom: var(--sp-3);
}
.field {
  display: block;
  margin-bottom: var(--sp-3);
}
.field span { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--steel-300); margin-bottom: var(--sp-1); }
.field input {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--steel-700);
  background: var(--studio-black);
  color: var(--white);
  font: inherit;
}
.field input::placeholder { color: var(--steel); }
.signin-panel .muted { font-size: var(--fs-xs); color: var(--steel-300); margin-top: var(--sp-3); text-align: center; }
.signin-panel .muted a { color: var(--accent); font-weight: 600; }

@keyframes pop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--steel-700);
  border-radius: var(--r-sm); color: var(--white);
}

/* =====================================================================
   Live matchday ticker
   ===================================================================== */
.ticker {
  background: var(--charcoal-2);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}
.ticker__inner {
  display: flex;
  align-items: stretch;
}
.ticker__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
  padding: var(--sp-3) var(--sp-4);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.ticker__scroll {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.ticker__scroll::-webkit-scrollbar { display: none; }
.score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: var(--sp-2) var(--sp-5);
  border-right: 1px solid var(--line-dark);
  white-space: nowrap;
  flex: none;
}
.score__state {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.score__teams {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--white);
}
.ticker__all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: var(--sp-2) var(--sp-5);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
}
.ticker__all:hover { color: var(--accent); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(380px, 40vw, 440px);
  display: flex;
  align-items: center;
  /* Rich fallback: near-black radial + linear studio gradient */
  background:
    radial-gradient(120% 90% at 50% -10%, #131b26 0%, rgba(11,15,20,0) 55%),
    radial-gradient(90% 80% at 100% 60%, rgba(232,69,31,.16) 0%, rgba(11,15,20,0) 45%),
    linear-gradient(180deg, #0d1218 0%, #0b0f14 100%);
}
/* Subtle CSS audio-waveform motif (bars) behind everything */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(148,163,184,.10) 0px,
    rgba(148,163,184,.10) 2px,
    transparent 2px,
    transparent 12px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent),
    radial-gradient(120% 130% at 50% 50%, rgba(0,0,0,.25), #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  /* vary bar height feel via vertical clipping bands */
  background-size: 100% 100%;
  opacity: .5;
}
/* Accent waveform slashes echoing the comp (top-right) */
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  top: 6%; right: 3%;
  width: 120px; height: 150px;
  background: repeating-linear-gradient(
    115deg,
    var(--accent) 0 10px,
    transparent 10px 26px
  );
  opacity: .85;
  transform: skewX(-4deg);
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* lift the deliberately-dark broadcast photo so it reads */
  filter: brightness(1.5) saturate(1.12) contrast(1.05);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* lighter now: keep the top and bottom edges dark for headline + search
     contrast, but let the stadium photo show through the middle */
  background:
    linear-gradient(180deg, rgba(11,15,20,.55) 0%, rgba(11,15,20,.18) 38%, rgba(11,15,20,.30) 66%, rgba(11,15,20,.80) 100%),
    linear-gradient(90deg, rgba(11,15,20,.45) 0%, rgba(11,15,20,0) 45%, rgba(11,15,20,.45) 100%);
}

.hero__content {
  width: 100%;
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: var(--fs-hero);
  line-height: .86;
  letter-spacing: -.01em;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.hero__headline .l1 { color: var(--white); display: block; }
.hero__headline .l2 { color: var(--accent); display: block; }

.hero__subhead {
  margin-top: var(--sp-4);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  color: #e8edf3;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}

/* Search field */
.hero__search {
  margin-top: var(--sp-5);
  width: min(100%, 680px);
  position: relative;
  display: flex;
  align-items: center;
}
.hero__search input {
  width: 100%;
  min-height: 60px;
  padding: 0 var(--sp-5) 0 3.5rem;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  box-shadow: var(--shadow-card);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.hero__search input::placeholder { color: #6b7686; }
.hero__search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-050), var(--shadow-card); }
.hero__search .search-ico {
  position: absolute;
  left: var(--sp-4);
  color: var(--accent);
  pointer-events: none;
  display: flex;
}
.hero__search button {
  position: absolute;
  right: 8px;
  height: 44px; width: 44px;
  border: 0; border-radius: var(--r-sm);
  background: var(--accent); color: #fff;
  display: none; /* icon inside input already; keep as accessible submit on mobile */
  align-items: center; justify-content: center;
}

/* Topic chips */
.chips {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  list-style: none;
  padding: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 40px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--steel-700);
  background: rgba(31,38,50,.72);
  color: #dbe2ea;
  font-weight: 600;
  font-size: var(--fs-sm);
  backdrop-filter: blur(4px);
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.chip svg { color: var(--steel-300); }
.chip:hover { border-color: var(--accent); color: #fff; }
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chip[aria-pressed="true"] svg { color: #fff; }

/* =====================================================================
   Category grid
   ===================================================================== */
.section { padding-block: clamp(2.75rem, 5vw, 3.5rem); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.cat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--sp-5);
  row-gap: var(--sp-3);
  min-height: 168px;
  align-content: center;
  background: var(--card-bg);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: clamp(22px, 2.2vw, 28px);
  border: 1px solid var(--line-card);
  box-shadow: var(--shadow-card);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.4);
}
.cat-card__icon {
  grid-row: 1 / 2;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  flex: none;
}
.cat-card__title {
  align-self: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: .01em;
  color: var(--ink);
}
.cat-card__title:hover { color: var(--accent); }
.cat-card__desc {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.45;
  margin: 0;
}
.cat-card__count {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.cat-card__count svg { color: var(--steel); }
.cat-card__count b { color: var(--accent); font-weight: 800; }
/* Make whole card clickable via stretched link */
.stretch { position: relative; }
.stretch-link::after {
  content: "";
  position: absolute; inset: 0;
}

/* =====================================================================
   Lower two-column: latest + sidebar
   ===================================================================== */
.lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--col-side);
  gap: var(--col-gap);
  align-items: start;
}

.panel {
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line-dark);
}
.panel__head .section-label { color: #fff; }
.link-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: var(--fs-sm);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}
.link-all:hover { color: #fff; }

/* Discussion rows */
.disc-list { list-style: none; margin: 0; padding: 0; }
.disc {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line-dark);
  transition: background .14s var(--ease);
}
.disc:last-child { border-bottom: 0; }
.disc:hover { background: rgba(255,255,255,.03); }
.disc__title {
  font-weight: 600;
  font-size: var(--fs-title);
  color: var(--white);
  line-height: 1.3;
}
.disc:hover .disc__title { color: var(--accent); }
.disc__meta {
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--steel-300);
}
.disc__meta b { color: #cdd6e0; font-weight: 600; }
.disc__stats {
  text-align: right;
  white-space: nowrap;
}
.disc__replies {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--white);
}
.disc__replies svg { color: var(--steel-300); }
.disc__time { display: block; font-size: var(--fs-xs); color: var(--steel-300); margin-top: 2px; }

.panel__foot {
  padding: var(--sp-4) var(--sp-5);
  text-align: center;
}
.panel__foot .link-all { justify-content: center; }

/* Avatar */
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(160deg, #2a3441, #1a212b);
  border: 1px solid var(--steel-700);
  display: grid; place-items: center;
  color: var(--steel-300);
  flex: none;
  overflow: hidden;
}
.avatar svg { width: 100%; height: 100%; }
.avatar--sm { width: 34px; height: 34px; }
.avatar--lg { width: 52px; height: 52px; }
/* subtle per-row tint hooks */
.avatar[data-tint="1"] { color: #e8945f; }
.avatar[data-tint="2"] { color: #6fb3c9; }
.avatar[data-tint="3"] { color: #9db26f; }
.avatar[data-tint="4"] { color: #c96f9b; }
.avatar[data-tint="5"] { color: #6f8fc9; }
.avatar[data-tint="6"] { color: #c9b46f; }

/* Sidebar cards */
.sidebar { display: flex; flex-direction: column; gap: var(--sp-5); }

.stats-card .stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line-dark);
}
.stats-card .stat:last-child { border-bottom: 0; }
.stat__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--steel-300);
}
.stat__label svg { color: var(--steel-300); }
.stat__val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .01em;
  color: var(--white);
}
.stat--online .stat__val { color: var(--accent); }
.stat--online .stat__label svg { color: var(--accent); }

/* Hot takes card */
.takes { list-style: none; margin: 0; padding: 0; }
.take {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line-dark);
  transition: background .14s var(--ease);
}
.take:hover { background: rgba(255,255,255,.03); }
.take__flame { color: var(--accent); margin-top: 2px; }
.take__text { font-weight: 600; color: var(--white); line-height: 1.35; font-size: var(--fs-sm); }
.take__meta { display: block; margin-top: 3px; font-size: var(--fs-xs); color: var(--steel-300); font-weight: 500; }
.take:hover .take__text { color: var(--accent); }

/* =====================================================================
   Bottom broadcast strip
   ===================================================================== */
.broadcast {
  background: var(--charcoal-2);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.broadcast__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  padding: var(--sp-4) 0;
}
.broadcast__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1.1rem;
}
.broadcast__badge .live-dot { background: var(--accent); box-shadow: 0 0 0 0 rgba(232,69,31,.6); }
@keyframes pulse-accent {
  0%   { box-shadow: 0 0 0 0 rgba(232,69,31,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(232,69,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,69,31,0); }
}
.broadcast__badge .live-dot { animation: pulse-accent 1.8s infinite; }
.broadcast__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  margin-left: auto;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: var(--fs-sm);
  color: var(--steel-300);
}
.broadcast__tags .hot { color: var(--accent); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  background: var(--studio-black);
  padding-block: var(--sp-7) var(--sp-6);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--line-dark);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: .02em;
  font-size: 1.05rem; color: #fff;
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.footer-col a { color: var(--steel-300); font-size: var(--fs-sm); }
.footer-col a:hover { color: #fff; }
.footer-blurb { color: var(--steel-300); font-size: var(--fs-sm); max-width: 34ch; margin: var(--sp-3) 0 0; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: var(--sp-5);
  color: var(--steel);
  font-size: var(--fs-sm);
}

/* =====================================================================
   Breadcrumb
   ===================================================================== */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--steel-300);
}
.crumbs a:hover { color: #fff; }
.crumbs a[aria-current] { color: #fff; }
.crumbs .sep { color: var(--steel); }

/* =====================================================================
   Board page
   ===================================================================== */
.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
}
.board-head h1 {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  text-transform: uppercase;
  font-size: var(--fs-h1);
  letter-spacing: -.01em;
}
.board-desc { color: var(--steel-300); margin: var(--sp-2) 0 0; max-width: 62ch; }

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  padding: 4px;
}
.tab {
  min-height: 40px;
  padding: 0 var(--sp-4);
  border: 0; border-radius: var(--r-pill);
  background: transparent;
  color: var(--steel-300);
  font-weight: 700; font-size: var(--fs-sm);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { background: var(--accent); color: #fff; }

/* Thread table */
.thread-table {
  margin-top: var(--sp-5);
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  overflow: hidden;
}
.thead {
  display: grid;
  grid-template-columns: 1fr 92px 92px 200px;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--line-dark);
  background: var(--charcoal-2);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--steel-300);
}
.thead span:nth-child(2), .thead span:nth-child(3) { text-align: center; }
.trow {
  display: grid;
  grid-template-columns: 1fr 92px 92px 200px;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line-dark);
  transition: background .14s var(--ease);
}
.trow:last-child { border-bottom: 0; }
.trow:hover { background: rgba(255,255,255,.03); }
.trow__main { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.trow__title { font-weight: 600; font-size: var(--fs-title); color: #fff; line-height: 1.3; }
.trow:hover .trow__title { color: var(--accent); }
.trow__sub { font-size: var(--fs-sm); color: var(--steel-300); margin-top: 2px; }
.pin {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent);
  margin-right: var(--sp-2);
}
.tag {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--steel-300);
  border: 1px solid var(--steel-700);
  border-radius: var(--r-pill);
  padding: 1px 9px;
  margin-right: var(--sp-2);
}
.trow__num { text-align: center; font-weight: 700; color: #fff; }
.trow__num span { display: block; font-size: var(--fs-xs); color: var(--steel-300); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.trow__last { font-size: var(--fs-sm); color: var(--steel-300); }
.trow__last b { color: #cdd6e0; font-weight: 600; }

/* Pagination */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}
.pager a, .pager span {
  min-width: 42px; min-height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 var(--sp-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--line-dark);
  background: var(--charcoal);
  color: var(--steel-300);
  font-weight: 700;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.pager a:hover { color: #fff; border-color: var(--accent); }
.pager [aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager .dots { border: 0; background: transparent; }

/* =====================================================================
   Thread page
   ===================================================================== */
.thread-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--col-side);
  gap: var(--col-gap);
  align-items: start;
  margin-top: var(--sp-5);
}
.thread-title {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  text-transform: uppercase;
  font-size: var(--fs-h1);
  letter-spacing: -.01em;
  margin-bottom: var(--sp-2);
}
.thread-sub { color: var(--steel-300); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.thread-sub b { color: #cdd6e0; }

.posts { display: flex; flex-direction: column; gap: var(--sp-4); }
.post {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--sp-4);
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.post__aside { text-align: center; }
.post__author { font-weight: 700; font-size: var(--fs-sm); color: #fff; margin-top: var(--sp-2); line-height: 1.2; }
.role-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent-050);
  color: var(--accent);
  border: 1px solid rgba(232,69,31,.35);
}
.role-badge--steel { background: rgba(148,163,184,.14); color: var(--steel-300); border-color: var(--steel-700); }
.post__body { min-width: 0; }
.post__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); flex-wrap: wrap;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.post__no { font-weight: 700; color: var(--steel-300); font-size: var(--fs-sm); }
.post__no b { color: var(--accent); }
.post__time { font-size: var(--fs-xs); color: var(--steel-300); }
.post__text p { margin: 0 0 var(--sp-3); color: #dbe2ea; }
.post__text p:last-child { margin-bottom: 0; }
.post__actions {
  display: flex; gap: var(--sp-2); margin-top: var(--sp-4);
  flex-wrap: wrap;
}
.act {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 var(--sp-3);
  border: 1px solid var(--steel-700);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--steel-300);
  font-weight: 600; font-size: var(--fs-sm);
  transition: color .14s var(--ease), border-color .14s var(--ease), background .14s var(--ease);
}
.act:hover { color: #fff; border-color: var(--accent); }
.act[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-050); }
.act svg { flex: none; }

/* Composer */
.composer {
  margin-top: var(--sp-5);
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.composer h2 {
  font-family: var(--font-display);
  font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: 1.4rem;
  margin-bottom: var(--sp-3);
}
.composer textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: var(--sp-4);
  border-radius: var(--r-sm);
  border: 1px solid var(--steel-700);
  background: var(--studio-black);
  color: #fff; font: inherit;
}
.composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-050); }
.composer__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-3); flex-wrap: wrap; }
.composer__hint { font-size: var(--fs-xs); color: var(--steel-300); }

/* Thread rail */
.rail {
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
}
.rail h2 {
  font-family: var(--font-display);
  font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: 1.25rem;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line-dark);
}
.rail-stat { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-2) 0; }
.rail-stat .k { color: var(--steel-300); font-size: var(--fs-sm); }
.rail-stat .v { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.rail-stat .v.accent { color: var(--accent); }
.participants { display: flex; margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line-dark); }
.participants .avatar { margin-left: -10px; border: 2px solid var(--charcoal); }
.participants .avatar:first-child { margin-left: 0; }
.participants .more {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; margin-left: -10px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: var(--fs-xs);
  border: 2px solid var(--charcoal);
}
.rail__cta { margin-top: var(--sp-5); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .lower { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar > * { flex: 1 1 300px; }
  .thread-layout { grid-template-columns: 1fr; }
  .rail { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .thead, .trow { grid-template-columns: 1fr 72px 150px; }
  .thead span:nth-child(3), .trow__num--views { display: none; }
}

@media (max-width: 720px) {
  .nav-links, .signin { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: var(--nav-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--line-dark);
    padding: var(--sp-3);
  }
  .site-header.open .nav-links .nav-link { min-height: 48px; }
  .site-header.open .signin { display: block; position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 148px); padding: var(--sp-3); }
  .site-header.open .signin .btn { width: 100%; }
  .site-header.open .signin-panel { position: static; width: auto; margin-top: var(--sp-3); }

  .cat-grid { grid-template-columns: 1fr; }
  .sidebar { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }

  .ticker__label { padding-inline: var(--sp-3); font-size: var(--fs-xs); }
  .ticker__label .txt { display: none; }

  .thead { display: none; }
  .trow { grid-template-columns: 1fr; gap: var(--sp-2); }
  .trow__num, .trow__last { text-align: left; }
  .trow__num { display: inline-flex; gap: var(--sp-2); align-items: baseline; }
  .trow__num span { display: inline; }
  .trow__num--views { display: none; }

  .post { grid-template-columns: 1fr; }
  .post__aside { display: flex; align-items: center; gap: var(--sp-3); text-align: left; }
  .post__author { margin-top: 0; }

  .disc { grid-template-columns: 40px 1fr; }
  .disc__stats { grid-column: 2; text-align: left; margin-top: 2px; }
  .disc__replies { font-size: var(--fs-sm); }
  .disc__time { display: inline; margin-left: var(--sp-3); }
}

@media (max-width: 400px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero__search input { padding-left: 3rem; }
}

/* =====================================================================
   AD / SPONSOR SYSTEM  (clearly labeled, in-theme, never broken)
   ===================================================================== */
.ad-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel-300);
}
.ad-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

/* Placeholder sponsor logo box — solid + intentional, not "broken" */
.sponsor-logo {
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, #222b38, var(--charcoal-2));
  border: 1px solid var(--steel-700);
  border-radius: var(--r-sm);
  color: var(--steel-300);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
  text-align: center;
  flex: none;
}
.sponsor-logo small {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--steel);
  margin-top: 3px;
}

.ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-sm);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--fs-sm);
  background: transparent;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.ad-cta:hover { background: var(--accent); color: #fff; }

/* Full-width slim sponsor band (index) */
.sponsor-band {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: var(--sp-4) var(--sp-5);
  background:
    radial-gradient(120% 180% at 100% 50%, rgba(232,69,31,.10), transparent 60%),
    var(--charcoal);
  border: 1px solid var(--steel-700);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
}
.sponsor-band .sponsor-logo { width: 120px; height: 56px; font-size: 1.15rem; }
.sponsor-band__label { grid-column: 1; }
.sponsor-band__copy { min-width: 0; }
.sponsor-band__copy h3 {
  font-family: var(--font-display);
  font-weight: 800; font-style: italic;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: .01em;
  color: #fff;
  line-height: 1;
}
.sponsor-band__copy p { margin: 4px 0 0; color: var(--steel-300); font-size: var(--fs-sm); }

/* Leaderboard banner (board) */
.ad-leaderboard {
  margin-top: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  background:
    repeating-linear-gradient(90deg, rgba(148,163,184,.05) 0 2px, transparent 2px 14px),
    var(--charcoal);
  border: 1px solid var(--steel-700);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
}
.ad-leaderboard .sponsor-logo { width: 140px; height: 60px; font-size: 1.25rem; }
.ad-leaderboard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ad-leaderboard__body h3 {
  font-family: var(--font-display);
  font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: 1.4rem; color: #fff; line-height: 1;
}
.ad-leaderboard__body p { margin: 0; color: var(--steel-300); font-size: var(--fs-sm); }
.ad-leaderboard .ad-cta { margin-left: auto; flex: none; }

/* Sidebar sponsored card (board + thread rails) */
.ad-card {
  background: var(--charcoal);
  border: 1px solid var(--steel-700);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.ad-card .sponsor-logo { width: 100%; height: 108px; font-size: 1.6rem; margin: var(--sp-3) 0; }
.ad-card h3 {
  font-family: var(--font-display);
  font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: 1.2rem; color: #fff; line-height: 1.05;
  margin-top: var(--sp-2);
}
.ad-card p { margin: var(--sp-2) 0 var(--sp-4); color: var(--steel-300); font-size: var(--fs-sm); }
.ad-card .ad-cta { width: 100%; justify-content: center; }

/* In-thread advertisement band (thread, between posts) */
.ad-inline {
  display: flex;
  align-items: center;
  gap: var(--sp-4) var(--sp-5);
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(90% 160% at 50% 0%, rgba(232,69,31,.08), transparent 65%),
    var(--charcoal-2);
  border: 1px dashed var(--steel-700);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.ad-inline .sponsor-logo { width: 130px; height: 54px; font-size: 1.2rem; }
.ad-inline__body { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.ad-inline__body h3 {
  font-family: var(--font-display);
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 1.3rem; color: #fff; line-height: 1;
}
.ad-inline__body p { margin: 0; color: var(--steel-300); font-size: var(--fs-sm); }

/* =====================================================================
   COMMUNITY FEATURES — vote, reactions, solved, follow
   ===================================================================== */

/* Vote control (thread posts) */
.vote {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--steel-700);
  border-radius: var(--r-pill);
  padding: 2px;
  background: var(--studio-black);
}
.vote__btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--steel-300);
  transition: color .14s var(--ease), background .14s var(--ease);
}
.vote__btn:hover { color: #fff; background: rgba(255,255,255,.06); }
.vote__btn[aria-pressed="true"][data-dir="up"] { color: var(--accent); background: var(--accent-050); }
.vote__btn[aria-pressed="true"][data-dir="down"] { color: #6fb3c9; background: rgba(111,179,201,.12); }
.vote__score {
  min-width: 34px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}
.vote__score.is-up { color: var(--accent); }
.vote__score.is-down { color: #6fb3c9; }

/* Reactions row */
.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--steel-700);
  background: transparent;
  color: var(--steel-300);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: border-color .14s var(--ease), color .14s var(--ease), background .14s var(--ease);
}
.reaction .emoji { font-size: 15px; line-height: 1; filter: saturate(1.1); }
.reaction .count { font-variant-numeric: tabular-nums; }
.reaction:hover { border-color: var(--accent); color: #fff; }
.reaction[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-050);
  color: #fff;
}

/* Follow button */
.follow.act[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.follow.act[aria-pressed="true"] .follow__on { display: inline; }
.follow.act[aria-pressed="true"] .follow__off { display: none; }
.follow__on { display: none; }

/* Solved badges + accepted answer */
.solved-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6ee7a8;
  background: rgba(52,199,123,.14);
  border: 1px solid rgba(52,199,123,.4);
  border-radius: var(--r-pill);
  padding: 3px 10px;
}
.solved-badge svg { color: #6ee7a8; }
.thread-title .solved-badge { font-size: 12px; margin-left: var(--sp-3); }

.tag--solved {
  color: #6ee7a8;
  border-color: rgba(52,199,123,.5);
}

/* Accepted-answer post highlight */
.post--accepted {
  border-color: rgba(52,199,123,.5);
  box-shadow: 0 0 0 1px rgba(52,199,123,.25), 0 12px 30px rgba(0,0,0,.35);
}
.accepted-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  background: rgba(52,199,123,.12);
  border: 1px solid rgba(52,199,123,.3);
  color: #6ee7a8;
  font-weight: 700;
  font-size: var(--fs-sm);
}
.accepted-banner svg { color: #6ee7a8; flex: none; }

/* Board row vote score pill */
.vote-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: var(--fs-xs);
  color: var(--accent);
  border: 1px solid var(--steel-700);
  border-radius: var(--r-pill);
  padding: 1px 8px;
  margin-right: var(--sp-2);
  vertical-align: middle;
}
.vote-mini svg { color: var(--accent); }

/* Board two-column layout with rail */
.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--col-side);
  gap: var(--col-gap);
  align-items: start;
}
.board-rail { display: flex; flex-direction: column; gap: var(--col-gap); }
.board-layout .thread-table { margin-top: 0; }

/* =====================================================================
   Responsive additions for ads + community
   ===================================================================== */
@media (max-width: 1024px) {
  .board-layout { grid-template-columns: 1fr; }
  .board-rail { flex-direction: row; flex-wrap: wrap; }
  .board-rail > * { flex: 1 1 280px; }
}
@media (max-width: 720px) {
  .sponsor-band {
    grid-template-columns: auto 1fr;
    row-gap: var(--sp-3);
  }
  .sponsor-band__label { grid-column: 1 / -1; }
  .sponsor-band .sponsor-logo { grid-row: 2; }
  .sponsor-band .ad-cta { grid-column: 1 / -1; justify-content: center; }
  .ad-leaderboard { flex-wrap: wrap; justify-content: center; text-align: center; }
  .ad-leaderboard .sponsor-logo { width: 100%; }
  .ad-leaderboard .ad-cta { margin-left: 0; width: 100%; justify-content: center; }
  .board-rail { flex-direction: column; }
  .post__actions .vote { order: -1; }
}

/* =====================================================================
   HOME FRONT-PAGE — quick links, feed, status badges, sidebar widgets
   ===================================================================== */

/* Quick links row */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
}
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-sm);
  color: var(--steel-300);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: color .14s var(--ease), background .14s var(--ease);
}
.quick-link svg { color: var(--accent); }
.quick-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.quick-links__sep { color: var(--steel-700); user-select: none; }

/* Two-column home lower (stacks at 900) */
.home-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--col-side);
  gap: var(--col-gap);
  align-items: start;
}
.home-sidebar { display: flex; flex-direction: column; gap: var(--col-gap); }

/* Feed panel */
.feed-panel .panel__head { flex-wrap: wrap; gap: var(--sp-3); }
.feed-tabs { flex-wrap: wrap; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: var(--sp-3) var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line-dark);
  transition: background .14s var(--ease);
}
.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: rgba(255,255,255,.03); }
.feed-row__body { min-width: 0; }
.feed-row__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: 5px;
}
.feed-row__title {
  display: block;
  font-weight: 600;
  font-size: var(--fs-title);
  color: #fff;
  line-height: 1.3;
}
.feed-row:hover .feed-row__title { color: var(--accent); }
.feed-row__excerpt {
  margin: 3px 0 0;
  color: var(--steel-300);
  font-size: var(--fs-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-row__meta {
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: var(--steel-300);
}
.feed-row__meta b { color: #cdd6e0; font-weight: 600; }
.feed-row__stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  white-space: nowrap;
  text-align: right;
}
.feed-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #cdd6e0;
}
.feed-stat svg { color: var(--steel-300); }
.feed-stat--muted { color: var(--steel-300); font-weight: 600; }

/* Tags used in feed */
.feed-row__top .tag { margin-right: 0; }

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  white-space: nowrap;
}
.status--solved { color: #6ee7a8; background: rgba(52,199,123,.14); border-color: rgba(52,199,123,.4); }
.status--popular { color: var(--accent); background: var(--accent-050); border-color: rgba(232,69,31,.4); }
.status--unanswered { color: #d8b46a; background: rgba(216,180,106,.12); border-color: rgba(216,180,106,.35); }
.status--active { color: var(--steel-300); background: rgba(148,163,184,.10); border-color: var(--steel-700); }
.status--active::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(232,69,31,.6);
  animation: pulse-accent 1.8s infinite;
}
.status svg { flex: none; }

/* In-feed sponsored row */
.feed-row--ad {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background:
    radial-gradient(90% 180% at 0% 50%, rgba(232,69,31,.08), transparent 60%),
    var(--charcoal-2);
}
.feed-row--ad:hover { background:
    radial-gradient(90% 180% at 0% 50%, rgba(232,69,31,.10), transparent 60%),
    var(--charcoal-2); }
.feed-row--ad .sponsor-logo { width: 96px; height: 46px; font-size: 1rem; }
.feed-row--ad__body { min-width: 0; }
.feed-row--ad__body h3 {
  font-family: var(--font-display);
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 1.15rem; color: #fff; line-height: 1.05;
}
.feed-row--ad__body p { margin: 2px 0 0; color: var(--steel-300); font-size: var(--fs-sm); }
.feed-row--ad .ad-cta { flex: none; }

/* Hidden by tab filter */
.feed-row.is-hidden { display: none !important; }

/* Popular discussions widget */
.pop-list { list-style: none; margin: 0; padding: 0; }
.pop {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--line-dark);
  transition: background .14s var(--ease);
}
.pop:last-of-type { border-bottom: 0; }
.pop:hover { background: rgba(255,255,255,.03); }
.pop__rank {
  font-family: var(--font-display);
  font-weight: 800; font-style: italic;
  font-size: 1.1rem; color: var(--accent);
  min-width: 18px;
}
.pop__title { font-weight: 600; font-size: var(--fs-sm); color: #fff; line-height: 1.3; }
.pop:hover .pop__title { color: var(--accent); }
.pop__views { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--steel-300); }

/* Top members widget */
.member-list { list-style: none; margin: 0; padding: 0; }
.member {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--line-dark);
}
.member:last-child { border-bottom: 0; }
.member__name { font-weight: 700; font-size: var(--fs-sm); color: #fff; }
.member__role { display: block; font-size: var(--fs-xs); color: var(--steel-300); font-weight: 500; }
.member__pts {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.1rem; color: var(--accent);
  text-align: right; line-height: 1;
}
.member__pts span { display: block; font-family: var(--font-body); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-300); }

/* Join the community CTA card */
.join-card {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(232,69,31,.16), transparent 55%),
    var(--charcoal);
  border: 1px solid var(--steel-700);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  text-align: center;
}
.join-card h2 {
  font-family: var(--font-display);
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 1.4rem; color: #fff; line-height: 1.05;
}
.join-card p { margin: var(--sp-2) 0 var(--sp-4); color: var(--steel-300); font-size: var(--fs-sm); }
.join-card .btn { width: 100%; }

/* Home responsive */
@media (max-width: 900px) {
  .home-lower { grid-template-columns: 1fr; }
  .home-sidebar { flex-direction: row; flex-wrap: wrap; }
  .home-sidebar > * { flex: 1 1 280px; }
}
@media (max-width: 620px) {
  .home-sidebar { flex-direction: column; }
  .feed-row {
    grid-template-columns: 42px 1fr;
  }
  .feed-row__stats {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-4);
    text-align: left;
  }
  .feed-row--ad { grid-template-columns: auto 1fr; }
  .feed-row--ad .ad-cta { grid-column: 1 / -1; justify-content: center; }
}

/* =====================================================================
   SPACING / SCALE PASS — match the real forum's generous vertical rhythm
   (overrides earlier component paddings by source order)
   ===================================================================== */
/* Panel chrome */
.panel__head { padding: var(--sp-5) var(--sp-6); }
.panel__foot { padding: var(--sp-5) var(--sp-6); }

/* List rows — more breathing room */
.disc      { padding: 22px 28px; }
.feed-row  { padding: 22px 28px; }
.trow      { padding: 20px 28px; }
.thead     { padding: 14px 28px; }
.take      { padding: 18px 28px; }
.stat      { padding: 20px 28px; }
.pop       { padding: 16px 28px; }
.member    { padding: 16px 28px; }

/* Cards / blocks */
.post       { padding: 32px; gap: 28px; }
.composer   { padding: 32px; }
.rail       { padding: 28px; }
.ad-card    { padding: 28px; }
.join-card  { padding: 28px; }
.ad-inline  { padding: 32px; }
.ad-leaderboard { padding: 24px 32px; }
.quick-links { padding: 14px 22px; }

/* A touch more air between stacked sidebar cards is handled by --col-gap.
   Give the feed panel head a bit more vertical presence. */
.feed-panel .panel__head,
.panel__head { min-height: 64px; }

@media (max-width: 900px) {
  .post { padding: 26px; }
}
@media (max-width: 620px) {
  :root { --wrap-pad: 18px; }
  .disc, .feed-row, .trow { padding: 16px 18px; }
  .thead { padding: 12px 18px; }
  .panel__head, .panel__foot { padding: var(--sp-4) 18px; }
  .stat, .pop, .member { padding: 14px 18px; }
  .post, .composer, .rail, .ad-card, .join-card, .ad-inline { padding: 20px; }
  .ad-leaderboard { padding: 18px 20px; }
  .take { padding: 14px 18px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
