/* src/assets/css/style.css */

:root {
  /* --- COLORS --- */
  --color-bg: #101010;
  --color-bg-elevated: #141414;

  --color-text-main: #F0F0F0;
  --color-text-muted: #B5B5B5;

  --color-border-subtle: #333333;
  --color-border-soft: rgba(255, 255, 255, 0.06);

  --color-accent-yellow: #FFEA00;

  /* --- FONTS & TYPOGRAPHY SCALE --- */
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* New Standardized Sizes */
  --text-hero: 3rem;       /* Homepage Hero */
  --text-h1: 2.5rem;       /* Page Titles */
  --text-h2: 1.75rem;      /* Section Headers */
  --text-h3: 1.25rem;      /* Sub-headers */
  --text-body: 1.125rem;   /* 18px Base Reading Size */

  /* --- SPACING & LAYOUT --- */
  --max-width-content: 1120px;
  --max-width-reading: 760px;

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
}

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

body {
  margin: 0;
  color: var(--color-text-main);
  font-family: var(--font-body);
  /* Forensic Dark Mode Background */
  background: radial-gradient(circle at top, #181818 0, #080808 60%) fixed;
  -webkit-font-smoothing: antialiased;
  font-size: var(--text-body);
  line-height: 1.6;
}

a {
  color: var(--color-accent-yellow);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

/* --------------------------------------------------
   LAYOUT HELPERS
-------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.layout-main {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  min-height: 80vh;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  max-width: var(--max-width-content);
  margin: 0 auto;
  position: relative; /* needed for the mobile dropdown */
}

.site-header__logo-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-main);
  font-weight: 700;
}

/* NAV */
.site-nav {
  display: flex;
  gap: var(--space-4);
}

.site-nav__link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.site-nav__link:hover {
  color: var(--color-text-main);
}

.site-nav__link--active {
  color: var(--color-accent-yellow);
  font-weight: 600;
}

/* Mobile toggle button (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border-subtle);
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 10px;
}

/* Mobile dropdown nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none; /* closed by default */
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(8, 8, 8, 0.98);
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    font-size: 0.85rem;
    padding: 0.4rem 0;
  }
}


/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.hero {
  padding: var(--space-8) 0 var(--space-7);
}

.hero__title {
  font-family: var(--font-sans);
  font-size: var(--text-hero);
  margin: 0 0 var(--space-3);
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}

.hero__subtitle {
  max-width: 640px;
  margin: 0 0 var(--space-5);
  color: var(--color-text-muted);
  line-height: 1.5;
  font-size: 1.15rem;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  margin-right: var(--space-3);
  font-weight: 600;
}

.btn-primary {
  background: var(--color-accent-yellow);
  color: #000;
}

.btn-primary:hover {
  background: #fff;
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--color-text-main);
  border-color: var(--color-text-muted);
}

.btn-outline:hover {
  border-color: var(--color-text-main);
  background: rgba(255,255,255,0.05);
}

.btn-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* --------------------------------------------------
   SECTIONS
-------------------------------------------------- */
.section {
  padding: var(--space-7) 0;
}

.section--tight {
  padding: var(--space-4) 0;
}

.section h1 {
  font-family: var(--font-sans);
  font-size: var(--text-h1);
  margin: 0 0 var(--space-4);
}

.section h2 {
  font-family: var(--font-sans);
  font-size: var(--text-h2);
  margin-bottom: var(--space-3);
  color: #fff;
}

.section__header {
  margin-bottom: var(--space-6);
  max-width: 700px;
}

.section__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-yellow);
  margin-bottom: var(--space-3);
  display: block;
}

.section__subtitle,
.section__intro {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --------------------------------------------------
   TOPIC HUB HELPERS (replaces inline styles)
-------------------------------------------------- */
.section__links--spaced {
  margin-top: 1rem;
}

.section--divider {
  border-top: 1px solid var(--color-border-subtle);
  margin-top: 3rem;
  padding-top: 2rem;
}

.grid-3--spaced {
  margin-top: 1.5rem;
}

/* --------------------------------------------------
   ARCHIVE LISTS (Articles/Episodes Indices)
-------------------------------------------------- */

/* Standard Vertical List (Used on Articles Index) */
.articles-index {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 800px;
}

.articles-index__item {
  border-bottom: 1px solid var(--color-border-soft);
  padding-bottom: var(--space-5);
}

.articles-index__item:last-child {
  border-bottom: none;
}

.articles-index__meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-yellow);
  margin-bottom: var(--space-2);
}

.articles-index__title {
  font-size: 1.5rem;
  margin: 0 0 var(--space-3);
}

.articles-index__title a {
  color: var(--color-text-main);
}

.articles-index__title a:hover {
  color: var(--color-accent-yellow);
}

.articles-index__summary {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------
   EPISODES INDEX (LOCKED): Grid + Vertical Cards
-------------------------------------------------- */
.episodes-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-4);
}

