/* ==========================================================================
   FWPN Template: Single post (BEM: post-article)
   Hero uses shared block-subpage-hero styles.
   ========================================================================== */

/* ==========================================================================
   Hero overrides for single posts
   ========================================================================== */

.single .block-subpage-hero__inner {
	min-height: 250px;
}

.single .block-subpage-hero__title {
	font-size: var(--h3-text-size, 32px);
}

/* ==========================================================================
   Article wrapper
   ========================================================================== */

.post-article {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 96px 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

/* ==========================================================================
   Featured image
   ========================================================================== */

.post-article__image-wrapper {
	width: 100%;
	max-width: 900px;
	max-height: 888px;
	overflow: hidden;
	border-radius: 40px;
}

.post-article__image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* ==========================================================================
   Lead frame
   ========================================================================== */

.post-article__lead {
	background-color: var(--color-primary-dark);
	padding: 32px;
	border-radius: 40px 40px 40px 12px;
}

.post-article__lead-text {
	font-family: var(--font-family);
	font-weight: 700;
	font-size: 20px;
	font-style: normal;
	line-height: 1.4;
	color: #fff;
	margin: 0;
}

/* ==========================================================================
   Text wrapper
   ========================================================================== */

.post-article__text-wrapper {
	width: 100%;
	max-width: 900px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* ==========================================================================
   Content
   ========================================================================== */

.post-article__content {
	font-family: var(--font-family);
	font-weight: 400;
	font-size: 20px;
	font-style: normal;
	line-height: 1.4;
	color: var(--neutral-black);
}

.post-article__content h2,
.post-article__content h3,
.post-article__content h4 {
	font-family: var(--font-family);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
	color: var(--neutral-black);
	margin: 0 0 12px;
}

.post-article__content h2 {
	font-size: 32px;
}

.post-article__content h3 {
	font-size: 28px;
}

.post-article__content p {
	margin: 0 0 1em;
}

.post-article__content p:last-child {
	margin-bottom: 0;
}

.post-article__content a {
	color: var(--color-primary-dark);
	text-decoration: underline;
	font-weight: 700;
}

.post-article__content a:hover {
	text-decoration: none;
}

/* ==========================================================================
   Inline-style override (safety net for pasted content)
   ========================================================================== */

.post-article__content span,
.post-article__content p,
.post-article__content div {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
	font-weight: inherit !important;
	background: transparent !important;
}

/* ==========================================================================
   Responsive: mobile (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
	.single .block-subpage-hero__inner {
		min-height: 180px;
	}

	.single .block-subpage-hero__title {
		font-size: 24px;
	}

	.post-article {
		padding: 48px 16px;
	}

	.post-article__image-wrapper {
		border-radius: 24px;
	}

	.post-article__lead {
		padding: 16px;
		border-radius: 24px 24px 24px 8px;
	}

	.post-article__lead-text {
		font-size: 18px;
	}

	.post-article__content {
		font-size: 18px;
	}

	.post-article__content h2 {
		font-size: 24px;
	}

	.post-article__content h3 {
		font-size: 22px;
	}

	.post-article__content h4 {
		font-size: 20px;
	}
}
