:root {
  --bg: #0B0E14;
  --bg-elevated: #10151C;
  --bg-card: #131822;
  --border: #1e293b;
  --border-strong: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  /* >= 4.5:1 (WCAG AA) on every background token, checked by tests. */
  --text-dim: #808ea3;
  --accent-blue: #38bdf8; /* subtle electric accent */
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --accent-green: #84cc16;
  --max-w: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.45);
  /* 8px spacing scale */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
  --gutter: 24px;
  --tap: 44px;
  --measure: 65ch;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; }
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% -5%, rgba(56, 189, 248, 0.12), transparent 45%),
    radial-gradient(circle at 88% 0%, rgba(239, 68, 68, 0.09), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(132, 204, 22, 0.06), transparent 50%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Keyboard focus: always visible, never removed. */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 7px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--accent-blue);
  font-weight: 600;
}

.skip-link:focus {
  top: 8px;
}

#main:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-2);
  min-height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
}

.brand-name {
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(148, 163, 184, 0.16);
}

main {
  flex: 1;
}

/* Hero */
.hero-media {
  padding: 40px 0 36px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.65);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 32px;
  align-items: center;
}

.hero-copy {
  max-width: 520px;
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-tagline {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--text-muted);
  font-weight: 600;
}

.hero-lede {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.hero-cta.primary {
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.35);
}

.hero-cta.ghost {
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--text);
}

.hero-cta:hover {
  transform: translateY(-1px);
}

.hero-player-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-amber);
}

.hero-video-caption {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* YouTube deferred embeds */
.video-frame-wrap {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-frame-wrap.short {
  aspect-ratio: 9 / 16;
  max-height: 520px;
}

.video-frame-wrap.video,
.video-frame-wrap.hero-video-frame {
  aspect-ratio: 16 / 9;
}

.yt-poster {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  color: var(--text);
}

.yt-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: inherit;
}

.yt-play-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.82);
  border: 1px solid rgba(248, 250, 252, 0.25);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  max-width: min(90%, 420px);
  box-shadow: var(--shadow-soft);
}

.yt-deferred.is-loaded .yt-play-label {
  display: none;
}

.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

figure.hero-embed {
  margin: 0;
}

/* Sections */
.section {
  padding: 36px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-blue);
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
}

.section-sub {
  margin: -4px 0 18px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* Featured article */
.featured-article-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.featured-article-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.featured-article-visual {
  position: relative;
  min-height: 240px;
}

.featured-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 240px;
}

.featured-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.85);
  border: 1px solid var(--border-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-amber);
}

.featured-article-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.featured-article-body h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  line-height: 1.25;
}

.featured-article-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.featured-cta {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-blue);
}

/* Social hub */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.social-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  min-height: 88px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.social-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.social-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-card-name {
  font-weight: 800;
  font-size: 0.95rem;
}

.social-card-handle {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--accent-blue);
}

.social-card-label {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Video grids */
.shorts-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.video-meta {
  padding: 14px 16px;
}

.pill-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-amber);
  margin-bottom: 6px;
}

.video-meta h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.watch-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.watch-link:hover {
  text-decoration: underline;
}

/* Cards & Articles */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}

a.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.card-cat {
  color: var(--accent-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-cover {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.card-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

/* Prose pages */
.prose {
  max-width: 740px;
  padding: 36px 0 48px;
}

.prose h1 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  line-height: 1.18;
}

.prose h2 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.prose .eyebrow {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.prose p {
  margin: 0 0 16px;
  color: #cbd5e1;
}

.prose a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 20px;
  color: #cbd5e1;
}

.prose li {
  margin-bottom: 6px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none !important;
}

.back-link:hover {
  text-decoration: underline !important;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-stack .card {
  padding: 18px;
}

/* Footer, search, and pagination styles live at the end of this file. */

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .featured-article-card {
    grid-template-columns: 1fr;
  }

  .shorts-grid,
  .video-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow: visible;
  }

  .site-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }

  .featured-cover {
    max-height: 260px;
  }
}

@media (max-width: 520px) {
  .hero-media {
    padding-top: 28px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Redesign: compact hero, cards, clips, article measure */
.brand-wordmark {
  height: 28px;
  width: auto;
  max-width: 200px;
  display: block;
}

.hero-compact {
  padding: 28px 0 20px;
}

.hero-tagline {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 40ch;
}

@media (min-width: 700px) {
  .hero-tagline { max-width: 52ch; }
}

.follow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 650;
  font-size: 0.92rem;
}

.follow-btn img {
  width: 18px;
  height: 18px;
}

.follow-btn:hover {
  border-color: var(--accent-blue);
}

.featured-article-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.featured-article-card .card-cover-wrap,
.news-card .card-cover-wrap,
.article-cover-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-cover,
.article-cover {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
}

.featured-article-card .card-body,
.news-card .card-body {
  padding: 18px 20px 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 700px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .news-grid-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.news-card,
.clip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 0;
}

.news-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.news-card h3,
.clip-card h3,
.featured-article-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.deck {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.meta, .eyebrow, .pill {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 650;
}

.pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  margin: 0 0 10px;
  text-transform: none;
}

.band {
  padding: 28px 0 8px;
}

.band-head,
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.band-head h2,
.page-head h1 {
  margin: 0;
}

.section-link {
  color: var(--accent-blue);
  font-weight: 650;
}

.pill-row,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters { flex-direction: column; margin: 12px 0 8px; }

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 650;
  font-size: 0.9rem;
}

