/*
 * ln-shows.css - Latina Network shows (shows overhaul)
 * Loaded only on the Shows hub, a show landing and an episode watch page
 * (inc/shows.php). Latina Network's own language: Cormorant Garamond display
 * type, Outfit for interface text, square corners, tracked uppercase labels,
 * the plum, crema, oro and tierra tokens. The canvas of these views is a deep
 * plum so artwork and stills carry the page; each show brings its own surface,
 * accent and wordmark through custom properties set on its wrapper
 * (inc/shows-brand.php), with every text colour computed there for contrast.
 *
 * Sections: 1 canvas and chrome, 2 shared pieces, 3 hero, 4 hub, 5 episodes,
 * 6 show landing, 7 watch page and player, 8 motion and forced colours.
 */

/* ── 1. Canvas and chrome ─────────────────────────────────────────────────── */

/* The body takes the footer's colour, so the space Core reserves under the page while the privacy
   banner is open continues the footer instead of showing as a darker band below it. */
body.ln-shows {
  background: var(--plum-dark, #3D1D34);
}

/* Shows mode header (step D1). The rest of the site is print: a plum bar over cream paper. Here the
   same bar, same links, becomes dark glass: the near-black of the canvas at 80%, blurred, so the
   picture of a hero that rises under it (a show landing with art) shows through and the page reads as
   one dark surface from the top edge. At 80% over any picture the links keep more than 7:1. The
   brand's gradient rule above it is unchanged. Other templates are not touched: every rule is under
   body.ln-shows. The page begins below the bar (84px) except where a hero rises under it. */
body.ln-shows .nav {
  background: rgba(14, 6, 12, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 237, 216, 0.1);
  box-sizing: border-box;
}
body.ln-shows .nav.scrolled { background: rgba(14, 6, 12, 0.94); }
body.ln-shows .nav.open,
body.ln-shows .nav.open .nav-links { background: #150A12; }
/* Where am I: the Shows item is marked on the hub, on a show and on an episode (inc/shows-entry.php). */
body.ln-shows .nav-links a.current { color: #fff; }
body.ln-shows .nav-links a.current::after { transform: scaleX(1); background: #D4A853; }
body.ln-shows .nav.open .nav-links a.current { box-shadow: inset 4px 0 0 #D4A853; }
body.admin-bar.ln-shows .nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar.ln-shows .nav { top: 46px; }
}

.ln-hub,
.ln-show,
.ln-watch {
  --sh-canvas: #1A0D17;
  --sh-raise: #26141F;
  --sh-deep: #0E060C;
  --sh-line: rgba(245, 237, 216, 0.18);
  --sh-ink: #F5EDD8;
  --sh-ink-soft: #CFC2B6;
  --sh-accent: var(--show-on-canvas, #D4A853);
  --sh-focus: #F5EDD8;
  --sh-gutter: clamp(16px, 4vw, 40px);
  --sh-wrap: 1240px;
  /* The left edge of the content column, measured from the edge of the page (percentages: of the page width). */
  --sh-edge: max(var(--sh-gutter), calc((100% - var(--sh-wrap)) / 2 + var(--sh-gutter)));
  display: block;
  padding-top: 84px;
  background: var(--sh-canvas);
  color: var(--sh-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}
.ln-hub:focus,
.ln-show:focus,
.ln-watch:focus { outline: none; }

.ln-shows-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--sh-wrap, 1240px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sh-gutter);
  padding-right: var(--sh-gutter);
}

.ln-shows [hidden] { display: none !important; }

/* ln-master.css styles bare p and a for articles (dark text, tierra links); these views set their own. */
:where(.ln-hub, .ln-show, .ln-watch) p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
:where(.ln-hub, .ln-show, .ln-watch) :is(li, section, div) { position: relative; }

.ln-shows .ln-hub a,
.ln-shows .ln-show a,
.ln-shows .ln-watch a { color: inherit; }

.ln-hub :focus-visible,
.ln-show :focus-visible,
.ln-watch :focus-visible {
  outline: 3px solid var(--sh-focus);
  outline-offset: 3px;
}

/* ── 2. Shared pieces ─────────────────────────────────────────────────────── */

.ln-shows-h {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--sh-ink);
}

.ln-shows-empty {
  max-width: 44rem;
  margin: 0;
  padding: 20px 24px;
  border-left: 3px solid var(--sh-accent);
  background: var(--sh-raise);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.ln-shows-empty--light { background: rgba(61, 29, 52, 0.08); border-left-color: #5C2D4E; }

.ln-show-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  min-height: 52px;
  padding: 10px 26px;
  border: 2px solid transparent;
  border-radius: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.ln-show-btn--primary {
  background: var(--show-button, #D4A853);
  border-color: var(--show-button, #D4A853);
  color: var(--show-button-ink, #24121F) !important;
}
.ln-show-btn--primary:hover { transform: translateY(-2px); }
.ln-show-btn--ghost {
  border-color: currentColor;
  color: inherit;
}
.ln-show-btn--ghost:hover { background: rgba(127, 127, 127, 0.18); }
.ln-show-btn--small { min-height: 44px; padding: 6px 18px; }
.ln-show-btn__icon {
  flex: none;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent currentColor;
}
.ln-show-btn__text { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.ln-show-btn__what {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.875rem;
}

/* Wordmark */
.ln-lockup { display: block; }
.ln-lockup--mask {
  width: min(100%, var(--lockup-w, 340px));
  aspect-ratio: var(--lockup-ratio, 3 / 1);
  background-color: var(--show-mark, currentColor);
  -webkit-mask: var(--lockup-src) left center / contain no-repeat;
  mask: var(--lockup-src) left center / contain no-repeat;
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.ln-lockup--img {
  width: auto;
  height: auto;
  max-width: min(100%, var(--lockup-w, 340px));
  max-height: var(--lockup-h, 170px);
}
.ln-lockup--text {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5.25rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

/* 16:9 art focus */
.ln-focus-top { object-position: 50% 0; }
.ln-focus-bottom { object-position: 50% 100%; }
.ln-focus-left { object-position: 0 50%; }
.ln-focus-right { object-position: 100% 50%; }
.ln-focus-center { object-position: 50% 50%; }

/* Horizontal rail: scrolls inside itself, never the page. It runs from one edge of the page to the
   other; its padding (and the matching scroll padding, so snapping keeps it) starts the first card on
   the content column and lets the last one stop there too. Focusable, so the arrow keys scroll it. */
.ln-rail {
  position: relative; /* contains the visually hidden labels inside the cards, so they cannot widen the page */
  box-sizing: border-box;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--sh-edge);
  scroll-padding-right: var(--sh-edge);
  padding: 8px var(--sh-edge) 18px;
  -webkit-overflow-scrolling: touch;
}
.ln-rail:focus-visible { outline-offset: -3px; }
.ln-rail::-webkit-scrollbar { height: 10px; }
.ln-rail::-webkit-scrollbar-track { background: rgba(245, 237, 216, 0.08); margin: 0 var(--sh-gutter); }
.ln-rail::-webkit-scrollbar-thumb { background: var(--sh-ink-soft); border: 2px solid var(--sh-canvas); }
@supports not selector(::-webkit-scrollbar) {
  .ln-rail { scrollbar-color: var(--sh-ink-soft) rgba(245, 237, 216, 0.08); scrollbar-width: thin; }
}
.ln-rail__list {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ln-rail__list > li {
  flex: 0 0 min(72vw, 320px);
  width: min(72vw, 320px);
  scroll-snap-align: start;
}

.ln-shows-pager { margin-top: 32px; }
.ln-shows-pager ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ln-shows-pager a,
.ln-shows-pager span {
  display: inline-block;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid currentColor;
  line-height: 42px;
  text-align: center;
  text-decoration: none;
}
.ln-shows-pager .current { background: #3D1D34; border-color: #3D1D34; color: #F5EDD8; }

.ln-show-protected { max-width: 34rem; padding: clamp(32px, 5vw, 64px) 0; }
.ln-show-protected label { display: block; margin-bottom: 12px; }
.ln-show-protected input[type="password"] {
  box-sizing: border-box;
  min-height: 48px;
  width: min(100%, 320px);
  padding: 0 12px;
  border: 1px solid var(--sh-ink-soft);
  border-radius: 0;
  background: #fff;
  color: #24121F;
  font-size: 1rem;
}
.ln-show-protected input[type="submit"] {
  min-height: 48px;
  margin-top: 12px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: var(--sh-ink);
  color: var(--sh-canvas);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ── 3. Hero ──────────────────────────────────────────────────────────────── */

.ln-show-hero {
  --sh-focus: var(--show-ink, #F5EDD8);
  --hero-textw: min(34rem, 46vw);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--show-surface, #3D1D34);
  color: var(--show-ink, #F5EDD8);
}

/* With art, small screens (step D1): the art is a tall picture, not a short band. It fills the width
   and close to the first half of the screen (cover, the stored focal point kept in view), the eyebrow
   and the wordmark sit on its lower part, and the tagline, figures and action follow on the show's
   surface. --hero-overlap is how far the text column reaches up into the picture. */
.ln-show-hero--art { --hero-overlap: 124px; }
.ln-show-hero__art {
  position: relative;
  aspect-ratio: 10 / 11;
  max-height: 62vh;
  width: 100%;
  overflow: hidden;
  background: var(--show-surface, #3D1D34);
}
.ln-show-hero--hub .ln-show-hero__art { aspect-ratio: 5 / 4; max-height: 50vh; }
.ln-show-hero__art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.ln-show-hero__scrim {
  position: absolute;
  inset: 0;
  /* The scrim is the show's surface colour. Under the eyebrow and the wordmark (the lowest
     --hero-overlap of the picture) it has the opacity worked out for this palette (--show-scrim,
     inc/shows-brand.php: 4.5:1 for the text over any picture); above them it fades out, so the upper
     part of the picture is clear. The last pixels are the solid surface, so there is no seam. */
  background: var(--show-surface, #3D1D34);
  -webkit-mask-image: linear-gradient(0deg, #000 0, #000 10px, rgba(0, 0, 0, var(--show-scrim, 1)) 26px, rgba(0, 0, 0, var(--show-scrim, 1)) calc(var(--hero-overlap) + 10px), rgba(0, 0, 0, 0.62) calc(var(--hero-overlap) + 9%), rgba(0, 0, 0, 0.3) calc(var(--hero-overlap) + 21%), rgba(0, 0, 0, 0.1) calc(var(--hero-overlap) + 32%), transparent calc(var(--hero-overlap) + 42%));
  mask-image: linear-gradient(0deg, #000 0, #000 10px, rgba(0, 0, 0, var(--show-scrim, 1)) 26px, rgba(0, 0, 0, var(--show-scrim, 1)) calc(var(--hero-overlap) + 10px), rgba(0, 0, 0, 0.62) calc(var(--hero-overlap) + 9%), rgba(0, 0, 0, 0.3) calc(var(--hero-overlap) + 21%), rgba(0, 0, 0, 0.1) calc(var(--hero-overlap) + 32%), transparent calc(var(--hero-overlap) + 42%));
  pointer-events: none;
}
.ln-show-hero__in {
  position: relative;
  z-index: 2;
  padding-top: clamp(14px, 3vw, 28px);
  padding-bottom: clamp(28px, 5vw, 56px);
}
@media (max-width: 759px) {
  .ln-show-hero--art .ln-show-hero__in { margin-top: calc(-1 * var(--hero-overlap)); padding-top: 0; }
  .ln-show-hero--art .ln-lockup--mask { --lockup-w: 300px; }
  .ln-show-hero--art .ln-show-hero__eyebrow { margin-bottom: 12px; }
  /* A show landing: the picture starts at the top edge of the page, under the header. */
  .ln-show--art { padding-top: 0; }
}
.ln-show-hero__text { max-width: 38rem; }

/* Typographic hero (no art): the wordmark on the show's surface, the title oversized and outlined
   beside it, bleeding off the far edge. */
.ln-show-hero__type {
  display: none; /* wide screens only: it sits beside the text column, never behind it */
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: calc(var(--sh-edge) + var(--hero-textw) + clamp(24px, 4vw, 72px));
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ln-show-hero__type span {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--font-serif);
  font-size: clamp(9rem, 27vw, 30rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--show-rule, #D4A853);
  opacity: 0.42;
}
/* Step D1: without art the hero is a title card on the dark surface, the way an upcoming show is
   announced: the show's own colour as a framed card inside the canvas (not a full-width band of
   paper under a bar, which read as the top of an article), the wordmark large, the status as a
   filled label. This is the state of a show before its first episode, so it has to look finished. */
.ln-show-hero--type {
  margin: clamp(12px, 2vw, 28px) var(--sh-edge) 0;
  border: 1px solid var(--show-rule, #D4A853);
  border-bottom-width: 6px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.ln-show-hero--type .ln-show-hero__in {
  display: flex;
  align-items: center;
  max-width: none;
  min-height: clamp(300px, 34vw, 520px);
  padding: clamp(28px, 4.4vw, 64px) clamp(20px, 4.4vw, 64px);
}
.ln-show-hero--type .ln-show-hero__type { left: calc(clamp(20px, 4.4vw, 64px) + var(--hero-textw) + clamp(24px, 4vw, 72px)); }
.ln-show-hero--type .ln-lockup { --lockup-w: 460px; --lockup-h: 230px; }
.ln-show-hero__status.ln-show-hero__status--soon {
  padding: 6px 13px;
  border: 0;
  background: var(--show-accent-text, currentColor);
  color: var(--show-surface, #3D1D34);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.ln-show-hero__eyebrow {
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--show-accent-text, inherit);
}
.ln-show-hero__title { margin: 0; line-height: 1; color: inherit; }
.ln-show-hero__title-link { display: block; text-decoration: none; }
.ln-show-hero__host {
  margin: clamp(12px, 1.6vw, 18px) 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-style: italic;
}
.ln-show-hero__host a { text-decoration: underline; text-underline-offset: 4px; }
.ln-show-hero__synopsis {
  margin: clamp(14px, 2vw, 22px) 0 0;
  max-width: 34rem;
  font-family: var(--font-serif);
  font-size: clamp(1.3125rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.3;
}
.ln-show-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--show-ink-soft, inherit);
}
.ln-show-hero__status {
  padding: 5px 12px;
  border: 1px solid currentColor;
  color: var(--show-ink, inherit);
}
/* A running show needs no badge: the word stays, the box goes (the box is kept for what is unusual). */
.ln-show-hero__status--active { padding: 0; border: 0; }
.ln-show-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: clamp(22px, 3vw, 34px);
}
.ln-show-hero__note {
  margin: 0;
  max-width: 30rem;
  padding-left: 16px;
  border-left: 3px solid var(--show-rule, currentColor);
  font-size: 1.0625rem;
}
.ln-show-hero__also {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 22px 0 0;
  font-size: 0.9375rem;
  color: var(--show-ink-soft, inherit);
}
.ln-show-hero__also a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--show-ink, inherit);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 760px) {
  /* Wide screens: the art is the backdrop of the whole hero, edge to edge (cover, the stored focal
     point). The scrim is the show's surface colour: at the opacity worked out for this palette under
     the text column (--show-scrim, inc/shows-brand.php), then fading out so the picture is clear on
     the far side. The lockup, tagline, figures and action are laid over it. */
  .ln-show-hero { --hero-textw: min(31rem, 44vw); }
  .ln-show-hero--art .ln-show-hero__art,
  .ln-show-hero--hub.ln-show-hero--art .ln-show-hero__art {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    max-height: none;
  }
  .ln-show-hero--art .ln-lockup--mask,
  .ln-show-hero--art .ln-lockup--img { --lockup-w: clamp(340px, 31vw, 480px); --lockup-h: 210px; }
  .ln-show-hero--art .ln-show-hero__scrim {
    --solid: calc(var(--sh-edge) + var(--hero-textw) + 16px);
    background:
      linear-gradient(0deg, var(--show-surface, #3D1D34) 0%, transparent 22%),
      linear-gradient(90deg, var(--show-surface, #3D1D34) 0%, var(--show-surface, #3D1D34) 100%);
    opacity: 1;
    /* Step D1: the solid part ends at the text column and the fade is shorter, so more than half of
       the frame is the picture itself, not a tinted panel with the picture pushed to one side. */
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, var(--show-scrim, 1)) 0, rgba(0, 0, 0, var(--show-scrim, 1)) var(--solid), rgba(0, 0, 0, 0.7) calc(var(--solid) + 4%), rgba(0, 0, 0, 0.46) calc(var(--solid) + 9%), rgba(0, 0, 0, 0.24) calc(var(--solid) + 15%), rgba(0, 0, 0, 0.09) calc(var(--solid) + 22%), transparent calc(var(--solid) + 30%));
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, var(--show-scrim, 1)) 0, rgba(0, 0, 0, var(--show-scrim, 1)) var(--solid), rgba(0, 0, 0, 0.7) calc(var(--solid) + 4%), rgba(0, 0, 0, 0.46) calc(var(--solid) + 9%), rgba(0, 0, 0, 0.24) calc(var(--solid) + 15%), rgba(0, 0, 0, 0.09) calc(var(--solid) + 22%), transparent calc(var(--solid) + 30%));
  }
  .ln-show-hero--art .ln-show-hero__in {
    display: flex;
    align-items: flex-end;
    /* A cinema band: about 2.6:1 of the page width, never taller than the screen can show with the
       first episodes under it. The text decides the height when it needs more. */
    min-height: min(clamp(400px, 38vw, 720px), max(400px, calc(100vh - 300px)));
    padding-top: clamp(40px, 5vw, 72px);
    padding-bottom: clamp(36px, 4.4vw, 64px);
  }
  /* Step D1, a show landing: the hero starts at the top edge of the page, under the glass header,
     and is taller (about 2.2:1), so the picture carries the first screen. */
  .ln-show--art { padding-top: 0; }
  .ln-show--art > .ln-show-hero--art .ln-show-hero__in {
    min-height: min(clamp(460px, 46vw, 800px), max(460px, calc(100vh - 236px)));
    padding-top: calc(84px + clamp(28px, 3.4vw, 56px));
  }
  .ln-show-hero--hub { --hero-textw: min(34rem, 46vw); }
  .ln-show-hero--hub.ln-show-hero--art .ln-show-hero__in { min-height: min(clamp(380px, 34vw, 640px), max(380px, calc(100vh - 400px))); }
  .ln-show-hero__text { width: var(--hero-textw); max-width: none; }
  .ln-show-hero__type { display: block; }
}
@supports not ((mask-image: linear-gradient(#000, #000)) or (-webkit-mask-image: linear-gradient(#000, #000))) {
  /* No masks: the scrim is a solid panel under the text column, the art clear beside it. */
  @media (min-width: 760px) {
    .ln-show-hero--art .ln-show-hero__scrim { right: auto; width: calc(var(--sh-edge) + var(--hero-textw) + 16px); }
  }
}

/* ── 4. Hub ───────────────────────────────────────────────────────────────── */

/* A compact masthead, so the featured show and the latest episodes start high on the page. */
/* Step D1: one slim line, like the title of a section in a player, not the masthead of a page. */
.ln-hub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px clamp(16px, 2.4vw, 32px);
  padding-top: clamp(12px, 1.5vw, 20px);
  padding-bottom: clamp(12px, 1.5vw, 20px);
}
.ln-hub-head__eyebrow {
  display: none; /* the site name is in the bar just above */
  flex: 0 0 100%;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sh-accent);
}
.ln-hub-head__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--sh-ink);
}
.ln-hub-head__intro {
  flex: 1 1 18rem;
  margin: 0;
  max-width: 44rem;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.4;
  color: var(--sh-ink-soft);
}
@media (max-width: 759px) {
  /* On a phone the line is the title alone; the sentence is kept for assistive technology. */
  .ln-hub-head__intro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
.ln-hub-main { padding-bottom: clamp(56px, 8vw, 112px); }
.ln-hub-rail { margin-top: clamp(24px, 3vw, 40px); }
.ln-hub-rail .ln-shows-h { margin-bottom: clamp(8px, 1.2vw, 16px); }
.ln-hub-group { margin-top: clamp(40px, 6vw, 80px); }
/* On the hub the featured show's two actions share a row on small screens. */
.ln-show-hero--hub .ln-show-hero__actions { gap: 10px 14px; }
.ln-show-hero--hub .ln-show-btn--ghost { padding-left: 20px; padding-right: 20px; }
@media (max-width: 759px) {
  .ln-show-hero--hub .ln-show-hero__synopsis { margin-top: 10px; }
  .ln-show-hero--hub .ln-show-hero__meta { margin-top: 14px; }
  .ln-show-hero--hub .ln-show-hero__actions { margin-top: 18px; }
  .ln-show-hero--hub .ln-show-btn--ghost { min-height: 44px; padding: 6px 18px; }
  .ln-hub-rail { margin-top: 22px; }
}

.ln-hub-empty {
  max-width: 40rem;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--sh-line);
  border-top: 6px solid var(--sh-accent);
  background: var(--sh-raise);
}
.ln-hub-empty__h {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--sh-ink);
}
.ln-hub-empty p { margin: 0 0 24px; color: var(--sh-ink-soft); font-size: 1.0625rem; }

.ln-show-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ln-show-tile__link { display: block; text-decoration: none; }
.ln-show-tile__art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--show-surface, #3D1D34);
  color: var(--show-ink, #F5EDD8);
}
.ln-show-tile__art img:not(.ln-lockup) { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ln-show-tile__link:hover .ln-show-tile__art img:not(.ln-lockup) { transform: scale(1.03); }
.ln-show-tile__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, var(--show-surface, #3D1D34) 0%, transparent 58%);
}
.ln-show-tile__lockup { position: absolute; left: 6%; bottom: 8%; --lockup-w: 52%; --lockup-h: 38%; max-width: 52%; }
.ln-show-tile--type .ln-show-tile__art { border-bottom: 4px solid var(--show-rule, #D4A853); }
.ln-show-tile--type .ln-show-tile__lockup { left: 8%; right: 8%; top: 50%; bottom: auto; transform: translateY(-50%); --lockup-w: 70%; max-width: 84%; }
.ln-show-tile__lockup.ln-lockup--text { font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.ln-show-tile__body { padding-top: 14px; }
.ln-show-tile__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--sh-ink);
}
.ln-show-tile__link:hover .ln-show-tile__title { text-decoration: underline; text-underline-offset: 4px; }
.ln-show-tile__meta {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sh-ink-soft);
}

/* A show left alone on a row (the only one of its group, or the last of an uneven count) becomes a
   wide tile with its text beside it, instead of a lone card in an otherwise empty row. */
@media (min-width: 640px) {
  .ln-show-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(odd) .ln-show-tile__link { display: flex; align-items: center; gap: clamp(24px, 3vw, 40px); }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(odd) .ln-show-tile__art { flex: 0 0 calc(50% - clamp(10px, 1.3vw, 18px)); }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(odd) .ln-show-tile__body { padding-top: 0; }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(odd) .ln-show-tile__title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); }
}
@media (min-width: 1024px) {
  .ln-show-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(odd) { grid-column: auto; }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(odd) .ln-show-tile__link { display: block; }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(odd) .ln-show-tile__body { padding-top: 14px; }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(odd) .ln-show-tile__title { font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem); }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(3n + 1) .ln-show-tile__link { display: flex; align-items: center; gap: clamp(24px, 3vw, 40px); }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(3n + 1) .ln-show-tile__art { flex: 0 0 min(46%, 520px); }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(3n + 1) .ln-show-tile__body { padding-top: 0; }
  .ln-show-grid > .ln-show-tile:last-child:nth-child(3n + 1) .ln-show-tile__title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); }
}

/* ── 5. Episodes ──────────────────────────────────────────────────────────── */

.ln-ep-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .ln-ep-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ln-ep-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Two or four episodes: two columns of larger stills, not a row with a hole in it. */
  .ln-ep-list:has(> :nth-child(2):last-child),
  .ln-ep-list:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ln-ep-card { display: flex; flex-direction: column; min-width: 0; }
.ln-ep-card__still {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--show-surface, #3D1D34);
  color: var(--show-ink, #F5EDD8);
  text-decoration: none;
}
.ln-ep-card__still img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.3s ease; }
.ln-ep-card:hover .ln-ep-card__still img { transform: scale(1.03); }
/* Step D1: choosing a card is choosing something to watch. The whole card is the target (the title's
   link is stretched over it); on hover and on keyboard focus the still gets a frame in the page's
   ink and a play mark, and the title takes the show's accent; the title's link keeps its own focus
   outline. A card that cannot be played gets the frame only. */
.ln-ep-card { position: relative; }
.ln-ep-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.ln-ep-card__still::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 0 var(--sh-ink);
  transition: box-shadow 0.2s ease;
  pointer-events: none;
}
.ln-ep-card:hover .ln-ep-card__still::before,
.ln-ep-card:focus-within .ln-ep-card__still::before { box-shadow: inset 0 0 0 3px var(--sh-ink); }
.ln-ep-card__still::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(14, 6, 12, 0.84) linear-gradient(#F5EDD8, #F5EDD8) no-repeat 0 0 / 0 0;
  box-shadow: 0 0 0 2px #F5EDD8;
  -webkit-clip-path: none;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.ln-ep-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #F5EDD8;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.ln-ep-card:not(.ln-ep-card--unplayable):hover .ln-ep-card__still::after,
.ln-ep-card:not(.ln-ep-card--unplayable):focus-within .ln-ep-card__still::after { opacity: 1; transform: none; }
.ln-ep-card:not(.ln-ep-card--unplayable):hover .ln-ep-card__play,
.ln-ep-card:not(.ln-ep-card--unplayable):focus-within .ln-ep-card__play { opacity: 1; }
.ln-ep-card:hover .ln-ep-card__title,
.ln-ep-card:focus-within .ln-ep-card__title { color: var(--sh-accent); }
.ln-ep-card__type {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  font-style: italic;
  font-weight: 600;
  border-bottom: 4px solid var(--show-rule, #D4A853);
}
.ln-ep-card__runtime {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 4px 9px;
  background: rgba(14, 6, 12, 0.9);
  color: #F5EDD8;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.ln-ep-card__body { padding-top: 14px; }
.ln-ep-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sh-ink-soft);
}
.ln-ep-card__num,
.ln-ep-card__show { color: var(--sh-accent); }
.ln-ep-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.3125rem, 1.15rem + 0.5vw, 1.5625rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--sh-ink);
}
.ln-ep-card__title a { display: inline-block; padding: 4px 0; text-decoration: none; }
.ln-ep-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ln-ep-card__synopsis { margin: 8px 0 0; font-size: 0.9375rem; color: var(--sh-ink-soft); }
.ln-ep-card__state {
  margin: 10px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sh-ink);
}
.ln-ep-card--unplayable .ln-ep-card__state { color: var(--sh-ink-soft); font-weight: 500; }
/* What plays: a small play mark before "Watch", "Listen" or "Watch or listen". */
.ln-ep-card:not(.ln-ep-card--unplayable) .ln-ep-card__state::before {
  content: "";
  display: inline-block;
  margin-right: 8px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--sh-accent);
}

/* Step D1, phones: a list to browse, not one card per screen. Still and text side by side, the
   synopsis left to the watch page. A show's only episode keeps its large card. Rails are not lists. */
@media (max-width: 599px) {
  .ln-ep-list:not(.ln-ep-list--single) { gap: 0; }
  .ln-ep-list:not(.ln-ep-list--single) > .ln-ep-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--sh-line);
  }
  .ln-ep-list:not(.ln-ep-list--single) > .ln-ep-card:last-child { border-bottom: 1px solid var(--sh-line); }
  .ln-ep-list:not(.ln-ep-list--single) > .ln-ep-card .ln-ep-card__still { flex: 0 0 44%; }
  .ln-ep-list:not(.ln-ep-list--single) > .ln-ep-card .ln-ep-card__still::after { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .ln-ep-list:not(.ln-ep-list--single) > .ln-ep-card .ln-ep-card__body { flex: 1 1 0; min-width: 0; padding-top: 0; }
  .ln-ep-list:not(.ln-ep-list--single) > .ln-ep-card .ln-ep-card__meta { margin-bottom: 2px; font-size: 0.6875rem; letter-spacing: 0.12em; }
  .ln-ep-list:not(.ln-ep-list--single) > .ln-ep-card .ln-ep-card__title { font-size: 1.1875rem; line-height: 1.15; }
  .ln-ep-list:not(.ln-ep-list--single) > .ln-ep-card .ln-ep-card__title a { padding: 2px 0; }
  .ln-ep-list:not(.ln-ep-list--single) > .ln-ep-card .ln-ep-card__synopsis { display: none; }
  .ln-ep-list:not(.ln-ep-list--single) > .ln-ep-card .ln-ep-card__state { margin-top: 6px; font-size: 0.6875rem; }
  .ln-ep-list:not(.ln-ep-list--single) > .ln-ep-card .ln-ep-card__runtime { right: 4px; bottom: 4px; padding: 2px 6px; font-size: 0.75rem; }
}
/* A last episode left alone on its row becomes a wide card (still and text side by side). */
@media (min-width: 600px) and (max-width: 1023px) {
  .ln-ep-list > .ln-ep-card:last-child:nth-child(odd):not(:only-child) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(20px, 3vw, 32px); }
  .ln-ep-list > .ln-ep-card:last-child:nth-child(odd):not(:only-child) .ln-ep-card__still { flex: 0 0 calc(50% - clamp(10px, 1.2vw, 16px)); }
  .ln-ep-list > .ln-ep-card:last-child:nth-child(odd):not(:only-child) .ln-ep-card__body { padding-top: 0; }
}
@media (min-width: 1024px) {
  .ln-ep-list > .ln-ep-card:last-child:nth-child(3n + 1):not(:only-child):not(:nth-child(4)) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(24px, 3vw, 40px); }
  .ln-ep-list > .ln-ep-card:last-child:nth-child(3n + 1):not(:only-child):not(:nth-child(4)) .ln-ep-card__still { flex: 0 0 calc((100% - 2 * clamp(20px, 2.4vw, 32px)) / 3); }
  .ln-ep-list > .ln-ep-card:last-child:nth-child(3n + 1):not(:only-child):not(:nth-child(4)) .ln-ep-card__body { padding-top: 0; }
}

/* One episode (in the show, or in a season): a single wide card instead of a lonely column */
@media (min-width: 720px) {
  .ln-ep-list > .ln-ep-card:only-child { grid-column: 1 / -1; flex-direction: row; gap: clamp(24px, 3vw, 40px); align-items: center; }
  .ln-ep-list > .ln-ep-card:only-child .ln-ep-card__still { flex: 0 0 min(52%, 560px); }
  .ln-ep-list > .ln-ep-card:only-child .ln-ep-card__body { padding-top: 0; }
  .ln-ep-list > .ln-ep-card:only-child .ln-ep-card__title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); }
  .ln-ep-list > .ln-ep-card:only-child .ln-ep-card__synopsis { font-size: 1.0625rem; }
}

/* ── 6. Show landing ──────────────────────────────────────────────────────── */

.ln-show-episodes { padding-top: clamp(32px, 4.5vw, 64px); }
.ln-show-episodes__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.ln-show-episodes__head .ln-shows-h { margin-bottom: 0; }

.ln-seasons ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ln-seasons a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--sh-line);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.ln-seasons a:hover { border-color: var(--sh-ink); }
.ln-seasons a[aria-current="true"] { background: var(--sh-ink); border-color: var(--sh-ink); color: var(--sh-canvas); }
.ln-seasons__count { margin-left: 10px; font-weight: 400; letter-spacing: 0.04em; text-transform: none; opacity: 0.85; }

.ln-season { scroll-margin-top: 100px; }
.ln-season + .ln-season { margin-top: clamp(40px, 5vw, 72px); }
.ln-season__h {
  margin: 0 0 clamp(14px, 2vw, 22px);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sh-line);
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 500;
  color: var(--sh-ink);
}
.ln-season__h:focus { outline: none; }

