/* -----------------------------------------------------------------------
   Podcast category archive (on-the-go) — Spotify-style show page.
   Dark, immersive, on-brand (the site accent stands in for Spotify green).
   ----------------------------------------------------------------------- */
.podcast-archive {
	/* The surface, stated once. The hero scrim has to resolve into the top
	   colour or a seam shows where the artwork ends, and the promo card at
	   the foot is drawn to sit a step above it — both read from here rather
	   than repeating the hex, so lightening the page lightens the whole
	   family together. Raised ~5 points of lightness off the original
	   #0c1e30/#081320: still dark and immersive, no longer near-black
	   behind the episode rows. */
	--pod-surface: #122d47;
	--pod-surface-deep: #0d2035;

	position: relative;
	overflow: hidden;
	/* Cancel .site-content's vertical padding so the dark surface runs
	   edge-to-edge between the header and footer. */
	margin-block: calc(-1 * var(--shivuk-space));
	padding-block-end: clamp(2.5rem, 6vw, 4.5rem);
	background: linear-gradient(180deg, var(--pod-surface) 0%, var(--pod-surface-deep) 100%);
	color: #ffffff;
}

/* Paged views (page 2 onward) render no hero, so the list needs the top
   breathing room the hero would otherwise have supplied. */
.podcast-archive--list-only {
	padding-block-start: clamp(2rem, 5vw, 3.5rem);
}

/* --- Full-bleed hero, page one only ---------------------------------- */
/* The newest episode's artwork fills the backdrop and everything sits
   centred over it, roughly a screenful tall. */
.podcast-hero-full {
	position: relative;
	display: grid;
	place-items: center;
	min-block-size: clamp(420px, 72vh, 660px);
	padding-block: clamp(2.5rem, 7vw, 5rem);
	overflow: hidden;
	text-align: center;
	/* Own stacking context so the negative-z backdrop and scrim below can
	   never escape behind the page itself. */
	isolation: isolate;
}

.podcast-hero-full__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.podcast-hero-full__bg-img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	/* Softened and slightly overscaled so the type stays the subject and the
	   blur has no bare edges. */
	filter: blur(2px) saturate(1.05);
	transform: scale(1.06);
}

/* Scrim: dark enough to keep the overlaid text legible over any artwork,
   resolving to the page colour at the bottom so the list joins seamlessly. */
.podcast-hero-full::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(90% 70% at 50% 40%, rgba(11, 29, 47, 0.55), rgba(11, 29, 47, 0.82) 70%),
		linear-gradient(180deg, rgba(13, 32, 53, 0.75) 0%, rgba(13, 32, 53, 0.6) 45%, var(--pod-surface) 100%);
}

.podcast-hero-full__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.podcast-hero-full__eyebrow {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: rgba(255, 255, 255, 0.8);
}

