/* ============================================================
   The Hole Shebang — Podcast Site
   Blueberry Therapy / Hole Shebang sub-brand
   ============================================================ */

:root {
  /* Core palette */
  --navy: #2C386C;
  --navy-deep: #1B365D;
  --navy-ink: #141E3D;
  --teal: #62A88E;
  --fresh-teal: #4A90A4;

  /* Shebang accents — pink family (from Year 2 cover art) */
  --coral: #FF6B9D;
  --berry: #D94E82;

  /* Neutrals */
  --cream: #F8F4EC;
  --cream-deep: #F3EDE0;
  --dove: #E8E4DC;
  --dove-deep: #D9D4C8;
  --charcoal: #2E2E2E;
  --charcoal-soft: #4A4A4A;
  --white: #FFFFFF;

  /* Accent intensity (tweakable) */
  --accent-intensity: 1;
  --accent: #FF6B9D;
  --accent-deep: #D94E82;

  /* Type scale (tweakable) */
  --type-scale: 1;
  --fs-micro: calc(11px * var(--type-scale));
  --fs-caption: calc(13px * var(--type-scale));
  --fs-body: calc(16px * var(--type-scale));
  --fs-body-lg: calc(18px * var(--type-scale));
  --fs-lead: calc(20px * var(--type-scale));
  --fs-h3: calc(22px * var(--type-scale));
  --fs-h2: calc(32px * var(--type-scale));
  --fs-h1: calc(48px * var(--type-scale));
  --fs-display: calc(88px * var(--type-scale));
  --fs-mega: calc(160px * var(--type-scale));

  /* Spacing — 8pt */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-2xl: 48px;
  --s-3xl: 64px;
  --s-4xl: 96px;

  /* Mode (light = cream, dark = navy) */
  --bg: var(--cream);
  --bg-alt: var(--dove);
  --bg-deep: var(--cream-deep);
  --ink: var(--charcoal);
  --ink-soft: var(--charcoal-soft);
  --line: rgba(44, 56, 108, 0.14);
  --line-soft: rgba(44, 56, 108, 0.08);
  --navy-fg: var(--navy);
  --reverse-fg: var(--cream);
}

[data-mode="dark"] {
  --bg: var(--navy-ink);
  --bg-alt: var(--navy-deep);
  --bg-deep: #0D1630;
  --ink: var(--cream);
  --ink-soft: rgba(248, 244, 236, 0.72);
  --line: rgba(248, 244, 236, 0.14);
  --line-soft: rgba(248, 244, 236, 0.06);
  --navy-fg: var(--cream);
  --reverse-fg: var(--navy-ink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', 'Century Gothic', 'Futura', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease, color 0.4s ease;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography primitives */
.display {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.92;
}

.serif { font-family: 'Lora', 'Source Serif Pro', Georgia, serif; }
.serif-italic { font-family: 'Lora', Georgia, serif; font-style: italic; }
.mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.kicker {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: var(--fs-caption);
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-navy {
  background: var(--navy);
  color: var(--cream);
}
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-1px); }

[data-mode="dark"] .btn-navy { background: var(--cream); color: var(--navy-ink); }

.btn-sm { padding: 8px 14px; font-size: var(--fs-micro); }
.btn-lg { padding: 16px 28px; font-size: var(--fs-body); }

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--s-2xl);
}

.container-wide {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--s-2xl);
}

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

.divider-coral {
  height: 2px;
  background: var(--accent);
  width: 48px;
}

/* Tag / pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-xs);
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
}

.tag-filled {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.tag-coral {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.tag-dove {
  background: var(--bg-alt);
  color: var(--ink);
  border-color: transparent;
}

/* Card */
.card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: var(--s-xl);
}

[data-mode="dark"] .card { background: rgba(255,255,255,0.03); }

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: var(--accent); }

/* Utilities */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--s-xs); }
.gap-sm { gap: var(--s-sm); }
.gap-md { gap: var(--s-md); }
.gap-lg { gap: var(--s-lg); }
.gap-xl { gap: var(--s-xl); }

/* Photo placeholder — striped */
.placeholder {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--s-md);
  color: var(--ink-soft);
}

.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 14px,
    rgba(44, 56, 108, 0.05) 14px,
    rgba(44, 56, 108, 0.05) 15px
  );
  pointer-events: none;
}

[data-mode="dark"] .placeholder::before {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 14px,
    rgba(248, 244, 236, 0.04) 14px,
    rgba(248, 244, 236, 0.04) 15px
  );
}