.filter-pill.is-active,
.filter-pill[aria-current="page"] {
  color: var(--bg);
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.clips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

@media (min-width: 700px) {
  .clips-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.yt-deferred { margin: 0; }

.video-frame-wrap {
  position: relative;
  background: #000;
  overflow: hidden;
}

.video-frame-wrap.is-landscape { aspect-ratio: 16 / 9; }
.video-frame-wrap.is-portrait { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }

.yt-poster {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.yt-poster img,
.yt-deferred iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.play-badge,
.poster-fallback {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(11, 14, 20, 0.86);
  color: var(--text);
  border: 1px solid var(--accent-blue);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.clip-card figcaption { padding: 12px 14px 16px; }
.watch-link { color: var(--accent-blue); font-weight: 650; }

.article-page { padding-top: 18px; }
.article-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.article-page .article-cover-wrap {
  margin: 16px auto 24px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.article-page .article-cover-wrap .article-cover {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}
.article-body {
  max-width: 68ch;
  margin: 0 auto 48px;
  padding-left: 20px;
  padding-right: 20px;
}
.article-body.prose p { max-width: 68ch; }
.prose { color: var(--text); }
.prose p { margin: 0 0 1em; }
.prose p,
.prose li { max-width: 68ch; }
.prose h2 { margin: 1.4em 0 0.6em; }
.prose a { color: var(--accent-blue); text-decoration: underline; }

.key-callout {
  background: var(--bg-card);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 1.05rem;
  font-weight: 650;
}
.key-callout p { margin: 0; }

.primary-sources { margin-top: 2.5em; }
.primary-sources ol { padding-left: 1.25em; }

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 40;
  pointer-events: none;
  background: rgba(248, 250, 252, 0.12);
}
.read-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .read-progress-bar {
    transition: none;
  }
}

.article-sources {
  margin-top: 2.5em;
  padding-top: 1em;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.article-sources-label {
  font-weight: 700;
  color: var(--text);
  margin-right: 0.35em;
}
.article-sources-label::after { content: ":"; }
.article-sources a { color: var(--accent-blue); }

.related-clip { margin: 2em 0; max-width: 420px; }

.empty { color: var(--text-muted); }

@media (max-width: 900px) {
  .featured-article-card { grid-template-columns: 1fr; }
  .brand-wordmark { max-width: 140px; }
}

@media (max-width: 393px) {
  /* Gutters stay on the --gutter scale; do not hug the viewport edge. */
}


/* ===== Editorial layout pass: 8px scale, gutters, rhythm, 1/2/3 grids ===== */

.news-card.card {
  padding: 0;
}

.masthead {
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
}

@media (min-width: 768px) {
  .masthead {
    padding-top: var(--space-7);
    padding-bottom: var(--space-6);
  }
}

.hero-tagline {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.75rem, 3.2vw + 1rem, 2.75rem);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.03em;
  max-width: 18em;
  text-wrap: pretty;
}

.follow-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: var(--tap);
  padding: 0 var(--space-2);
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 650;
  font-size: 0.9375rem;
}

.follow-btn img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.featured-band {
  padding-bottom: var(--space-6);
}

.featured-article-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transform: none;
}

@media (min-width: 768px) {
  .featured-article-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .featured-article-card {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  /* Stack featured under 900 so the copy does not get a skinny column mid-tablet */
  .featured-article-card {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .featured-article-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.featured-article-card:hover {
  transform: none;
}

.featured-article-card .card-body,
.news-card .card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

@media (min-width: 900px) {
  .featured-article-card .card-body {
    padding: var(--space-5);
    justify-content: center;
  }
}

.featured-article-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.news-card h3,
.clip-card h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.deck {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 60ch;
}

.meta,
.eyebrow {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.8125rem;
  font-weight: 650;
}

.pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 0 10px;
  margin: 0;
}

.band {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
}

.band:last-of-type {
  padding-bottom: var(--space-8);
}

.band-head,
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.band-head h2,
.page-head h1 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.band-head h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.page-head {
  padding-top: var(--space-6);
  margin-bottom: var(--space-5);
}

.page-head h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 24ch;
}

.page-head .deck {
  flex-basis: 100%;
  margin-top: var(--space-2);
  font-size: 1.0625rem;
}

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--accent-blue);
  font-weight: 650;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.news-grid,
.news-grid-index {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .news-grid,
  .news-grid-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .news-grid,
  .news-grid-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.news-grid > *,
.news-grid-index > *,
.clips-grid > * {
  min-width: 0;
}

.filters {
  flex-direction: column;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}

.pill-row,
.filters {
  display: flex;
  flex-wrap: wrap;
}

.pill-row {
  gap: var(--space-2);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 var(--space-2);
  border-radius: 999px;
  font-size: 0.9375rem;
}

.clips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: start;
}

@media (min-width: 768px) {
  .clips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .clips-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.video-frame-wrap.is-portrait {
  max-width: 100%;
}

.clip-card figcaption {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.play-badge,
.poster-fallback {
  min-height: var(--tap);
  padding: 0 var(--space-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.watch-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

.article-page {
  padding-top: var(--space-5);
  padding-bottom: var(--space-8);
}

.article-hero {
  padding-bottom: var(--space-3);
}

.article-hero h1 {
  margin: var(--space-2) 0 var(--space-2);
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 22em;
  text-wrap: pretty;
}

.article-page .article-cover-wrap {
  margin: var(--space-3) auto var(--space-5);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.article-body {
  max-width: var(--measure);
  margin-inline: auto;
  margin-bottom: var(--space-7);
  padding-inline: var(--gutter);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.article-body.prose p,
.prose p,
.prose li {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 var(--space-3);
}

.prose h2 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.key-callout {
  padding: var(--space-3);
  margin: 0 0 var(--space-4);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.article-sources {
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  line-height: 1.6;
}

.related-clip {
  margin: var(--space-6) 0;
  max-width: 420px;
}

/* Overflow safety at 360–1440 */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.card-cover,
.article-cover,
.yt-poster img,
.yt-deferred iframe {
  height: 100%;
}


/* Follow-up: one content column, 16:9 covers, branded fallback, no dead band */
.site-shell {
  width: 100%;
  min-width: 0;
}

.news-grid,
.news-grid-index {
  align-items: start;
}

.news-card .card-cover-wrap,
.news-card .cover-fallback {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  min-height: 0;
}

.news-card .deck {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.news-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

/* Stack featured until the 16:9 image is wide enough to match the text column. */
.featured-article-card {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .featured-article-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .featured-article-card .card-cover-wrap,
  .featured-article-card .cover-fallback {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    min-height: 0;
    align-self: start;
  }
  .featured-article-card .card-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }
  /* Image aspect-ratio sets the row height; text fills it without growing a dead band. */
  .featured-article-card .card-body {
    height: 0;
    min-height: 100%;
    overflow: hidden;
    justify-content: center;
    padding: var(--space-4);
  }
  .featured-article-card h2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
  .featured-article-card .deck {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
}

.cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.22), transparent 50%),
    radial-gradient(circle at 85% 90%, rgba(132, 204, 22, 0.12), transparent 45%),
    linear-gradient(160deg, #10151C 0%, #0B0E14 55%, #131822 100%);
}

.cover-fallback-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  text-align: center;
}

.cover-fallback-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.cover-fallback-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text);
}

.cover-fallback-cat {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-muted);
}


.article-cover-wrap { position: relative; }
.cover-credit {
  margin: var(--space-1) 0 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 650;
}

/* ===== Search, footer columns, pagination, lazy-load helpers ===== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1 1 14rem;
  min-width: 0;
  max-width: 22rem;
}

.site-search input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: var(--tap);
  padding: 0 var(--space-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
}

.site-search input[type="search"]::placeholder {
  color: var(--text-muted);
}

.site-search button {
  flex-shrink: 0;
  min-height: var(--tap);
  padding: 0 var(--space-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  font-size: 0.9375rem;
  cursor: pointer;
}

.site-search button:hover {
  background: rgba(148, 163, 184, 0.16);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-top: var(--space-8);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-block: var(--space-6);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.footer-brand-block {
  max-width: 28rem;
}

.footer-brand {
  margin: 0 0 var(--space-2);
  color: var(--text);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.footer-tagline {
  margin: 0 0 var(--space-2);
  color: var(--text-muted);
  line-height: 1.5;
  text-wrap: pretty;
}

.footer-sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-dim);
}

.footer-sub a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-sub a:hover {
  color: var(--text);
}

.footer-col h2 {
  margin: 0 0 var(--space-2);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-2);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
}

.footer-social img {
  width: 18px;
  height: 18px;
}

.footer-social:hover {
  background: rgba(148, 163, 184, 0.16);
}

.footer-copy {
  margin: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.875rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.pagination a,
.pagination-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 var(--space-3);
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 650;
}

.pagination-disabled {
  color: var(--text-dim);
  opacity: 0.65;
}

.pagination a:hover {
  background: rgba(148, 163, 184, 0.16);
}

.pagination-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.search-notice {
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}

@media (min-width: 700px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    padding-block: var(--space-7);
    gap: var(--space-6);
  }

  .footer-top {
    grid-template-columns: minmax(16rem, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
    align-items: start;
  }

  .footer-brand-block {
    grid-column: auto;
  }
}


.page-head.search-head {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.search-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Article reading layout v1.5: wider responsive column, restored list markers, spacing rhythm */
.article-page {
  --article-measure: 72ch;
  --article-pad: clamp(16px, 4vw, 48px);
}
.article-page .article-hero,
.article-page .article-body {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--article-measure) + 2 * var(--article-pad));
  margin-inline: auto;
  padding-inline: var(--article-pad);
}
.article-page .article-hero h1 { max-width: none; }
.article-body {
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  line-height: 1.75;
  padding-top: clamp(8px, 2vw, 24px);
}
.article-body.prose p,
.article-body.prose li,
.article-body.prose h2,
.article-body.prose h3 { max-width: none; }
.article-body.prose p { margin: 0 0 1.15em; }
.article-body.prose h2 {
  margin: 2em 0 0.65em;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.25;
}
.article-body.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
  line-height: 1.3;
}
.article-body.prose ul { list-style: disc; }
.article-body.prose ol { list-style: decimal; }
.article-body.prose ul,
.article-body.prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}
.article-body.prose li { margin: 0 0 0.5em; padding-left: 0.25em; }
.article-body.prose li::marker { color: var(--accent-blue); }
.article-body.prose li > ul,
.article-body.prose li > ol { margin: 0.5em 0 0; }
.article-body.prose img,
.article-body.prose video,
.article-body.prose iframe,
.article-body.prose figure {
  max-width: 100%;
  height: auto;
}
.article-body.prose iframe { aspect-ratio: 16 / 9; width: 100%; }
.article-body.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.article-body.prose pre { max-width: 100%; overflow-x: auto; }
.article-body.prose a { overflow-wrap: anywhere; }
.article-body .key-callout { margin-bottom: 1.75em; }

