/* ============================================================
   The Policy Desk — Global Stylesheet
   Tokens, base, layout, components, pages, admin, dark mode
   ============================================================ */

/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:         #0f1e3d;
  --navy-2:       #1a2c52;
  --ink:          #14181f;
  --ink-2:        #2a3140;
  --muted:        #5b6577;
  --rule:         #e3e1da;
  --rule-strong:  #c9c5b8;
  --bg:           #faf7f0;
  --bg-2:         #f1ede2;
  --paper:        #ffffff;
  --accent:       #2a7a7a;   /* teal — overridden per config */
  --accent-ink:   #1f5c5c;
  --dem:          #2557a7;
  --rep:          #b23a3a;
  --ind:          #6b6b6b;

  --serif:   "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans:    "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Fraunces", "Source Serif 4", Georgia, serif;
  --mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 4px 16px -4px rgba(15,30,61,.12);
  --shadow-lg: 0 16px 40px -12px rgba(15,30,61,.2);
}

/* ── 2. DARK MODE TOKENS ────────────────────────────────────── */
.tpdk-dark {
  --navy:        #f4eedd;
  --navy-2:      #d6cfb9;
  --ink:         #f6f1e2;
  --ink-2:       #cdc6b4;
  --muted:       #8b8676;
  --rule:        #2a3140;
  --rule-strong: #3c4459;
  --bg:          #0d1424;
  --bg-2:        #131c33;
  --paper:       #0a1020;
  --accent:      #3a9494;
  --accent-ink:  #5ab8b8;
}

/* ── 3. RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── 4. TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--navy);
}

.serif   { font-family: var(--serif); }
.sans    { font-family: var(--sans); }
.mono    { font-family: var(--mono); }
.display { font-family: var(--display); }

/* ── 5. UTILITY ─────────────────────────────────────────────── */
.eyebrow {
  font: 600 11px var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.kicker-rule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker-rule::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.party-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 10.5px var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.party-tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.party-D { color: var(--dem); }
.party-R { color: var(--rep); }
.party-I { color: var(--ind); }

/* Pill buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 12px var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  background: var(--paper);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-pill:hover { background: var(--bg-2); }
.btn-pill.active,
.btn-pill[data-active="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--bg);
}

/* Image placeholders */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(15,30,61,0.05) 0 8px, transparent 8px 16px),
    var(--bg-2);
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 500 11px var(--mono);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 8px;
}
.ph-round { border-radius: 50%; }

/* Responsive container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 18px; } }

/* ── 6. LOGO / WORDMARK ─────────────────────────────────────── */
.tpdk-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
  text-decoration: none;
}
.tpdk-mark .mark-star {
  width: 0.65em;
  height: 0.65em;
  background: var(--accent);
  display: inline-block;
  align-self: center;
  flex-shrink: 0;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polygon points='12,2 15,9 22,9 16,14 19,22 12,17 5,22 8,14 2,9 9,9'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polygon points='12,2 15,9 22,9 16,14 19,22 12,17 5,22 8,14 2,9 9,9'/></svg>") center/contain no-repeat;
}

/* ── 7. TOP NAVIGATION ──────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav .nav-logo { font-size: 22px; }

.site-nav .nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.site-nav .nav-links a {
  font: 500 14px var(--sans);
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav .nav-links a:hover { color: var(--navy); }
.site-nav .nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--accent);
}

.site-nav .nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
}
.site-nav .nav-right .nav-label {
  font: 500 11px var(--mono);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-subscribe {
  background: var(--navy);
  color: var(--bg);
  border-color: var(--navy);
}
.nav-subscribe:hover { background: var(--navy-2); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: width 0.2s;
}
.nav-hamburger span:nth-child(1) { width: 20px; }
.nav-hamburger span:nth-child(2) { width: 20px; }
.nav-hamburger span:nth-child(3) { width: 14px; }

/* Mobile menu drawer */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  background: var(--bg);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--rule);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font: 500 20px var(--display);
  color: var(--navy);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.nav-mobile-menu a.active { color: var(--accent); }

/* Dark mode toggle */
.dark-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-size: 14px;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.dark-toggle:hover { background: var(--bg-2); }

