/*
 * Recording-led visual QA refinements.
 *
 * This layer is intentionally narrow: it fixes issues observed in desktop and
 * mobile screen recordings without changing content architecture, SEO, data,
 * or publishing behavior.
 */

html,
body {
  background-color: #030914;
}

/* Dense archive surfaces should be immediately readable while scrolling.
   Entrance motion on repeated cards created blank/faded states in recordings. */
.media-card[data-reveal],
.guest-card[data-reveal],
.topic-card[data-reveal],
.media-section-heading[data-reveal],
.guest-results-section [data-reveal],
.related-section [data-reveal],
.topics-cta-inner[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  transition-delay: 0s !important;
}

.media-card,
.guest-card,
.topic-card,
.related-conversation-card {
  box-shadow: none;
}

/* Media hub mastheads should establish the page without consuming a third of
   a desktop viewport. Detail pages retain their larger title treatment. */
.media-hero:not(.topics-hero) {
  padding-top: 86px;
  padding-bottom: 38px;
}

/* Topic collections should read as an editorial index rather than a grid of
   decorative app cards. */
.topics-hero::before,
.topics-hero::after,
.topics-section::before {
  display: none;
}

.topic-card {
  min-height: 188px;
  border-radius: 4px;
  background: #fffdf8;
  box-shadow: none;
}

.topic-card::before,
.topic-card::after {
  display: none;
}

.topic-card:hover,
.topic-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: none;
}

/* Guest cards keep the useful directory structure while losing the CRM/app
   appearance. */
.guest-card {
  border-radius: 4px;
  background: #fffdf8;
}

.guest-card h3 {
  margin-bottom: 8px;
}

.guest-monogram,
.guest-monogram-large {
  border-radius: 3px;
  box-shadow: none;
}

.guest-detail-intro {
  padding-block: 20px 12px;
  gap: 18px;
}

/* Alphabetical controls stay highly usable without reading as 27 miniature
   app buttons. */
.alphabet-nav {
  gap: 3px;
  border-bottom: 1px solid rgba(20, 35, 58, .1);
}

.alphabet-nav button {
  width: auto;
  min-width: 31px;
  height: 34px;
  padding-inline: 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
}

.alphabet-nav button[aria-pressed="true"] {
  color: var(--navy-900);
  border-color: var(--gold-500);
  background: transparent;
}

.alphabet-nav button:disabled {
  opacity: .24;
}

/* Long episode titles should remain editorial rather than becoming a wall of
   type at the top of a detail page. */
.detail-hero h1 {
  max-width: 900px;
  text-wrap: balance;
}

/* Homepage feature: retain the large editorial moment while removing excess
   vertical weight seen in the Phase 7 desktop recording. */
.watch-section > .shell > .section-heading {
  margin-bottom: clamp(22px, 2vw, 30px);
}

.featured-meta {
  padding-top: clamp(21px, 2.2vw, 30px);
  padding-bottom: clamp(21px, 2.2vw, 30px);
}

.featured-meta h3 {
  max-width: 760px;
  font-size: clamp(1.9rem, 2.65vw, 2.8rem);
  line-height: 1.02;
  text-wrap: balance;
}

/* Candidate Special remains important, but should not visually outweigh the
   show's editorial content. */
.current-special {
  padding-block: clamp(32px, 4vw, 50px);
}

.current-special-copy {
  padding-top: clamp(30px, 3.4vw, 46px);
  padding-bottom: clamp(30px, 3.4vw, 46px);
}

.current-special-copy h2 {
  max-width: 840px;
}

.current-special-lede,
.current-special-broadcast,
.current-special-urgency {
  max-width: 820px;
}

/* Stepping Up is a recurring editorial franchise. Let the names and stories
   read like a curated index rather than another collection of boxed widgets. */
.organization-grid {
  gap: 0 32px;
  border-top: 1px solid rgba(216, 184, 102, .18);
}

.organization-card,
.organization-callout {
  min-height: 0;
  padding: 20px 0 19px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  border-radius: 0;
  background: transparent;
}

.organization-card:hover,
.organization-card:focus-within {
  transform: none;
  border-color: rgba(216, 184, 102, .18);
  background: rgba(255, 255, 255, .018);
}

.organization-card h3 {
  margin-top: 7px;
}

.organization-card p {
  margin-top: 8px;
}

.organization-card a {
  margin-top: 13px;
}

/* Partnership options should read like an editorial offering index, not four
   SaaS/service cards. */
.partner-menu {
  grid-template-columns: 1fr;
  gap: 0;
  align-content: start;
  border-top: 1px solid rgba(216, 184, 102, .22);
}

.partner-menu article {
  min-height: 0;
  padding: 19px 0 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 15px;
  row-gap: 3px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  border-radius: 0;
  background: transparent;
}

