/**
 * Single post template — news/press article layout.
 */

.activ-post-hero {
	background: var(--wp--preset--color--contrast, #000);
	border-bottom: 1px solid rgba(108, 109, 112, 0.3);
	color: var(--wp--preset--color--base, #fff);
	display: flex;
	flex-direction: column;
	font-family: var(--wp--preset--font-family--albert-sans, "Albert Sans", system-ui, sans-serif);
	isolation: isolate;
	min-height: 40rem;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.activ-post-hero::before {
	background: url("../images/page-hero-bg.svg") center / cover no-repeat;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

.activ-post-hero__shell {
	padding-block: 6.25rem var(--wp--preset--spacing--20, 5rem);
	position: relative;
	z-index: 1;
}

.activ-post-hero__container {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
}

.activ-post-hero .activ-breadcrumbs {
	margin: 0 0 5.75rem;
	width: auto;
}

.activ-post-hero__title,
.activ-post-hero .wp-block-post-title {
	color: var(--wp--preset--color--base, #fff);
	font-family: var(--wp--preset--font-family--albert-sans, "Albert Sans", system-ui, sans-serif);
	font-size: var(--wp--preset--font-size--5xl, 4.375rem);
	font-weight: 500;
	letter-spacing: -1px;
	line-height: 1;
	margin: 0;
	max-width: 100%;
	text-wrap: balance;
}

/* —— Body —— */

.activ-single-post {
	background-color: var(--wp--preset--color--base-2, #f7f8f7);
	border-bottom: 1px solid var(--wp--preset--color--neutral-150, #e3e3e3);
	color: var(--wp--preset--color--contrast, #000);
	font-family: var(--wp--preset--font-family--albert-sans, "Albert Sans", system-ui, sans-serif);
	isolation: isolate;
	overflow: hidden;
	width: 100%;
}

.activ-single-post__layout {
	align-items: stretch;
	display: grid;
	grid-template-columns: minmax(0, 36.5rem) minmax(0, 1fr);
	width: 100%;
}

/* Kill flow blockGap so the rule isn’t pushed down with the body column. */
.activ-single-post__layout > * {
	margin-block-start: 0 !important;
}

.activ-single-post__meta-col {
	padding: var(--wp--preset--spacing--20, 5rem) 0;
}

.activ-single-post__meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--6, 1.25rem);
	margin: 0;
}

.activ-single-post .activ-news-meta__date,
.activ-single-post .wp-block-post-date {
	color: var(--wp--preset--color--neutral-700, #6c6d70);
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
	font-weight: 500;
	letter-spacing: -0.5px;
	line-height: 1.2;
	margin: 0;
}

.activ-single-post__terms,
.activ-single-post .wp-block-post-terms {
	align-items: center;
	color: var(--wp--preset--color--contrast-2, #050508);
	display: inline-flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
	font-weight: 500;
	gap: 0.5rem;
	letter-spacing: -0.5px;
	line-height: 1.2;
	margin: 0;
}

.activ-single-post__terms a,
.activ-single-post .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

.activ-single-post__terms a:hover,
.activ-single-post .wp-block-post-terms a:hover {
	text-decoration: underline;
}

.activ-single-post__terms::before,
.activ-single-post .wp-block-post-terms::before {
	background: url("../images/icon-category.svg") center / contain no-repeat;
	content: "";
	display: block;
	flex-shrink: 0;
	height: 1rem;
	width: 1rem;
}

.activ-single-post__body-col {
	border-left: 1px solid var(--wp--preset--color--neutral-150, #e3e3e3);
	padding: var(--wp--preset--spacing--20, 5rem) 0;
}

.activ-single-post__dek,
.activ-single-post .wp-block-post-excerpt {
	margin: 0;
	padding-inline: var(--wp--preset--spacing--8, 1.875rem);
}

/* Singles never use the archive “read more” link. */
.activ-single-post .wp-block-post-excerpt__more-text,
.activ-single-post .wp-block-post-excerpt__more-link {
	display: none !important;
}

.activ-single-post__dek .wp-block-post-excerpt__excerpt,
.activ-single-post .wp-block-post-excerpt p {
	color: var(--wp--preset--color--contrast, #000);
	font-size: var(--wp--preset--font-size--md, 1.25rem);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.5px;
	line-height: 1.4;
	margin: 0 0 var(--wp--preset--spacing--10, 2.5rem);
}

.activ-single-post__content,
.activ-single-post .wp-block-post-content {
	padding-inline: var(--wp--preset--spacing--8, 1.875rem);
}

/* Do not set margin shorthand here — it overrides theme blockGap. */
.activ-single-post__content > * + *,
.activ-single-post .wp-block-post-content > * + * {
	margin-block-start: var(--wp--preset--spacing--10, 2.5rem);
}

.activ-single-post__content p,
.activ-single-post .wp-block-post-content p {
	color: var(--wp--preset--color--neutral-700, #6c6d70);
	font-size: var(--wp--preset--font-size--md, 1.25rem);
	letter-spacing: -0.5px;
	line-height: 1.4;
}

.activ-single-post__content h2,
.activ-single-post__content h3,
.activ-single-post .wp-block-post-content h2,
.activ-single-post .wp-block-post-content h3 {
	color: var(--wp--preset--color--contrast, #000);
	font-size: var(--wp--preset--font-size--lg, 1.375rem);
	font-weight: 400;
	letter-spacing: -0.5px;
	line-height: 1.4;
}

.activ-single-post__content a,
.activ-single-post .wp-block-post-content a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.activ-single-post__content strong,
.activ-single-post .wp-block-post-content strong {
	color: var(--wp--preset--color--contrast, #000);
	font-weight: 700;
}

@media (max-width: 781px) {
	.activ-post-hero {
		min-height: 0;
	}

	.activ-post-hero__title,
	.activ-post-hero .wp-block-post-title {
		font-size: clamp(2rem, 8vw, 4.375rem);
	}

	.activ-single-post__layout {
		grid-template-columns: 1fr;
	}

	.activ-single-post__meta-col {
		padding-bottom: 0;
	}

	.activ-single-post__body-col {
		border-left: 0;
		padding-top: var(--wp--preset--spacing--10, 2.5rem);
	}
}

@media (max-width: 1023px) {
	.activ-post-hero .activ-breadcrumbs {
		margin-bottom: calc(var(--wp--preset--spacing--10, 2.5rem) * 2);
	}
}
