/**
 * HESENT Stage 10G-R — launch-critical homepage and responsive correction.
 * Staging only. This layer shortens the Homepage, restores the navy-led brand
 * hierarchy, and provides one controlled 1240px content system.
 */

:root {
	--hesent-10gr-content: 77.5rem;
	--hesent-10gr-reading: 48rem;
	--hesent-10gr-navy: #0f2b46;
	--hesent-10gr-blue: #1f4e79;
	--hesent-10gr-blue-soft: #edf3f8;
	--hesent-10gr-orange: #d85a2a;
	--hesent-10gr-white: #ffffff;
	--hesent-10gr-light: #f7f9fb;
	--hesent-10gr-line: #dfe6ec;
	--wp--style--global--wide-size: var(--hesent-10gr-content);
	--hesent-v3-wide: var(--hesent-10gr-content);
	--hesent-v3-reading: var(--hesent-10gr-reading);
}

/* One centered desktop system. Full-bleed backgrounds remain available. */
:where(.hesent-v3-shell, .site-header__main, .site-footer__main),
main :where(.alignwide):not(.alignfull) {
	box-sizing: border-box;
	margin-inline: auto !important;
	max-width: var(--hesent-10gr-content) !important;
	width: min(calc(100vw - 3.5rem), var(--hesent-10gr-content)) !important;
}

:where(.hesent-v3-lead, .hesent-page-summary, .category-hero__copy > p, .solution-hero__copy > p, .product-editorial-section__intro) {
	max-width: var(--hesent-10gr-reading);
}

/* Navy leads the interface. Orange is reserved for small accents and hover. */
:where(h1, h2, h3, h4, h5, h6),
.home .hesent-v3-entity__intro,
.home .hesent-v3-applications__copy :where(h2, h3),
.home .hesent-v3-industry-list p {
	color: var(--hesent-10gr-navy);
}

.hesent-eyebrow,
.home .hesent-v3-eyebrow,
.home .hesent-v3-entity__label,
.knowledge-card__type,
.technical-component__code {
	color: var(--hesent-10gr-blue) !important;
}

.category-hero,
.category-hero--archive {
	background: linear-gradient(90deg, var(--hesent-10gr-navy) 0 4px, transparent 4px), var(--hesent-10gr-white) !important;
}

.solution-hero,
.solution-hero.has-precision-navy-background-color {
	border-top-color: var(--hesent-10gr-navy);
}

.product-editorial-section--quality,
.hesent-product-rfq-band,
.category-cta {
	border-left-color: var(--hesent-10gr-navy) !important;
}

.archive-category-card,
.product-card,
body .hesent-product-module {
	border-top-color: var(--hesent-10gr-navy) !important;
}

body .hesent-product-module__indicator {
	background: var(--hesent-10gr-blue-soft) !important;
	color: var(--hesent-10gr-navy) !important;
}

.hesent-v3-button:not(.hesent-v3-button--outline) .wp-block-button__link,
body .hesent-product-module__primary,
body .hesent-product-page-actions__primary {
	background: var(--hesent-10gr-navy) !important;
	border-color: var(--hesent-10gr-navy) !important;
	color: #fff !important;
}

.hesent-v3-button:not(.hesent-v3-button--outline) .wp-block-button__link:hover,
body .hesent-product-module__primary:hover,
body .hesent-product-page-actions__primary:hover {
	background: var(--hesent-10gr-blue) !important;
	border-color: var(--hesent-10gr-orange) !important;
}

.hesent-v3-button--outline .wp-block-button__link {
	border-color: var(--hesent-10gr-navy) !important;
	color: var(--hesent-10gr-navy) !important;
}

