/*--------------------------------------------------------------
# Blog Post Layout — content-type: blog
--------------------------------------------------------------*/

#primary {
	margin-top: var(--wp--preset--spacing--80);
	margin-bottom: var(--wp--preset--spacing--80);
}

.blog-post-layout {
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.blog-post-layout__inner {
	display: grid;
	grid-template-columns: minmax(0, 700px) minmax(0, 320px);
	gap: 5%;
	align-items: start;
}

/*--------------------------------------------------------------
# Featured Image
--------------------------------------------------------------*/

.blog-post-featured-image {
	position: relative;
	margin-bottom: 1.75rem;
}

.blog-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.blog-post-featured-image__label {
	position: absolute;
	content: "";
	left: 1rem;
	bottom: 2rem;
	display: flex;
	width: auto;
	height: 2.25rem;
	align-items: center;
	padding-left: 1rem;
	padding-right: 1rem;
	border-radius: 0.4rem;
	font-weight: 600;
	font-size: 1.25rem;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--heading-navy) !important;
}

/*--------------------------------------------------------------
# Post Title
--------------------------------------------------------------*/

.blog-post-layout__title {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.2em;
	margin-top: 0;
	margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Meta Row (date + reading time)
--------------------------------------------------------------*/

.blog-post-layout__meta {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin-bottom: 2rem;
	font-size: var(--wp--preset--font-size--regular);
}

/*--------------------------------------------------------------
# Post Content
--------------------------------------------------------------*/

.blog-post-layout__content {
	margin-bottom: 2rem;
}

/*--------------------------------------------------------------
# Divider
--------------------------------------------------------------*/

.blog-post-layout__divider {
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
	border: none;
	border-top: 1px solid currentColor;
	opacity: 0.15;
}

/*--------------------------------------------------------------
# Author Block
--------------------------------------------------------------*/

.blog-post-layout__author {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
}

.blog-post-layout__author-image-wrap {
	flex-shrink: 0;
}

.blog-post-layout__author-image {
	display: block;
	max-width: 5rem;
	width: 5rem;
	height: 5rem;
	object-fit: cover;
	border-radius: 10rem;
	border: 3px solid var(--wp--preset--color--stats-eyebrow-blue);
}

.blog-post-layout__author-text {
	flex: 1;
}

.blog-post-layout__author-name {
	margin-top: 0;
	margin-bottom: 0.35rem;
	padding-bottom: 0;
}

.blog-post-layout__author-bio {
	margin: 0;
	font-size: var(--wp--preset--font-size--regular);
	text-wrap: pretty;
}
@media ( width < 600px ) {
	.blog-post-layout__author {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

}

/*--------------------------------------------------------------
# Sidebar — More Insights
--------------------------------------------------------------*/

.blog-post-layout__sidebar-heading {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

.blog-post-layout__insights {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.blog-post-insight-card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.blog-post-insight-card:hover .blog-post-insight-card__title {
	text-decoration: underline;
}

.blog-post-insight-card__image {
	margin-bottom: 0.6rem;
}

.blog-post-insight-card__image img {
	display: block;
	width: 100%;
	height: auto;
}

.blog-post-insight-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.3;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media (max-width: 900px) {
	.blog-post-layout__inner {
		display: block;
	}

	.blog-post-layout__sidebar {
		border-top: 1px solid var(--wp--preset--color--stats-eyebrow-blue);
		padding-top: 2rem;
		margin-top: 3rem;
	}
}