.placeholder .ph-label {
  position: relative;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 3px;
  max-width: 85%;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }

/* Selection */
::selection { background: var(--accent); color: var(--white); }

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--s-2xl);
  max-width: 1680px;
  margin: 0 auto;
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

.topnav-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: var(--ink);
}

.topnav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.topnav-umbrella {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  padding-left: var(--s-md);
  border-left: 1px solid var(--line);
}

.topnav-links {
  display: flex;
  gap: var(--s-xl);
  align-items: center;
}

.topnav-links a {
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  position: relative;
}

.topnav-links a.active {
  color: var(--accent);
}

.topnav-actions {
  display: flex;
  gap: var(--s-sm);
  align-items: center;
}

/* ============================================================
   VARIATION SWITCHER
   ============================================================ */
.variation-bar {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 100;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(20, 30, 61, 0.08);
}

.variation-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.15s;
}

.variation-btn.active {
  background: var(--navy);
  color: var(--cream);
}

[data-mode="dark"] .variation-btn.active {
  background: var(--accent);
  color: var(--white);
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--s-lg);
  box-shadow: 0 12px 40px rgba(20, 30, 61, 0.18);
  font-size: 13px;
}

.tweaks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-md);
  padding-bottom: var(--s-md);
  border-bottom: 1px solid var(--line-soft);
}

.tweaks-header h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.tweak-row {
  margin-bottom: var(--s-md);
}

.tweak-label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tweak-segmented {
  display: flex;
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 3px;
}

.tweak-segmented button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 7px;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
}

.tweak-segmented button.active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tweak-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  outline: none;
}

.tweak-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.tweak-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.tweaks-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 199;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(20, 30, 61, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   HERO (shared base)
   ============================================================ */
.hero {
  padding: var(--s-3xl) 0 var(--s-4xl);
}

/* ============================================================
   VARIATION A — EDITORIAL
   ============================================================ */
.v-editorial .hero {
  padding-top: var(--s-2xl);
  padding-bottom: var(--s-3xl);
}

.v-editorial .hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-3xl);
  align-items: center;
}

.v-editorial .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  margin-bottom: var(--s-lg);
}

.v-editorial .hero-title {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: calc(var(--fs-h1) * 1.2);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--navy-fg);
  margin-bottom: var(--s-lg);
}

[data-mode="dark"] .v-editorial .hero-title { color: var(--cream); }

.v-editorial .hero-title .coral-word {
  color: var(--accent);
}

.v-editorial .hero-lead {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: var(--s-xl);
  max-width: 52ch;
}

.v-editorial .hero-meta {
  display: flex;
  gap: var(--s-lg);
  padding: var(--s-md) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-xl);
}

.v-editorial .hero-meta-item {
  display: flex;
  flex-direction: column;
}

.v-editorial .hero-meta-item .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.v-editorial .hero-meta-item .value {
  font-weight: 600;
  font-size: 15px;
}

.v-editorial .hero-actions {
  display: flex;
  gap: var(--s-sm);
  align-items: center;
}

.v-editorial .hero-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
}

.v-editorial .episode-number-tag {
  position: absolute;
  top: var(--s-md);
  left: var(--s-md);
  background: var(--accent);
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  letter-spacing: 0.05em;
  z-index: 2;
}

/* ============================================================
   VARIATION B — BOLD TYPE-FORWARD
   ============================================================ */
.v-bold .hero {
  padding: var(--s-2xl) 0 0;
}

.v-bold .signature-block {
  position: relative;
  padding: var(--s-2xl) 0 var(--s-md);
}

.v-bold .signature-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-lg);
  font-family: 'Jost', sans-serif;
  font-weight: 800;
  font-size: var(--fs-mega);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--navy-fg);
}

.v-bold .signature-row .coral {
  color: var(--accent);
}

.v-bold .signature-row .outline {
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
}

.v-bold .signature-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-xl);
  margin-top: var(--s-xl);
  padding-top: var(--s-lg);
  border-top: 2px solid var(--ink);
}

.v-bold .hero-title-bold {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: calc(var(--fs-h1) * 1.35);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy-fg);
  max-width: 22ch;
}