@media (max-width: 980px) {
  .episodes-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .episodes-list {
    grid-template-columns: 1fr;
  }
}

.episode-card {
  display: block; /* stable for <a> or <div> */
  background: var(--color-bg-elevated);
  padding: var(--space-4);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.episode-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.episode-card--disabled {
  opacity: 0.65;
  border-style: dashed;
}

.episode-card__image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.episode-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.episode-card__thumb--empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.episode-card__content {
  padding-top: var(--space-4);
}

.episode-card__meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-yellow);
  margin: 0 0 var(--space-2);
  font-family: var(--font-sans);
  font-weight: 800;
}

.episode-card__title {
  font-size: 1.05rem;
  margin: 0 0 var(--space-2);
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
}

.episode-card__summary {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.55;

  /* clamp to stabilize grid */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-card__actions {
  margin-top: var(--space-3);
  font-size: 0.9rem;
}

/* --------------------------------------------------
   TOPIC HUB GRID (Browse by Arc) — FIXED TO TEMPLATE CLASSES
   Your templates use: .topic-grid + .topic-card__kicker/title/meta/desc
-------------------------------------------------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-4);
}

@media (max-width: 980px) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }
}

.topic-card {
  display: block;
  background: var(--color-bg-elevated);
  padding: var(--space-5);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.topic-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.topic-card__kicker {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-yellow);
  margin: 0 0 var(--space-2);
  font-weight: 800;
}

.topic-card__title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  margin: 0 0 var(--space-3);
  line-height: 1.2;
  color: #fff;
}

.topic-card__meta {
  margin: 0 0 var(--space-3);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.topic-card__desc {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;

  /* keep card heights stable */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------
   FEATURED EPISODES (Homepage)
-------------------------------------------------- */
.section--featured {
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

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

.featured-card {
  background: var(--color-bg-elevated);
  padding: var(--space-5);
  border-radius: 12px;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);

  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.featured-card__label {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--color-accent-yellow);
  color: #000;
  margin-bottom: var(--space-2);
  font-weight: 700;
  align-self: flex-start;
}

.featured-card__label--bronze {
  background: #c6974d;
  color: #000;
}

.featured-card__title {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.3;
}

.featured-card__title a {
  color: var(--color-text-main);
}

.featured-card__title a:hover {
  color: var(--color-accent-yellow);
}

/* UPDATED: works for both iframe embeds AND img thumbnails */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border-soft);
}

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

.video-frame img {
  object-fit: cover;
  display: block;
}

.video-frame > iframe {
  display: block;
}

.featured-card__text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Push CTA button area to bottom when cards have uneven text length */
.featured-card .btn,
.featured-card a.btn {
  margin-top: auto;
}

/* --------------------------------------------------
   ARTICLES GRID (Homepage / Articles Index)
-------------------------------------------------- */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) {
  .articles-grid,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .articles-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }
}

