/* -- Hero -- */
.blog-post-hero {
	padding: 0;
	background: color-mix(in srgb, var(--c-light) 75%, white); /* Spec White/75% */
}
.blog-post-hero__content {
	max-width: 59.375rem;
	padding: clamp(3rem, 5vw, 3.75rem) 0 clamp(3rem, 6vw, 5rem);
}
.blog-post-hero .blog-eyebrow {
	margin-bottom: 1.25rem;
}
.blog-post-hero h1 {
	text-transform: capitalize;
	margin: 0 0 1.25rem;
}
.blog-post-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1.875rem;
	font-family: var(--font-heading-alt);
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.25rem;
	color: var(--c-main);
}
.blog-post-hero__meta span {
	display: block;
}
@media (min-width: 992px) {
	.blog-post-hero__content {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}
}

/* -- Layout: content + table of contents -- */
.blog-post {
	padding: 3.75rem 0 var(--section-padding-t-b);
	/* clip, not hidden: hidden would make this the sticky TOC's scroll container. */
	overflow: clip;
}
.blog-post > .container {
	position: relative;
	z-index: 1;
}
.blog-post__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: start;
}
@media (min-width: 992px) {
	.blog-post__row {
		grid-template-columns: minmax(0, 55.625rem) 20.6875rem;
		justify-content: space-between;
	}
	/* Decorative line art on the right half, faded in from the content side. */
	.blog-post::before {
		content: '';
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 50%;
		background:
			linear-gradient(to right, var(--c-white), rgba(255, 255, 255, 0) 73%),
			url('../img/blog-post-line-art.svg') -35.625rem 0 / auto max(100%, 52rem) no-repeat;
		pointer-events: none;
	}
}

.blog-post__featured-img {
	max-width: 50rem;
	aspect-ratio: 16 / 9;
	margin-bottom: 2.5rem;
}
.blog-post__content .blog-post__featured-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

/* -- Post body typography -- */
.blog-post__content {
	color: var(--c-main);
	font-family: var(--font-heading-alt);
	font-size: 1.125rem;
	line-height: 1.556;
}
.blog-post__content > *:first-child {
	margin-top: 0;
}
.blog-post__content h2,
.blog-post__content h3,
.blog-post__content h4,
.blog-post__content h5,
.blog-post__content h6 {
	text-transform: capitalize;
	margin: 1.875rem 0;
}
.blog-post__content h3 {
	color: var(--c-second);
}
.blog-post__content h4 {
	color: var(--c-main);
}
.blog-post__content h5 {
	color: var(--c-main);
}
.blog-post__content h6 {
	text-transform: none;
	font-weight: 500;
	line-height: 1.25rem;
}
.blog-post__content p {
	margin: 0 0 1.25rem;
}
.blog-post__content ul,
.blog-post__content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.6875rem;
}
.blog-post__content li {
	line-height: 1.667;
}
.blog-post__content a:not(.btn) {
	color: var(--c-second);
	text-decoration: underline;
	text-underline-offset: .2em;
}
.blog-post__content img {
	max-width: 100%;
	height: auto;
	border-radius: 1.25rem;
}
.blog-post__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.875rem;
	margin-top: 1.875rem;
}

/* -- Table of contents -- */
.blog-post__toc {
	position: sticky;
	top: calc(var(--header-height) + 1.25rem);
	border-left: 2px solid color-mix(in srgb, var(--c-third) 60%, white); /* Reactor Navy/60% */
}
.blog-post__toc-label {
	margin: 0 0 .6875rem;
	padding-left: 1.5625rem;
	font-family: var(--font-heading-alt);
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.25rem;
	color: color-mix(in srgb, var(--c-third) 60%, white);
}
.blog-post__toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.blog-post__toc-list li {
	margin: 0;
	padding: 0;
}
.blog-post__toc .blog-post__toc-list a {
	position: relative;
	display: block;
	padding: .625rem 0 .625rem 1.5625rem;
	font-family: var(--font-heading-alt);
	font-weight: 600;
	font-size: 1.375rem;
	line-height: 1.75rem;
	text-transform: capitalize;
	color: var(--c-main);
	text-decoration: none;
	transition: var(--global-transition);
}
/* Active marker: a 4px Catalyst Red bar centered over the 2px rule. */
.blog-post__toc-list a::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -3px;
	width: 4px;
	background: var(--c-fourth);
	opacity: 0;
	transition: var(--global-transition);
}
.blog-post__toc .blog-post__toc-list li.is-h3 a {
	padding-left: 3.4375rem;
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.25rem;
	text-transform: none;
}
.blog-post__toc .blog-post__toc-list a:hover,
.blog-post__toc .blog-post__toc-list a:focus-visible {
	color: var(--c-second);
}
.blog-post__toc-list a.active::before {
	opacity: 1;
}
.blog-post__toc[hidden] {
	display: none;
}

/* -- Related posts -- */
.blog-related__intro {
	max-width: 56.25rem;
	margin-bottom: 3.75rem;
}
.blog-related__intro h2 {
	margin: 0 0 1.25rem;
}
.blog-related__intro p {
	margin: 0;
}
.blog-related__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.875rem;
	width: 100%;
}
@media (min-width: 720px) {
	.blog-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
.blog-related__card {
	display: flex;
	flex-direction: column;
}
.blog-related__card-img-wrap {
	width: 100%;
	aspect-ratio: 4 / 3;
}
.blog-related__card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.blog-related__card-content {
	padding: 3.75rem 2.5rem;
	background: color-mix(in srgb, var(--c-light) 50%, white);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	flex: 1 1 auto;
}
.blog-related__card-content h4 {
	margin: 0;
}
.blog-related__card-content p {
	margin: 0;
}
@media (min-width: 480px) {
	.blog-related__card {
		flex-direction: row;
		align-items: stretch;
	}
	.blog-related__card-img-wrap {
		width: 50%;
		aspect-ratio: auto;
	}
	.blog-related__card-content {
		width: 50%;
	}
}