.v-bold .hero-title-bold em {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.v-bold .ticker {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin: var(--s-xl) 0 0;
}

.v-bold .ticker-inner {
  display: inline-flex;
  gap: 48px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  padding-left: 100%;
}

.v-bold .ticker-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.v-bold .ticker-item .dot {
  color: var(--accent);
  margin-right: 48px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   PLAYER
   ============================================================ */
.player {
  background: var(--navy);
  color: var(--cream);
  border-radius: 16px;
  padding: var(--s-xl);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-xl);
  align-items: center;
}

.v-bold .player {
  border-radius: 0;
  padding: var(--s-xl) var(--s-2xl);
}

[data-mode="dark"] .player {
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.player-art {
  width: 96px;
  height: 96px;
  background: var(--accent);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-art .art-ep {
  font-family: 'Jost', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--white);
  line-height: 1;
}

.player-main {
  min-width: 0;
}

.player-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: 4px;
}

.player-title {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: var(--s-md);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-progress {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

.progress-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(248, 244, 236, 0.18);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  border-radius: 4px;
  width: 0;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--cream);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
}

.progress-bar:hover .progress-thumb { opacity: 1; }

.player-controls {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

.ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(248, 244, 236, 0.2);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.ctrl-btn:hover {
  border-color: var(--cream);
}

.ctrl-btn.play {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.ctrl-btn.play:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.ctrl-extra {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding-left: var(--s-md);
  border-left: 1px solid rgba(248, 244, 236, 0.15);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.ctrl-extra button {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  transition: background 0.15s;
}

.ctrl-extra button:hover { background: rgba(248, 244, 236, 0.1); }
.ctrl-extra button.active { color: var(--accent); opacity: 1; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: var(--s-3xl) 0; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--s-xl);
  gap: var(--s-xl);
}

.section-title {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: var(--fs-h2);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--navy-fg);
}

[data-mode="dark"] .section-title { color: var(--cream); }

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--s-sm);
}

/* ============================================================
   TAB SWITCHER (for show notes / transcript / chapters)
   ============================================================ */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-xl);
}

.tab {
  background: transparent;
  border: none;
  padding: 14px 22px 14px 0;
  margin-right: var(--s-lg);
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
  letter-spacing: -0.01em;
}

.tab.active {
  color: var(--navy-fg);
}

.tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 22px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.tab-count {
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 8px;
}

/* Chapters */
.chapter-list {
  display: flex;
  flex-direction: column;
}

.chapter {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--s-lg);
  padding: var(--s-md) 0;
  cursor: pointer;
  align-items: center;
  transition: background 0.15s;
}

.chapter:hover { background: var(--bg-alt); padding-left: 12px; padding-right: 12px; border-radius: 4px; }
.chapter.active {
  background: var(--bg-alt);
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 4px;
}
.chapter.active .chapter-title {
  color: var(--accent);
}

.chapter-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  font-weight: 600;
}

.chapter-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--navy-fg);
  letter-spacing: -0.01em;
}

[data-mode="dark"] .chapter-title { color: var(--cream); }

.chapter-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.chapter-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}

.chapter.active .chapter-icon { color: var(--accent); }

/* Mobile hamburger menu button — hidden on desktop */
.topnav-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy-fg);
  padding: 0;
  flex-shrink: 0;
  transition: background 140ms, color 140ms;
}
.topnav-menu-btn:hover { background: var(--bg-alt); }
[data-mode="dark"] .topnav-menu-btn { color: var(--cream); border-color: rgba(255,255,255,0.15); }

/* Mobile drawer — hidden by default, visible when .open (display toggle, no max-height trick) */
.topnav-mobile-menu {
  display: none;
}
.topnav-mobile-menu.open {
  position: fixed;
  top: 64px; /* below the nav */
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  padding: var(--s-lg);
  gap: 0;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.15);
}
.topnav-mobile-menu a {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--navy-fg);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: color 140ms;
}
.topnav-mobile-menu a:last-child { border-bottom: none; }
.topnav-mobile-menu a:hover { color: var(--accent); }
[data-mode="dark"] .topnav-mobile-menu { background: var(--bg); }
[data-mode="dark"] .topnav-mobile-menu a { color: var(--cream); }

.topnav-mobile-menu a.topnav-ask-mobile {
  color: var(--accent);
  font-weight: 600;
}

.topnav-mobile-divider {
  height: 8px;
}

.topnav-mobile-backdrop {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.25);
  z-index: 80;
  animation: fade-in 200ms ease;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   EPISODE DETAILS — accordion layout with sticky sidebar
   ============================================================ */
.episode-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-3xl);
  align-items: start;
}

.episode-details-main {
  min-width: 0; /* allow content to shrink inside grid */
}

/* Teaser — always visible, leads into the accordion */
.episode-teaser {
  padding: var(--s-lg) 0 var(--s-xl);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: var(--s-lg);
}

