:root {
  --brand-ink: #1f2430;
  --brand-panel: #fff7f0;
  --brand-border: rgba(31, 36, 48, 0.12);
  --brand-accent: #ff914d;
  --brand-shadow: 0 24px 60px rgba(31, 36, 48, 0.12);
}

#mainNav .navbar-brand.topLink { display: inline-flex; align-items: center; gap: 1cm; }

.astro-page-container { padding-top: 120px; padding-bottom: 64px; }
.podcast-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 32px; align-items: start; }
.podcast-hero-copy { padding: 32px; border: 1px solid var(--brand-border); border-radius: 28px; background: linear-gradient(145deg, #fffaf6, #fff 58%, #fff0e5); box-shadow: var(--brand-shadow); }
.podcast-hero h1 { margin-bottom: 16px; color: var(--brand-ink); font-size: clamp(2.25rem, 4vw, 4rem); line-height: .98; }
.hero-intro { color: #495057; font-size: 1.08rem; line-height: 1.7; }
.hero-platform-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-platform-link { display: inline-flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid rgba(255,145,77,.25); border-radius: 999px; color: var(--brand-ink); background: #fff; text-decoration: none; }
.podcast-hero-video { display: grid; gap: 16px; }
.hero-video-frame { position: relative; overflow: hidden; padding-top: 56.25%; border-radius: 28px; background: #111; box-shadow: var(--brand-shadow); }
.hero-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-fallback-image { width: 100%; border-radius: 28px; }
.hero-video-caption { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; padding: 14px; border: 2px solid rgba(255,145,77,.28); border-radius: 20px; color: var(--brand-ink); background: #fff; text-decoration: none; }
.hero-video-caption img { width: 100%; border-radius: 14px; }
.hero-video-caption span { display: grid; gap: 5px; }
.hero-video-caption-label, .section-kicker, .episode-eyebrow { color: var(--brand-accent); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.homepage-section { margin-top: 44px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; color: var(--brand-ink); }
.episode-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.episode-tile { display: flex; overflow: hidden; flex-direction: column; border: 1px solid var(--brand-border); border-radius: 24px; background: #fff; box-shadow: 0 18px 45px rgba(31,36,48,.08); }
.episode-tile-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.episode-tile-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px; }
.episode-tile-meta { color: #6c757d; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.episode-tile-title { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.episode-tile-title a, .episode-tile-link { color: var(--brand-ink); text-decoration: none; }
.episode-tile-guest, .episode-tile-summary { margin: 0; color: #5c6470; }
.episode-tile-guest, .episode-tile-link { font-weight: 700; }
.episode-tile-link { margin-top: auto; color: var(--brand-accent); }

.archive-page h1, .episode-page h1 { margin-top: 18px; }
.archive-filter-bar { display: flex; align-items: center; gap: 18px; margin: 24px 0 30px; }
.archive-filter-bar > p { margin: 0; color: #6c757d; }
.archive-filter-picker { position: relative; }
.archive-filter-picker > summary { display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border: 1px solid var(--brand-accent); border-radius: 999px; color: var(--brand-ink); background: var(--brand-panel); cursor: pointer; font-weight: 700; list-style: none; }
.archive-filter-picker > summary::-webkit-details-marker { display: none; }
.archive-filter-picker > summary::after { content: "▾"; font-size: .8em; }
.archive-filter-picker[open] > summary::after { content: "▴"; }
.archive-filter-panel { position: absolute; z-index: 100; top: calc(100% + 10px); left: 0; width: min(760px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--brand-border); border-radius: 20px; background: #fff; box-shadow: var(--brand-shadow); }
.archive-filter-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 16px; }
.archive-filter-heading div { display: grid; }
.archive-filter-heading small { color: #6c757d; }
.archive-filter-heading button { border: 0; color: var(--brand-accent); background: transparent; cursor: pointer; font-weight: 700; }
.archive-filter-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 14px; overflow-y: auto; max-height: min(55vh, 430px); padding-right: 8px; }
.archive-filter-options label { display: flex; gap: 8px; align-items: start; padding: 7px 8px; border-radius: 8px; cursor: pointer; line-height: 1.25; }
.archive-filter-options label:hover { background: var(--brand-panel); }
.archive-filter-options input { margin-top: 3px; accent-color: var(--brand-accent); }
.selected-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 28px; }
.selected-filters[hidden] { display: none; }
.selected-filter-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 13px; border: 1px solid rgba(255,145,77,.38); border-radius: 999px; color: var(--brand-ink); background: var(--brand-panel); font-size: .9rem; font-weight: 700; }
.selected-filter-chip button { display: inline-grid; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; place-items: center; color: var(--brand-ink); background: rgba(255,145,77,.2); cursor: pointer; font-size: 1.15rem; line-height: 1; }
.selected-filter-chip button:hover { color: #fff; background: var(--brand-accent); }
.archive-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.archive-card { display: flex; overflow: hidden; flex-direction: column; min-width: 0; border: 1px solid var(--brand-border); border-radius: 22px; background: #fff; box-shadow: 0 16px 38px rgba(31,36,48,.08); }
.archive-card[hidden] { display: none !important; }
.archive-card-image-link { display: block; overflow: hidden; background: #f1f1f1; }
.archive-card-image { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .2s ease; }
.archive-card:hover .archive-card-image { transform: scale(1.02); }
.archive-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px; }
.archive-card-meta { margin: 0; color: #6c757d; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.archive-card h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.archive-card h2 a { color: var(--brand-ink); text-decoration: none; }
.archive-card h2 a:hover { color: var(--brand-accent); }
.archive-card-guest { margin: 0; color: #5c6470; }
.archive-card-cta { margin-top: auto; color: var(--brand-accent); font-weight: 700; text-decoration: none; }
.primary-button { padding: 9px 14px; border: 1px solid var(--brand-accent); border-radius: 999px; color: var(--brand-ink); background: var(--brand-panel); cursor: pointer; text-decoration: none; }

.episode-header { max-width: 920px; margin: 22px 0 32px; }
.episode-header h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; }
.episode-guest { font-size: 1.2rem; }
.episode-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.listen-panel { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: start; padding: 28px; border-radius: 24px; background: #f5f5f5; }
.episode-profile { width: 180px; max-height: 220px; border-radius: 14px; object-fit: cover; }
.listen-panel audio { width: min(100%, 620px); }
.content-warning { padding: 8px; color: #fff; background: #111; font-weight: 700; }
.episode-platforms { display: flex; flex-wrap: wrap; gap: 16px; }
.episode-platforms .playLink { font-size: 2rem; }
.sponsor { grid-column: 1/-1; display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.sponsor img { max-width: 260px; max-height: 90px; object-fit: contain; }
.prose { max-width: 900px; margin-top: 38px; font-size: 1.1rem; line-height: 1.75; }
.prose img { max-width: 100%; height: auto; }
.episode-description img.bookCover,
.episode-description img.bookCoverRight { max-width: 100px; width: auto; height: auto; }
.transcript-download { max-width: 900px; margin: 32px 0 0; }
.transcript-download a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid rgba(167,70,12,.35); border-radius: 999px; color: #873805; background: #fff7f0; font-weight: 700; text-decoration: none; }
.transcript-download a:hover,
.transcript-download a:focus-visible { border-color: #a7460c; color: #713006; background: #ffeadb; }
.related-episodes { max-width: 900px; margin-top: 42px; padding: 28px; border: 1px solid var(--brand-border); border-radius: 20px; background: #f7f7f8; }
.related-episodes h2 { margin: 0 0 20px; color: var(--brand-ink); font-size: clamp(1.5rem, 3vw, 2rem); }
.related-episodes ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.related-episodes li { min-width: 0; margin: 0; }
.related-episodes a { display: flex; height: 100%; padding: 16px 18px; border: 1px solid var(--brand-border); border-left: 4px solid var(--brand-accent); border-radius: 12px; color: var(--brand-ink); background: #fff; box-shadow: 0 6px 18px rgba(31,36,48,.05); font-weight: 700; line-height: 1.4; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.related-episodes a:visited { color: var(--brand-ink); }
.related-episodes a:hover,
.related-episodes a:focus-visible { border-color: rgba(167,70,12,.45); border-left-color: #a7460c; color: #a7460c; box-shadow: 0 10px 24px rgba(31,36,48,.1); transform: translateY(-2px); }
.center-action { margin: 32px 0; text-align: center; }

@media (max-width: 991px) {
  .podcast-hero { grid-template-columns: 1fr; }
  .archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-filter-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .episode-tiles { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .listen-panel { grid-template-columns: 1fr; }
  .episode-profile { width: min(100%, 260px); }
  .sponsor { align-items: start; flex-direction: column; }
  .archive-list, .archive-filter-options { grid-template-columns: 1fr; }
  .archive-filter-panel { position: fixed; top: 96px; right: 16px; bottom: 16px; left: 16px; width: auto; }
  .archive-filter-options { max-height: calc(100vh - 210px); }
  .related-episodes { padding: 20px; }
  .related-episodes ul { grid-template-columns: 1fr; }
}
