/* Two Simps and a Micraphone: breakpoints, kept in their original order per component
   Converted from the React CSS modules. Class names follow component__class. */

/* ==========================================================================
   Nav
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__isOpen {
    background: #0a0907;
    border-bottom-color: rgba(201, 154, 58, 0.18);
  }
}
@media (max-width: 520px) {
  .nav__tally,
  .nav__listen,
  .nav__soundHeader {
    display: none;
  }
}
@media (max-width: 1440px) {
  .nav__soundLabel {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* ==========================================================================
   Button
   ========================================================================== */
@media (max-width: 480px) {
  .button__btn {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
@media (min-width: 1360px) {
  .hero__ctas {
    flex-direction: row;
  }
}
@media (max-width: 1100px) {
  .hero__tagline {
    display: none;
  }
  .hero__footer {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.9rem;
  }
  .hero__intro {
    max-width: 44vw;
    justify-items: end;
  }
  .hero__medal {
    --size: 140px;
    left: calc(var(--gutter) + 70px);
  }
  .hero__medalRing {
    font-size: 11px;
  }
  .hero__rig {
    width: 70vw;
  }
}
@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {
  .hero__hero {
    --t: 25.5vw;
    --top: calc(var(--nav-h) + 3vh);
    --ticker-h: 2.4rem;
    min-height: 700px;
  }
  .hero__title {
    top: var(--top);
    transform: none;
    flex-direction: column;
    padding-inline: var(--gutter);
    line-height: 0.84;
  }
  .hero__two {
    align-self: flex-start;
  }
  .hero__simps {
    align-self: flex-end;
    margin-top: -0.04em;
  }
  .hero__two > span,
  .hero__simps > span {
    background-image: linear-gradient(180deg, #fffaf0 0%, #efe3c8 38%, #b39a6c 72%, #5d4a2e 100%);
  }
  .hero__rig {
    width: 84vw;
    left: 50%;
    top: calc(var(--nav-h) - 2px);
  }
  .hero__lamp {
    width: 10px;
    height: 10px;
  }
  .hero__sign {
    display: none;
  }
  .hero__credit {
    gap: 0.1rem;
  }
  .hero__credit strong {
    font-size: 1.45rem;
  }
  .hero__creditLabel {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
  }
  .hero__creditRule {
    display: none;
  }
  .hero__creditL,
  .hero__creditR {
    left: auto;
    right: var(--gutter);
    justify-items: end;
  }
  .hero__creditL {
    top: calc(var(--top) + var(--t) * 0.06);
  }
  .hero__creditR {
    top: calc(var(--top) + var(--t) * 0.06 + 3rem);
  }
  .hero__sub {
    right: var(--gutter);
    top: calc(var(--top) + var(--t) * 1.72 + 0.5rem);
    font-size: 1.85rem;
  }
  .hero__halo {
    top: var(--mic-y, 58%);
    width: 90vw;
  }
  .hero__cone {
    clip-path: polygon(35% 0, 65% 0, 95% 100%, 5% 100%);
  }
  .hero__eq {
    top: var(--mic-y, 58%);
    height: 10vh;
  }
  .hero__micFallback {
    top: 46%;
    height: 27%;
  }
  .hero__micHit {
    top: var(--mic-y, 58%);
    width: 46vw;
    height: 26vh;
  }
  /* Host badge sits to the left of the mic band */
  .hero__medal {
    --size: 92px;
    left: var(--gutter);
    translate: 0 0;
    bottom: auto;
    top: calc(60% - 46px);
  }
  .hero__medalRing,
  .hero__medalCta {
    display: none;
  }
  .hero__medal img {
    width: 100%;
    height: 100%;
    box-shadow:
      0 0 0 4px rgba(8, 8, 8, 0.92),
      0 0 0 5px var(--line-gold),
      0 0 40px rgba(201, 154, 58, 0.3);
  }
  .hero__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    bottom: calc(var(--ticker-h) + 0.75rem);
  }
  .hero__ctas {
    gap: 0.25rem;
  }
  /* Secondary action becomes a light text link: keeps the mic band clear */
  .hero__secondary {
    min-height: 44px;
    border: 0;
    background: none;
    justify-content: center;
    color: var(--ash);
  }
  .hero__secondary::before {
    display: none;
  }
  .hero__secondary:hover,
  .hero__secondary:focus-visible {
    color: var(--gold-light);
  }
  .hero__intro {
    max-width: none;
    justify-items: stretch;
  }
  .hero__newEp {
    font-size: 0.8rem;
  }
  .hero__tickerItem {
    font-size: 0.7rem;
  }
}
@media (max-width: 767px) {
  .hero__medal {
    display: none;
  }
  /* Both host credits side by side beside TWO */
  .hero__creditL {
    right: calc(var(--gutter) + 5.6rem);
  }
  .hero__creditR {
    top: calc(var(--top) + var(--t) * 0.06);
  }
  .hero__hero {
    min-height: 600px;
  }
}
@media (max-width: 360px) {
  .hero__credit strong {
    font-size: 1.2rem;
  }
  .hero__creditLabel {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
  }
  .hero__creditL {
    right: calc(var(--gutter) + 4.4rem);
  }
}
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero__hero {
    --t: 27vw;
    --ticker-h: 2.7rem;
  }
  .hero__credit strong {
    font-size: 2rem;
  }
  .hero__creditLabel {
    font-size: 0.72rem;
  }
  .hero__creditR {
    top: calc(var(--top) + var(--t) * 0.06 + 3.8rem);
  }
  .hero__sub {
    font-size: 2.6rem;
  }
  .hero__medal {
    --size: 136px;
    top: calc(var(--mic-y, 64%) - 68px);
  }
  .hero__secondary {
    border: 1px solid rgba(244, 239, 228, 0.28);
    background: rgba(8, 8, 8, 0.6);
    padding: 0 1.5rem 0 0.5rem;
  }
  .hero__medal img {
    width: 100%;
    height: 100%;
  }
  .hero__footer {
    align-items: center;
    gap: 1rem;
    bottom: calc(var(--ticker-h) + 1.5rem);
  }
  .hero__intro {
    display: grid;
    justify-items: center;
  }
  .hero__tagline {
    display: none;
  }
  .hero__ctas {
    flex-direction: row;
    justify-content: center;
  }
}

/* ==========================================================================
   Episodes
   ========================================================================== */
@media (max-width: 700px) {
  .episodes__featured {
    grid-template-columns: 1fr;
  }
  .episodes__coverWrap {
    order: -1;
    max-width: 380px;
    padding-left: 0;
  }
  .episodes__bigNum {
    left: auto;
    right: 0.12em;
    top: -0.32em;
    bottom: auto;
    font-size: 6rem;
  }
  .episodes__coverNote {
    justify-self: start;
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .episodes__featured {
    gap: 1.75rem;
    padding: 1.75rem;
  }
  .episodes__featuredTitle {
    font-size: 2.3rem;
  }
  .episodes__coverWrap {
    padding-left: 0;
  }
  .episodes__bigNum {
    font-size: 5.5rem;
    bottom: 1.5rem; /* sits on the cover, clear of the note below */
  }
}
@media (max-width: 900px) {
  .episodes__meta {
    gap: 1.75rem;
  }
  .episodes__row {
    grid-template-columns: 3.4rem 1fr 2.5rem;
    gap: 1rem;
    padding: 1.25rem 0;
  }
  .episodes__rowEq {
    display: none;
  }
  .episodes__rowMeta {
    grid-column: 2;
    grid-row: 2;
    justify-items: start;
    display: flex;
    gap: 0.75rem;
  }
  .episodes__rowGo {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .episodes__rowNum {
    display: none;
  }
  .episodes__rowThumb {
    display: block;
    grid-row: 1 / span 2;
    width: 3.4rem;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(201, 154, 58, 0.3);
  }
  .episodes__rowThumb svg {
    width: 100%;
    height: 100%;
  }
  .episodes__preview {
    display: none;
  }
  .episodes__row:hover,
  .episodes__row:focus-visible {
    padding-left: 0;
  }
}

/* ==========================================================================
   Hosts
   ========================================================================== */
@media (max-width: 1100px) {
  .hosts__info {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .hosts__lead {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  .hosts__stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "art art"
      "steve john";
    gap: 1.25rem 0.75rem;
  }
  .hosts__portrait {
    grid-area: art;
    justify-self: center;
    width: min(70vw, 300px);
    margin-bottom: 1.5rem;
  }
  .hosts__left {
    grid-area: steve;
  }
  .hosts__right {
    grid-area: john;
  }
  .hosts__name {
    font-size: 21vw;
  }
  .hosts__left .hosts__chair::after,
  .hosts__right .hosts__chair::before {
    width: 18px;
  }
  .hosts__info {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Show
   ========================================================================== */
@media (max-width: 900px) {
  .show__grid {
    grid-template-columns: 1fr;
  }
  .show__pull {
    font-size: 19vw;
  }
}

/* ==========================================================================
   AfterHours
   ========================================================================== */
@media (max-width: 1100px) {
  .after-hours__strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 42vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: var(--ah-red) transparent;
  }
  .after-hours__strip li {
    scroll-snap-align: start;
  }
}
@media (max-width: 600px) {
  .after-hours__strip {
    grid-auto-columns: 72vw;
  }
  .after-hours__headline {
    font-size: 17vw;
  }
}
@media (max-width: 600px) {
  .after-hours__badge {
    width: 84px;
  }
  .after-hours__badgeRing {
    display: none;
  }
  .after-hours__badge img {
    width: 100%;
    height: 100%;
  }
}

/* ==========================================================================
   Follow
   ========================================================================== */
@media (min-width: 701px) and (max-width: 900px) {
  .follow__door {
    min-height: 260px;
    padding: 1.25rem;
  }
  .follow__name {
    font-size: 1.85rem;
  }
  .follow__handle {
    font-size: 0.8rem;
  }
  .follow__what {
    font-size: 0.9rem;
  }
  .follow__go {
    width: 2.5rem;
    height: 2.5rem;
  }
}
@media (max-width: 700px) {
  .follow__doors {
    grid-template-columns: 1fr;
  }
  .follow__door {
    min-height: 0;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    column-gap: 1.25rem;
    align-items: center;
  }
  .follow__num {
    display: none;
  }
  .follow__icon {
    grid-row: 1 / span 3;
  }
  .follow__mark {
    width: 45%;
    right: -6%;
    bottom: -40%;
  }
  .follow__name,
  .follow__handle,
  .follow__what {
    grid-column: 2;
  }
  /* Only the name line shares space with the arrow; the handle gets the full width */
  .follow__name {
    padding-right: 3.5rem;
  }
  .follow__handle {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
  }
  .follow__go {
    top: 50%;
    translate: 0 -50%;
  }
}

/* ==========================================================================
   Partner
   ========================================================================== */
@media (max-width: 900px) {
  .partner__top {
    grid-template-columns: 1fr;
  }
  .partner__cta {
    justify-self: start;
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .partner__format,
  .partner__format + .partner__format {
    padding: 1.5rem 1rem 1.5rem 0;
  }
  .partner__format + .partner__format {
    padding-left: 1rem;
  }
  .partner__fNum {
    font-size: 2.6rem;
  }
  .partner__fIcon {
    width: 2.5rem;
    height: 2.5rem;
  }
  .partner__format h3 {
    font-size: 1.45rem;
  }
  .partner__format p {
    font-size: 0.95rem;
  }
}
@media (max-width: 700px) {
  .partner__formats {
    grid-template-columns: 1fr;
  }
  /* Compact rows: number beside the heading, icon on the right */
  .partner__format,
  .partner__format + .partner__format {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 1rem;
    row-gap: 0.4rem;
    padding: 1.4rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .partner__fHead {
    display: contents;
  }
  .partner__fNum {
    grid-row: 1 / span 2;
    font-size: 2.2rem;
  }
  .partner__fIcon {
    display: none;
  }
  .partner__format h3 {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Studio
   ========================================================================== */
@media (min-width: 701px) and (max-width: 900px) {
  .studio__grid {
    gap: 2rem;
  }
  .studio__title {
    font-size: 2.9rem;
  }
}
@media (max-width: 700px) {
  .studio__grid {
    grid-template-columns: 1fr;
  }
  .studio__booth {
    aspect-ratio: 4 / 3.4;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
@media (max-width: 1100px) {
  .footer__base {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .footer__closer {
    padding-top: 7rem;
  }
  .footer__rig {
    width: 80vw;
    top: 1.6rem;
  }
  .footer__base {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .footer__brand {
    gap: 1.25rem;
  }
  .footer__badge {
    width: min(100%, 280px);
  }
  .footer__sessionList {
    grid-template-columns: 1fr 1fr;
  }
  .footer__legal {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .footer__credit {
    justify-self: start;
  }
  .footer__tickerItem {
    font-size: 0.92rem;
  }
}
