/* Podcast Grid — brand tokens only (Quincy / Jost / Source Sans, navy #000d26). */

.podcast-grid {
	padding-top:    var( --pg-pt, 4rem );
	padding-bottom: var( --pg-pb, 4rem );
	background: #f5f5f5;
}

.podcast-grid__inner {
	max-width: 90rem;
	margin: 0 auto;
	padding: 0 5rem;
	box-sizing: border-box;
}

/* ── Head ── */
.podcast-grid__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 2.5rem;
}

.podcast-grid__eyebrow {
	font-family: 'Jost', system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.25rem;
	text-transform: uppercase;
	line-height: 1.35;
	color: rgba( 0, 13, 38, 0.7 );
	margin: 0 0 0.75rem;
}

.podcast-grid__heading {
	font-family: 'Quincy', Georgia, serif;
	font-size: clamp( 2.25rem, 4.5vw, 3.5rem );
	font-weight: 400;
	line-height: 1.15;
	color: #000d26;
	margin: 0;
}

.podcast-grid__intro {
	font-family: 'Source Sans 3', system-ui, sans-serif;
	font-size: 1.125rem;
	line-height: 1.55;
	color: rgba( 0, 13, 38, 0.85 );
	max-width: 46rem;
	/* 24px below the heading — the site-wide heading -> body step */
	margin: 1.5rem 0 0;
}

/* ── Episodes ── */
.podcast-grid__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( var( --pg-cols, 3 ), 1fr );
	gap: 2rem;
}

.podcast-grid__item {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

/* The poster is a button: no iframe is created until it is clicked. */
.podcast-grid__player {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	border-radius: 1rem;
	overflow: hidden;
	background: #000d26;
	cursor: pointer;
}

.podcast-grid__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.podcast-grid__player:hover .podcast-grid__thumb,
.podcast-grid__player:focus-visible .podcast-grid__thumb { transform: scale( 1.04 ); }

.podcast-grid__player:focus-visible {
	outline: 0.1875rem solid #0b5cff;
	outline-offset: 0.25rem;
}

.podcast-grid__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	width: 4.25rem;
	pointer-events: none;
	filter: drop-shadow( 0 0.125rem 0.375rem rgba( 0, 0, 0, 0.35 ) );
}
.podcast-grid__play svg { width: 100%; height: auto; display: block; }

.podcast-grid__iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.podcast-grid__title {
	font-family: 'Source Sans 3', system-ui, sans-serif;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	color: #000d26;
	margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
	.podcast-grid__inner { padding: 0 3rem; }
}

@media (max-width: 900px) {
	.podcast-grid__inner { padding: 0 1.5rem; }
	/* 2-up rather than an orphaned 3rd on a narrow tablet */
	.podcast-grid__list { grid-template-columns: repeat( 2, 1fr ); gap: 1.5rem; }
}

@media (max-width: 600px) {
	.podcast-grid {
		padding-top:    var( --pg-pt-m, 2.5rem );
		padding-bottom: var( --pg-pb-m, 2.5rem );
	}
	.podcast-grid__inner { padding: 0 1rem; }
	.podcast-grid__list { grid-template-columns: 1fr; gap: 1.5rem; }
	.podcast-grid__head { margin-bottom: 1.75rem; }
	.podcast-grid__play { width: 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
	.podcast-grid__thumb { transition: none; }
	.podcast-grid__player:hover .podcast-grid__thumb { transform: none; }
}