.episode-teaser-lead {
  font-family: 'Lora', serif;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
  margin: 0;
  text-wrap: pretty;
}

[data-mode="dark"] .episode-teaser-lead { color: var(--cream); opacity: 0.92; }

/* Accordion */
.accordion {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-top: -1px; /* collapse adjacent borders */
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
  padding: var(--s-lg) 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--navy-fg);
  transition: color 0.15s ease;
}

[data-mode="dark"] .accordion-header { color: var(--cream); }

.accordion-header:hover { color: var(--accent); }

.accordion-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.accordion-eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.accordion-hint {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.accordion-body {
  padding: 0 0 var(--s-xl);
  animation: accordion-fade-in 0.2s ease;
}

@keyframes accordion-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* When the accordion body contains NotesBody, the old .notes-body grid column styles don't apply — it's already a single column here */
.accordion-body .notes-body { margin: 0; }

/* Sticky sidebar */
.episode-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.episode-sidebar.sticky {
  position: sticky;
  top: 88px; /* below the top nav */
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  /* subtle scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--line-soft) transparent;
}

.episode-sidebar.sticky::-webkit-scrollbar { width: 6px; }
.episode-sidebar.sticky::-webkit-scrollbar-track { background: transparent; }
.episode-sidebar.sticky::-webkit-scrollbar-thumb {
  background: var(--line-soft);
  border-radius: 3px;
}

@media (max-width: 1024px) {
  .episode-details-grid { grid-template-columns: 1fr; }
  .episode-sidebar.sticky {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* Show notes */
.notes-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-3xl);
  align-items: start;
}

.notes-body h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: var(--fs-h3);
  margin: var(--s-xl) 0 var(--s-md);
  color: var(--navy-fg);
  letter-spacing: -0.01em;
}

[data-mode="dark"] .notes-body h3 { color: var(--cream); }

.notes-body h3:first-child { margin-top: 0; }

.notes-body p {
  font-family: 'Lora', serif;
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  margin-bottom: var(--s-md);
  max-width: 62ch;
}

.notes-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--s-md);
}

.notes-body li {
  font-family: 'Lora', serif;
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  padding-left: var(--s-lg);
  position: relative;
  margin-bottom: var(--s-sm);
}

.notes-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

/* Styles for HTML blocks rendered from the RSS feed */
.show-notes-html {
  max-width: 62ch;
}
.show-notes-html p {
  font-family: 'Lora', serif;
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  margin: 0 0 var(--s-md) 0;
}
.show-notes-html p:empty { display: none; }
.show-notes-html br { display: block; content: ""; margin-bottom: var(--s-xs); }
.show-notes-html h2,
.show-notes-html h3,
.show-notes-html h4 {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: var(--s-xl) 0 var(--s-sm) 0;
  color: var(--navy-fg);
}
[data-mode="dark"] .show-notes-html h2,
[data-mode="dark"] .show-notes-html h3,
[data-mode="dark"] .show-notes-html h4 { color: var(--cream); }
.show-notes-html ul,
.show-notes-html ol {
  font-family: 'Lora', serif;
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  padding-left: var(--s-xl);
  margin: 0 0 var(--s-md) 0;
}
.show-notes-html li { margin-bottom: var(--s-xs); }
.show-notes-html a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  word-break: break-word;
}
.show-notes-html a:hover {
  color: var(--navy-fg);
  text-decoration-thickness: 2px;
}
[data-mode="dark"] .show-notes-html a:hover { color: var(--cream); }
.show-notes-html strong, .show-notes-html b { font-weight: 700; }
.show-notes-html em, .show-notes-html i { font-style: italic; }
.show-notes-html blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--s-md);
  margin: var(--s-lg) 0;
  font-style: italic;
  color: var(--ink-soft);
}
.show-notes-html hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: var(--s-xl) 0;
}