/* ── 8. FOOTER ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  padding: 52px 40px 40px;
  margin-top: 80px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.site-footer .footer-brand p {
  margin-top: 14px;
  max-width: 340px;
  font: 400 13px var(--sans);
  line-height: 1.6;
  color: var(--ink-2);
}
.site-footer .footer-col-title {
  font: 600 11px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.site-footer .footer-col a,
.site-footer .footer-col span {
  display: block;
  font: 400 13px var(--sans);
  color: var(--ink-2);
  margin-bottom: 7px;
  transition: color 0.15s;
}
.site-footer .footer-col a:hover { color: var(--navy); }
.site-footer .footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font: 500 11px var(--mono);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── 9. CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

/* Feature card (home hero) */
.feature-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--paper);
}
.feature-card .fc-image { min-height: 380px; }
.feature-card .fc-body {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-card .fc-body h2 {
  font-size: 44px;
  margin: 14px 0;
}
.feature-card .fc-body .fc-excerpt {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}
.feature-card .fc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font: 500 12px var(--sans);
  color: var(--muted);
  flex-wrap: wrap;
}
.fc-video-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-ink);
  font: 500 12px var(--sans);
}

/* Story card (grid) */
.story-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.story-card:hover { box-shadow: var(--shadow); }
.story-card .sc-image { height: 180px; }
.story-card .sc-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.story-card .sc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.story-card .sc-race {
  font: 500 11px var(--mono);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.story-card h3 {
  font-size: 21px;
  line-height: 1.15;
  margin-bottom: 8px;
}
.story-card .sc-excerpt {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  flex: 1;
}
.story-card .sc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font: 500 11.5px var(--sans);
  color: var(--muted);
}
.sc-badge {
  margin-left: auto;
  color: var(--accent-ink);
  font-size: 13px;
}

/* Episode card */
.ep-row {
  display: grid;
  grid-template-columns: 64px 1fr 300px auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.ep-row:hover { box-shadow: var(--shadow); }
.ep-num {
  font: 600 32px var(--display);
  color: var(--accent-ink);
  line-height: 1;
}
.ep-title { font-size: 19px; margin-bottom: 6px; }
.ep-date {
  font: 500 12px var(--mono);
  color: var(--muted);
}
.ep-notes {
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.ep-play-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  border: none;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.ep-play-btn:hover { background: var(--navy-2); transform: scale(1.05); }

/* ── 10. HOME PAGE ──────────────────────────────────────────── */
.hero-editorial {
  padding: 64px 40px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
  border-bottom: 1px solid var(--rule);
  max-width: 1280px;
  margin: 0 auto;
}
.hero-editorial h1 {
  font-size: 84px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 18px 0 22px;
}
.hero-editorial h1 em {
  font-style: italic;
  color: var(--accent-ink);
}
.hero-editorial .hero-sub {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
}
.hero-editorial .hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero-founder {
  width: 280px;
  height: 340px;
  justify-self: end;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-founder img { width: 100%; height: 100%; object-fit: cover; }

.home-section {
  padding: 48px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-strong);
}
.home-section-header h2 { font-size: 28px; }
.home-section-header a {
  font: 500 13px var(--sans);
  color: var(--accent-ink);
  transition: opacity 0.15s;
}
.home-section-header a:hover { opacity: 0.75; }

.home-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-feature-section {
  padding: 0 40px 48px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Podcast home row */
.podcast-home-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.podcast-home-row:last-child { border-bottom: none; }
.podcast-home-num {
  font: 600 28px var(--display);
  color: var(--accent-ink);
}
.podcast-home-title { font-size: 18px; margin-bottom: 4px; }
.podcast-home-notes {
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}
.podcast-home-meta {
  text-align: right;
  font: 500 12px var(--mono);
  color: var(--muted);
}
.podcast-home-meta strong { display: block; color: var(--ink); font-weight: 600; }

/* Newsletter sidebar */
.newsletter-aside {
  background: var(--navy);
  color: var(--bg);
  padding: 28px;
  border-radius: var(--radius);
  align-self: start;
}
.newsletter-aside .eyebrow { color: var(--accent); }
.newsletter-aside h3 {
  font-size: 21px;
  color: var(--bg);
  margin: 10px 0 14px;
}
.newsletter-aside input {
  width: 100%;
  font: 400 14px var(--sans);
  color: white;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 10px;
  outline: none;
}
.newsletter-aside input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-aside input:focus { border-color: var(--accent); }
.newsletter-btn {
  width: 100%;
  background: var(--accent);
  color: #f6f1e2;
  border: none;
  border-radius: var(--radius);
  padding: 11px 16px;
  font: 600 13px var(--sans);
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
}
.newsletter-btn:hover { opacity: 0.88; }

/* ── 11. INTERVIEWS PAGE ────────────────────────────────────── */
.page-hero {
  padding: 48px 40px 28px;
  border-bottom: 1px solid var(--rule);
  max-width: 1280px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: 56px;
  letter-spacing: -0.03em;
  margin: 14px 0;
}
.page-hero p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-2);
  max-width: 640px;
  line-height: 1.55;
}

.filter-bar {
  padding: 18px 40px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.filter-bar .filter-divider {
  width: 1px;
  height: 24px;
  background: var(--rule-strong);
}
.filter-count {
  margin-left: auto;
  font: 500 12px var(--mono);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── 12. POST DETAIL ────────────────────────────────────────── */
.post-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 40px 32px;
}
.post-header h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 18px 0 20px;
}
.post-dek {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  font: 500 13px var(--sans);
  color: var(--muted);
  flex-wrap: wrap;
}
.post-byline .post-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 36px;
  margin-top: 36px;
}

