/**
 * Eurasian Transit 0.1.32 — corporate-card interaction parity.
 *
 * The values mirror the established site-wide card motion. Lift is limited
 * to precise pointing devices so touch screens do not keep a sticky hover.
 */

body.et-page--corporate-contacts .et-corporate-contact-card,
body.et-page--corporate-details .et-corporate-card,
body.et-page--corporate-details .et-corporate-registry-item,
.editor-styles-wrapper .et-corporate-contact-card,
.editor-styles-wrapper .et-corporate-card,
.editor-styles-wrapper .et-corporate-registry-item {
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
	body.et-page--corporate-contacts
		.et-corporate-contact-card:is(:hover, :focus-within),
	body.et-page--corporate-details
		:is(.et-corporate-card, .et-corporate-registry-item):is(:hover, :focus-within),
	.editor-styles-wrapper
		:is(.et-corporate-contact-card, .et-corporate-card, .et-corporate-registry-item):is(:hover, :focus-within) {
		border-color: rgba(0, 156, 166, 0.46) !important;
		box-shadow: 0 1rem 2.4rem rgba(10, 35, 66, 0.12) !important;
		transform: translateY(-0.22rem) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.et-page--corporate-contacts .et-corporate-contact-card,
	body.et-page--corporate-details
		:is(.et-corporate-card, .et-corporate-registry-item),
	.editor-styles-wrapper
		:is(.et-corporate-contact-card, .et-corporate-card, .et-corporate-registry-item) {
		transition: none !important;
	}

	body.et-page--corporate-contacts
		.et-corporate-contact-card:is(:hover, :focus-within),
	body.et-page--corporate-details
		:is(.et-corporate-card, .et-corporate-registry-item):is(:hover, :focus-within),
	.editor-styles-wrapper
		:is(.et-corporate-contact-card, .et-corporate-card, .et-corporate-registry-item):is(:hover, :focus-within) {
		transform: none !important;
	}
}


/**
 * Page-level alignment corrections.
 *
 * The selectors target existing Gutenberg groups and semantic theme hooks;
 * editors can keep changing copy and block order in the native editor.
 */

/* Homepage service artwork and editable copy share one visual axis. */
.home .et-directions-section .et-service-card,
.editor-styles-wrapper .et-directions-section .et-service-card,
.home .et-directions-section .et-service-card :is(h3, p),
.editor-styles-wrapper .et-directions-section .et-service-card :is(h3, p) {
	text-align: center;
}

.home .et-directions-section .et-home-service-art,
.editor-styles-wrapper .et-directions-section .et-home-service-art {
	display: block;
	margin-inline: auto !important;
	object-position: 50% 50%;
}

/* Reduce only the longer geography metric heading. */
.home .et-home-metrics
	.et-metric:is(.et-metric--geography, :last-child)
	strong,
.editor-styles-wrapper .et-home-metrics
	.et-metric:is(.et-metric--geography, :last-child)
	strong {
	font-size: clamp(1.15rem, 1.35vw, 1.3rem);
	line-height: 1.08;
}

/* Use the full wide content axis on the process page only. */
body.et-page--process .et-process-grid,
.editor-styles-wrapper .et-process-grid.et-process-grid--wide {
	--et-process-art-max: calc(
		var(--et-layout-wide) - var(--et-process-frame) - var(--et-process-frame) - 2px
	);
	inline-size: 100% !important;
	max-width: var(--et-layout-wide) !important;
	width: 100% !important;
}

/* Centre the editable audience-card copy on the About page. */
body.et-page--about .et-service-card,
body.et-page--about .et-service-card > :is(h2, h3, p),
.editor-styles-wrapper
	.has-arctic-mist-background-color
	.et-service-card,
.editor-styles-wrapper
	.has-arctic-mist-background-color
	.et-service-card
	> :is(h2, h3, p) {
	text-align: center;
}
