/* # Single Blog Post
--------------------------------------------- */

/* ## Hero: image card, breadcrumbs, title */
.single-post .post-hero {
	background: #ffffff;
	padding: 6rem 0 2rem;
	text-align: center;
}

.single-post .post-hero .wrap {
	max-width: 960px;
}

.single-post .post-hero--image {
	margin: 0 auto 3rem;
	max-width: 760px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 20px -5px rgb(0 0 0 / 20%);
}

.single-post .post-hero--image img {
	display: block;
	width: 100%;
	aspect-ratio: 760 / 350;
	object-fit: cover;
}

.single-post .post-hero--breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	margin-bottom: 2rem;
	font-size: 1.6rem;
	color: #647585;
}

.single-post .post-hero--breadcrumbs a {
	color: #154c7e;
	font-weight: 500;
	text-decoration: none;
}

.single-post .post-hero--breadcrumbs a:hover {
	text-decoration: underline;
}

.single-post .post-hero--breadcrumbs a:last-child {
	color: #647585;
	font-weight: 400;
}

.single-post .post-hero .entry-title {
	margin: 0 auto;
	max-width: 860px;
	color: #123f69;
	font-size: 4rem;
	line-height: 1.25;
}

/* ## Two column layout */
.single-post.full-width-content .content-sidebar-wrap > .content {
	max-width: 1200px;
}

.single-post .content-sidebar-wrap {
	padding-top: 4rem;
}

.single-post .post-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 6rem;
	align-items: start;
	max-width: 1280px;
	margin: 0 auto;
}

.single-post .post-sidebar {
	position: sticky;
	top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 2.4rem;
}

.admin-bar.single-post .post-sidebar {
	top: 5.2rem;
}

.single-post .post-main .entry {
	margin-bottom: 0;
	padding: 0;
}

/* ## Table of contents + share */
.single-post .post-toc {
	background: #ffffff;
	border-radius: 4px;
	box-shadow: 0 6px 20px -5px rgb(0 0 0 / 20%);
	padding: 2.4rem;
}

.single-post .post-toc--title {
	cursor: pointer;
	font-family: 'Montserrat', Helvetica, Arial, sans-serif;
	font-size: 1.8rem;
	font-weight: 700;
	color: #123f69;
	list-style: none;
	padding-bottom: 1.4rem;
	border-bottom: 1px solid #f0f1f2;
}

.single-post .post-toc--title::-webkit-details-marker {
	display: none;
}

.single-post .post-toc--list {
	list-style: decimal;
	margin: 1.6rem 0 0 1.8rem;
	padding: 0;
	font-size: 1.5rem;
	line-height: 1.4;
}

.single-post .post-toc--list li {
	list-style: inherit;
	margin-bottom: 1rem;
	padding-left: 0.4rem;
}

.single-post .post-toc--list a {
	color: #232c39;
	text-decoration: none;
}

.single-post .post-toc--list a:hover {
	color: #005aa5;
	text-decoration: underline;
}

.single-post .post-share {
	margin-top: 2rem;
	text-align: center;
}

.single-post .post-share--title {
	margin-bottom: 1rem;
	font-size: 1.5rem;
	font-weight: 500;
}

.single-post .post-share--links {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.single-post .post-share--link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.6rem;
	height: 3.6rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f0f1f2;
	color: #123f69;
	font-size: 1.5rem;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.single-post .post-share--link:hover,
.single-post .post-share--link:focus {
	background: #154c7e;
	color: #ffffff;
}

.single-post .post-share--link svg {
	margin: 0;
}

.single-post .post-share--copied {
	display: block;
	min-height: 1.8rem;
	margin-top: 0.6rem;
	font-size: 1.3rem;
	color: #647585;
}

/* ## Sidebar CTA */
.single-post .post-cta {
	background: #e8f1f9;
	border-radius: 8px;
	padding: 2.4rem;
}

.single-post .post-cta--title {
	margin-bottom: 1rem;
	font-family: 'Montserrat', Helvetica, Arial, sans-serif;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.3;
	color: #123f69;
}

.single-post .post-cta--text {
	margin-bottom: 2rem;
	font-size: 1.5rem;
	line-height: 1.5;
}

.single-post .post-cta--button {
	background: #154c7e;
	color: #ffffff;
	font-size: 1.4rem;
	padding: 1.2rem 1.8rem;
}

.single-post .post-cta--button:hover,
.single-post .post-cta--button:focus {
	background: #123f69;
	color: #ffffff;
}

/* ## Meta row */
.single-post .post-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2.4rem;
	margin-bottom: 2.4rem;
	font-size: 1.5rem;
	color: #647585;
}

.single-post .post-meta-row--item {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

/* ## Headings: leave room above anchors */
.single-post .entry-content h2[id] {
	scroll-margin-top: 2rem;
}

/* ## Tablet / mobile: single column, TOC above content, CTA below */
@media (max-width: 1023px) {
	.single-post .post-hero {
		padding-top: 4rem;
	}

	.single-post .post-hero .entry-title {
		font-size: 3rem;
	}

	.single-post .post-layout {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 3rem;
	}

	.single-post .post-sidebar {
		display: contents;
	}

	.single-post .post-toc {
		order: 1;
	}

	.single-post .post-main {
		order: 2;
	}

	.single-post .post-cta {
		order: 3;
	}

	.single-post .post-toc--title {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.single-post .post-toc--title::after {
		content: "+";
		font-size: 2.2rem;
		line-height: 1;
	}

	.single-post .post-toc--details[open] .post-toc--title::after {
		content: "\2212";
	}

	.single-post .post-toc--details:not([open]) .post-toc--title {
		padding-bottom: 0;
		border-bottom: 0;
	}
}

@media (max-width: 600px) {
	.single-post .post-hero--image {
		border-radius: 10px;
	}

	.single-post .post-hero .entry-title {
		font-size: 2.6rem;
	}

	/* Floated content images take the full width on phones. */
	.single-post .entry-content .alignright,
	.single-post .entry-content .alignleft {
		float: none;
		margin: 0 0 2rem;
	}

	.single-post .entry-content .alignright img,
	.single-post .entry-content .alignleft img {
		width: 100%;
		height: auto;
	}
}