/* Candidate sidebar */
.candidate-card {
  align-self: start;
  position: sticky;
  top: 80px;
  padding: 18px;
}
.candidate-card .cand-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.candidate-card .cand-photo img { width: 100%; height: 100%; object-fit: cover; }
.candidate-card h4 { font-size: 17px; margin-bottom: 4px; }
.candidate-card .cand-race-label {
  font: 500 11px var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}
.candidate-card .cand-race-val {
  font: 400 14px var(--sans);
  color: var(--ink);
}
.candidate-card .cand-dates {
  border-top: 1px solid var(--rule);
  margin-top: 14px;
  padding-top: 14px;
  font: 400 13px var(--sans);
  color: var(--ink-2);
  line-height: 1.6;
}

/* Media embeds */
.yt-embed-wrap {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.yt-embed-wrap iframe { width: 100%; height: 100%; border: none; }
.yt-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.yt-play-btn {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(15,30,61,0.85);
  color: white;
  font-size: 24px;
  display: grid;
  place-items: center;
  border: none;
}

.audio-player {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.audio-play-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  border: none;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.audio-play-btn:hover { background: var(--navy-2); }
.audio-track-wrap { flex: 1; }
.audio-track-label { font: 600 13px var(--sans); margin-bottom: 6px; }
.audio-progress {
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  position: relative;
}
.audio-progress-bar {
  position: absolute;
  left: 0; top: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  width: 0;
  transition: width 0.1s;
}
.audio-time {
  font: 500 12px var(--mono);
  color: var(--muted);
  margin-left: auto;
  flex-shrink: 0;
}

/* Article body */
.article-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
}
.article-body p { margin: 0 0 1.4em; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em; }
.article-body em { font-style: italic; }
.article-body h2 { font-size: 28px; margin: 2em 0 0.6em; }
.article-body h3 { font-size: 22px; margin: 1.6em 0 0.5em; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 20px;
  margin: 32px 0;
}
.article-body blockquote p {
  font-size: 22px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--rule-strong);
  margin: 36px 0;
}
.article-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 1.4em; }
.article-body li { margin-bottom: 6px; line-height: 1.6; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }

/* Related posts */
.related-section {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 32px 40px 0;
  border-top: 1px solid var(--rule);
}
.related-section h3 { font-size: 22px; margin-bottom: 20px; }

/* ── 13. PODCAST PAGE ───────────────────────────────────────── */
.podcast-hero {
  padding: 56px 40px 40px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.podcast-hero h1 {
  font-size: 52px;
  letter-spacing: -0.03em;
  margin: 12px 0;
}
.podcast-art {
  width: 260px;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.podcast-art img { width: 100%; height: 100%; object-fit: cover; }
.podcast-hero p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-2);
  max-width: 540px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.podcast-platform-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.podcast-list { padding: 40px 40px 0; max-width: 1280px; margin: 0 auto; }
.podcast-list h2 {
  font-size: 26px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-strong);
}

/* Episode detail page */
.episode-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 40px 32px;
}
.episode-player {
  background: var(--navy);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 36px;
}
.episode-play-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  font-size: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.episode-play-btn:hover { opacity: 0.85; }
.ep-track { flex: 1; }
.ep-track-label { font: 600 14px var(--sans); margin-bottom: 10px; }
.ep-progress {
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
}
.ep-progress-bar {
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  width: 0;
}
.ep-time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font: 500 12px var(--mono);
  color: rgba(255,255,255,0.6);
}
.ep-platform-btns { display: flex; gap: 8px; }
.ep-platform-btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  color: var(--bg);
  font: 500 12px var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.episode-notes h3 { font-size: 22px; margin-bottom: 14px; }
