/* Home page Sustainability@CEPA only: preserve the component's full-width media layout. */
#sustainability.cepa-home-sustainability .cepa-home-sustainability__media {
	height: clamp(220px, 28vw, 340px);
}

#sustainability.cepa-home-sustainability .cepa-home-sustainability__media > p {
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0;
}

#sustainability.cepa-home-sustainability .cepa-home-sustainability__video {
	height: 100%;
	border-radius: var(--cepa-sustainability-radius);
}

#sustainability.cepa-home-sustainability .cepa-home-sustainability__overlay h2,
#sustainability.cepa-home-sustainability .cepa-home-sustainability__copy {
	width: 100%;
	max-width: none;
}


/* Page 24983 only: retain one native link and one keyboard stop per card. */
body.page-id-24983 #pathways .cepa-home-pathway-card {
	position: relative;
}

/* Keep the full-card hit area anchored to the outer card, including its border.
 * The existing shadow/footer hover treatment remains; no image or card resizing. */
body.page-id-24983 #pathways .cepa-home-pathway-card > .vc_column-inner {
	position: static;
	transform: none;
}

body.page-id-24983 #pathways .cepa-home-pathway-card__button .gem-button {
	position: static;
}

body.page-id-24983 #pathways .cepa-home-pathway-card__button .gem-button::before {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: 8px;
	content: "";
	cursor: pointer;
}

/* Decorative arrow, painted in the native link's current green/blue color. */
body.page-id-24983 #pathways .cepa-home-pathway-card__button .gem-button::after {
	width: 34px;
	height: 14px;
	flex: 0 0 34px;
	clip-path: polygon(0 43%, 87% 43%, 71% 10%, 75% 0, 100% 50%, 75% 100%, 71% 90%, 87% 57%, 0 57%);
	transition: transform 160ms ease;
}

body.page-id-24983 #pathways .cepa-home-pathway-card:focus-within .gem-button::after {
	transform: translateX(4px);
}

@media (hover: hover) and (pointer: fine) {
	body.page-id-24983 #pathways .cepa-home-pathway-card:hover .gem-button::after {
		transform: translateX(4px);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.page-id-24983 #pathways .cepa-home-pathway-card .gem-button::after,
	body.page-id-24983 #pathways .cepa-home-pathway-card:is(:hover, :focus-within) .gem-button::after {
		transition: none;
		transform: none;
	}
}
