/* Episode 0 — DGC Empowerment Hour
   Explore/Inspect surface: the audio artifact and its timeline lead; notes follow. */
:root {
  --ep-ink: #17140f;
  --ep-ink-2: #252017;
  --ep-ink-3: #393126;
  --ep-paper: #faf8f2;
  --ep-paper-deep: #efe8d8;
  --ep-gold: #b88a2a;
  --ep-gold-bright: #e0b64f;
  --ep-orange: #e87524;
  --ep-focus: #b94700;
  --ep-muted: #766e62;
  --ep-rule: #ddd3bf;
  --ep-shadow: 0 18px 45px rgba(27,24,19,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--ep-paper); }
img { max-width: 100%; }

.episode-shell { overflow: clip; }
.episode-hero {
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem) 2rem;
  border-bottom: 1px solid var(--ep-rule);
  background:
    linear-gradient(90deg, transparent 0 72%, rgba(184,138,42,.08) 72% 72.25%, transparent 72.25%),
    var(--ep-paper);
}
.episode-hero-inner { max-width: 70rem; margin: 0 auto; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.episode-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  color: var(--ep-muted);
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.episode-kicker .episode-number { color: var(--ep-orange); }
.episode-hero h1 {
  max-width: 15ch;
  margin: .4rem 0 .5rem;
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  line-height: .92;
}
.episode-hero .deck {
  max-width: 52rem;
  margin: 0;
  color: var(--ep-ink-soft, #4a443a);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.6;
}

/* Player — dark listening surface with a chaptered amber waveform. */
.player-wrap {
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 8vw, 6rem);
  background: linear-gradient(var(--ep-paper) 0 4.5rem, var(--ep-paper-deep) 4.5rem 100%);
}
.episode-player {
  position: relative;
  max-width: 70rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(12rem, 17rem) 1fr;
  min-height: 23rem;
  overflow: hidden;
  color: #f9f5ea;
  background: var(--ep-ink);
  border: 1px solid rgba(184,138,42,.5);
  box-shadow: var(--ep-shadow);
}
.player-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 22rem;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(224,182,79,.06) 18px 19px),
    var(--ep-ink-2);
  border-right: 1px solid rgba(224,182,79,.25);
}
.player-art::before,
.player-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(224,182,79,.25);
  border-radius: 50%;
}
.player-art::before { width: 22rem; height: 22rem; }
.player-art::after { width: 14rem; height: 14rem; }
.player-art img {
  position: relative;
  z-index: 1;
  width: 8rem;
  height: 8rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
}
.art-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #d5cbb8;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: .86rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.player-main {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
}
.player-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}
.player-heading p { margin: 0; color: #c8beaa; font-size: .9rem; }
.player-heading strong {
  display: block;
  color: #fffaf0;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: .04em;
}
.player-badge {
  flex: none;
  border: 1px solid rgba(224,182,79,.45);
  padding: .25rem .6rem;
  color: var(--ep-gold-bright);
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.waveform-shell {
  position: relative;
  flex: none;
  height: 12rem;
  min-height: 12rem;
  margin: 1.35rem 0 .5rem;
  background: #100e0a;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.waveform-static { display: grid; grid-template-rows: 1fr auto; }
.waveform-static img { display: block; width: 100%; height: 100%; min-height: 9rem; object-fit: cover; }
.waveform-static figcaption { padding: .35rem .65rem; color: #c8beaa; background: #17140f; font: .72rem/1.3 system-ui, sans-serif; }
.native-control-note { margin: .45rem 0 0; color: #c8beaa; font: .76rem/1.4 system-ui, sans-serif; }
.player-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin-top: 1rem; }
.player-controls {
  display: grid;
  grid-template-columns: auto auto minmax(7rem, 1fr) auto auto;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
}
.play-toggle {
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ep-ink);
  background: var(--ep-orange);
  box-shadow: 0 8px 20px rgba(232,117,36,.22);
  cursor: pointer;
}
.play-toggle:hover { transform: translateY(-1px); background: var(--ep-gold-bright); }
.play-toggle svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.play-toggle .pause-icon { display: none; }
.play-toggle.is-playing .play-icon { display: none; }
.play-toggle.is-playing .pause-icon { display: block; }
.time-readout {
  min-width: 7.3rem;
  color: #d6cdbd;
  font: 500 .82rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.now-playing {
  min-width: 0;
  margin: 0;
  color: #ded5c4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .82rem;
}
.speed-control {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #d6cdbd;
  font-size: .8rem;
}
.speed-control select {
  min-height: 2.5rem;
  color: #fffaf0;
  background: var(--ep-ink-3);
  border: 1px solid rgba(255,255,255,.2);
  padding: .35rem .55rem;
}
.download-audio {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  color: var(--ep-gold-bright);
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
}
.player-status { min-height: 1.1rem; margin: .45rem 0 0; color: #d9a27d; font-size: .76rem; }

.notes-wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
}
.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.notes-main { min-width: 0; }
.notes-main h2 { margin-top: 2.7rem; }
.notes-main h2:first-child { margin-top: 0; }
.notes-main p, .notes-main li { max-width: 66ch; }
.episode-standfirst { font-size: 1.2rem; line-height: 1.75; }
.speaker-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}
.speaker-card {
  display: grid;
  grid-template-columns: clamp(6.5rem, 12vw, 8rem) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--ep-rule);
  border-top: 3px solid var(--ep-gold);
  background: rgba(255,255,255,.52);
}
.speaker-photo-link {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ep-paper-deep);
}
.speaker-photo-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform .2s ease, filter .2s ease;
}
.speaker-photo-link:hover img,
.speaker-photo-link:focus-visible img { transform: scale(1.025); filter: grayscale(1) contrast(1.08); }
.speaker-card-copy { min-width: 0; }
.speaker-name {
  display: block;
  color: var(--ep-ink);
  text-decoration: none;
}
.speaker-name:hover,
.speaker-name:focus-visible { text-decoration: none; }
.speaker-name strong { display: block; line-height: 1.25; }
.speaker-name small {
  display: block;
  margin-top: .35rem;
  color: #76540f;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.speaker-role { display: block; margin-top: .55rem; color: var(--ep-muted); font-size: .9rem; line-height: 1.4; }
.editorial-note {
  margin: 2rem 0;
  padding: 1.2rem 1.35rem;
  background: var(--ep-paper-deep);
  border: 1px solid var(--ep-rule);
  font-size: .92rem;
}
.editorial-note strong {
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.chapter-nav {
  position: sticky;
  top: 1.25rem;
  padding: 1.25rem;
  color: #f6f0e3;
  background: var(--ep-ink);
  border-top: 5px solid var(--ep-orange);
  box-shadow: 0 12px 30px rgba(27,24,19,.12);
}
.chapter-nav h2 { margin: 0 0 .8rem; font-size: 1.75rem; }
.chapter-nav ol { list-style: none; margin: 0; padding: 0; }
.chapter-nav li { border-top: 1px solid rgba(255,255,255,.1); }
.chapter-guide-item {
  width: 100%;
  min-height: 3.25rem;
  display: grid;
  grid-template-columns: 3.7rem 1fr;
  gap: .5rem;
  align-items: center;
  padding: .65rem 0;
  color: #ded5c4;
}
.chapter-guide-item time { color: var(--ep-gold-bright); font: .75rem ui-monospace, monospace; }
.chapter-note { margin: .9rem 0 0; color: #c8beaa; font-size: .76rem; line-height: 1.45; }

.takeaways { padding-left: 1.2rem; }
.takeaways li { margin-bottom: .85rem; }
.resource-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 2rem; }
.resource-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: .45rem .9rem;
  border: 1px solid var(--ep-rule);
  background: #fff;
  text-decoration: none;
}

.presentation-section {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
  color: #f7f0e3;
  background: var(--ep-ink);
}
.presentation-inner { max-width: 70rem; margin: 0 auto; }
.presentation-intro { max-width: 52rem; color: #cdc2ae; }
.presentation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 2rem;
  margin-top: 2.25rem;
}
.presentation-figure { margin: 0; }
.presentation-figure a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(224,182,79,.35);
  background: #0d0b08;
}
.presentation-figure img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.presentation-figure a:hover img { transform: scale(1.015); }
.presentation-figure figcaption { padding-top: .7rem; color: #cfc4b0; font-size: .86rem; line-height: 1.5; }
.presentation-figure figcaption strong { color: var(--ep-gold-bright); }
.presentation-disclaimer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #bfb39d;
  font-size: .82rem;
}