/* Timestamp lists ([01:27] Kim's origin story) */
.show-notes-html ul.timestamp-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 var(--s-lg) 0;
}
.show-notes-html ul.timestamp-list li {
  font-family: 'Lora', serif;
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  padding: 10px 0;
  margin: 0;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-md);
  align-items: baseline;
}
.show-notes-html ul.timestamp-list li:last-child { border-bottom: 0; }
.show-notes-html ul.timestamp-list .ts {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Episode-reference lists (Ep 21: ... / Ep 23: ...) */
.show-notes-html ul.ep-ref-list,
.show-notes-html ul.ep-ref-list li {
  list-style: none !important;
  list-style-type: none !important;
  list-style-image: none !important;
}
.show-notes-html ul.ep-ref-list {
  padding-left: 0 !important;
  margin: 0 0 var(--s-lg) 0;
}
.show-notes-html ul.ep-ref-list li {
  font-family: 'Lora', serif;
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  padding: var(--s-xs) 0;
  margin: 0;
  display: block !important;
}
.show-notes-html ul.ep-ref-list li::marker {
  content: none !important;
  display: none !important;
}
.show-notes-html ul.ep-ref-list li::before {
  content: none !important;
  display: none !important;
}
.show-notes-html ul.timestamp-list li::before {
  content: none !important;
  display: none !important;
}
.show-notes-html ul.ep-ref-list .ep-arrow {
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  display: inline-block;
  width: 1.3em;
}

/* ============================================================
   ASK A QUESTION MODAL
   ============================================================ */
.ask-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 33, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-lg);
  animation: askFadeIn 180ms ease-out;
}
@keyframes askFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ask-modal {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  border-radius: 8px;
  padding: var(--s-2xl) var(--s-2xl) var(--s-xl);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(22, 33, 42, 0.24);
  animation: askSlideUp 240ms cubic-bezier(.2,.9,.3,1);
}
@keyframes askSlideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ask-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}
.ask-close:hover { background: var(--line-soft); color: var(--ink); }
.ask-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.ask-title {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 12px 0;
  color: var(--navy-fg);
}
[data-mode="dark"] .ask-title { color: var(--cream); }
.ask-lead {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 var(--s-lg) 0;
}
.ask-form { display: flex; flex-direction: column; gap: var(--s-md); }
.ask-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-md); }
@media (max-width: 560px) { .ask-row { grid-template-columns: 1fr; } }
.ask-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.ask-label {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.ask-field input[type="text"],
.ask-field input[type="email"],
.ask-field select,
.ask-field textarea {
  width: 100%;
  font-family: 'Lora', serif;
  font-size: 15px;
  line-height: 1.4;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
  transition: border-color 120ms;
}
.ask-field textarea { font-family: 'Lora', serif; min-height: 100px; }
.ask-field input:focus,
.ask-field select:focus,
.ask-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,119,87,0.12);
}
.ask-count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  pointer-events: none;
}
.ask-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lora', serif;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.ask-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.ask-fineprint {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
.ask-fineprint a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ask-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-sm);
  margin-top: var(--s-sm);
}
.ask-sent { text-align: center; padding: var(--s-lg) 0; }
.ask-sent-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto var(--s-md);
}
.ask-sent .ask-actions { justify-content: center; }

.pull-quote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.3;
  padding: var(--s-lg) 0 var(--s-lg) var(--s-lg);
  border-left: 3px solid var(--accent);
  margin: var(--s-xl) 0;
  color: var(--navy-fg);
}

[data-mode="dark"] .pull-quote { color: var(--cream); }

.pull-quote cite {
  display: block;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: var(--s-md);
}

.callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: var(--s-md) var(--s-lg);
  margin: var(--s-lg) 0;
  border-radius: 0 4px 4px 0;
}

.callout-label {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 4px;
}

.callout-body {
  font-family: 'Lora', serif;
  font-size: 15px;
  line-height: 1.55;
}

/* Sidebar (in notes) */
.sidebar-card {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: var(--s-lg);
  margin-bottom: var(--s-md);
}

.sidebar-card h4 {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--s-md);
}

.sidebar-card .guest {
  display: flex;
  gap: var(--s-md);
  align-items: center;
  margin-bottom: var(--s-md);
}

.sidebar-card .guest-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-card .guest-name {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--navy-fg);
}

[data-mode="dark"] .sidebar-card .guest-name { color: var(--cream); }

.sidebar-card .guest-role {
  font-size: 12px;
  color: var(--ink-soft);
}

.sidebar-card p {
  font-family: 'Lora', serif;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: var(--s-md);
}

.link-list {
  list-style: none;
}

.link-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-sm);
  font-size: 13px;
}

.link-list li:first-child { border-top: none; }

.link-list a {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}

.link-list .link-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Transcript */
.transcript {
  max-width: 760px;
}

.transcript-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-md);
  padding: var(--s-sm) 0;
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.65;
  cursor: pointer;
  border-radius: 4px;
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
}