.ln-show-about { margin-top: clamp(48px, 7vw, 96px); }
.ln-show-main > :last-child:not(.ln-show-articles) { padding-bottom: clamp(56px, 8vw, 112px); }

.ln-prose { max-width: 44rem; font-size: 1.0625rem; line-height: 1.7; }
.ln-prose > * + * { margin-top: 1em; }
.ln-prose a { text-decoration: underline; text-underline-offset: 3px; }
.ln-prose h2,
.ln-prose h3 { margin-top: 1.4em; font-family: var(--font-serif); font-weight: 500; line-height: 1.2; color: var(--sh-ink); }
.ln-prose ul { list-style: disc; padding-left: 1.3em; }
.ln-prose ol { padding-left: 1.3em; }
.ln-prose img { height: auto; }

/* Related articles: the newsroom's own ground, clearly apart from the episodes */
/* Step D1: the one place on these views where print returns, and it says so: the brand's gradient
   rule (the same line that opens every page of the site) closes the dark surface, the paper begins,
   and the heading is set as the site sets a section of the newspaper, on a double rule. */
.ln-show-articles {
  --sh-focus: #3D1D34;
  margin-top: clamp(56px, 8vw, 112px);
  padding: clamp(48px, 7vw, 96px) 0;
  background: #F5EDD8;
  color: #3D1D34;
}
.ln-show-articles::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tierra, #C4622D), var(--oro, #D4A853), var(--teal, #2A9D8F), var(--plum, #5C2D4E));
}
.ln-show-articles__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8A3F17;
}
.ln-show-articles__h {
  margin: 0 0 clamp(20px, 3vw, 36px);
  padding-bottom: 14px;
  border-bottom: 4px double #3D1D34;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  color: #3D1D34;
}
.ln-show-articles__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ln-show-article__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 14px; background: #E6DACA; }
.ln-show-article__img img { width: 100%; height: 100%; object-fit: cover; }
.ln-show-article__meta {
  display: flex;
  gap: 12px;
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5C2D4E;
}
.ln-show-article__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem);
  font-weight: 500;
  line-height: 1.18;
  color: #3D1D34;
}
.ln-show-article__title a { display: inline-block; padding: 4px 0; text-decoration: none; }
.ln-show-article__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ln-show-article__excerpt { margin: 8px 0 0; font-size: 0.9375rem; color: #4A2540; }
/* One related article: picture and text side by side, not a lone card in an empty row. */
@media (min-width: 720px) {
  .ln-show-articles__list > .ln-show-article:only-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: min(40%, 420px) 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(24px, 3vw, 40px);
    align-items: start;
  }
  .ln-show-articles__list > .ln-show-article:only-child .ln-show-article__img { grid-row: 1 / -1; margin-bottom: 0; }
  .ln-show-articles__list > .ln-show-article:only-child > :not(.ln-show-article__img) { grid-column: 2; }
  .ln-show-articles__list > .ln-show-article:only-child .ln-show-article__meta { margin-top: 8px; }
  .ln-show-articles__list > .ln-show-article:only-child .ln-show-article__title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); }
  .ln-show-articles__list > .ln-show-article:only-child .ln-show-article__excerpt { font-size: 1.0625rem; }
}

