/**
 * AscendAI single podcast episode presentation.
 *
 * These rules are intentionally scoped beneath .ascend-podcast-single so they
 * do not affect ordinary posts, pages, the podcast directory, or admin screens.
 */

.ascend-podcast-single {
	--ascend-podcast-ink: #1b1b1e;
	--ascend-podcast-text: #282b30;
	--ascend-podcast-muted: #646b73;
	--ascend-podcast-blue: #4ba8df;
	--ascend-podcast-blue-soft: #dff2fc;
	--ascend-podcast-surface: #f6fbfe;
	--ascend-podcast-border: #d9e4ea;
	padding-top: clamp(1.5rem, 3vw, 3rem);
	background: #fff;
	color: var(--ascend-podcast-text);
	font-size: 1.125rem;
	line-height: 1.75;
}

.ascend-podcast-single *,
.ascend-podcast-single *::before,
.ascend-podcast-single *::after {
	box-sizing: border-box;
}

.ascend-podcast-shell,
.ascend-podcast-content-shell {
	width: min(100% - 3rem, 76rem);
	margin-inline: auto;
}

.ascend-podcast-player {
	display: grid;
	grid-template-columns: minmax(12rem, 0.7fr) minmax(18rem, 1.3fr);
	gap: 2rem;
	align-items: center;
	width: min(100%, 64rem);
	margin-inline: auto;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid var(--ascend-podcast-border);
	border-radius: 1.5rem;
	background: var(--ascend-podcast-surface);
}