.transcript-line:hover { background: var(--bg-alt); }
.transcript-line.active { background: var(--bg-alt); }
.transcript-line.active .transcript-text { color: var(--navy-fg); }
[data-mode="dark"] .transcript-line.active .transcript-text { color: var(--cream); }

.transcript-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  padding-top: 4px;
}

.transcript-speaker {
  display: block;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 2px;
}

.transcript-text {
  color: var(--ink-soft);
}

/* Episodes list */
.ep-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: var(--s-lg);
  padding: var(--s-md) var(--s-md);
  border-top: 1px solid var(--line-soft);
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 4px;
}

.ep-row:hover { background: var(--bg-alt); }

.ep-row .ep-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}

.ep-row .ep-art {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-family: 'Jost', sans-serif;
  font-size: 18px;
}

.ep-row .ep-art.teal { background: var(--navy); }
.ep-row .ep-art.berry { background: var(--accent-deep); }
.ep-row .ep-art.cream { background: var(--dove-deep); color: var(--navy); }

.ep-row .ep-title {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--navy-fg);
  margin-bottom: 4px;
  line-height: 1.3;
}

[data-mode="dark"] .ep-row .ep-title { color: var(--cream); }

.ep-row .ep-sub {
  font-size: 13px;
  color: var(--ink-soft);
  font-family: 'Lora', serif;
}

.ep-row .ep-dur {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
}

.ep-row .ep-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s;
}

.ep-row:hover .ep-play { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* Subscribe strip */
.subscribe {
  background: var(--navy);
  color: var(--cream);
  padding: var(--s-3xl) 0;
  margin: 0;
}

.v-bold .subscribe {
  background: var(--accent);
  color: var(--white);
}

.subscribe-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-2xl);
  align-items: center;
}

.subscribe h2 {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: var(--fs-h1);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: var(--s-md);
}

.subscribe p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 18px;
  opacity: 0.85;
  max-width: 48ch;
}

.platform-grid {
  display: flex;
  gap: var(--s-sm);
  flex-wrap: wrap;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(248, 244, 236, 0.1);
  border: 1px solid rgba(248, 244, 236, 0.18);
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  cursor: pointer;
  transition: all 0.15s;
}

.v-bold .platform-chip {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}

.platform-chip:hover {
  background: rgba(248, 244, 236, 0.2);
}

/* Host card */
.host-section {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-3xl);
  align-items: center;
}

.host-photo {
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
}

.host-content h2 {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: var(--fs-h1);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: var(--s-lg);
  color: var(--navy-fg);
}

[data-mode="dark"] .host-content h2 { color: var(--cream); }

.host-content h2 em {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.host-content p {
  font-family: 'Lora', serif;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: var(--s-md);
  max-width: 56ch;
}

.host-creds {
  display: flex;
  gap: var(--s-lg);
  padding: var(--s-md) 0;
  margin: var(--s-lg) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.host-cred {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.host-cred strong {
  color: var(--accent);
  font-weight: 700;
}

/* Footer */
.footer {
  background: var(--bg-alt);
  padding: var(--s-3xl) 0 var(--s-lg);
  margin-top: var(--s-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-2xl);
  margin-bottom: var(--s-2xl);
}

.footer h5 {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--s-md);
  color: var(--accent);
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; font-size: 14px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-lg);
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* ============================================================
   LISTEN AGAIN strip (inter-episode CTAs)
   ============================================================ */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-md);
}

.topic-chip {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: var(--s-lg);
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.topic-chip:hover {
  border-color: var(--accent);
  transform: translateY(-2px);

}

.topic-chip .topic-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}

.topic-chip .topic-name {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy-fg);
  letter-spacing: -0.01em;
}

[data-mode="dark"] .topic-chip .topic-name { color: var(--cream); }

.topic-chip-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.topic-chip-active .topic-count,
.topic-chip-active .topic-name { color: var(--cream) !important; }
[data-mode="dark"] .topic-chip-active { background: var(--coral); border-color: var(--coral); }
[data-mode="dark"] .topic-chip-active .topic-count,
[data-mode="dark"] .topic-chip-active .topic-name { color: var(--navy) !important; }

