/* ── A show's masthead ───────────────────────────────────────────────────
 *
 * component.page.show_header.html -- artwork, name, description and the
 * schedule/episode pills -- on a show's landing page (/pearl-daily,
 * /the-sitdown, ...).
 *
 * BUG FIX: these rules existed only in theme.css, and a show page does not
 * load theme.css. Its stylesheets are index.css, component-page-header.css,
 * component-video-header.css, component-nav.css, scrollbars.css and
 * responsive-media.css -- none of which define a single .show-header
 * selector. So the masthead rendered completely unstyled: no layout, no
 * type scale, and in particular none of the mobile rules, which is why
 * the Pearl Daily header did not adjust on a narrow screen.
 *
 * It lives with the component now, and the component links it itself --
 * the same pattern component.video.header.html and
 * component.page.header.html already use -- so it cannot come apart from
 * its markup again. Copied from theme.css unchanged apart from the
 * indentation and the additions noted below.
 */

.show-header {
  max-width: 1400px;
  margin: 40px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
}

.show-header-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.show-header-art {
  width: 260px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #111;
  flex-shrink: 0;
}

.show-header-copy {
  flex: 1;
  /* min-width:260px is what makes the row wrap to one column on a narrow
     screen, but paired with flex:1 it also stops the copy from ever
     shrinking below 260px -- which on a 320px phone with the section's
     own padding is wider than the space available, and the text runs off
     the edge. min-width:0 lets it shrink; the wrap is driven by the
     basis below instead. */
  min-width: 0;
  flex-basis: 260px;
}

.show-header-title {
  /* Was a flat 40px stepped down at two breakpoints. clamp scales it
     continuously, so there is no width at which the title is still
     desktop-sized -- a 480px phone fell between the old steps. */
  font-size: clamp(25px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 10px;
  line-height: 1.1;
  /* A single long unbroken word (a show title, a hashtag) cannot widen
     the page on a phone. */
  overflow-wrap: anywhere;
}

.show-header-desc {
  color: #999;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 70ch;
}

.show-header-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.show-header-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ccc;
  white-space: nowrap;
}

.show-header-pill.schedule {
  border-color: rgba(167, 139, 250, 0.45);
  color: #c4b5fd;
}

.show-header-pill.members {
  border-color: rgba(74, 222, 128, 0.45);
  color: #86efac;
}

/* ── Narrow screens ──
   Artwork goes full width and leads, the copy follows beneath it. */
@media (max-width: 900px) {
  .show-header {
    margin-top: 24px;
  }
  .show-header-inner {
    gap: 18px;
    align-items: flex-start;
  }
  .show-header-art {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 600px) {
  .show-header {
    padding: 0 16px;
  }
  .show-header-art {
    max-width: 100%;
  }
}
