:root {
  --paper: #f7f4ed;
  --card: #fffdf8;
  --ink: #171714;
  --muted: #66635d;
  --line: #d9d3c7;
  --red: #9e241f;
  --red-dark: #731713;
  --gold: #b58b42;
  --shadow: 0 16px 44px rgba(46, 36, 22, .09);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 30; padding: .8rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 72px; padding: 0 clamp(1.1rem, 4vw, 4rem); display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid rgba(23, 23, 20, .12); background: rgba(247, 244, 237, .94);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-family: Georgia, serif; font-size: 1.16rem; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: white; font: 700 .82rem/1 Inter, sans-serif; letter-spacing: .05em; }
nav { display: flex; gap: 1.25rem; font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--red); }

main { max-width: 1500px; margin: 0 auto; }
.hero { padding: clamp(3rem, 8vw, 6.5rem) clamp(1.1rem, 6vw, 6rem) clamp(2.5rem, 6vw, 5rem); background: radial-gradient(circle at 85% 10%, rgba(181, 139, 66, .16), transparent 30%); }
.eyebrow { margin: 0 0 .5rem; color: var(--red); font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
h1 { max-width: 850px; margin: 0; font-size: clamp(2.5rem, 7vw, 5.6rem); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.hero-copy { max-width: 720px; margin: 1.35rem 0 2rem; color: var(--muted); font: 1.08rem/1.7 Georgia, serif; }
.search-box { max-width: 960px; min-height: 66px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: var(--shadow); }
.search-box > span { font-size: 1.8rem; transform: rotate(-20deg); color: var(--red); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: clamp(1rem, 2vw, 1.25rem); }
kbd { padding: .25rem .45rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; color: var(--muted); background: var(--paper); }

.archive-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); padding: 0 clamp(1.1rem, 6vw, 6rem) 8rem; }
.filters { position: sticky; top: 1rem; align-self: start; padding-top: 2rem; }
.filter-heading, .results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.filter-heading h2 { margin: 0; font-size: 1.25rem; }
.text-button { padding: 0; border: 0; color: var(--red); background: none; font-size: .82rem; }
.topic-filters { display: grid; gap: .35rem; margin: 1rem 0 2rem; }
.catalog-status { color: var(--muted); font-size: .82rem; margin: -1.35rem 0 1.35rem; }
.topic-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .62rem .75rem; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); text-align: left; font-size: .87rem; }
.topic-button:hover { background: rgba(158, 36, 31, .05); color: var(--ink); }
.topic-button[aria-pressed="true"] { border-color: rgba(158, 36, 31, .22); background: rgba(158, 36, 31, .08); color: var(--red-dark); font-weight: 700; }
.topic-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.speed-label { display: grid; gap: .4rem; margin: 0 0 1rem; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
select { min-height: 40px; padding: 0 2rem 0 .7rem; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink); }