.episode-cta {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--ep-paper-deep);
}
.episode-cta .inner { max-width: 70rem; margin: 0 auto; }
.episode-cta p { max-width: 55rem; }

button:focus-visible, a:focus-visible, select:focus-visible, audio:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ep-focus);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .episode-player { grid-template-columns: 12rem 1fr; }
  .player-art { min-height: 20rem; }
  .player-art img { width: 6.5rem; height: 6.5rem; }
  .notes-grid { grid-template-columns: 1fr; }
  .chapter-nav { position: static; order: -1; }
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 9999;
  padding: .75rem 1rem;
  background: var(--ep-orange);
  color: #130f09;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .1em;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
#episode-audio {
  display: block;
  width: 100%;
  margin: 1rem 0 0;
}

.transcript-link {
  color: var(--ep-gold-bright);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
}
.transcript-link:hover { color: #fff4d6; }
.transcript-page { background: var(--ep-paper); padding: 5rem 0; }
.transcript-inner { max-width: 860px; }
.transcript-page h1 { font-size: clamp(3.2rem, 9vw, 6.5rem); margin: .8rem 0; }
.transcript-deck { font-size: 1.35rem; color: var(--ep-muted); }
.transcript-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 2.5rem; }
.transcript-list { border-top: 4px solid var(--ep-ink); }
.transcript-turn { padding: 1.35rem 0; border-bottom: 1px solid var(--ep-rule); }
.transcript-turn p { margin: .7rem 0 0; line-height: 1.75; }
.transcript-meta { display: flex; gap: 1rem; align-items: baseline; }
.transcript-meta a {
  min-width: 3.2rem;
  color: #76540f;
  font: .95rem/1 'Bebas Neue', sans-serif;
  letter-spacing: .08em;
}
.transcript-meta strong { font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; letter-spacing: .05em; }
.slide-description { margin-top: .65rem; border-top: 1px solid rgba(224,182,79,.28); padding-top: .55rem; }
.slide-description summary { cursor: pointer; color: var(--ep-gold-bright); font-weight: 700; }
.slide-description p { color: #d7c8a8; margin: .55rem 0 0; }

@media (max-width: 720px) {
  .episode-player { grid-template-columns: 1fr; }
  .player-art { min-height: 9rem; border-right: 0; border-bottom: 1px solid rgba(224,182,79,.25); }
  .player-art::before { width: 13rem; height: 13rem; }
  .player-art::after { width: 8rem; height: 8rem; }
  .player-art img { width: 4.7rem; height: 4.7rem; }
  .art-label { font-size: .7rem; }
  .waveform-shell { height: 10rem; min-height: 10rem; }
  .waveform-static img { min-height: 8rem; }
  .player-actions { align-items: flex-start; }
  .time-readout { min-width: 0; }
  .now-playing { grid-column: 1 / -1; grid-row: 2; }
  .download-audio { grid-column: 1 / -1; justify-self: start; }
  .speaker-list, .presentation-grid { grid-template-columns: 1fr; }
  .episode-kicker { font-size: .88rem; }
  .waveform-help { display: none; }
}

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

/* African Town narrated investigation — authentic sponsor visuals in an editorial frame. */
.episode-hero {
  background:
    linear-gradient(90deg, transparent 0 72%, rgba(184,138,42,.08) 72% 72.25%, transparent 72.25%),
    linear-gradient(180deg, rgba(250,248,242,.94), rgba(250,248,242,1)),
    url("images/05-dcez-title.webp") center 44% / cover;
}
.episode-hero h1 { max-width: 13ch; }
.player-art--cover { display: block; min-height: 23rem; }
.player-art--cover::before,
.player-art--cover::after { display: none; }
.player-art--cover img {
  width: 100%;
  height: 100%;
  min-height: 23rem;
  object-fit: cover;
  filter: none;
}
.subject-profile {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
  margin: 1.4rem 0 2rem;
  padding: 1.15rem;
  background: #fff;
  border: 1px solid var(--ep-rule);
  border-top: 4px solid var(--ep-gold);
}
.subject-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--ep-paper-deep);
}
.subject-profile h3 { margin: 0 0 .45rem; }
.subject-profile p { margin: .45rem 0; }
.subject-role {
  color: #76540f;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.evidence-list { padding-left: 1.2rem; }
.evidence-list li { margin-bottom: .8rem; }
.source-credit { color: #bfb39d; font-size: .82rem; }
.source-credit strong { color: var(--ep-gold-bright); }

@media (max-width: 720px) {
  .player-art--cover,
  .player-art--cover img { min-height: 18rem; }
  .subject-profile { grid-template-columns: 7rem minmax(0, 1fr); align-items: start; }
}

@media (max-width: 460px) {
  .subject-profile { grid-template-columns: 1fr; }
  .subject-portrait { max-width: 10rem; }
}