/* ── 7. Watch page and player ─────────────────────────────────────────────── */

/* Step D1: a theatre. The room is the deepest tone of the page down to the bottom of the player and
   only then lifts to the canvas. */
.ln-watch-top { background: linear-gradient(180deg, var(--sh-deep) 0, var(--sh-deep) min(72vh, 640px), var(--sh-canvas) 100%); }
.ln-watch { --sh-wrap: 1180px; }
.ln-watch-top__in {
  padding-top: clamp(8px, 1.4vw, 18px);
  padding-bottom: clamp(24px, 4vw, 48px);
}

.ln-watch-back { margin-bottom: clamp(10px, 1.6vw, 18px); }
.ln-watch-back__link {
  display: inline-flex;
  flex-wrap: wrap; /* a long show name set as text moves under "Back to show" instead of widening the page */
  align-items: center;
  max-width: 100%;
  gap: 4px 12px;
  min-height: 48px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.ln-watch-back__link:hover .ln-watch-back__text { text-decoration: underline; text-underline-offset: 4px; }
.ln-watch-back__text { white-space: nowrap; }
.ln-watch-back__lockup {
  flex: none;
  width: min(132px, 32vw);
  --lockup-w: min(132px, 32vw);
  --lockup-h: 40px;
  --show-mark: var(--show-on-canvas, #F5EDD8);
  margin-left: 6px;
  padding-left: 18px;
  border-left: 1px solid var(--sh-line);
  box-sizing: content-box;
}
.ln-watch-back__lockup.ln-lockup--text,
.ln-watch-back__lockup.ln-lockup--img { width: auto; }
.ln-watch-back__lockup.ln-lockup--text { flex: 0 1 auto; min-width: 0; }
.ln-watch-back__lockup.ln-lockup--text { font-size: 1.375rem; letter-spacing: 0; text-transform: none; font-weight: 600; }

.ln-player__tabs {
  display: inline-flex;
  margin-bottom: 12px;
  border: 1px solid var(--sh-line);
}
.ln-player__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 116px;
  min-height: 48px;
  padding: 0 24px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.ln-player__tab:hover { background: rgba(245, 237, 216, 0.1); }
.ln-player__tab.is-selected { background: var(--sh-ink); color: var(--sh-canvas) !important; }
.ln-player__tab:focus-visible { outline-offset: -5px; outline-color: var(--sh-accent); }
.ln-player__tab.is-selected:focus-visible { outline-color: #3D1D34; }

.ln-player__stage {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--sh-deep);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}
.ln-player__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Listen: one composed surface. The picture (the episode still, or the show's typographic ground) is a
   true 16:9 at every width, nothing cropped, with a caption set on a scrim; the audio control has its
   own solid bar under the picture and never lies over it. */
.ln-player__stage--audio {
  grid-template-rows: minmax(0, 1fr) auto;
  aspect-ratio: auto;
  overflow: hidden;
}
.ln-player__art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--show-surface, #3D1D34);
}
.ln-player__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 6, 12, 0.92) 0%, rgba(14, 6, 12, 0.55) 26%, rgba(14, 6, 12, 0) 58%);
  pointer-events: none;
}
.ln-player__listen {
  position: absolute;
  z-index: 1;
  left: clamp(14px, 2.4vw, 28px);
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(12px, 2vw, 22px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0;
  color: #F5EDD8;
}
.ln-player__listen-icon {
  flex: none;
  width: 22px;
  height: 18px;
  background:
    linear-gradient(currentColor, currentColor) 0 50% / 3px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 6px 50% / 3px 18px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 50% / 3px 12px no-repeat,
    linear-gradient(currentColor, currentColor) 18px 50% / 3px 6px no-repeat;
}
.ln-player__listen-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ln-player__listen-show {
  padding-left: 14px;
  border-left: 1px solid rgba(245, 237, 216, 0.5);
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-style: italic;
  line-height: 1.1;
}
.ln-player__art .ln-player__still--type { border-bottom: 0; }
/* A consent poster for audio: the picture fills the frame under the poster's text. */
.ln-player__stage--gate.ln-player__stage--audio { grid-template-rows: none; aspect-ratio: 16 / 9; min-height: 300px; }
.ln-player__stage--gate .ln-player__art { position: absolute; inset: 0; aspect-ratio: auto; }
.ln-player__stage--gate .ln-player__listen { display: none; }
.ln-player__still--type {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--show-surface, #3D1D34);
  color: var(--show-ink, #F5EDD8);
  border-bottom: 6px solid var(--show-rule, #D4A853);
  box-sizing: border-box;
}
.ln-player__still--type span {
  padding: 0 6%;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1rem + 5vw, 4.5rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  opacity: 0.5;
}
.ln-player__stage--video .ln-player__media,
.ln-player__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
.ln-player__bar {
  position: relative;
  padding: clamp(10px, 1.6vw, 16px) clamp(10px, 2vw, 24px);
  background: var(--sh-deep);
  border-top: 1px solid var(--sh-line);
}
.ln-player__bar audio { display: block; width: 100%; height: 54px; min-height: 44px; color-scheme: dark; }
.ln-player__frame--audio { position: relative; display: block; inset: auto; width: 100%; height: 200px; }

.ln-player__gate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(16px, 3vw, 40px);
  background: rgba(14, 6, 12, 0.78);
  color: #F5EDD8;
  text-align: center;
}
.ln-player__activate {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 28px 10px 22px;
  border: 0;
  border-radius: 0;
  background: #F5EDD8;
  color: #24121F;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease;
}
.ln-player__activate:hover { transform: translateY(-2px); }
.ln-player__activate:focus-visible { outline-color: #D4A853; }
.ln-player__play {
  flex: none;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent currentColor;
}
.ln-player__activate-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ln-player__activate-note { display: block; margin-top: 2px; font-size: 0.875rem; }
.ln-player__activate > span:not(.ln-player__play) { display: block; }
.ln-player__activate { display: inline-grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
.ln-player__play { grid-row: 1 / span 2; }
.ln-player__gate-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
}
.ln-player__gate-text { margin: 0; max-width: 34rem; font-size: 0.875rem; line-height: 1.5; color: #E9DFCC; }
.ln-player__direct {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ln-player__disclosure,
.ln-player__also {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--sh-ink-soft);
}
/* Who delivers the audio: attached to the player it speaks about, in the page's full ink. */
.ln-player__disclosure {
  margin: 0;
  padding: 10px clamp(12px, 2vw, 24px);
  border-left: 3px solid var(--sh-accent);
  background: var(--sh-raise);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--sh-ink);
}
.ln-player__disclosure .ln-player__direct,
.ln-player__also-link { margin-left: 6px; color: var(--sh-ink); }
.ln-player__also-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ln-player__also-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ln-player__error {
  margin: 12px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--sh-accent);
  background: var(--sh-raise);
}

.ln-watch-head { margin-top: clamp(20px, 3vw, 36px); max-width: 52rem; }
.ln-watch-head__label {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sh-accent);
}
.ln-watch-head__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--sh-ink);
}
.ln-watch-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 14px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sh-ink-soft);
}
.ln-watch-head__synopsis {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  line-height: 1.35;
}

