/* Phase 8.7 visual reconciliation against the approved static build. */

/* The earlier base layer used a more-specific compact hero rule than the
 * copied static stylesheet. Restore the source measurements for ordinary
 * editorial heroes without affecting the custom home/detail heroes. */


.page-hero:not(.compact-hero) {
	padding-top: 90px;
	padding-bottom: 86px;
}

.page-hero:not(.compact-hero) h1 {
	font-size: clamp(42px, 6vw, 82px);
	line-height: 1.12;
	margin-bottom: 24px;
	max-width: none;
}

.page-hero:not(.compact-hero) .lead {
	font-size: clamp(18px, 2vw, 23px);
	line-height: 1.55;
}

/* WordPress menu objects remain dynamic, but the footer output is flattened
 * to the source design. Keep every link on the same rhythm as the static site. */
footer .legal-links {
	display: block;
}

footer > div {
	display: block;
}

@media (min-width: 621px) {
	footer {
		padding-bottom: 23px;
	}
}

section.cta {
	padding: 48px;
	margin-top: 50px;
	margin-bottom: 80px;
	gap: 30px;
}

.reference-theme.ref-solutions-hub .page-hero h1 {
	max-width: 760px;
	color: #fff;
	font-size: clamp(50px, 6vw, 82px);
}

.case-detail-hero {
	grid-template-columns: minmax(0, 43.07fr) minmax(0, 56.93fr);
}

.case-detail-hero > * {
	min-width: 0;
}

#case-filters-form {
	display: block;
}

.filter-choice input {
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
}

.page-hero.compact-hero h1 {
	font-size: clamp(42px, 6vw, 82px);
	line-height: 1.12;
	margin-bottom: 24px;
	max-width: none;
}

.page-hero.compact-hero .lead {
	font-size: clamp(18px, 2vw, 23px);
	line-height: 1.55;
}

.contact-grid {
	min-height: 1091px;
}

.single-case #case-request {
	min-height: 1127px;
}

@media (max-width: 1050px) {
	.case-detail-hero {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 620px) {
	.page-hero:not(.compact-hero) {
		padding-top: 90px;
		padding-bottom: 60px;
	}

	.page-hero:not(.compact-hero) h1 {
		font-size: 42px;
	}

	.reference-theme.ref-solutions-hub .page-hero h1 {
		font-size: 50px;
	}

	section.cta {
		margin: 50px 14px 80px;
		padding: 48px;
	}

	.contact-grid {
		min-height: 1856px;
	}

	.single-case #case-request {
		min-height: 1387px;
	}
}