.results-panel { min-width: 0; padding-top: 2rem; }
.results-heading { padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.results-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; }
.results { display: grid; }
.clip-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 1rem; padding: 1.45rem 0; border-bottom: 1px solid var(--line); }
.clip-card:target { scroll-margin-top: 1rem; background: rgba(181, 139, 66, .08); }
.clip-play { width: 46px; height: 46px; border: 1px solid var(--red); border-radius: 50%; background: transparent; color: var(--red); }
.clip-play:hover, .clip-play:focus-visible { background: var(--red); color: white; }
.clip-card h3 { margin: 0 0 .55rem; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.25; }
.clip-summary { max-width: 800px; margin: 0; color: var(--muted); font-family: Georgia, serif; font-size: .96rem; line-height: 1.58; }
.clip-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .8rem 0 0; color: var(--muted); font-size: .77rem; }
.clip-topic { color: var(--red); font-weight: 750; }
.card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .65rem; }
.action-button { padding: .35rem .55rem; border: 0; background: transparent; color: var(--muted); font-size: .78rem; }
.action-button:hover { color: var(--red); }
.transcript { grid-column: 2 / -1; margin-top: .2rem; padding: 1rem 1.1rem; border-left: 3px solid var(--gold); background: rgba(255, 253, 248, .76); }
.transcript[hidden] { display: none; }
.transcript p { margin: 0 0 .7rem; color: #44413b; font: .92rem/1.65 Georgia, serif; }
.transcript p:last-child { margin-bottom: 0; }
.transcript-time { margin-right: .5rem; padding: 0; border: 0; color: var(--red); background: none; font: 700 .75rem/1 Inter, sans-serif; }
mark { padding: 0 .08em; background: #f0d78a; color: inherit; }
.empty { padding: 4rem 0; text-align: center; color: var(--muted); }
.load-more { display: block; min-width: 190px; margin: 2rem auto; padding: .8rem 1.2rem; border: 1px solid var(--ink); border-radius: 4px; background: transparent; }
.load-more:hover { background: var(--ink); color: white; }

.player { position: fixed; z-index: 20; right: 1rem; bottom: 1rem; left: 1rem; display: grid; grid-template-columns: minmax(180px, 1.3fr) auto minmax(240px, 1fr) auto; align-items: center; gap: 1rem; max-width: 1220px; min-height: 84px; margin: auto; padding: .8rem 1rem; border: 1px solid #34342f; border-radius: 7px; background: #1f1f1b; color: white; box-shadow: 0 18px 60px rgba(0, 0, 0, .28); }
.player[hidden] { display: none; }
.soundcloud-widget { grid-column: 1 / -1; width: 100%; height: 80px; border: 0; }
.soundcloud-widget[hidden] { display: none; }
.player .eyebrow { margin-bottom: .2rem; color: #d2ad69; }
.player-title { overflow: hidden; margin: 0; font-family: Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.player-controls { display: flex; align-items: center; gap: .35rem; }
.player-controls button { width: 40px; height: 40px; border: 1px solid #55554e; border-radius: 50%; background: transparent; color: white; font-size: .78rem; }
.player-controls .play-pause { border-color: white; background: white; color: var(--ink); font-size: .95rem; }
.player-progress { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: .55rem; font-size: .75rem; font-variant-numeric: tabular-nums; }
.player-progress input { width: 100%; accent-color: #d2ad69; }
.speed-label { margin: 0; color: #bbb9b0; }
.speed-label select { min-height: 34px; border-color: #55554e; background: #2c2c27; color: white; }

footer { padding: 3rem clamp(1.1rem, 6vw, 6rem) 7.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.6; }
footer p { max-width: 900px; }

@media (max-width: 900px) {
  .archive-shell { grid-template-columns: 1fr; }
  .filters { position: static; }
  .topic-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-button { min-width: 0; border-color: var(--line); white-space: normal; }
  .player { grid-template-columns: 1fr auto; }
  .player-progress { grid-column: 1 / -1; grid-row: 2; }
  .speed-label { display: none; }
}

@media (max-width: 340px) {
  .topic-filters { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .site-header { min-height: 62px; }
  .brand { font-size: 1rem; }
  nav a:first-child { display: none; }
  .hero { padding-top: 2.7rem; }
  kbd { display: none; }
  .search-box { grid-template-columns: auto 1fr; min-height: 58px; }
  .archive-shell { gap: 0; }
  .results-heading { align-items: flex-start; }
  .clip-card { grid-template-columns: 42px minmax(0, 1fr); gap: .8rem; }
  .clip-play { width: 42px; height: 42px; }
  .card-actions { grid-column: 2; flex-direction: row; justify-content: flex-start; }
  .transcript { grid-column: 1 / -1; }
  .player { right: .45rem; bottom: .45rem; left: .45rem; gap: .65rem; }
  .player-controls button:not(.play-pause) { display: none; }
  .player-meta { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Shared BrinkerAdvisor chrome and publication theme. These values mirror
   the production Rates, Econ, and Books pages. */
:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #222222;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --blue: #0d4c8c;
  --blue-deep: #222222;
  --green: #1f8c62;
  --green-soft: rgba(31, 140, 98, 0.12);
  --red: #0d4c8c;
  --red-dark: #003f7d;
  --gold: #1f8c62;
  --shadow: none;
  --content-width: 740px;
  --chrome-width: 1120px;
  color-scheme: light;
  background: var(--bg);
  color: var(--ink);
  font-family: "Georgia", "Times New Roman", serif;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
}

.app-shell {
  width: min(calc(100% - 24px), var(--chrome-width));
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 0 max(20px, env(safe-area-inset-bottom));
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  min-height: 0;
  margin-top: calc(0px - max(10px, env(safe-area-inset-top)));
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.98);
  overflow-x: clip;
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  max-width: var(--chrome-width);
  margin: 0 auto;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
}

.site-header__icon-link {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
}

.site-header__icon {
  display: block;
  width: 40px;
  height: 40px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hero__logo {
  display: block;
  width: min(269px, calc(100vw - 136px));
  height: auto;
  max-height: 38px;
}

.top-nav {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.15px;
  overflow-x: hidden;
}

.top-nav__items {
  min-height: 48px;
  width: 100%;
  max-width: min(900px, 100%);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.top-nav__items::-webkit-scrollbar { display: none; }
.top-nav__item { flex: 0 0 auto; }

.top-nav__item a,
.top-nav__item a:first-child {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: #363737;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.15px;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav__label-short { display: none; }
.top-nav__item a:hover,
.top-nav__item a:focus-visible { color: #005eb8; outline: none; }
.top-nav__item--selected > a,
.top-nav a[aria-current="page"] { color: #363737; font-weight: 700; }

.top-nav__item--selected > a::after,
.top-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  background: #363737;
}

.top-nav__menu > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: #363737;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.15px;
  list-style: none;
  white-space: nowrap;
}

.top-nav__menu > summary::-webkit-details-marker { display: none; }
.top-nav__menu > summary::after { width: 6px; height: 6px; margin: -3px 1px 0 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: rotate(45deg); }
.top-nav__menu[open] > summary::after { margin-top: 3px; transform: rotate(225deg); }
.top-nav__menu > summary:hover,
.top-nav__menu > summary:focus-visible { color: #005eb8; outline: none; }
.top-nav__item--selected > summary { color: #363737; font-weight: 700; }
.top-nav__item--selected > summary::before { position: absolute; right: 12px; bottom: 0; left: 12px; height: 3px; background: #363737; content: ""; }

.top-nav__submenu {
  position: fixed;
  z-index: 40;
  top: 137px;
  left: 50%;
  width: min(240px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 35, 43, 0.16);
  transform: translateX(-50%);
}

.top-nav__submenu a { min-height: 42px; padding: 10px 12px; border-radius: 4px; line-height: 1.3; }
main {
  display: block;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.hero {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 1.85rem 0 1.35rem;
  border-bottom: 1px solid var(--line);
  background: none;
}

.audio-crosslink {
  margin: 0 0 0.45rem;
}

.audio-crosslink .text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 { color: var(--ink); font-family: "Spectral", Georgia, serif; }

h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: none;
  margin: 0.9rem 0 1.25rem;
  color: #555555;
  font: 1.08rem/1.65 Georgia, "Times New Roman", serif;
}

.search-box {
  max-width: none;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(13, 76, 140, 0.12); }
.search-box > span { color: var(--blue); font-size: 1.45rem; }
.search-box input { color: var(--ink); font-size: 1rem; }

.archive-shell {
  width: 100%;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.6rem;
  padding: 2rem 0 7rem;
}

.filters { top: 126px; padding-top: 0; }
.filter-heading h2 { font-size: 1.2rem; }
.text-button { color: var(--blue); font-family: "Manrope", "Segoe UI", sans-serif; }
.topic-button { border-radius: 0; color: var(--muted); font-family: "Manrope", "Segoe UI", sans-serif; }
.topic-button:hover { background: #f5f7f9; }
.topic-button[aria-pressed="true"] { border-color: #c8d8e8; background: #eef4f9; color: var(--blue); }
.topic-filters { scrollbar-width: none; }
.topic-filters::-webkit-scrollbar { display: none; }
.speed-label { font-family: "Manrope", "Segoe UI", sans-serif; }
select { border-radius: 0; background: #ffffff; }

.results-panel { padding-top: 0; }
.results-heading { border-bottom: 1px solid var(--line); }
.results-heading h2 { font-size: 1.65rem; }
.clip-card { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 1.35rem 0; }
.clip-play { width: 44px; height: 44px; border-color: var(--blue); color: var(--blue); font-family: Arial, Helvetica, sans-serif; }
.clip-play:hover,
.clip-play:focus-visible { background: var(--blue); color: #ffffff; }
.clip-card h3 { font-size: 1.22rem; line-height: 1.24; }
.clip-summary { color: #555555; font-size: 0.96rem; }
.clip-meta,
.action-button { font-family: "Manrope", "Segoe UI", sans-serif; }
.clip-topic,
.action-button:hover { color: var(--blue); }
.transcript { border-left-color: var(--green); background: #f8faf8; }
.transcript-time { color: var(--blue); }
mark { background: #dff4e5; }
.load-more { border-radius: 0; font-family: "Manrope", "Segoe UI", sans-serif; }

.player {
  border-color: #222222;
  border-radius: 0;
  background: #222222;
  font-family: "Manrope", "Segoe UI", sans-serif;
}
.player .eyebrow { color: #a8d9ba; }
.player-title { font-family: "Spectral", Georgia, serif; }

.archive-disclaimer {
  width: min(100%, var(--content-width));
  margin: 1.5rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
}

.site-footer {
  width: min(100%, var(--content-width));
  margin: 3.4rem auto 0;
  padding: 2rem 0 0.4rem;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: center;
  font-size: 18px;
  line-height: 1.65;
}

.site-footer__subscribe { display: flex; justify-content: stretch; padding-bottom: 1.8rem; }
.site-footer__embed-wrap { width: 100%; }
.site-footer__embed { display: block; width: 100%; height: 320px; border: 1px solid #eeeeee; background: #ffffff; }
.site-footer__embed-fallback { margin: 0.55rem 0 0; color: var(--muted); font: 0.8rem/1.4 "Manrope", "Segoe UI", sans-serif; text-align: center; }
.site-footer__embed-fallback a,
.site-footer__legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.14em; }
.site-footer__meta { padding: 1.1rem 0 0; }
.site-footer__legal { margin: 0; color: var(--muted); font: 0.8rem/1.65 "Manrope", "Segoe UI", sans-serif; }

@media (max-width: 900px) {
  .archive-shell { width: 100%; min-width: 0; max-width: 100%; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .filters,
  .results-panel { width: 100%; min-width: 0; max-width: 100%; }
  .filters { position: static; }
  .topic-filters { width: 100%; min-width: 0; max-width: 100%; }
}

@media (max-width: 600px) {
  .site-header { min-height: 0; }
  .top-nav a:first-child { display: block; }
  .results,
  .results-panel,
  .clip-card,
  .clip-card > * { min-width: 0; max-width: 100%; }
  .clip-card { grid-template-columns: 44px minmax(0, 1fr); }
  .clip-card h3,
  .clip-summary,
  .clip-meta,
  .transcript,
  .transcript p,
  .transcript p span { overflow-wrap: anywhere; }
  .card-actions { grid-column: 2; flex-flow: row wrap; align-items: center; justify-content: flex-start; }
  .action-button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .transcript { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  html { font-size: 17px; }
  .app-shell { width: min(calc(100% - 16px), var(--chrome-width)); overflow-x: clip; }
  .site-header__bar { min-height: 52px; }
  .site-header__icon-link,
  .site-header__icon { width: 34px; height: 34px; }
  .top-nav__items { justify-content: flex-start; flex-wrap: nowrap; min-height: 42px; padding: 4px 8px 5px; overflow-x: auto; scroll-padding-inline: 8px; }
  .top-nav__item a,
  .top-nav__item a:first-child { display: block; padding: 8px; font-size: 0.84rem; line-height: 1.25; }
  .top-nav__label-full { display: none; }
  .top-nav__label-short { display: inline; }
  .hero { padding-top: 1.2rem; }
  .archive-shell { padding-top: 1.35rem; }
  .site-footer__subscribe { justify-content: center; }
}

.episode-hero { padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.episode-hero .hero-copy { max-width: 900px; }
.episode-library-summary { margin: 1.35rem 0 0; color: var(--muted); font: 500 0.9rem/1.5 "Manrope", "Segoe UI", sans-serif; }
.episode-subscribe-cta { display: flex; max-width: 900px; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.episode-subscribe-cta p { margin: 0; color: var(--ink); font: 600 0.92rem/1.5 "Manrope", "Segoe UI", sans-serif; }
.episode-subscribe-cta__link { display: inline-flex; min-height: 42px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0.15rem 1rem; border: 1px solid var(--blue); background: var(--blue); color: #ffffff; font: 750 0.78rem/1.25 "Manrope", "Segoe UI", sans-serif; text-decoration: none; }
.episode-subscribe-cta__link:hover { border-color: var(--ink); background: var(--ink); }
.episode-subscribe-cta__link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.episode-archive-shell { width: min(calc(100% - 48px), var(--content-width)); margin: 0 auto; padding: clamp(1.35rem, 3vw, 2.25rem) 0 1rem; }
.episode-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.episode-toolbar h2 { margin: 0; font: 600 clamp(1.55rem, 3vw, 2.1rem)/1.2 "Spectral", Georgia, serif; }
.episode-summary { margin: 0.5rem 0 0; color: var(--muted); font: 0.88rem/1.5 "Manrope", "Segoe UI", sans-serif; }
.year-filter { display: grid; flex: 0 0 180px; gap: 0.45rem; color: var(--muted); font: 700 0.72rem/1.3 "Manrope", "Segoe UI", sans-serif; letter-spacing: 0.07em; text-transform: uppercase; }
.year-filter select { width: 100%; min-height: 44px; border: 1px solid #bdc9d5; border-radius: 0; background: #ffffff; color: var(--ink); font: 600 0.92rem "Manrope", "Segoe UI", sans-serif; }
.episode-years { display: grid; gap: 2.2rem; margin-top: 1.5rem; }
.episode-year-section { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 3rem); }
.episode-year-section > h2 { position: sticky; top: 126px; align-self: start; margin: 0; color: var(--blue); font: 600 1.55rem/1 "Spectral", Georgia, serif; }
.episode-list { min-width: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.episode-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.episode-card h3 { margin: 0.35rem 0 0.45rem; overflow-wrap: anywhere; font: 600 clamp(1.05rem, 2vw, 1.28rem)/1.35 "Spectral", Georgia, serif; }
.episode-date { color: var(--blue); font: 800 0.72rem/1.4 "Manrope", "Segoe UI", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.episode-source { margin: 0; color: var(--muted); font: 0.76rem/1.5 "Manrope", "Segoe UI", sans-serif; }
.episode-link { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0.15rem 0.9rem; border: 1px solid var(--blue); color: var(--blue); font: 750 0.78rem/1.25 "Manrope", "Segoe UI", sans-serif; text-align: center; text-decoration: none; white-space: nowrap; }
.episode-link:hover { background: var(--blue); color: #ffffff; }
.episode-link:focus-visible,
.year-filter select:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.episode-footer { margin-top: 2.5rem; }

@media (max-width: 600px) {
  .episode-subscribe-cta { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
  .episode-archive-shell { width: min(calc(100% - 24px), var(--content-width)); padding-top: 1.15rem; }
  .episode-toolbar { align-items: stretch; flex-direction: column; }
  .year-filter { width: min(100%, 220px); flex-basis: auto; }
  .episode-year-section { grid-template-columns: 1fr; gap: 0.8rem; }
  .episode-year-section > h2 { position: static; }
  .episode-card { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .episode-link { width: 100%; box-sizing: border-box; white-space: normal; }
}

/* Ask Bob remote-source attribution. */
.source-link { text-decoration: underline; text-underline-offset: 0.14em; }
.player-source { color: #d7d7d2; font: 0.72rem/1.3 "Manrope", "Segoe UI", sans-serif; text-decoration: underline; text-underline-offset: 0.14em; }
.player-source:hover, .player-source:focus-visible { color: #ffffff; }
.archive-disclaimer strong { color: var(--ink); }
@media (max-width: 520px) {
  .top-nav__menu > summary { min-height: 42px; padding: 8px; font-size: .84rem; line-height: 1.25; }
  .top-nav__submenu { top: 110px; }
}

@media (max-width: 700px) {
  html:has(.top-nav__menu[open]),
  body:has(.top-nav__menu[open]) {
    overflow: hidden;
  }

  .top-nav__item > a,
  .top-nav__item > a:first-child,
  .top-nav__menu > summary {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px;
    font-size: 0.84rem;
    line-height: 1.25;
  }

  .top-nav__item--selected > summary {
    background-image: linear-gradient(#363737, #363737);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: calc(100% - 16px) 3px;
  }

  .top-nav__item--selected > summary::before {
    content: none;
  }

  .top-nav__menu[open] > summary::before {
    content: "";
    position: fixed;
    z-index: 50;
    inset: 0;
    width: auto;
    height: auto;
    background: rgba(26, 31, 34, 0.52);
  }

  .top-nav__submenu {
    position: fixed;
    z-index: 60;
    top: auto;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 26px 10px 10px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(18, 24, 28, 0.24);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: none;
  }

  .top-nav__submenu::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: #d7d9da;
    transform: translateX(-50%);
  }

  .top-nav__item .top-nav__submenu a {
    box-sizing: border-box;
    min-height: 64px;
    padding: 0 16px;
    border-radius: 10px;
    color: #232526;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
  }

  .top-nav__submenu a:hover,
  .top-nav__submenu a:focus-visible {
    background: #f3f4f4;
    color: #232526;
    outline: none;
  }

  .top-nav__submenu a[aria-current="page"] {
    font-weight: 500;
  }

  .top-nav__submenu a[aria-current="page"]::after {
    content: none;
  }
}