/* Step D1: what to watch next sits beside the title, under the player, with its still; the previous
   episode is a quiet link under it. On a phone both are rows under the title. */
.ln-watch-adjacent {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 36px);
}
.ln-watch-adjacent__link {
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid var(--sh-line);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.ln-watch-adjacent__link:hover { border-color: var(--sh-ink); }
.ln-watch-adjacent__link--next { padding: 10px; border-color: rgba(245, 237, 216, 0.34); background: var(--sh-raise); }
.ln-watch-adjacent__link--next:hover { background: #311B29; }
.ln-watch-adjacent__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ln-watch-adjacent__still {
  position: relative;
  flex: 0 0 42%;
  max-width: 180px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--show-surface, #3D1D34);
}
.ln-watch-adjacent__still img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ln-watch-adjacent__still::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -9px 0 0 -6px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #F5EDD8;
  filter: drop-shadow(0 0 6px rgba(14, 6, 12, 0.9));
}
.ln-watch-adjacent__dir {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sh-accent);
}
.ln-watch-adjacent__link--prev .ln-watch-adjacent__dir { color: var(--sh-ink-soft); }
.ln-watch-adjacent__title { font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.2; }
.ln-watch-adjacent__link--next .ln-watch-adjacent__title { font-size: 1.3125rem; }
@media (min-width: 900px) {
  .ln-watch-info--adjacent {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    column-gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }
  .ln-watch-info--adjacent .ln-watch-adjacent { margin-top: clamp(20px, 3vw, 36px); }
  .ln-watch-adjacent__link--next { flex-direction: column; align-items: stretch; gap: 12px; }
  .ln-watch-adjacent__link--next .ln-watch-adjacent__still { flex: none; max-width: none; }
  .ln-watch-adjacent__link--next .ln-watch-adjacent__text { padding: 0 4px 4px; }
}

