/*
 * AscendAI single blog layout.
 * Scoped to the child-theme single.php template through .ascend-blog-single.
 */

.ascend-blog-single {
	--ascend-blog-ink: #11151b;
	--ascend-blog-muted: #596574;
	--ascend-blog-line: #d9e2ea;
	--ascend-blog-accent: #2588c9;
	--ascend-blog-surface: #edf7fd;
	background: #fff;
	color: var(--ascend-blog-ink);
}

.ascend-blog-hero {
	position: relative;
	display: grid;
	min-height: clamp(28rem, 36vw, 34rem);
	overflow: hidden;
	background:
		radial-gradient(circle at 85% 10%, rgb(97 191 239 / 24%), transparent 28rem),
		linear-gradient(145deg, #f7fbfe 0%, var(--ascend-blog-surface) 100%);
	isolation: isolate;
}

.ascend-blog-hero__media,
.ascend-blog-hero__media img,
.ascend-blog-hero__scrim {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ascend-blog-hero__media {
	z-index: -3;
	margin: 0;
}

.ascend-blog-hero__media img {
	display: block;
	object-fit: cover;
	object-position: center;
}

.ascend-blog-hero__scrim {
	z-index: -2;
	background: linear-gradient(90deg, rgb(9 15 22 / 88%) 0%, rgb(9 15 22 / 72%) 44%, rgb(9 15 22 / 28%) 72%, rgb(9 15 22 / 16%) 100%);
}

.ascend-blog-hero--text-dark .ascend-blog-hero__scrim {
	background: linear-gradient(90deg, rgb(255 255 255 / 92%) 0%, rgb(255 255 255 / 78%) 44%, rgb(255 255 255 / 32%) 72%, rgb(255 255 255 / 14%) 100%);
}

.ascend-blog-hero__inner {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 82rem;
	margin: 0 auto;
	padding: clamp(2.5rem, 4vw, 3.5rem) 1.5rem;
}

.ascend-blog-hero__content {
	width: min(100%, 47rem);
	min-width: 0;
}

.ascend-blog-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
	color: rgb(255 255 255 / 82%);
	font-size: 0.9rem;
	line-height: 1.5;
}

.ascend-blog-hero--text-dark .ascend-blog-breadcrumb {
	color: rgb(17 21 27 / 76%);
}

.ascend-blog-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.ascend-blog-breadcrumb a:hover,
.ascend-blog-breadcrumb a:focus-visible {
	color: var(--ascend-blog-accent);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.ascend-blog-hero__eyebrow,
.ascend-blog-tags__label {
	margin: 0 0 1rem;
	color: #72c7f2;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ascend-blog-hero--text-dark .ascend-blog-hero__eyebrow {
	color: #086da9;
}

.ascend-blog-hero__title {
	max-width: 16ch;
	margin: 0;
	color: #fff;
	font-size: clamp(2.5rem, 3.7vw, 4.1rem);
	font-weight: 750;
	letter-spacing: -0.045em;
	line-height: 0.98;
	text-transform: none;
	text-wrap: balance;
}

.ascend-blog-single .ascend-blog-hero--text-light .ascend-blog-hero__title {
	color: #fff;
}

.ascend-blog-single .ascend-blog-hero--text-dark .ascend-blog-hero__title {
	color: var(--ascend-blog-ink);
}

.ascend-blog-hero__excerpt {
	max-width: 42rem;
	margin: 1.75rem 0 0;
	color: rgb(255 255 255 / 86%);
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	line-height: 1.65;
}

.ascend-blog-hero--text-dark .ascend-blog-hero__excerpt {
	color: rgb(17 21 27 / 78%);
}

.ascend-blog-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.75rem;
	align-items: center;
	margin-top: 2rem;
	color: rgb(255 255 255 / 82%);
	font-size: 0.95rem;
	line-height: 1.5;
}

.ascend-blog-hero--text-dark .ascend-blog-meta {
	color: rgb(17 21 27 / 76%);
}

.ascend-blog-article {
	max-width: 75rem;
	margin: 0 auto;
	padding: clamp(2.5rem, 4vw, 4rem) 1.5rem clamp(5rem, 8vw, 8rem);
}

.ascend-blog-article__content {
	color: #28313b;
	font-size: clamp(1.05rem, 1.3vw, 1.2rem);
	line-height: 1.78;
}

.ascend-blog-article__content > * {
	max-width: 100%;
}

.ascend-blog-article__content > :not(.alignwide, .alignfull, .ascend-related-insights) {
	width: min(100%, 60rem);
	margin-right: auto;
	margin-left: auto;
}

.ascend-blog-article__content > .ascend-related-insights {
	width: calc(100% + 3rem);
	max-width: none;
	margin-right: -1.5rem;
	margin-left: -1.5rem;
}

.ascend-blog-article__content > :first-child {
	margin-top: 0;
}

.ascend-blog-article__content > * + * {
	margin-top: 1.5em;
}

.ascend-blog-article__content h2,
.ascend-blog-article__content h3 {
	color: var(--ascend-blog-ink);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
	text-wrap: balance;
}

.ascend-blog-article__content h2 {
	margin-top: 2.3em;
	font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.ascend-blog-article__content h3 {
	margin-top: 2em;
	font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.ascend-blog-article__content a {
	color: #086da9;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

.ascend-blog-article__content blockquote {
	margin-right: 0;
	margin-left: 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 0.25rem solid var(--ascend-blog-accent);
	color: #344353;
	font-size: 1.15em;
}

.ascend-blog-article__content :is(img, video, iframe) {
	border-radius: 1rem;
}

.ascend-blog-article__content :is(ul, ol) {
	padding-left: 1.35em;
}

.ascend-blog-article__content li + li {
	margin-top: 0.6em;
}

.ascend-blog-article__footer {
	width: min(100%, 60rem);
	margin-top: 4rem;
	margin-right: auto;
	margin-left: auto;
	padding-top: 2rem;
	border-top: 1px solid var(--ascend-blog-line);
}

.ascend-blog-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.ascend-blog-tags a {
	display: inline-flex;
	padding: 0.55rem 0.9rem;
	border: 1px solid var(--ascend-blog-line);
	border-radius: 999px;
	color: #344353;
	font-size: 0.9rem;
	line-height: 1.2;
	text-decoration: none;
}

.ascend-blog-tags a:hover,
.ascend-blog-tags a:focus-visible {
	border-color: var(--ascend-blog-accent);
	color: #086da9;
}

.ascend-blog-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	width: min(100%, 60rem);
	margin-top: 4rem;
	margin-right: auto;
	margin-left: auto;
	padding-top: 2rem;
	border-top: 1px solid var(--ascend-blog-line);
}

.ascend-blog-post-nav__item span {
	display: block;
	height: 100%;
}

.ascend-blog-post-nav__item a {
	display: block;
	height: 100%;
	padding: 1.25rem;
	border: 1px solid var(--ascend-blog-line);
	border-radius: 1rem;
	color: var(--ascend-blog-ink);
	font-weight: 650;
	line-height: 1.35;
	text-decoration: none;
}

.ascend-blog-post-nav__item a:hover,
.ascend-blog-post-nav__item a:focus-visible {
	border-color: var(--ascend-blog-accent);
	box-shadow: 0 0.75rem 2rem rgb(34 81 111 / 10%);
}

.ascend-blog-post-nav__item small {
	display: block;
	margin-bottom: 0.55rem;
	color: var(--ascend-blog-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ascend-blog-post-nav__item--next {
	text-align: right;
}

.ascend-blog-page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2rem;
}

@media (max-width: 64rem) {
	.ascend-blog-hero__title {
		max-width: 18ch;
	}
}

@media (max-width: 40rem) {
	.ascend-blog-hero {
		min-height: 32rem;
	}

	.ascend-blog-hero__inner {
		align-items: end;
		padding: 2rem 1rem 2.75rem;
	}

	.ascend-blog-hero__scrim {
		background: linear-gradient(0deg, rgb(9 15 22 / 94%) 0%, rgb(9 15 22 / 70%) 58%, rgb(9 15 22 / 24%) 100%);
	}

	.ascend-blog-hero--text-dark .ascend-blog-hero__scrim {
		background: linear-gradient(0deg, rgb(255 255 255 / 94%) 0%, rgb(255 255 255 / 74%) 58%, rgb(255 255 255 / 20%) 100%);
	}

	.ascend-blog-breadcrumb {
		margin-bottom: 1.75rem;
	}

	.ascend-blog-hero__title {
		font-size: clamp(2.2rem, 10.5vw, 3rem);
	}

	.ascend-blog-article {
		padding-right: 1rem;
		padding-left: 1rem;
	}

	.ascend-blog-article__content > .ascend-related-insights {
		width: 100%;
		margin-right: 0;
		margin-left: 0;
	}

	.ascend-blog-post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.ascend-blog-post-nav__item--next {
		text-align: left;
	}
}

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