.episode-notes p,
.episode-notes li {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.episode-notes ul { padding-left: 22px; }
.episode-notes li { list-style: disc; margin-bottom: 6px; }
.episode-notes p { margin-bottom: 1.2em; }

/* ── 14. ABOUT PAGE ─────────────────────────────────────────── */
.about-hero {
  padding: 64px 40px 40px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
.about-hero h1 {
  font-size: 60px;
  letter-spacing: -0.03em;
  margin: 14px 0 20px;
}
.about-hero p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}
.about-hero p + p { margin-top: 14px; }
.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-team { padding: 48px 40px; max-width: 1280px; margin: 0 auto; }
.about-team h2 {
  font-size: 28px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-strong);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card { padding: 20px; }
.team-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin-bottom: 14px;
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 17px; margin-bottom: 4px; }
.team-card .team-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11px var(--mono);
  color: var(--accent-ink);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.team-card p {
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.about-contact { padding: 0 40px 52px; max-width: 1280px; margin: 0 auto; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card { padding: 24px; }
.contact-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-card p {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.contact-card a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── 15. ADMIN ──────────────────────────────────────────────── */
.admin-wrap {
  min-height: 100vh;
  background: var(--bg-2);
  font-family: var(--sans);
}
.admin-grid {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar .sidebar-brand {
  padding: 0 6px 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar .sidebar-brand .brand-name {
  font: 700 16px var(--display);
  color: white;
  letter-spacing: -0.02em;
}
.admin-sidebar .sidebar-brand .brand-role {
  font: 600 10px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}
.admin-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font: 500 13.5px var(--sans);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.admin-sidebar .nav-item:hover { background: rgba(255,255,255,0.05); color: white; }
.admin-sidebar .nav-item.active {
  background: rgba(255,255,255,0.07);
  color: white;
  box-shadow: inset 2px 0 0 var(--accent);
}
.admin-sidebar .nav-item .ni-icon {
  width: 16px;
  text-align: center;
  opacity: 0.7;
  flex-shrink: 0;
}
.admin-sidebar .sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font: 500 12px var(--mono);
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.admin-main { padding: 32px 40px; }

/* Admin form elements */
.adm-label {
  display: block;
  font: 600 11.5px var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
input.adm, textarea.adm, select.adm {
  width: 100%;
  font: 400 14px var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
textarea.adm {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}
input.adm:focus, textarea.adm:focus, select.adm:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,30,61,0.08);
}

.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 13px var(--sans);
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.adm-btn:hover { background: var(--bg-2); }
.adm-btn.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--bg);
}
.adm-btn.primary:hover { background: var(--navy-2); }
.adm-btn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.adm-btn.accent:hover { opacity: 0.88; }
.adm-btn.danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.adm-btn.danger:hover { background: #fee2e2; }

.adm-field { margin-bottom: 18px; }

.toolbar-btn {
  font: 600 12px var(--sans);
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
}
.toolbar-btn:hover { background: var(--rule); }

/* Admin table */
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table th {
  font: 600 11px var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
}
.adm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  font: 500 13.5px var(--sans);
  color: var(--ink);
  vertical-align: middle;
}
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: var(--bg); }
.adm-table .cell-title { font-weight: 600; }
.adm-table .cell-slug {
  font: 500 11.5px var(--mono);
  color: var(--muted);
  margin-top: 2px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 3px;
  font: 600 11px var(--sans);
  letter-spacing: 0.04em;
}
.status-published {
  background: rgba(40,140,80,0.12);
  color: #1d6f44;
}
.status-draft {
  background: rgba(184,137,58,0.16);
  color: #8a6422;
}

/* Admin login page */
.admin-login-wrap {
  min-height: 100vh;
  background: var(--bg-2);
  display: grid;
  place-items: center;
}
.admin-login-card {
  width: 380px;
  padding: 36px 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.admin-login-card .login-logo {
  text-align: center;
  margin-bottom: 24px;
}
.admin-login-card .login-role {
  text-align: center;
  margin-top: 8px;
}
.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--radius);
  padding: 10px 14px;
  font: 500 13px var(--sans);
  margin-bottom: 16px;
}
.login-hint {
  text-align: center;
  font: 500 11px var(--mono);
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* Admin alerts */
.adm-alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font: 500 13px var(--sans);
  margin-bottom: 18px;
}
.adm-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.adm-alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* Image upload area */
.img-upload-area {
  border: 2px dashed var(--rule-strong);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.img-upload-area:hover { border-color: var(--accent); background: rgba(42,122,122,0.04); }
.img-upload-area .iu-icon { font-size: 28px; margin-bottom: 8px; opacity: 0.4; }
.img-upload-area p { font: 400 13px var(--sans); color: var(--muted); }

/* ── 16. DATA SECTIONS ──────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
}
.stat-num {
  font: 700 44px/1 var(--display);
  color: var(--navy);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.stat-label {
  font: 400 13px/1.5 var(--sans);
  color: var(--ink-2);
}

.hero-tracker {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  align-self: center;
}
.hero-tracker .tracker-eyebrow {
  font: 600 10px var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-tracker .tracker-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.tracker-table {
  width: 100%;
  border-collapse: collapse;
}
.tracker-table th {
  text-align: left;
  padding: 0 10px 8px 0;
  font: 600 10px/1 var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule-strong);
}
.tracker-table td {
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.tracker-table tr:last-child td { border-bottom: none; }
.tracker-table tbody tr:hover td { background: var(--bg); }
.tracker-table .td-name { font-weight: 500; color: var(--ink); }
.tracker-table .td-sub  { font-size: 11px; color: var(--muted); margin-top: 1px; }
.tracker-table .td-dim  { color: var(--ink-2); font-size: 12px; }

.data-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-strong);
}
.data-section-note {
  font: 400 12px/1 var(--sans);
  color: var(--muted);
}

/* ── 17. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-editorial h1 { font-size: 64px; }
  .hero-editorial { gap: 40px; }
  .hero-founder { width: 220px; height: 280px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .home-feature-section { grid-template-columns: 1fr; }
  .newsletter-aside { max-width: 480px; }
}

@media (max-width: 900px) {
  .feature-card { grid-template-columns: 1fr; }
  .feature-card .fc-image { min-height: 260px; }
  .feature-card .fc-body { padding: 28px 28px; }
  .feature-card .fc-body h2 { font-size: 32px; }
  .home-grid-3 { grid-template-columns: 1fr 1fr; }
  .ep-row { grid-template-columns: 54px 1fr auto; }
  .ep-row .ep-notes { display: none; }
  .podcast-hero { grid-template-columns: 1fr; }
  .podcast-art { width: 160px; height: 160px; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero .about-photo { max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .candidate-card { position: static; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Nav */
  .site-nav { padding: 0 18px; height: 56px; }
  .site-nav .nav-links { display: none; }
  .site-nav .nav-right .nav-label { display: none; }
  .site-nav .nav-right .nav-subscribe { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero-editorial {
    grid-template-columns: 1fr;
    padding: 28px 18px 32px;
    gap: 24px;
  }
  .hero-editorial h1 { font-size: 44px; }
  .hero-editorial .hero-sub { font-size: 16px; }
  .hero-founder { display: none; }

  /* Sections */
  .home-section { padding: 32px 18px; }
  .home-feature-section { padding: 0 18px 32px; }
  .home-grid-3 { grid-template-columns: 1fr; }
  .filter-bar { padding: 14px 18px; gap: 8px; }
  .filter-count { display: none; }
  .page-hero { padding: 32px 18px 20px; }
  .page-hero h1 { font-size: 40px; }
  .post-wrap { padding: 28px 18px; }
  .post-header h1 { font-size: 36px; }
  .post-dek { font-size: 18px; }
  .article-body { font-size: 17px; }
  .article-body blockquote p { font-size: 19px; }
  .podcast-hero { padding: 28px 18px; }
  .podcast-hero h1 { font-size: 36px; }
  .podcast-list { padding: 24px 18px 0; }
  .ep-row { grid-template-columns: 48px 1fr 36px; padding: 14px; }
  .ep-num { font-size: 22px; }
  .ep-title { font-size: 15px; }
  .about-hero { padding: 28px 18px; }
  .about-hero h1 { font-size: 36px; }
  .about-team, .about-contact { padding-left: 18px; padding-right: 18px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .related-section { padding: 24px 18px 0; }
  .site-footer { padding: 40px 18px 28px; margin-top: 48px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .episode-wrap { padding: 28px 18px; }
  .episode-player { flex-wrap: wrap; }
  .ep-platform-btns { width: 100%; justify-content: center; margin-top: 4px; }
  .post-byline .post-actions { display: none; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero-editorial h1 { font-size: 36px; }
}