.ln-watch-main { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 88px); }
.ln-watch-main:last-child { padding-bottom: clamp(56px, 8vw, 104px); }
.ln-watch-body { max-width: 46rem; }
.ln-watch-body > * + * { margin-top: clamp(32px, 4vw, 52px); }
.ln-watch-h {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--sh-ink);
}
.ln-watch-guest__in { display: flex; gap: 20px; align-items: flex-start; }
.ln-watch-guest__photo { flex: none; width: 96px; height: 96px; object-fit: cover; border-radius: 50%; }
.ln-watch-guest__name { margin: 0; font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.15; }
.ln-watch-guest__title { margin: 4px 0 0; font-size: 0.9375rem; color: var(--sh-ink-soft); }
.ln-watch-guest__bio { margin: 12px 0 0; }
.ln-watch-guest__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; }
.ln-watch-guest__links a,
.ln-watch-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ln-watch-details { border-top: 1px solid var(--sh-line); }
.ln-watch-details:last-of-type { border-bottom: 1px solid var(--sh-line); }
.ln-watch-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 8px 4px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  cursor: pointer;
  list-style: none;
}
.ln-watch-details summary::-webkit-details-marker { display: none; }
.ln-watch-details summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.ln-watch-details[open] summary::after { transform: rotate(-135deg); }
.ln-watch-details .ln-prose { padding: 4px 4px 22px; }