.article-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  padding: var(--space-5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.article-card__arc {
  font-size: 0.7rem;
  color: var(--color-accent-yellow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 var(--space-3);
  font-family: var(--font-sans);
  font-weight: 800;
}

.article-card__title {
  font-size: 1.1rem;
  margin: 0 0 var(--space-3);
  line-height: 1.4;
}

.article-card__title a {
  color: var(--color-text-main);
}

.article-card__meta {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.article-card__excerpt {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 var(--space-4);
  line-height: 1.55;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__link {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ======================================================
   ARTICLE PAGE LAYOUT (Single Post) - REFINED
   ====================================================== */
.article {
  max-width: var(--max-width-reading);
  margin: 0 auto;
  font-size: var(--text-body);
}

.article__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
}

/* Headings within Article Content */
.article h1,
.article h2,
.article h3,
.article h4 {
  font-family: var(--font-sans);
  color: #fff;
  line-height: 1.2;
}

.article h1 {
  font-size: var(--text-h1);
  color: var(--color-accent-yellow);
  margin: 0 0 var(--space-5);
  letter-spacing: -0.02em;
}

.article h2 {
  font-size: var(--text-h2);
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border-subtle);
}

.article h3 {
  font-size: var(--text-h3);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.article h4 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

/* Body Text Rhythm */
.article p {
  line-height: 1.75;
  color: var(--color-text-main);
  margin: 0 0 var(--space-5);
}

/* Lists */
.article ul,
.article ol {
  margin: 0 0 var(--space-5) var(--space-5);
  padding: 0;
  color: var(--color-text-muted);
}

.article li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

/* Horizontal Rules */
.article hr {
  margin: var(--space-6) 0;
  border: 0;
  border-top: 1px solid var(--color-border-soft);
  opacity: 0.55;
}

/* Evidence Blockquotes */
.article blockquote {
  border-left: 3px solid var(--color-accent-yellow);
  background: linear-gradient(90deg, rgba(255,234,0,0.05) 0%, rgba(0,0,0,0) 100%);
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  font-style: italic;
  color: var(--color-text-main);
}

.article blockquote p {
  margin: 0;
}

/* Inline Code */
.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* Prevent last element looking cramped */
.article > *:last-child {
  margin-bottom: 0;
}

/* =========================================
   UI: THE RESEARCH ARCHIVE (Forensic Table)
   ========================================= */

.forensic-table {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-top: 3px solid #FFEA00;
  border-radius: 6px;
  margin: 3rem 0;
  font-family: var(--font-body);
  overflow: hidden;
}

.forensic-table__header {
  background: #181818;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forensic-table__title {
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.forensic-table__subtitle {
  color: #666;
  font-size: 0.75rem;
  font-family: monospace;
  margin: 0;
}

.forensic-table__table {
  padding: 0;
}

.forensic-table__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid #1f1f1f;
  padding: 1rem 1.5rem;
  transition: background 0.2s ease;
}

.forensic-table__row:last-child {
  border-bottom: none;
}

.forensic-table__row:hover {
  background: #161616;
}

.forensic-table__cell--category {
  color: #888;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding-top: 0.2rem;
}

.forensic-table__cell {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.forensic-table__cell[style*="italic"] {
  font-style: normal !important;
  color: #ccc !important;
}

.forensic-cta {
  background: #181818;
  padding: 1.25rem;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: flex-end;
}

/* Mobile Adjustments for Table */
@media (max-width: 600px) {
  .forensic-table__row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .forensic-table__cell--category {
    color: var(--color-accent-yellow);
  }
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--color-border-subtle);
  padding: var(--space-5) 0;
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.site-footer__meta {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* --- EPISODE LAYOUT SPECIFICS --- */

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid #333;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.episode-title {
  color: var(--color-accent-yellow);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
}

.badge-arc {
  background-color: #7A2B1A;
  color: #fff;
  border: 1px solid #000;
}

/* --- HOMEPAGE V2 (Mission Control) --- */

.highlight {
  color: var(--color-accent-yellow);
  text-decoration: underline;
  text-decoration-color: #7A2B1A;
}

/* Legacy grid helper (still fine to keep) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card-header {
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-body {
  padding: 1.5rem;
  color: #ddd;
}

.card-body h3 {
  color: #fff;
  margin-top: 0;
  font-size: 1.4rem;
}

.card-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #888;
  font-family: monospace;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

/* =========================
   EPISODES PAGE — LOCK-IN GRID OVERRIDES
   Paste at the very bottom of style.css
   ========================= */

.episodes-list.episodes-list--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 980px) {
  .episodes-list.episodes-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .episodes-list.episodes-list--grid {
    grid-template-columns: 1fr;
  }
}

/* Grid card layout: image on top, content below */
.episode-card.episode-card--grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: stretch;
}

/* Ensure thumbnails behave consistently */
.episode-card.episode-card--grid .episode-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-bg-elevated);
}

.episode-card.episode-card--grid .episode-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Make content spacing predictable */
.episode-card.episode-card--grid .episode-card__content {
  flex: 1;
  min-width: 0;
}

/* Clamp summary so long descriptions cannot blow up card height */
.episode-card.episode-card--grid .episode-card__summary {
  margin-top: var(--space-2);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Page Architecture */
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.hero-line { width: 60px; height: 4px; background: var(--color-accent-yellow); margin-bottom: 2rem; }
.section-label { font-family: var(--font-sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--color-accent-yellow); margin-bottom: 2rem; border-bottom: 1px solid #333; padding-bottom: 10px; }

/* About Specific Visuals */
.section-card { background: rgba(255,255,255,0.03); padding: 3rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); margin-bottom: 3rem; }
.manifesto-box { margin: 4rem 0; text-align: center; }
.manifesto-quote { font-size: 2rem; font-weight: 900; line-height: 1.2; color: #fff; border: none; background: none; padding: 0; margin-bottom: 1.5rem; text-transform: uppercase; }
.community-card { border-top: 1px solid var(--color-accent-yellow); padding: 3rem 0; margin-top: 4rem; }

/* Start Here Large Cards */
.arc-large-card { 
  background: linear-gradient(145deg, #1a1a1a, #111); 
  border: 1px solid #222; 
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
}
.arc-large-card__title { font-weight: 900; letter-spacing: -2px; }

/* Keep actions from wrapping weirdly */
.episode-card.episode-card--grid .episode-card__actions {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
/* --- ENFORCED MOBILE RESPONSIVENESS --- */
@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex !important;
  }
  .site-nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #080808;
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border-subtle);
  }
  .site-nav.is-open {
    display: flex !important;
  }
  .site-nav__link {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
}

/* ======================================================
   END OF STYLE.CSS
   ====================================================== */