.ascend-podcast-player-copy > * {
	margin: 0;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-player-kicker {
	color: #1478b3;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-player h2 {
	margin-top: 0.35rem;
	color: var(--ascend-podcast-ink);
	font-size: clamp(1.5rem, 3vw, 2.15rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

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

.ascend-podcast-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 88% 14%, rgb(75 168 223 / 20%), transparent 28rem),
		var(--ascend-podcast-ink);
	color: #fff;
}

.ascend-podcast-hero:not(.ascend-podcast-hero-has-video):not(.ascend-podcast-hero-has-image) {
	padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.ascend-podcast-hero:not(.ascend-podcast-hero-has-video):not(.ascend-podcast-hero-has-image)::after {
	position: absolute;
	right: -7rem;
	bottom: -12rem;
	width: 28rem;
	height: 28rem;
	border: 1px solid rgb(75 168 223 / 32%);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.ascend-podcast-hero-stage {
	position: relative;
	isolation: isolate;
	min-height: clamp(38rem, 67vw, 52rem);
	background: var(--ascend-podcast-ink);
}

.ascend-podcast-hero-poster,
.ascend-podcast-hero-shade,
.ascend-podcast-hero-iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.ascend-podcast-hero-poster {
	z-index: -3;
	object-fit: cover;
	object-position: center;
}

.ascend-podcast-hero-shade {
	z-index: -2;
	background:
		linear-gradient(90deg, rgb(14 17 21 / 94%) 0%, rgb(14 17 21 / 78%) 48%, rgb(14 17 21 / 28%) 78%, rgb(14 17 21 / 48%) 100%),
		linear-gradient(0deg, rgb(14 17 21 / 86%) 0%, transparent 48%);
}

.ascend-podcast-hero-has-video .ascend-podcast-hero-layout,
.ascend-podcast-hero-has-image .ascend-podcast-hero-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(2rem, 6vw, 6rem);
	align-items: end;
	min-height: inherit;
	padding-block: clamp(4rem, 8vw, 7rem);
}

.ascend-podcast-hero-copy {
	min-width: 0;
}

.ascend-podcast-hero-iframe {
	z-index: 5;
	background: #000;
}

.ascend-podcast-hero-stage > :not(.ascend-podcast-hero-iframe) {
	transition: opacity 240ms ease, visibility 240ms ease;
}

.ascend-podcast-hero-stage.is-playing > :not(.ascend-podcast-hero-iframe) {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-hero-play {
	display: inline-flex;
	gap: 0.8rem;
	align-self: center;
	align-items: center;
	justify-content: center;
	min-width: 10.5rem;
	padding: 0.85rem 1.15rem;
	border: 1px solid rgb(255 255 255 / 55%);
	border-radius: 999px;
	background: rgb(255 255 255 / 94%);
	box-shadow: 0 1rem 3rem rgb(0 0 0 / 28%);
	color: var(--ascend-podcast-ink);
	cursor: pointer;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1;
	transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-hero-play:hover,
body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-hero-play:focus-visible {
	background: #fff;
	box-shadow: 0 1.2rem 3.5rem rgb(0 0 0 / 38%);
	transform: translateY(-2px);
}

.ascend-podcast-hero-play-icon {
	width: 0;
	height: 0;
	border-top: 0.42rem solid transparent;
	border-bottom: 0.42rem solid transparent;
	border-left: 0.7rem solid var(--ascend-podcast-blue);
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-kicker {
	margin: 0 0 1rem;
	color: var(--ascend-podcast-blue);
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-title {
	max-width: 16ch;
	margin: 0;
	color: #fff;
	font-size: clamp(2.5rem, 5.15vw, 4.75rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.01;
	text-shadow: 0 0.18rem 1.25rem rgb(0 0 0 / 38%);
	text-wrap: balance;
	text-transform: uppercase;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-items: center;
	margin-top: 1.5rem;
	color: rgb(255 255 255 / 72%);
	font-size: 0.9375rem;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-top: 2rem;
	color: rgb(255 255 255 / 70%);
	font-size: 0.9375rem;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-breadcrumbs a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.24em;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-breadcrumbs a:hover,
body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-breadcrumbs a:focus-visible {
	color: #fff;
}

.ascend-podcast-content-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 5rem);
	padding-block: clamp(3.5rem, 8vw, 7rem);
}

.ascend-podcast-show-notes {
	width: min(100%, 52rem);
	margin-inline: auto;
}

.ascend-podcast-show-notes > :first-child {
	margin-top: 0;
}

.ascend-podcast-show-notes > :last-child {
	margin-bottom: 0;
}

.ascend-podcast-show-notes :where(p, ul, ol, blockquote, figure, .wp-block-embed) {
	margin-block: 0 1.5rem;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-show-notes :where(h2, h3, h4) {
	margin-block: 2.5rem 1rem;
	color: var(--ascend-podcast-ink);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-show-notes h2 {
	font-size: clamp(2rem, 4vw, 3.1rem);
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-show-notes h3 {
	font-size: clamp(1.55rem, 3vw, 2.15rem);
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-show-notes a {
	color: #1478b3;
	font-weight: 650;
	text-decoration-color: rgb(20 120 179 / 38%);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-show-notes a:hover,
body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-show-notes a:focus-visible {
	color: #095d8e;
	text-decoration-color: currentcolor;
}

.ascend-podcast-show-notes :where(ul, ol) {
	padding-left: 1.35em;
}

.ascend-podcast-show-notes li + li {
	margin-top: 0.55rem;
}

.ascend-podcast-show-notes .is-style-ascend-check-list {
	display: grid;
	gap: 0.9rem;
	padding-left: 0;
	list-style: none;
}

.ascend-podcast-show-notes .is-style-ascend-check-list > li {
	position: relative;
	margin: 0;
	padding-left: 2.15rem;
}

.ascend-podcast-show-notes .is-style-ascend-check-list > li::before {
	position: absolute;
	top: 0.28em;
	left: 0;
	display: grid;
	place-items: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: var(--ascend-podcast-blue-soft);
	color: #1478b3;
	content: "\2713";
	font-size: 0.8rem;
	font-weight: 900;
	line-height: 1;
}

.ascend-podcast-show-notes blockquote {
	padding: 1.5rem 1.75rem;
	border-left: 0.35rem solid var(--ascend-podcast-blue);
	border-radius: 0 1rem 1rem 0;
	background: var(--ascend-podcast-surface);
	color: var(--ascend-podcast-ink);
}

.ascend-podcast-show-notes :where(img, iframe) {
	max-width: 100%;
}

.ascend-podcast-show-notes .wp-block-embed__wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
	border-radius: 1rem;
}

.ascend-podcast-show-notes .wp-block-embed__wrapper iframe {
	display: block;
	width: 100%;
}

.ascend-podcast-show-notes .ascend-podcast-episode-resources {
	margin-top: clamp(3rem, 7vw, 5rem);
	padding: clamp(1.5rem, 4vw, 2.75rem);
	border: 1px solid var(--ascend-podcast-border);
	border-radius: 1.5rem;
	background: var(--ascend-podcast-surface);
}

.ascend-podcast-show-notes .ascend-podcast-episode-resources > :first-child {
	margin-top: 0;
}

.ascend-podcast-show-notes .ascend-podcast-episode-resources > :last-child {
	margin-bottom: 0;
}

.ascend-podcast-show-notes .ascend-podcast-episode-resources h4 {
	margin-block: 2rem 0.75rem;
	color: var(--ascend-podcast-ink);
	font-size: clamp(1.2rem, 2.5vw, 1.5rem);
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.ascend-podcast-show-notes .ascend-podcast-episode-resources p {
	margin-block: 0.75rem;
}

.ascend-podcast-show-notes .ascend-podcast-episode-resources a {
	overflow-wrap: anywhere;
}

.ascend-podcast-directory-return {
	width: min(100%, 64rem);
	margin-inline: auto;
	text-align: center;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-directory-return a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.8rem 1.2rem;
	border: 1px solid var(--ascend-podcast-border);
	border-radius: 999px;
	background: #fff;
	color: #1478b3;
	font-size: 0.9375rem;
	font-weight: 800;
	text-decoration: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-directory-return a:hover,
body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-directory-return a:focus-visible {
	border-color: var(--ascend-podcast-blue);
	box-shadow: 0 0.8rem 2rem rgb(25 56 72 / 10%);
	transform: translateY(-2px);
}

.ascend-podcast-recent {
	width: min(100%, 64rem);
	margin-inline: auto;
	padding-top: clamp(1rem, 3vw, 2rem);
	border-top: 1px solid var(--ascend-podcast-border);
}

.ascend-podcast-recent-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-recent-header h2 {
	margin: 0;
	color: var(--ascend-podcast-ink);
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.1;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-recent-header a {
	color: #1478b3;
	font-size: 0.9375rem;
	font-weight: 800;
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.22em;
}

.ascend-podcast-recent-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.ascend-podcast-recent-item {
	margin: 0;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-recent-link {
	display: grid;
	grid-template-columns: 5rem minmax(0, 1fr);
	gap: 0.9rem;
	align-items: center;
	height: 100%;
	padding: 0.75rem;
	border: 1px solid var(--ascend-podcast-border);
	border-radius: 0.85rem;
	background: #fff;
	color: var(--ascend-podcast-ink);
	text-decoration: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-recent-link:hover,
body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-recent-link:focus-visible {
	border-color: var(--ascend-podcast-blue);
	box-shadow: 0 0.65rem 1.5rem rgb(25 56 72 / 10%);
	transform: translateY(-2px);
}

.ascend-podcast-recent-thumbnail {
	overflow: hidden;
	aspect-ratio: 1;
	border-radius: 0.65rem;
	background: #edf6fa;
}

.ascend-podcast-recent-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ascend-podcast-recent-copy {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.ascend-podcast-recent-copy time {
	color: #587080;
	font-size: 0.8125rem;
	font-weight: 700;
}

.ascend-podcast-recent-title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

@media (max-width: 47.9375rem) {
	.ascend-podcast-shell,
	.ascend-podcast-content-shell {
		width: min(100% - 2rem, 76rem);
	}

	.ascend-podcast-hero:not(.ascend-podcast-hero-has-video):not(.ascend-podcast-hero-has-image) {
		padding-block: 4rem;
	}

	.ascend-podcast-hero-stage {
		min-height: 42rem;
	}

	.ascend-podcast-hero-shade {
		background:
			linear-gradient(0deg, rgb(14 17 21 / 96%) 0%, rgb(14 17 21 / 68%) 72%, rgb(14 17 21 / 42%) 100%),
			linear-gradient(90deg, rgb(14 17 21 / 72%), transparent);
	}

	.ascend-podcast-hero-has-video .ascend-podcast-hero-layout,
	.ascend-podcast-hero-has-image .ascend-podcast-hero-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
		align-content: end;
		padding-block: 3.5rem;
	}

	body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-hero-play {
		justify-self: start;
	}

	body.ascend-podcast-template-active .ascend-podcast-single .ascend-podcast-title {
		max-width: 15ch;
		font-size: clamp(2.1rem, 9.8vw, 3.35rem);
		line-height: 1.03;
	}

	.ascend-podcast-single {
		font-size: 1.0625rem;
	}

	.ascend-podcast-player,
	.ascend-podcast-recent-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.ascend-podcast-recent-header {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ascend-podcast-single *,
	.ascend-podcast-single *::before,
	.ascend-podcast-single *::after {
		scroll-behavior: auto !important;
	}
}