.ln-watch-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ln-watch-share__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sh-ink-soft);
}
.ln-watch-share__status { font-size: 0.875rem; }

.ln-watch-more { padding-bottom: clamp(56px, 8vw, 104px); }
.ln-watch-more__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  margin-bottom: clamp(12px, 1.6vw, 20px);
}
.ln-watch-more__head .ln-shows-h { margin-bottom: 0; }

/* ── 8. Motion and forced colours ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  /* ln-master.css sets smooth scrolling on the page; the season and "All episodes" links jump instead. */
  html:has(> body.ln-shows) { scroll-behavior: auto !important; }
  .ln-hub *,
  .ln-show *,
  .ln-watch * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .ln-show-btn--primary:hover,
  .ln-player__activate:hover,
  .ln-show-tile__link:hover .ln-show-tile__art img:not(.ln-lockup),
  .ln-ep-card:hover .ln-ep-card__still img,
  .ln-ep-card__still::after { transform: none !important; }
}

@media (forced-colors: active) {
  .ln-lockup--mask { background-color: CanvasText; }
  .ln-show-btn,
  .ln-player__activate,
  .ln-player__tab,
  .ln-seasons a { border: 2px solid ButtonText; }
  .ln-show-hero__type { display: none; }
}

/* ── Credits (2.2.12): the host of a show or an episode, and the guest ─────────────────────────
   "Hosted by {name}" with the account picture on the watch page (the canonical credit of 2.2.10,
   same class names), text only on cards. The guest is a separate label and never styled as host. */