/* Newsletter */
.newsletter-block {
  background: var(--navy);
  color: var(--cream);
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

@media (max-width: 820px) {
  .newsletter-block {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 28px;
  }
  .newsletter-block h2 {
    font-size: clamp(28px, 7vw, 40px) !important;
  }
  .newsletter-block h2 br { display: none; }
  .newsletter-block p {
    font-size: 15px !important;
  }
  .newsletter {
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .newsletter input,
  .newsletter .btn {
    width: 100%;
  }
}

.newsletter {
  display: flex;
  gap: var(--s-sm);
  max-width: 420px;
}

.newsletter input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.newsletter input:focus { border-color: var(--accent); }

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(20, 30, 61, 0.25);
  animation: toast-in 0.3s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Mini player (sticky bottom) */
.mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-ink);
  color: var(--cream);
  padding: 10px var(--s-2xl);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-md);
  align-items: center;
  z-index: 40;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  border-top: 1px solid rgba(248, 244, 236, 0.1);
}

.mini-player-art {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--white);
}

.mini-player-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  opacity: 0.7;
}

.mini-player-ctrls {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}

.mini-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(248, 244, 236, 0.1);
}

.mini-progress-fill {
  height: 100%;
  background: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .v-editorial .hero-grid { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: 1fr; }
  .host-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .v-bold .signature-row { font-size: calc(var(--fs-display) * 1.2); }
  .subscribe-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .topnav-links { display: none; }
  .topnav-umbrella {
    font-size: 10px;
    padding-left: var(--s-sm);
    margin-left: var(--s-sm);
  }
  .topnav-menu-btn { display: inline-flex; }
  /* Compact the action buttons on tablet/mobile — labels hide, icons remain */
  .topnav-btn-label { display: none; }
  .topnav-actions .btn { padding: 8px 10px; }
}

@media (max-width: 640px) {
  .container, .container-wide { padding: 0 var(--s-lg); }
  .topnav-inner { padding: 14px var(--s-lg); gap: var(--s-sm); }
  .topnav-brand { gap: var(--s-sm); min-width: 0; flex: 1; }
  .topnav-mark { font-size: 15px; white-space: nowrap; }
  .topnav-umbrella { display: none; }
  .topnav-actions .btn { padding: 7px 10px; font-size: 11px; }
  .player { grid-template-columns: 1fr; gap: var(--s-md); padding: var(--s-lg); }
  .player-art { width: 64px; height: 64px; }
  .ep-row { grid-template-columns: 56px 1fr auto; gap: var(--s-sm); }
  .ep-row .ep-art { width: 56px; height: 56px; font-size: 16px; }
  .ep-row .ep-dur { display: none; }

  /* Hero: tame giant display type so it doesn't overflow */
  .v-editorial .hero-title,
  .v-bold .hero-title,
  h1.hero-title {
    font-size: clamp(30px, 9vw, 44px) !important;
    line-height: 1.05 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .v-bold .signature-row {
    font-size: clamp(44px, 14vw, 80px) !important;
    line-height: 0.95 !important;
  }

  /* Hero subtitle / italic deck */
  .hero-deck, .hero-sub {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  /* Hero meta strip: stack cleanly instead of 3-col squeeze */
  .hero-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px 20px !important;
  }
  .hero-meta-item {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
  }
  .hero-meta-item .label {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
  }
  .hero-meta-item .value {
    font-size: 15px !important;
  }

  /* Host section headline: keep the italic on-screen */
  .host-content h2 {
    font-size: clamp(28px, 8vw, 40px) !important;
    line-height: 1.1 !important;
  }
  .host-creds {
    flex-wrap: wrap !important;
    gap: 16px 20px !important;
  }
  .host-creds > * {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
  }

  /* Mini player: less cramped */
  .mini-player {
    padding: 10px 14px !important;
    gap: 10px !important;
  }
  .mini-player-title { font-size: 12px; }
  .mini-player-meta { font-size: 10px; }

  /* Chapter rows: tighten timestamp column */
  .chapter-row {
    grid-template-columns: 52px 1fr !important;
    gap: 12px !important;
  }

  /* Footer bottom: stack and make it actually readable prose */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Lora', serif;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
}


/* ============================================================
   Search Modal
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 33, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px var(--s-lg) var(--s-lg);
  animation: askFadeIn 160ms ease-out;
}
.search-modal {
  background: var(--bg);
  color: var(--ink);
  border-radius: 10px;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(22, 33, 42, 0.28);
  animation: askSlideUp 220ms cubic-bezier(.2,.9,.3,1);
}
.search-inputwrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
}
.search-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.search-input::placeholder { color: var(--ink-soft); opacity: 0.7; }
.search-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-close:hover { background: var(--line-soft); color: var(--ink); }

.search-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px 18px;
}
.search-empty {
  padding: 28px 0 12px;
  text-align: center;
}
.search-empty-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.search-empty-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.search-chip {
  font-family: 'Lora', serif;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 120ms;
}
.search-chip:hover { border-color: var(--accent); color: var(--accent); }
.search-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
}
.search-kbd kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--line-soft);
  font-size: 10px;
  color: var(--ink);
}
.search-noresults {
  padding: 32px 8px;
  text-align: center;
  font-family: 'Lora', serif;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}
.search-noresults em { color: var(--ink); font-style: italic; }

.search-section { margin-top: 14px; }
.search-section:first-child { margin-top: 4px; }
.search-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
  padding: 0 2px;
}
.search-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 2px 4px;
}
.search-topic {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--line-soft);
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-result {
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: background 120ms;
}
.search-result:hover { background: var(--line-soft); }
.search-result-clickable {
  cursor: pointer;
  user-select: none;
}
.search-result-clickable:hover { background: var(--bg-alt); }
.search-result-clickable:active { background: var(--line); }
.search-result-clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search-result-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.search-result-title {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.search-result-sub {
  font-family: 'Lora', serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 4px;
}
.search-result-guest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
}
.search-result-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}
.search-hit {
  background: rgba(217,119,87,0.22);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
[data-mode="dark"] .search-hit { background: rgba(217,119,87,0.32); }

/* ============================================================
   Subscribe Modal (reuses .ask-overlay / .ask-modal)
   ============================================================ */
.subscribe-modal { max-width: 480px; }
.subscribe-list {
  list-style: none;
  margin: var(--s-md) 0 var(--s-md);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.subscribe-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 120ms, transform 120ms, background 120ms;
}
.subscribe-link:hover {
  border-color: var(--accent);
  background: var(--line-soft);
  transform: translateX(2px);
}
.subscribe-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line);
}
.subscribe-name {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.subscribe-name > span:first-child {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.subscribe-note {
  font-family: 'Lora', serif;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-style: italic;
}
.subscribe-footer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  padding-top: var(--s-sm);
  border-top: 1px solid var(--line-soft);
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .search-overlay { padding: 40px var(--s-md) var(--s-md); }
  .search-input { font-size: 16px; }
}


/* Newsletter success + error states */
.newsletter-done {
  padding: 18px 22px;
  border: 1px solid rgba(248, 244, 236, 0.25);
  border-radius: 8px;
  background: rgba(248, 244, 236, 0.08);
  backdrop-filter: blur(4px);
}
.newsletter-done-title {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--cream);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.newsletter-done-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(248, 244, 236, 0.75);
}
.newsletter-error {
  grid-column: 1 / -1;
  font-family: 'Lora', serif;
  font-size: 13px;
  color: #C0392B;
  margin-top: 6px;
}