.hesent-v3-button--outline .wp-block-button__link:hover {
	background: var(--hesent-10gr-navy) !important;
	color: #fff !important;
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .current-menu-item > .wp-block-navigation-item__content {
	color: var(--hesent-10gr-blue) !important;
}

.site-header__rfq .wp-block-button__link {
	background: var(--hesent-10gr-navy) !important;
	box-shadow: inset 0 -2px 0 var(--hesent-10gr-orange);
}

/* Homepage: shorter sequence, compact applications, and restrained accents. */
.home .hesent-v3-home-hero__copy {
	border-top: 4px solid var(--hesent-10gr-navy);
}

.home .hesent-v3-section-head::after,
.home .hesent-v3-supply__heading::after {
	background: var(--hesent-10gr-orange);
	height: 2px;
	margin-top: 1rem;
	width: 3rem;
}

.home .hesent-v3-system-row__arrow,
.home .hesent-v3-text-link a,
.home .hesent-v3-supply__path a {
	color: var(--hesent-10gr-blue);
}

.home .hesent-v3-chapter {
	padding-block: clamp(3.25rem, 4vw, 4.25rem);
}

.home .hesent-v3-section {
	padding-block: clamp(2.75rem, 3.5vw, 3.75rem);
}

.home .hesent-v3-applications--text {
	background: var(--hesent-10gr-light) !important;
	border-block: 1px solid var(--hesent-10gr-line);
	display: block;
	padding-block: clamp(3rem, 4vw, 4.25rem);
}

.home .hesent-v3-applications--text .hesent-v3-applications__copy {
	background: transparent;
	border: 0;
	color: #42576a;
	display: grid;
	gap: clamp(1.75rem, 4vw, 4rem);
	grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
	padding: 0;
}

.home .hesent-v3-applications--text .hesent-v3-applications__copy > :where(.hesent-v3-eyebrow, h2) {
	grid-column: 1;
}

.home .hesent-v3-applications--text .hesent-v3-applications__copy > h2 {
	margin-top: -3.2rem;
}

.home .hesent-v3-applications--text .hesent-v3-industry-list {
	align-self: center;
	border-top: 2px solid var(--hesent-10gr-navy);
	display: grid;
	gap: 0;
	grid-column: 2;
	grid-row: 1 / span 2;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
}

.home .hesent-v3-applications--text .hesent-v3-industry-list p {
	border-bottom: 1px solid var(--hesent-10gr-line);
	font-weight: 600;
	margin: 0;
	padding: 0.85rem 0;
}

.home .hesent-v3-applications--text .hesent-v3-industry-list p:nth-child(odd) {
	padding-right: 1.25rem;
}

.home .hesent-v3-applications--text .hesent-v3-industry-list p:nth-child(even) {
	border-left: 1px solid var(--hesent-10gr-line);
	padding-left: 1.25rem;
}

.home .hesent-v3-trust {
	background: var(--hesent-10gr-white) !important;
}

.home .hesent-v3-reason-list {
	border-top-color: var(--hesent-10gr-navy);
}

.home .hesent-v3-home-rfq {
	background: var(--hesent-10gr-navy);
	border-left: 0;
}

.home .hesent-v3-home-rfq .hesent-v3-button .wp-block-button__link {
	background: #fff !important;
	border-color: #fff !important;
	color: var(--hesent-10gr-navy) !important;
}

.home .hesent-v3-home-rfq .hesent-v3-button .wp-block-button__link:hover {
	background: var(--hesent-10gr-orange) !important;
	border-color: var(--hesent-10gr-orange) !important;
	color: #fff !important;
}

/* Keep the launch Homepage visually stable in long previews and review tools. */
html.hesent-home-motion body.home main > section.hesent-motion-target {
	transform: none !important;
	transition: none !important;
}

/* Tablet and mobile: reduce vertical repetition without shrinking legibility. */
@media (max-width: 782px) {
	:root {
		--hesent-v3-gutter: 1.375rem;
	}

	:where(.hesent-v3-shell, .site-header__main, .site-footer__main),
	main :where(.alignwide):not(.alignfull) {
		width: min(calc(100vw - 3.5rem), var(--hesent-10gr-content)) !important;
	}

	.hesent-section,
	.hesent-precision-punches-page .precision-punches-section,
	.product-editorial-section {
		padding-block: 2.75rem;
	}

	.category-hero,
	.solution-hero,
	.hesent-precision-punches-page .precision-punches-hero {
		padding-block: 2rem !important;
	}

	.home .hesent-v3-home-hero__copy {
		padding: 2.2rem 1.375rem 2rem;
	}

	.home .hesent-v3-home-hero__note {
		display: none;
	}

	.home .hesent-v3-chapter,
	.home .hesent-v3-section {
		padding-block: 2.75rem;
	}

	.home .hesent-v3-section-head {
		gap: 0.85rem;
		margin-bottom: 1.5rem;
	}

	.home .hesent-v3-system-row {
		padding-block: 0.8rem;
	}

	.home .hesent-v3-applications--text {
		padding-block: 2.75rem;
	}

	.home .hesent-v3-applications--text .hesent-v3-applications__copy {
		display: block;
	}

	.home .hesent-v3-applications--text .hesent-v3-applications__copy > h2 {
		margin-top: 0;
	}

	.home .hesent-v3-applications--text .hesent-v3-industry-list {
		margin-top: 1.5rem;
	}

	.home .hesent-v3-reason {
		padding-block: 0.6rem;
	}

	.home .hesent-v3-home-rfq {
		gap: 1.5rem;
		padding: 1.75rem 1.375rem;
	}
}

@media (max-width: 520px) {
	:where(.hesent-v3-shell, .site-header__main, .site-footer__main),
	main :where(.alignwide):not(.alignfull) {
		width: min(calc(100vw - 3.5rem), var(--hesent-10gr-content)) !important;
	}

	.home .hesent-v3-entity__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home .hesent-v3-entity__intro {
		grid-column: 1 / -1;
	}

	.home .hesent-v3-entity__item,
	.home .hesent-v3-entity__item:first-child {
		border: 1px solid var(--hesent-10gr-line);
		min-height: 0;
		padding: 0.9rem;
	}

	.home .hesent-v3-entity__item p {
		font-size: 0.82rem;
		line-height: 1.45;
	}

	.home .hesent-v3-applications--text .hesent-v3-industry-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home .hesent-v3-applications--text .hesent-v3-industry-list p {
		font-size: 0.82rem;
		padding-block: 0.7rem;
	}

	.home .hesent-v3-reason-list {
		margin-top: 1.5rem;
	}

	.home .hesent-v3-editorial__copy > .hesent-v3-lead {
		display: none;
	}

	.home .hesent-v3-rfq-tags li:nth-child(n + 4) {
		display: none;
	}

	.wp-block-buttons,
	.wp-block-button,
	.wp-block-button__link {
		max-width: 100%;
	}

	.hesent-v3-button .wp-block-button__link {
		min-height: 2.875rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hesent-v3-button .wp-block-button__link,
	.hesent-product-module__primary,
	.hesent-product-page-actions__primary {
		transition: none !important;
	}
}