.ln-watch-head__credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin: 16px 0 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--sh-ink);
}
.ep-meta-host { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ep-meta-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.ln-watch-head__guest { color: var(--sh-ink-soft); }
.show-card-host {
  margin: 6px 0 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--sh-ink-soft);
}
.ln-ep-card__credits {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 6px 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--sh-ink-soft);
}
.ln-ep-card__host { color: var(--sh-ink); }

/* ── A show or episode for members, seen without access (2.2.12): the title and this prompt only ── */
.ln-member-only__lead { margin: 0 0 20px; font-size: 1.125rem; line-height: 1.5; color: var(--sh-ink); }
.ln-member-only__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.ln-show-hero__hosted { margin: 12px 0 0; font-size: 0.9375rem; line-height: 1.4; color: var(--sh-ink); }

/* ── 2.2.13: the enhanced show landing ───────────────────────────────────────────────────────────
   Every rule below is under .ln-show--enhanced, a class single-ln_series.php prints only for a show
   on the allow-list of ln_show_landing_enhanced() (inc/shows.php). No other landing, the hub or a
   watch page is touched.

   Watch and Listen: two actions side by side from 560px, stacked below it (never wider than the
   column at 320px). The primary action is the network's Tierra Caliente (--ln-action, set with its
   ink on the container from the Customizer token: 4.5:1 or better on the fill itself). The second
   action is a solid panel of the show's own surface with the show's ink and an ink border, so its
   text never depends on the picture behind the hero. */
