/*** CMP-EPISODE-CONTENT.CSS v1.1
- Reading-column chrome for the Episode detail page (prose body, prose
  figures, blockquotes, links, external-link strip).
- Used by: templates/components/mc/sections/beta/episode/cmp-episode-content.html
- Episode prose is shorter and lighter than article prose: smaller body type
  and no drop-cap (episodes carry notes/transcripts, not essays).
##########################
***/

/* #region # READING COLUMN ########################## */

.mp-episode .post-read {
  max-width: var(--width-text);
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-serif);
  font-size: 1.125em;
}

.mp-episode .post-read p {
  margin-top: var(--space-sm);
}

/* Prose separators. */
.mp-episode .post-read hr {
  width: 3rem;
  margin-left: auto;
  margin-right: auto;
  border: none;
  border-top: 2px solid var(--color-black);
}

/* Prose figures / blockquotes / lists. */
.mp-episode .post-read figure figcaption {
  text-align: center;
  color: var(--color-shade);
  font-size: var(--type-xs);
}

.mp-episode .post-read .blockquote--highlight {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  border-left: 0.5rem solid var(--color-shade);
  font-size: var(--type-lg);
}

.mp-episode .post-read .blockquote--quote {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.mp-episode .post-read a {
  color: var(--color-accent);
}

/* Image variant: any prose `<img class="figure-1080">` is forced into a
   16:9 viewport — the source pixels are kept as-is and `object-fit: cover`
   crops to the centre. Drop the class for the original aspect. */
.mp-episode .post-read img.figure-1080 {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

/* #endregion */

/* #region # EXTERNAL LINKS ########################## */
/* "Watch on YouTube", "Listen to the podcast" CTAs after the prose: read as
   utility, not prose links. */

.mp-episode .post-links {
  max-width: var(--width-text);
  margin: var(--space-md) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-shade);
  display: flex;
  flex-flow: row wrap;
  gap: var(--space-xs) var(--space-md);
  font-family: var(--font-sans);
  font-size: var(--type-xs);
  letter-spacing: var(--track-wide);
}

.mp-episode .post-links a {
  color: inherit;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

/* #endregion */