.partner-menu article > span {
  grid-row: 1 / 3;
  align-self: start;
  padding-top: 3px;
  color: var(--gold-400);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.partner-menu strong {
  margin-top: 0;
  font-size: 1.35rem;
  line-height: 1.05;
}

.partner-menu small {
  margin-top: 3px;
  max-width: 520px;
  font-size: .72rem;
  line-height: 1.48;
}

/* Footer remains quiet, but not at the expense of legibility. */
.footer-brand > p {
  font-size: .8rem;
}

.footer-links a {
  font-size: .78rem;
}

.footer-heard small,
.footer-heard a {
  font-size: .72rem;
}

.footer-bottom {
  font-size: .68rem;
}

/* Desktop directory hubs use the same publication-index language as mobile:
   two readable columns, fine rules, and restrained monograms instead of tiles. */
@media (min-width: 760px) {
  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 38px;
    border-top: 1px solid rgba(20, 35, 58, .12);
  }

  .topic-card {
    min-height: 0;
    padding: 25px 2px 23px;
    border: 0;
    border-bottom: 1px solid rgba(20, 35, 58, .12);
    border-radius: 0;
    background: transparent;
  }

  .topic-card:hover,
  .topic-card:focus-visible {
    transform: none;
    background: rgba(255, 255, 255, .24);
  }

  .topic-card h2 {
    font-size: clamp(1.8rem, 2.15vw, 2.35rem);
  }

  .guest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 38px;
    border-top: 1px solid rgba(20, 35, 58, .12);
  }

  .guest-card {
    padding: 23px 2px;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 15px;
    border: 0;
    border-bottom: 1px solid rgba(20, 35, 58, .12);
    border-radius: 0;
    background: transparent;
  }

  .guest-monogram {
    width: 58px;
    height: 58px;
    font-size: 1.08rem;
  }

  .guest-card h3 {
    margin-bottom: 5px;
    font-size: clamp(1.55rem, 1.8vw, 1.9rem);
    line-height: 1.03;
  }
}

/* At full desktop width, Recent Conversations should look intentionally
   curated: four complete cards, no chopped fifth card or visible carousel. */
@media (min-width: 1100px) {
  .episode-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 18px;
    overflow: visible;
    scroll-snap-type: none;
    scrollbar-width: none;
  }

  .episode-rail::-webkit-scrollbar {
    display: none;
  }

  .episode-rail > .episode-card:nth-child(n + 5) {
    display: none;
  }

  .episode-rail .episode-card {
    width: auto;
    min-width: 0;
  }

  /* The artwork and title are enough on a homepage scan. Removing excerpts
     makes four cards feel like editorial recommendations rather than mini pages. */
  .watch-section .episode-rail .episode-body > p {
    display: none;
  }

  .watch-section .episode-rail .episode-body {
    padding: 16px 16px 18px;
  }

  .watch-section .episode-rail .episode-body h3 {
    font-size: 1.28rem;
    line-height: 1.08;
  }
}

@media (max-width: 680px) {
  /* Shorter mobile chrome gives content more room while preserving tap size. */
  .header-inner {
    height: 56px;
  }

  .brand-seal {
    width: 36px;
    height: 36px;
  }

  .menu-button {
    width: 38px;
    height: 38px;
  }

  .primary-nav {
    inset-block-start: 56px;
  }

  html {
    scroll-padding-top: 72px;
  }

  /* topics.css previously reduced this to 42px, which put the first content
     underneath the fixed 60px mobile header. */
  .topics-hero {
    padding-top: 92px;
  }

  .media-hero,
  .detail-hero {
    padding-top: 92px;
  }

  /* On phones, Topics becomes a publication-style vertical index. */
  .topics-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid rgba(20, 35, 58, .12);
  }

  .topic-card {
    min-height: 0;
    padding: 21px 2px 19px;
    border: 0;
    border-bottom: 1px solid rgba(20, 35, 58, .12);
    border-radius: 0;
    background: transparent;
  }

  .topic-card:hover,
  .topic-card:focus-visible {
    transform: none;
    background: rgba(255, 255, 255, .28);
  }

  .topic-card-footer {
    margin-top: 17px;
  }

  /* Preserve alphabetical/search functionality, but present each guest as a
     compact editorial index entry instead of a large profile tile. */
  .guest-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid rgba(20, 35, 58, .12);
  }

  .guest-card {
    padding: 19px 2px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    border: 0;
    border-bottom: 1px solid rgba(20, 35, 58, .12);
    border-radius: 0;
    background: transparent;
  }

  .guest-monogram {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .guest-card h3 {
    margin-bottom: 5px;
    font-size: 1.58rem;
    line-height: 1.04;
  }

  .guest-card p:last-child a {
    font-size: .73rem;
  }

  .guest-detail-intro {
    padding-block: 14px 4px;
    gap: 14px;
  }

  .guest-monogram-large {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    font-size: 1.45rem;
  }

  .detail-hero h1 {
    font-size: clamp(2.2rem, 10.4vw, 3.15rem);
    line-height: 1.01;
  }

  /* On mobile, keep the recent-conversation rail swipeable and preserve all
     recent items; only full desktop receives the curated four-card view. */
  .episode-rail > .episode-card:nth-child(n + 5) {
    display: block;
  }

  .partner-menu article {
    padding-block: 17px;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
  }

  .partner-menu strong {
    font-size: 1.24rem;
  }

  .current-special {
    padding-block: 18px 25px;
  }

  .organization-grid {
    gap: 0;
  }

  .organization-card,
  .organization-callout {
    padding-block: 18px;
  }

  .alphabet-nav {
    gap: 1px;
  }

  .alphabet-nav button {
    min-width: 29px;
    padding-inline: 5px;
  }

  .footer-links a {
    font-size: .8rem;
  }

  .footer-bottom {
    font-size: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topic-card,
  .guest-card,
  .media-card,
  .related-conversation-card {
    transform: none !important;
    transition: none !important;
  }
}