/* Highlight "Ask a question" link in top nav */
.topnav-links a.topnav-ask {
  color: var(--accent);
  font-weight: 600;
  position: relative;
  padding: 4px 10px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  transition: background 140ms, color 140ms, transform 140ms;
}
.topnav-links a.topnav-ask::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  animation: askPulse 1.8s ease-in-out infinite;
}
.topnav-links a.topnav-ask:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.topnav-links a.topnav-ask:hover::before {
  background: #fff;
  animation: none;
}
@keyframes askPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(1.35); }
}


/* ============================================================
   Back to Blueberry Therapy links (header + footer)
   Uses the Blueberry Therapy signature navy so it reads as
   a distinct brand cue without competing with the coral CTAs.
   ============================================================ */
.topnav-links a.topnav-back {
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 140ms, color 140ms;
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
}
.topnav-links a.topnav-back:hover {
  background: var(--navy);
  color: var(--cream);
}
[data-mode="dark"] .topnav-links a.topnav-back {
  color: var(--cream);
  opacity: 0.85;
}
[data-mode="dark"] .topnav-links a.topnav-back:hover {
  background: var(--cream);
  color: var(--navy-ink);
  opacity: 1;
}

.topnav-mobile-menu a.topnav-back-mobile {
  color: var(--navy) !important;
  font-weight: 600;
}
[data-mode="dark"] .topnav-mobile-menu a.topnav-back-mobile {
  color: var(--cream) !important;
}

.footer-back {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 140ms, color 140ms;
}
.footer-back:hover {
  background: var(--navy);
  color: var(--cream);
}
[data-mode="dark"] .footer-back {
  color: var(--cream);
  border-color: var(--cream);
  opacity: 0.9;
}
[data-mode="dark"] .footer-back:hover {
  background: var(--cream);
  color: var(--navy-ink);
  opacity: 1;
}
