/* Podcast discovery extends the established editorial page system. */
.podcast-start,
.podcast-topics,
.podcast-related {
  padding-top: clamp(48px, 6vw, 76px);
}

.podcast-start > h2,
.podcast-topics > h2,
.podcast-related > h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.podcast-three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  margin-bottom: 0;
}

.episode-card h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.5vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.episode-card h3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.podcast-topic-links,
.podcast-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.podcast-topic-links a,
.podcast-filters button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid currentColor;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
}

.podcast-filters button[aria-pressed="true"] {
  color: var(--chalk);
  background: var(--ink);
}

.podcast-discovery label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.podcast-discovery input {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.podcast-content-note {
  margin-bottom: 24px;
  padding: 20px;
  border-left: 3px solid var(--olive);
  background: rgba(23, 23, 20, 0.045);
  font-size: 0.9rem;
}

.podcast-content-note p:first-child {
  margin-top: 0;
}

.podcast-note {
  font-size: 0.82rem;
  color: rgba(23, 23, 20, 0.72);
}

.podcast-chapters {
  margin: 40px 0;
}

.podcast-chapters ol {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.podcast-chapters li {
  border-top: 1px solid rgba(23, 23, 20, 0.2);
}

.podcast-chapters button {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-height: 44px;
  padding: 12px 4px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.podcast-chapters button span {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.podcast-show-notes {
  margin: 28px 0;
  overflow-wrap: anywhere;
}

.podcast-show-notes summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 700;
}

.podcast-chapters button:hover,
.podcast-chapters button:focus-visible,
.podcast-topic-links a:hover {
  background: rgba(23, 23, 20, 0.06);
}

.podcast-filters button:focus-visible,
.podcast-chapters button:focus-visible,
.podcast-discovery input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

[data-podcast-row][hidden],
.episode-year[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .podcast-three-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .podcast-chapters *,
  .podcast-discovery * {
    scroll-behavior: auto;
  }
}
