/* =============================================================
   Single Post — post hero, article, related posts carousel
   ============================================================= */

/* ── Post Hero (dark header) ──────────────────────────────── */

.wf-post-hero {
	background-color: var(--wf-secondary);
	padding: var(--wf-xl) var(--wf-sm);
	text-align: center;
}

.wf-post-hero__inner {
	max-width: 860px;
	margin-inline: auto;
}

.wf-post-hero__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.25rem 0.375rem;
	margin-bottom: var(--wf-md);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.wf-post-hero__breadcrumb a,
.wf-post-hero__sep {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
}

.wf-post-hero__breadcrumb a:hover {
	color: var(--wf-white);
	text-decoration: underline;
}

.wf-post-hero__breadcrumb-current {
	color: rgba(255, 255, 255, 0.38);
	max-width: 36ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
	vertical-align: bottom;
}

.wf-post-hero__title {
	color: var(--wf-white);
	font-family: 'Roboto Slab', serif;
	font-size: clamp(1.375rem, 3vw + 0.5rem, 2.125rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 var(--wf-sm);
}

.wf-post-hero__date {
	display: block;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.875rem;
	letter-spacing: 0.01em;
}

/* ── Single Article Wrap ──────────────────────────────────── */

.wf-single-wrap {
	background-color: var(--wf-white);
	padding: var(--wf-xl) var(--wf-sm);
}

.wf-single-article {
	max-width: 860px;
	margin-inline: auto;
}

/* Suppress GeneratePress defaults inside the single article */
.wf-single-article .entry-header,
.wf-single-article .entry-title,
.wf-single-article .entry-meta {
	display: none;
}

/* ── Featured Image ───────────────────────────────────────── */

.wf-single__thumbnail {
	margin-bottom: var(--wf-lg);
	border-radius: 0.5rem;
	overflow: hidden;
	line-height: 0;
}

.wf-single__thumbnail-img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 480px;
	object-fit: cover;
}

/* ── Article Content Typography ───────────────────────────── */

.wf-single__content {
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	line-height: 1.8;
	color: #2d2d2d;
}

.wf-single__content h2,
.wf-single__content h3,
.wf-single__content h4 {
	font-family: 'Roboto', sans-serif;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wf-secondary);
	margin-top: var(--wf-lg);
	margin-bottom: var(--wf-xs);
}

.wf-single__content h2 { font-size: 1.25rem; }
.wf-single__content h3 { font-size: 1.0625rem; }
.wf-single__content h4 { font-size: 1rem; }

.wf-single__content p {
	margin-bottom: var(--wf-sm);
}

.wf-single__content p:last-child {
	margin-bottom: 0;
}

.wf-single__content a {
	color: var(--wf-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wf-single__content a:hover {
	opacity: 0.75;
}

.wf-single__content strong,
.wf-single__content b {
	font-weight: 700;
}

.wf-single__content ul,
.wf-single__content ol {
	padding-left: 1.5rem;
	margin-bottom: var(--wf-sm);
}

.wf-single__content li {
	margin-bottom: 0.375rem;
}

.wf-single__content blockquote {
	border-left: 4px solid var(--wf-primary);
	padding-left: var(--wf-md);
	margin: var(--wf-lg) 0;
	color: #555;
	font-style: italic;
}

/* ── Related Posts Section ────────────────────────────────── */

.wf-related-posts {
	background-color: #eef0f5;
	padding: var(--wf-xl) var(--wf-sm);
}

.wf-related-posts__inner {
	max-width: 1200px;
	margin-inline: auto;
}

.wf-related-posts__heading {
	font-family: 'Roboto', sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wf-secondary);
	margin: 0 0 var(--wf-lg);
}

/* ── Carousel Layout ──────────────────────────────────────── */

.wf-related-carousel {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.wf-related-carousel__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.wf-related-carousel__track {
	display: flex;
	gap: 1.5rem;
	transition: transform 0.35s ease;
	will-change: transform;
}

/* ── Related Post Card ────────────────────────────────────── */

.wf-related-card {
	flex-shrink: 0;
	background: var(--wf-white);
	border-radius: 0.5rem;
	border: 1px solid #e2e5ea;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.wf-related-card__thumb-link {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	line-height: 0;
}

.wf-related-card__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.wf-related-card:hover .wf-related-card__thumb {
	transform: scale(1.04);
}

.wf-related-card__body {
	padding: var(--wf-md);
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--wf-xs);
}

.wf-related-card__title {
	font-family: 'Roboto', sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.45;
	color: var(--wf-secondary);
	margin: 0;
}

.wf-related-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color var(--wf-transition);
}

.wf-related-card__title a:hover {
	color: var(--wf-primary);
}

.wf-related-card__date {
	font-size: 0.8125rem;
	color: #6b7280;
	margin-top: auto;
}

/* ── Carousel Nav Buttons ─────────────────────────────────── */

.wf-related-carousel__btn {
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	border: none;
	background-color: var(--wf-secondary);
	color: var(--wf-white);
	font-size: 1.375rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color var(--wf-transition), opacity var(--wf-transition);
	padding: 0;
}

.wf-related-carousel__btn:hover {
	background-color: var(--wf-primary);
}

.wf-related-carousel__btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Carousel Dots ────────────────────────────────────────── */

.wf-related-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: var(--wf-md);
	min-height: 0.625rem;
}

.wf-related-carousel__dot {
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	background-color: #c4c8d4;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background-color var(--wf-transition);
}

.wf-related-carousel__dot.is-active {
	background-color: var(--wf-secondary);
}

/* ── Responsive ───────────────────────────────────────────── */

@media ( max-width: 48em ) {
	.wf-post-hero {
		padding: var(--wf-lg) var(--wf-sm);
	}

	.wf-post-hero__breadcrumb-current {
		max-width: 24ch;
	}

	.wf-single-wrap {
		padding: var(--wf-lg) var(--wf-sm);
	}

	.wf-related-posts {
		padding: var(--wf-lg) var(--wf-sm);
	}
}

@media ( max-width: 30em ) {
	.wf-related-carousel__btn {
		width: 1.875rem;
		height: 1.875rem;
		font-size: 1.125rem;
	}
}