/* v1.6: end-of-article reading flow */
.article-page { padding-bottom: var(--space-3); }
.article-body { margin-bottom: var(--space-4); }
main:has(.article-page) ~ .site-footer { margin-top: var(--space-5); }
.article-end-wrap {
  box-sizing: border-box;
  max-width: calc(var(--max-w, 1200px));
}
.article-end { display: grid; gap: var(--space-5); border-top: 1px solid var(--border); padding-top: var(--space-4); }
.end-label {
  margin: 0 0 var(--space-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.up-next-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
}
.up-next-card:hover { background: rgba(56, 189, 248, 0.08); }
.up-next-card .card-cover-wrap { margin: 0; }
.up-next-body h3 { margin: 0 0 var(--space-1); font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); line-height: 1.25; text-wrap: balance; }
.up-next-body .deck { margin: 0 0 var(--space-1); color: var(--text-muted); }
.up-next-cta { display: inline-block; margin-top: var(--space-1); font-weight: 700; color: var(--accent-blue); }
@media (min-width: 720px) {
  .up-next-card { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--space-3); padding: var(--space-3); }
}
.more-from-grid { margin: 0; }
.back-all {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: var(--tap);
  padding: 0 var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
}
.back-all:hover { background: rgba(148, 163, 184, 0.16); }

/* v1.6: compact single-row header at 900px and below */
.nav-search { display: none !important; }
@media (max-width: 900px) {
  .site-header .header-inner {
    flex-wrap: nowrap;
    height: 56px;
    min-height: 56px;
    padding-block: 0;
    gap: var(--space-1);
  }
  .site-header .brand-link { flex: 0 0 auto; }
  .site-header .brand-name {
    font-size: 0.9375rem;
    white-space: nowrap;
  }
  .site-header .nav {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 20px), transparent 100%);
    padding-inline: 8px 16px;
  }
  .site-header .nav::-webkit-scrollbar { display: none; }
  .site-header .nav a { flex: 0 0 auto; white-space: nowrap; padding-inline: 12px; }
  .site-header .nav .nav-search { display: inline-flex !important; }
  .site-header .site-search { display: none; }
  .site-header.is-search .header-inner { flex-wrap: wrap; height: auto; padding-block: 0 var(--space-1); }
  .site-header.is-search .brand-link { min-height: 56px; }
  .site-header.is-search .nav { min-height: 56px; }
  .site-header.is-search .site-search { display: flex; order: 3; flex: 1 1 100%; max-width: none; }
}
@media (max-width: 479px) {
  .site-header .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
