/* P2 hardening: layout resilience and accessible interaction without redesigning the theme. */
.edvx-home-hero *, .edvx-gateway *, .edvx-home-profile *, .edvx-home-solutions *,
.edvx-home-matching *, .edvx-home-how *, .edvx-mvp *, .edvx-b2b *, .edvx-employers * {
	box-sizing: border-box;
}

.edvx-home-hero, .edvx-gateway, .edvx-home-profile, .edvx-home-solutions,
.edvx-home-matching, .edvx-home-how, .edvx-mvp, .edvx-b2b, .edvx-employers {
	max-width: 100%;
	overflow-wrap: anywhere;
}

.edvx-home-hero img, .edvx-gateway img, .edvx-mvp img, .edvx-b2b img, .edvx-employers img {
	height: auto;
	max-width: 100%;
}

.edvx-gateway__grid > *, .edvx-home-solutions__grid > *, .edvx-home-profile__paths > *,
.edvx-mvp form > *, .edvx-b2b form > *, .edvx-employers form > * { min-width: 0; }

.edvx-home-hero a, .edvx-gateway a, .edvx-home-profile a, .edvx-home-solutions a,
.edvx-home-matching a, .edvx-home-how a, .edvx-mvp button, .edvx-mvp input,
.edvx-mvp select, .edvx-b2b button, .edvx-b2b input, .edvx-b2b select,
.edvx-employers button, .edvx-employers input, .edvx-employers select {
	min-height: 44px;
}

.edvx-home-hero a:focus-visible, .edvx-gateway a:focus-visible, .edvx-home-profile a:focus-visible,
.edvx-home-solutions a:focus-visible, .edvx-home-matching a:focus-visible, .edvx-home-how a:focus-visible,
.edvx-mvp :is(a, button, input, select, textarea):focus-visible,
.edvx-b2b :is(a, button, input, select, textarea):focus-visible,
.edvx-employers :is(a, button, input, select, textarea):focus-visible {
	outline: 3px solid #1f5eff;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.edvx-home-hero .container, .edvx-gateway .container, .edvx-home-profile .container,
	.edvx-home-solutions .container, .edvx-home-matching .container, .edvx-home-how .container {
		padding-left: 20px;
		padding-right: 20px;
	}
	.edvx-home-hero__actions, .edvx-gateway__grid, .edvx-home-solutions__grid,
	.edvx-home-profile__paths { grid-template-columns: minmax(0, 1fr); }
	.edvx-home-hero__actions .btn { justify-content: center; width: 100%; }
}

@media (max-width: 430px) {
	.edvx-home-hero .container, .edvx-gateway .container, .edvx-home-profile .container,
	.edvx-home-solutions .container, .edvx-home-matching .container, .edvx-home-how .container {
		padding-left: 16px;
		padding-right: 16px;
	}
	.edvx-home-hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
	.edvx-gateway__card, .edvx-home-solutions article { min-height: 0; padding: 20px; }
	.edvx-mvp input:not([type="checkbox"]):not([type="radio"]), .edvx-mvp select, .edvx-mvp textarea,
	.edvx-b2b input:not([type="checkbox"]):not([type="radio"]), .edvx-b2b select, .edvx-b2b textarea,
	.edvx-employers input:not([type="checkbox"]):not([type="radio"]), .edvx-employers select, .edvx-employers textarea { width: 100%; }
}

@media (max-width: 375px) {
	.edvx-home-hero h1 { font-size: clamp(1.85rem, 10.5vw, 2.55rem); }
	.edvx-home-hero, .edvx-gateway, .edvx-home-profile, .edvx-home-solutions,
	.edvx-home-matching, .edvx-home-how { padding-top: 48px; padding-bottom: 48px; }
}

@media (max-width: 320px) {
	.edvx-home-hero .container, .edvx-gateway .container, .edvx-home-profile .container,
	.edvx-home-solutions .container, .edvx-home-matching .container, .edvx-home-how .container {
		padding-left: 12px;
		padding-right: 12px;
	}
	.edvx-gateway__card, .edvx-home-solutions article { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.edvx-home-hero *, .edvx-gateway *, .edvx-home-profile *, .edvx-home-solutions *,
	.edvx-home-matching *, .edvx-home-how *, .edvx-mvp *, .edvx-b2b *, .edvx-employers * {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
