/*
 * Scontent Studios: the Midwest Nice podcast ([theslab_podcast]).
 *
 * Builds on the social feed stylesheet (.tsl-feed, the platform buttons, the video
 * cards and the audio player), which this file depends on. UI kit tokens only
 * (var(--tsl-*), Additional CSS section 20); the fallback after each var() is the kit's
 * own value.
 */

.tsl-podcast {
	text-align: start;
}

/* ---- Show header: artwork beside the heading, intro and subscribe links -------- */
.tsl-podcast .tsl-podcast__show {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	align-items: center;
}

@media (min-width: 768px) {
	.tsl-podcast .tsl-podcast__show {
		grid-template-columns: 200px minmax(0, 1fr);
		gap: 32px;
	}
}

.tsl-podcast .tsl-podcast__show-art {
	display: block;
	width: 160px;
	height: auto;
	border-radius: var(--tsl-radius-surface, 15px);
}

@media (min-width: 768px) {
	.tsl-podcast .tsl-podcast__show-art {
		width: 200px;
	}
}

.tsl-podcast .tsl-feed__heading {
	margin: 0 0 8px;
}

.tsl-podcast .tsl-podcast__intro {
	margin: 0 0 16px;
	max-width: 60ch;
}

.tsl-podcast .tsl-feed__platforms {
	justify-content: flex-start;
}

/* ---- Section subheads ------------------------------------------------------------ */
.tsl-podcast .tsl-podcast__subhead {
	margin: clamp(32px, 5vw, 48px) 0 0;
}

.tsl-podcast .tsl-feed__items {
	margin-top: 20px;
}

/* ---- Episode archive ------------------------------------------------------------- */
.tsl-podcast .tsl-podcast__episodes {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.tsl-podcast .tsl-podcast__episode {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 20px 0;
	border-top: 1px solid var(--tsl-surface-tint, #E0E7E8);
	scroll-margin-top: 120px;
}

@media (min-width: 768px) {
	.tsl-podcast .tsl-podcast__episode {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 24px;
	}
}

.tsl-podcast .tsl-podcast__episode:target {
	background-color: var(--tsl-surface-tint, #E0E7E8);
	box-shadow: 0 0 0 12px var(--tsl-surface-tint, #E0E7E8);
}

.tsl-podcast .tsl-podcast__episode-art {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--tsl-radius-control, 4px);
}

.tsl-podcast .tsl-podcast__episode-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.tsl-podcast .tsl-podcast__episode-title {
	margin: 0;
	font-size: var(--tsl-h5, 20px);
	line-height: 1.25;
}

.tsl-podcast .tsl-podcast__summary {
	margin: 0;
	max-width: 70ch;
}

/* ---- Older episodes, behind a disclosure ----------------------------------------- */
.tsl-podcast .tsl-podcast__more {
	border-top: 1px solid var(--tsl-surface-tint, #E0E7E8);
}

.tsl-podcast .tsl-podcast__more > summary {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 12px 0;
	font-weight: 600;
	cursor: pointer;
}

.tsl-podcast .tsl-podcast__more .tsl-podcast__episodes {
	margin-top: 0;
}
