/**
 * Podcast (single + archive) template styles — session-5f.
 *
 * Loaded via fizzics_enqueue_podcast_assets(). Inherits layout tokens from
 * article.css (shared .article-grid + .breadcrumbs), which the same request
 * also enqueues. Adds audio-player + transcript + podcast-card styling.
 *
 * 2026-08-28 (session-theme-publish-blockers): converted from Tailwind
 * `@apply` inside `@layer components` to plain CSS on the locked design
 * tokens. Nothing ever compiled this file — `npm run build:css` only processes
 * assets/src/tailwind.css — so enqueuing it as authored would have shipped
 * `@apply` directives, which browsers discard. See the same note in
 * article.css.
 */

/* ==========================================================================
 * Audio player block (single episode)
 * ========================================================================== */

.podcast-audio-block {
	margin-top: var(--s-4, 1rem);
	margin-bottom: var(--s-6, 2rem);
	padding: var(--s-4, 1rem);
	background: var(--surface, #F5F8F3);
	border: 1px solid var(--line, #D4D9D1);
	border-radius: var(--r-sm, 0.5rem);
}

.podcast-audio {
	margin: 0;
}

.podcast-audio audio {
	width: 100%;
	max-width: 100%;
	display: block;
}

.podcast-embed {
	margin-top: var(--s-3, 0.75rem);
	max-width: 100%;
}

.podcast-embed:empty {
	display: none;
}

.podcast-embed iframe {
	width: 100%;
	max-width: 100%;
	min-height: 152px;
	border: 0;
	display: block;
}

/* ==========================================================================
 * Tag row — podcast specifics
 * ========================================================================== */

.podcast-tag-row__series,
.podcast-tag-row__episode,
.podcast-tag-row__duration {
	margin: 0;
	color: var(--muted, #6C6978);
}

.podcast-tag-row__series:empty,
.podcast-tag-row__episode:empty,
.podcast-tag-row__duration:empty {
	display: none;
}

.podcast-tag-row__episode::before {
	content: "Episode ";
}

.podcast-tag-row__duration::after {
	content: " min";
}

/* ==========================================================================
 * Transcript section
 * ========================================================================== */

.podcast-transcript {
	margin-top: var(--s-6, 2rem);
	padding-top: var(--s-5, 1.5rem);
	border-top: 1px solid var(--line, #D4D9D1);
}

.podcast-transcript__heading {
	color: var(--navy, #1B1464);
	margin-bottom: var(--s-3, 0.75rem);
}

.podcast-transcript__url {
	margin-bottom: var(--s-3, 0.75rem);
	overflow-wrap: break-word;
}

.podcast-transcript__url:empty {
	display: none;
}

.podcast-transcript__url a {
	color: var(--green-900, #1C3A12);
	text-decoration: underline;
}

.podcast-transcript__body {
	color: var(--ink-soft, #4A4557);
	line-height: 1.8;
	overflow-wrap: break-word;
}

/* ==========================================================================
 * Podcast archive grid
 * ========================================================================== */

.podcast-archive__grid {
	gap: var(--s-5, 1.5rem);
}

.podcast-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.podcast-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--s-2, 0.5rem);
}

.podcast-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3, 0.75rem);
	color: var(--muted, #6C6978);
}

.podcast-card__episode,
.podcast-card__duration {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted, #6C6978);
}

.podcast-card__episode:empty,
.podcast-card__duration:empty {
	display: none;
}

.podcast-card__episode::before {
	content: "Ep ";
}

.podcast-card__duration::after {
	content: " min";
}

.podcast-card__play-wrap {
	margin-top: var(--s-2, 0.5rem);
}

.podcast-card__play {
	display: inline-block;
	color: var(--green-900, #1C3A12);
	font-weight: 600;
	text-decoration: none;
}

.podcast-card__play:hover {
	text-decoration: underline;
}

/* ==========================================================================
 * Guest photo(s): placed in the episode text right after the "About <guest>"
 * heading (Ben, 23 Oct), see fizzics_podcast_place_guest_photo(). The legacy
 * [fizzics_podcast_guest] aside uses the same classes.
 *
 * Old-episode guest photos are mixed shapes (headshots, landscape photos,
 * logos), so the image keeps its own aspect ratio instead of a circle crop.
 * ========================================================================== */

.podcast-guest {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-3, 0.75rem) var(--s-4, 1rem);
	margin-top: 0;
	margin-bottom: var(--s-6, 2rem);
}

.podcast-guest__photo {
	margin: 0;
	flex: 0 1 360px;
	max-width: 100%;
}

.podcast-guest__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--r-sm, 0.5rem);
}

.podcast-guest__caption {
	margin-top: var(--s-1, 0.25rem);
	font-size: 0.875rem;
	color: var(--ink-soft, #4A4557);
}

.podcast-guest__label {
	margin: 0;
	flex: 1 1 12rem;
	color: var(--ink-soft, #4A4557);
}

.podcast-guest__names {
	font-weight: 600;
	color: var(--ink, #181421);
}

/* In the episode text, under "About <guest>": a modest headshot, not a banner. */
.podcast-guest--inline {
	margin-top: var(--s-3, 0.75rem);
	margin-bottom: var(--s-4, 1rem);
}

.podcast-guest--inline .podcast-guest__photo {
	flex: 0 1 280px;
}

/* No headshot (Ben, 25 Oct): the guest's initials in a circle, not unrelated imagery. */
.podcast-guest--inline .podcast-guest__photo--initials,
.podcast-guest__photo--initials {
	flex: 0 0 auto;
	text-align: center;
}

.podcast-guest__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 8rem;
	height: 8rem;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--navy, #1B1464);
	color: #fff;
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
}

/* ==========================================================================
 * Listen-on buttons: [fizzics_podcast_platforms], under the audio player
 * (Ben, 23 Oct). Labelled buttons with the platform glyph; they wrap on phones.
 * ========================================================================== */

.podcast-platforms {
	margin-top: var(--s-3, 0.75rem);
}

.podcast-platforms__label {
	margin: 0 0 var(--s-2, 0.5rem);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ink-soft, #4A4557);
}

.podcast-platforms__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2, 0.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.podcast-platforms__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--line, #DAD6E1);
	border-radius: 999px;
	background: var(--paper, #FFFFFF);
	color: var(--ink, #181421);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.podcast-platforms__link:hover,
.podcast-platforms__link:focus-visible {
	border-color: currentColor;
	text-decoration: underline;
}

.podcast-platforms__link:focus-visible {
	outline: 2px solid var(--ink, #181421);
	outline-offset: 2px;
}

.podcast-platforms__icon {
	flex: none;
}

.podcast-platforms__link--apple .podcast-platforms__icon { color: #872EC4; }
.podcast-platforms__link--spotify .podcast-platforms__icon { color: #1DB954; }
.podcast-platforms__link--iheart .podcast-platforms__icon { color: #C6002B; }
.podcast-platforms__link--soundcloud .podcast-platforms__icon { color: #F26F23; }

/* ==========================================================================
 * Episode video(s): [fizzics_podcast_videos], after the audio player
 * ========================================================================== */

.podcast-video {
	margin-top: 0;
	margin-bottom: var(--s-6, 2rem);
}

.podcast-video__heading {
	margin: 0 0 var(--s-3, 0.75rem);
	font-size: 1.25rem;
}

.podcast-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: var(--s-4, 1rem);
	overflow: hidden;
	background: #000;
	border-radius: var(--r-sm, 0.5rem);
}

.podcast-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.podcast-video__oembed {
	margin-bottom: var(--s-4, 1rem);
	max-width: 100%;
}

.podcast-video__oembed iframe {
	max-width: 100%;
}

/* ==========================================================================
 * Podcast archive: episode list 3/4, free-resources rail 1/4 (Ben, 23 Oct)
 *
 * The two-column split comes from rail-layout.css (.fz-rail-layout). The
 * rail cards reuse the home page .fr-card styles (style.css) in a compact
 * horizontal variant so all four fit the sticky rail on a laptop screen.
 * ========================================================================== */

.podcast-archive__list-heading {
	margin-top: 0;
	margin-bottom: var(--s-5, 1.5rem);
}

.podcast-resources__heading {
	margin: 0 0 var(--s-4, 1rem);
	font-size: var(--step-1, 1.25rem);
	color: var(--navy, #1B1464);
}

.podcast-resources__list {
	display: flex;
	flex-direction: column;
	gap: var(--s-4, 1rem);
}

.fr-card.fr-card--rail {
	flex-direction: row;
	align-items: stretch;
	gap: var(--s-3, 0.75rem);
	padding: 0;
	overflow: hidden;
}

.fr-card--rail .fr-card__media {
	flex: 0 0 96px;
	margin: 0;
	aspect-ratio: auto;
	min-height: 96px;
}

.fr-card--rail .fr-card__text {
	display: flex;
	flex-direction: column;
	gap: var(--s-1, 0.25rem);
	min-width: 0;
	padding: var(--s-3, 0.75rem) var(--s-3, 0.75rem) var(--s-3, 0.75rem) 0;
}

.fr-card--rail:not(.fr-card--has-media) .fr-card__text {
	padding-left: var(--s-3, 0.75rem);
}

.fr-card--rail h3 {
	font-size: var(--step-0, 1rem);
	line-height: 1.3;
}

.fr-card--rail p {
	font-size: var(--step--1, 0.875rem);
	line-height: 1.4;
}

.fr-card--rail .fr-card__link {
	font-size: var(--step--1, 0.875rem);
}

/* Single episode: the hero image sits directly above the episode text. Wide
 * 1200x630 banners fill the content column; square 500x500 guest portraits
 * (most older episodes) are capped at 500px tall instead of being blown up
 * to the full column width. */
.podcast-single__hero img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 500px;
}