.podcast-hero-full__title {
	margin: 0.25em 0 0;
	font-size: clamp(2.2rem, 1rem + 5.5vw, 4.8rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.podcast-hero-full__desc {
	margin: 1rem 0 0;
	max-inline-size: 62ch;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.65;
}

/* The latest episode, set apart from the show blurb by a hairline. */
.podcast-hero-full__latest {
	inline-size: min(100%, 640px);
	margin-block-start: clamp(1.5rem, 4vw, 2.4rem);
	padding-block-start: clamp(1.25rem, 3vw, 1.8rem);
	border-block-start: 1px solid rgba(255, 255, 255, 0.22);
}

.podcast-hero-full__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: color-mix(in srgb, var(--shivuk-color-accent) 40%, #ffffff);
}

.podcast-hero-full__episode {
	margin: 0.5rem 0 0;
	font-size: clamp(1.15rem, 0.9rem + 1.4vw, 1.7rem);
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
}

.podcast-hero-full__episode a {
	color: #ffffff;
	text-decoration: none;
}

.podcast-hero-full__episode a:hover,
.podcast-hero-full__episode a:focus-visible {
	color: color-mix(in srgb, var(--shivuk-color-accent) 35%, #ffffff);
}

.podcast-hero-full__date {
	display: block;
	margin-block-start: 0.35rem;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.85rem;
}

.podcast-hero-full__play {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-block-start: 1.2rem;
	padding: 0.75rem 1.6rem 0.75rem 1.4rem;
	border-radius: 999px;
	background: var(--shivuk-color-accent);
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	box-shadow: 0 10px 26px color-mix(in srgb, var(--shivuk-color-accent) 45%, transparent);
	transition: transform 0.2s var(--shivuk-ease), background-color 0.2s ease, box-shadow 0.2s var(--shivuk-ease);
}

.podcast-hero-full__play svg {
	inline-size: 18px;
	block-size: 18px;
}

.podcast-hero-full__play:hover,
.podcast-hero-full__play:focus-visible {
	color: #ffffff;
	transform: scale(1.04);
	background: color-mix(in srgb, var(--shivuk-color-accent) 88%, #ffffff);
	box-shadow: 0 14px 32px color-mix(in srgb, var(--shivuk-color-accent) 55%, transparent);
}

.podcast-hero-full__count {
	margin-block-start: 1.4rem;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.85rem;
	font-weight: 600;
}

/* Sits over the list only when the hero is present. */
.episode-list__heading {
	margin: clamp(1.75rem, 4vw, 2.5rem) 0 0.9rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {
	.podcast-hero-full__bg-img {
		transform: none;
	}

	.podcast-hero-full__play {
		transition: none;
	}

	.podcast-hero-full__play:hover,
	.podcast-hero-full__play:focus-visible {
		transform: none;
	}
}

/* --- Episode list ---------------------------------------------------- */
.episode-list {
	margin-block-start: 0;
}

.episode-row {
	position: relative;
	display: grid;
	grid-template-columns: 2.25rem 56px minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	padding: 0.6rem 1rem;
	border-radius: 10px;
	transition: background-color 0.18s ease;
}

.episode-row:hover,
.episode-row:focus-within {
	background: rgba(255, 255, 255, 0.07);
}

/* Track number that flips to a play glyph on hover — the Spotify move. */
.episode-row__num {
	display: grid;
	place-items: center;
	inline-size: 2.25rem;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}

.episode-row__num-play {
	display: none;
	color: #ffffff;
}

.episode-row__num-play svg {
	inline-size: 16px;
	block-size: 16px;
}

.episode-row:hover .episode-row__num-index,
.episode-row:focus-within .episode-row__num-index {
	display: none;
}

.episode-row:hover .episode-row__num-play,
.episode-row:focus-within .episode-row__num-play {
	display: inline-flex;
}

.episode-row__art {
	display: block;
	inline-size: 56px;
	block-size: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
}

.episode-row__art img,
.episode-row__art .home-thumb-empty {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.episode-row__body {
	min-inline-size: 0;
}

.episode-row__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.episode-row__title a {
	color: #ffffff;
	text-decoration: none;
	/* Whole-row click target; the number/art/date stay decorative. */
}

.episode-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.episode-row:hover .episode-row__title a {
	color: color-mix(in srgb, var(--shivuk-color-accent) 30%, #ffffff);
}

.episode-row__excerpt {
	margin: 0.2rem 0 0;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.85rem;
	line-height: 1.4;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.episode-row__date {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* --- Pagination ------------------------------------------------------ */
.podcast-archive__pagination {
	margin-block-start: 2rem;
}

.podcast-archive__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
}

.podcast-archive__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 40px;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.06);
	transition: background-color 0.18s ease, color 0.18s ease;
}

.podcast-archive__pagination a.page-numbers:hover,
.podcast-archive__pagination a.page-numbers:focus-visible {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.16);
}

.podcast-archive__pagination .page-numbers.current {
	background: var(--shivuk-color-accent);
	color: #ffffff;
}

.podcast-archive__pagination .page-numbers.dots {
	background: transparent;
}

.podcast-archive__empty {
	padding-block: 2rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.05rem;
}

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 720px) {
	.episode-row {
		grid-template-columns: 2rem 52px minmax(0, 1fr);
		gap: 0.75rem;
	}

	/* The published date drops on phones — the title + art carry the row. */
	.episode-row__date {
		display: none;
	}

	.episode-row__art {
		inline-size: 52px;
		block-size: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.episode-row {
		transition: none;
	}
}

/* --- Injected promos (Dream Job + community) -------------------------- */
/* Sits between the episode rows. The Dream Job box is already a dark navy
   tile, so it needs nothing; only the community box ships light and gets
   re-skinned here for this surface. */
.archive-promos--dark {
	border-block-start-color: rgba(255, 255, 255, 0.12);
}

.archive-promos--dark .home-fb-mini {
	border-color: rgba(255, 255, 255, 0.14);
	background:
		radial-gradient(85% 110% at 100% 0%, color-mix(in srgb, var(--shivuk-color-accent) 26%, transparent), transparent 55%),
		/* Lifted with the surface (--pod-surface), keeping the same step
		   above it — at the old #12304a the box would now read as flat
		   against the lightened page rather than as a tile on it. */
		linear-gradient(165deg, #173d5e, #102942);
	color: #ffffff;
	box-shadow: 0 14px 30px rgba(4, 14, 24, 0.4);
}

.archive-promos--dark .home-fb-mini__sub {
	color: rgba(255, 255, 255, 0.66);
}

/* The solid Facebook-blue primary CTA already reads well on dark and is
   left alone; only the quiet outline pill needs inverting. */
.archive-promos--dark .home-fb-mini .home-btn--outline {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.28);
	color: #ffffff;
}

.archive-promos--dark .home-fb-mini .home-btn--outline:hover,
.archive-promos--dark .home-fb-mini .home-btn--outline:focus {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.45);
	color: #ffffff;
}

.archive-promos--dark .home-fb-mini__social-link {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.8);
}

.archive-promos--dark .home-fb-mini__social-link:hover,
.archive-promos--dark .home-fb-mini__social-link:focus {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.4);
}

/* The episode list isn't a container-query context, so the stack point here
   follows the viewport. */
@media (max-width: 720px) {
	.archive-promos--dark {
		grid-template-columns: minmax(0, 1fr);
	}
}
