/**
 * SA — Single blog post (single.php). Same black bookend header + bright
 * yellow accent language as the rest of the site (case-studies.css's
 * .case-study-single__hero), plus the article layout: sticky/scroll-spy
 * table of contents, content typography, author box, and the "More From
 * The Blog" card row (reuses blog.css's .blog-card).
 */

:root {
	--bp-black: #191919;
	--bp-yellow: #fdd201;
	--bp-ink: #17233d;
	--bp-bg-alt: #f6f7f9;
	--bp-border: #e2e8f0;
	--bp-muted: #5b6b82;
}

/* ==========================================================================
   Header — black bookend band, matches .case-study-single__hero.
   ========================================================================== */

.blog-post__header {
	position: relative;
	overflow: hidden;
	background: var(--bp-black);
	padding-block: clamp(2.5rem, 6vw, 4rem);
}
.blog-post__header::before {
	content: '';
	position: absolute;
	width: 24rem;
	height: 24rem;
	top: -10rem;
	right: -6rem;
	border-radius: 50%;
	filter: blur(60px);
	pointer-events: none;
	background: radial-gradient(circle, rgba(253, 210, 1, 0.22), transparent 70%);
}
.blog-post__header > .container {
	position: relative;
	z-index: 1;
}

.blog-post__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1rem;
}
.blog-post__badge {
	display: inline-block;
	background: var(--bp-yellow);
	color: var(--bp-black);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 0.28rem 0.6rem;
	border-radius: 0.4rem;
}

.blog-post__title {
	color: #fff;
	font-weight: 700;
	line-height: 1.15;
	font-size: clamp(2rem, 4.2vw, 2.9rem);
	margin-bottom: 1.5rem;
	max-width: 46rem;
}

.blog-post__byline {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}
.blog-post__avatar {
	border-radius: 50%;
	flex-shrink: 0;
}
.blog-post__byline-text {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.blog-post__author {
	color: #fff;
	font-size: 0.92rem;
	font-weight: 600;
}
.blog-post__author a {
	color: var(--bp-yellow);
	text-decoration: none;
}
.blog-post__author a:hover {
	text-decoration: underline;
}
.blog-post__meta-line {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.85rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

/* ==========================================================================
   Featured image — inline in the content, straight after the first
   paragraph (see the preg_replace in single.php).
   ========================================================================== */

.blog-post__inline-thumbnail {
	display: block;
	width: 100%;
	height: clamp(14rem, 32vw, 22rem);
	object-fit: cover;
	border-radius: 1rem;
	margin-block: 1.75rem;
	box-shadow: 0 20px 40px -20px rgba(23, 35, 61, 0.3);
}

/* ==========================================================================
   Layout + content typography
   ========================================================================== */

.blog-post__layout {
	padding-block: clamp(3rem, 6vw, 5rem);
}

.blog-post__content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--bp-ink);
	max-width: 42rem;
}
/* Direct-child combinator deliberately, not a descendant selector — the
   FAQ accordion (inc/faq-accordion.php) nests its own <h2 class="accordion-header">
   inside this content, and it must not inherit these content-heading styles. */
.blog-post__content > h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	scroll-margin-top: 6rem;
}
.blog-post__content > h3 {
	font-size: 1.2rem;
	font-weight: 700;
	margin-top: 2rem;
	margin-bottom: 0.85rem;
	scroll-margin-top: 6rem;
}
.blog-post__content p {
	margin-bottom: 1.25rem;
}
.blog-post__content ul,
.blog-post__content ol {
	margin-bottom: 1.25rem;
	padding-left: 1.4rem;
}
.blog-post__content li {
	margin-bottom: 0.4rem;
}
.blog-post__content a {
	color: var(--bp-ink);
	font-weight: 700;
	text-decoration: none;
}
.blog-post__content a:hover {
	text-decoration: underline;
	text-decoration-color: var(--bp-yellow);
	text-decoration-thickness: 2px;
}
.blog-post__content img {
	border-radius: 0.75rem;
}
.blog-post__content blockquote {
	border-left: 3px solid var(--bp-yellow);
	padding-left: 1.25rem;
	margin: 1.5rem 0;
	color: var(--bp-muted);
	font-style: italic;
}

/* ==========================================================================
   Author bio box
   ========================================================================== */

.blog-post__author-box {
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	margin-top: 3rem;
	padding: 1.5rem;
	background: var(--bp-bg-alt);
	border-radius: 1rem;
	max-width: 42rem;
}
.blog-post__author-box-avatar {
	border-radius: 50%;
	flex-shrink: 0;
}
.blog-post__author-box-name {
	display: block;
	font-weight: 700;
	color: var(--bp-ink);
	margin-bottom: 0.3rem;
}
.blog-post__author-box-bio {
	color: var(--bp-muted);
	font-size: 0.92rem;
	line-height: 1.6;
	margin-bottom: 0;
}

/* ==========================================================================
   Table of contents — sticky, current-section highlight via blog-single.js
   ========================================================================== */

.blog-post__aside {
	display: none;
}
@media (min-width: 992px) {
	.blog-post__aside {
		display: block;
	}
}

.blog-post__toc {
	position: sticky;
	top: 6.5rem;
	background: #fff;
	border: 1px solid var(--bp-border);
	border-radius: 1rem;
	padding: 1.5rem;
}
.blog-post__toc-heading {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bp-muted);
	margin-bottom: 1rem;
}
.blog-post__toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	border-left: 2px solid var(--bp-border);
}
.blog-post__toc-item a {
	display: block;
	padding: 0.4rem 0 0.4rem 1rem;
	margin-left: -2px;
	border-left: 2px solid transparent;
	color: var(--bp-muted);
	text-decoration: none;
	font-size: 0.88rem;
	line-height: 1.4;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.blog-post__toc-item--h3 a {
	padding-left: 2rem;
	font-size: 0.84rem;
}
.blog-post__toc-item a:hover {
	color: var(--bp-ink);
}
.blog-post__toc-item.is-active > a {
	border-left-color: var(--bp-yellow);
	color: var(--bp-ink);
	font-weight: 700;
}

/* ==========================================================================
   "More From The Blog"
   ========================================================================== */

.blog-post__more {
	background: var(--bp-bg-alt);
	padding-block: clamp(3rem, 6vw, 5rem);
}
.blog-post__more-heading {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--bp-ink);
	margin-bottom: 2rem;
}