.ln-show--enhanced .ln-show-hero__note--alone { margin-top: clamp(22px, 3vw, 34px); }
.ln-show--enhanced .ln-show-hero__actions--modes .ln-show-btn,
.ln-show--enhanced .ln-show-hero__actions--modes .ln-show-btn__text { min-width: 0; }
.ln-show--enhanced .ln-show-hero__actions--modes .ln-show-btn__what { overflow-wrap: anywhere; }
.ln-show--enhanced .ln-show-hero__actions--modes .ln-show-btn--primary {
  background: var(--ln-action, var(--tierra, #C4622D));
  border-color: var(--ln-action, var(--tierra, #C4622D));
  color: var(--ln-action-ink, #000) !important;
}
.ln-show--enhanced .ln-show-btn--second {
  background: var(--show-surface, #3D1D34);
  border-color: var(--show-ink, #F5EDD8);
  color: var(--show-ink, #F5EDD8) !important;
}
.ln-show--enhanced .ln-show-btn--second:hover { transform: translateY(-2px); }
.ln-show--enhanced .ln-show-hero__actions--pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
@media (min-width: 560px) {
  .ln-show--enhanced .ln-show-hero__actions--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(42rem, 100%); }
}
@media (min-width: 760px) {
  /* The text column is narrow here; the pair may reach past it (both actions carry their own ground). */
  .ln-show--enhanced .ln-show-hero__actions--pair { width: min(42rem, calc(100vw - 2 * var(--sh-gutter))); }
}

/* The gallery: the native Gallery block of the show's body. inc/shows-render.php wraps the block in
   .ln-gallery and prints the photo count; js/ln-show-gallery.js adds the dialog. The block library's
   own rules give each nested figure a calc() width, flex growth and an overlaid caption through
   selectors that carry an id (:not(#individual-image)); the rules below carry two, so every figure
   fills its grid track at every width and the caption sits under the picture. */
.ln-show--enhanced .ln-show-about .ln-prose { max-width: none; }
.ln-show--enhanced .ln-show-about .ln-prose > * { max-width: 44rem; }
.ln-show--enhanced .ln-show-about .ln-prose > .ln-gallery { max-width: 68rem; }
.ln-show--enhanced .ln-gallery {
  margin-top: 1.6em;
  padding-top: 16px;
  border-top: 1px solid var(--sh-line);
}
.ln-show--enhanced .ln-gallery__count {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--sh-ink-soft);
}
.ln-show--enhanced .ln-gallery .wp-block-gallery:not(#ln-a):not(#ln-b) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  justify-items: stretch;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ln-show--enhanced .ln-gallery .wp-block-gallery.columns-1:not(#ln-a):not(#ln-b) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
  .ln-show--enhanced .ln-gallery .wp-block-gallery:not(#ln-a):not(#ln-b) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ln-show--enhanced .ln-gallery .wp-block-gallery.columns-1:not(#ln-a):not(#ln-b) { grid-template-columns: minmax(0, 1fr); }
  .ln-show--enhanced .ln-gallery .wp-block-gallery.columns-2:not(#ln-a):not(#ln-b) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ln-show--enhanced .ln-gallery .wp-block-gallery.columns-4:not(#ln-a):not(#ln-b),
  .ln-show--enhanced .ln-gallery .wp-block-gallery.columns-5:not(#ln-a):not(#ln-b),
  .ln-show--enhanced .ln-gallery .wp-block-gallery.columns-6:not(#ln-a):not(#ln-b),
  .ln-show--enhanced .ln-gallery .wp-block-gallery.columns-7:not(#ln-a):not(#ln-b),
  .ln-show--enhanced .ln-gallery .wp-block-gallery.columns-8:not(#ln-a):not(#ln-b) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ln-show--enhanced .ln-gallery .wp-block-gallery figure:not(#ln-a):not(#ln-b) {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-self: start;
  justify-self: stretch;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  background: var(--sh-raise);
}
.ln-show--enhanced .ln-gallery .wp-block-gallery figure:not(#ln-a):not(#ln-b)::before { content: none; display: none; }
.ln-show--enhanced .ln-gallery .wp-block-gallery figure:not(#ln-a):not(#ln-b) > a {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin: 0;
}
.ln-show--enhanced .ln-gallery .wp-block-gallery figure:not(#ln-a):not(#ln-b) img {
  display: block;
  flex: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
}
.ln-show--enhanced .ln-gallery .wp-block-gallery figure:not(#ln-a):not(#ln-b) figcaption {
  position: static;
  box-sizing: border-box;
  width: auto;
  max-height: none;
  margin: 0;
  padding: 10px 12px 12px;
  overflow: visible;
  background: none;
  text-align: left;
  text-shadow: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--sh-ink-soft);
}
.ln-show--enhanced .ln-gallery .wp-block-gallery figure:not(#ln-a):not(#ln-b) figcaption::before { content: none; display: none; }
.ln-show--enhanced .ln-gallery .wp-block-gallery figure a:focus-visible { outline-offset: -3px; }
.ln-show--enhanced .ln-gallery.is-enhanced a[data-ln-gallery-item] { cursor: zoom-in; }
@media (prefers-reduced-motion: no-preference) {
  .ln-show--enhanced .ln-gallery .wp-block-gallery figure:not(#ln-a):not(#ln-b) img { transition: transform 0.35s ease; }
  .ln-show--enhanced .ln-gallery .wp-block-gallery figure:not(#ln-a):not(#ln-b) > a:hover img { transform: scale(1.03); }
}

/* The dialog (a native modal <dialog> the script appends inside .ln-gallery). */
html.ln-gallery-open { overflow: hidden; }
.ln-show--enhanced .ln-gallery-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 6, 12, 0.97);
  color: #F5EDD8;
  font-family: var(--font-sans);
  overflow: hidden;
}
.ln-show--enhanced .ln-gallery-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.ln-show--enhanced .ln-gallery-dialog::backdrop { background: rgba(14, 6, 12, 0.9); }
.ln-show--enhanced .ln-gallery-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: none;
  padding: 8px 8px 8px 16px;
}
.ln-show--enhanced .ln-gallery-dialog__count {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F5EDD8;
}
.ln-show--enhanced .ln-gallery-dialog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(245, 237, 216, 0.5);
  border-radius: 0;
  background: #0E060C;
  color: #F5EDD8;
  cursor: pointer;
}
.ln-show--enhanced .ln-gallery-dialog__btn:hover { background: #26141F; border-color: #F5EDD8; }
.ln-show--enhanced .ln-gallery-dialog__btn:focus-visible,
.ln-show--enhanced .ln-gallery-dialog__file:focus-visible { outline: 3px solid #F5EDD8; outline-offset: 2px; }
.ln-show--enhanced .ln-gallery-dialog__x,
.ln-show--enhanced .ln-gallery-dialog__chev {
  display: block;
  width: 12px;
  height: 12px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
}
.ln-show--enhanced .ln-gallery-dialog__prev .ln-gallery-dialog__chev { transform: translateX(3px) rotate(45deg); }
.ln-show--enhanced .ln-gallery-dialog__next .ln-gallery-dialog__chev { transform: translateX(-3px) rotate(-135deg); }
.ln-show--enhanced .ln-gallery-dialog__x {
  position: relative;
  width: 18px;
  height: 18px;
  border: 0;
}
.ln-show--enhanced .ln-gallery-dialog__x::before,
.ln-show--enhanced .ln-gallery-dialog__x::after {
  content: "";
  position: absolute;
  left: 8px;
  top: -2px;
  width: 2px;
  height: 22px;
  background: currentColor;
  transform: rotate(45deg);
}
.ln-show--enhanced .ln-gallery-dialog__x::after { transform: rotate(-45deg); }
.ln-show--enhanced .ln-gallery-dialog__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 8px;
}
.ln-show--enhanced .ln-gallery-dialog__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.ln-show--enhanced .ln-gallery-dialog.is-loading .ln-gallery-dialog__img { opacity: 0.35; }
.ln-show--enhanced .ln-gallery-dialog__prev,
.ln-show--enhanced .ln-gallery-dialog__next {
  position: absolute;
  top: 50%;
  z-index: 1;
  margin-top: -24px;
}
.ln-show--enhanced .ln-gallery-dialog__prev { left: 8px; }
.ln-show--enhanced .ln-gallery-dialog__next { right: 8px; }
.ln-show--enhanced .ln-gallery-dialog__error { margin: 0; padding: 0 64px; text-align: center; font-size: 1rem; line-height: 1.5; color: #F5EDD8; }
.ln-show--enhanced .ln-gallery-dialog__file {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #F5EDD8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ln-show--enhanced .ln-gallery-dialog__caption {
  margin: 0;
  max-width: none;
  padding: 12px 16px 16px;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #F5EDD8;
}
.ln-show--enhanced .ln-gallery-dialog [hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .ln-show--enhanced .ln-gallery-dialog__img { transition: opacity 0.2s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .ln-show--enhanced .ln-show-btn--second:hover { transform: none !important; }
  .ln-show--enhanced .ln-gallery .wp-block-gallery figure:not(#ln-a):not(#ln-b) img,
  .ln-show--enhanced .ln-gallery-dialog__img { transition: none !important; transform: none !important; }
}
@media (forced-colors: active) {
  .ln-show--enhanced .ln-gallery-dialog__btn { border: 2px solid ButtonText; }
}
