/**
 * Eurasian Transit 0.2.4 — final desktop fidelity corrections.
 *
 * The public selectors are restricted to the configured static front page.
 * They correct only discrepancies measured against the approved 1440px PDF.
 */

body.et-brand-v2-home br.et-home-desktop-break,
.editor-styles-wrapper:has(.et-home-hero) br.et-home-desktop-break {
	display: none;
}

@media (min-width: 80rem) {
	/* Hero: preserve the kicker position, then match the PDF's title, copy and CTA. */
	body.et-brand-v2-home .et-home-hero .et-hero-copy,
	.editor-styles-wrapper .et-home-hero .et-hero-copy {
		position: relative;
		top: 0.25rem;
	}

	body.et-brand-v2-home .et-home-hero .et-kicker,
	.editor-styles-wrapper .et-home-hero .et-kicker {
		margin-block-end: 3.75rem !important;
	}

	body.et-brand-v2-home .et-home-hero .et-hero-copy .et-lead,
	.editor-styles-wrapper .et-home-hero .et-hero-copy .et-lead {
		margin-block-end: 1.85rem !important;
		max-width: 32rem !important;
		width: 32rem !important;
	}

	body.et-brand-v2-home .et-home-hero .et-home-hero-actions .wp-block-button:first-child .wp-block-button__link,
	.editor-styles-wrapper .et-home-hero .et-home-hero-actions .wp-block-button:first-child .wp-block-button__link {
		box-sizing: border-box !important;
		max-width: 13.375rem !important;
		min-width: 13.375rem !important;
		width: 13.375rem !important;
	}

	/* Service cards: move the content axis up without changing the exact card box. */
	body.et-brand-v2-home .et-directions-section .et-service-card,
	.editor-styles-wrapper .et-directions-section .et-service-card {
		padding-block-end: 2.65rem !important;
	}

	body.et-brand-v2-home .et-directions-section .et-home-service-art,
	.editor-styles-wrapper .et-directions-section .et-home-service-art {
		margin: -1.75rem auto 1.25rem !important;
		transform-origin: center center;
	}

	body.et-brand-v2-home .et-directions-section .et-service-card:nth-child(1) .et-home-service-art,
	.editor-styles-wrapper .et-directions-section .et-service-card:nth-child(1) .et-home-service-art {
		transform: translateY(0.55rem) scale(1.281, 1.379) !important;
	}

	body.et-brand-v2-home .et-directions-section .et-service-card:nth-child(2) .et-home-service-art,
	.editor-styles-wrapper .et-directions-section .et-service-card:nth-child(2) .et-home-service-art {
		transform: translateY(0.75rem) scale(1.303, 1.371) !important;
	}

	body.et-brand-v2-home .et-directions-section .et-service-card:nth-child(3) .et-home-service-art,
	.editor-styles-wrapper .et-directions-section .et-service-card:nth-child(3) .et-home-service-art {
		transform: translateY(1rem) scale(1.554, 1.627) !important;
	}

	body.et-brand-v2-home .et-directions-section .et-service-card:nth-child(4) .et-home-service-art,
	.editor-styles-wrapper .et-directions-section .et-service-card:nth-child(4) .et-home-service-art {
		transform: translateY(0.525rem) scale(1.117, 1.088) !important;
	}

	body.et-brand-v2-home .et-directions-section .et-service-card:nth-child(5) .et-home-service-art,
	.editor-styles-wrapper .et-directions-section .et-service-card:nth-child(5) .et-home-service-art {
		transform: translateY(0.78rem) scale(1.026, 1.02) !important;
	}

	body.et-brand-v2-home .et-directions-section .et-service-card h3,
	.editor-styles-wrapper .et-directions-section .et-service-card h3 {
		font-size: 1rem !important;
		line-height: 1.22 !important;
		margin-block-end: 1.7rem !important;
	}

	body.et-brand-v2-home .et-directions-section .et-service-card > p:not(.et-card-more),
	.editor-styles-wrapper .et-directions-section .et-service-card > p:not(.et-card-more) {
		line-height: 1.125 !important;
	}

	body.et-brand-v2-home .et-directions-section .et-card-more a,
	.editor-styles-wrapper .et-directions-section .et-card-more a {
		align-items: center;
		display: inline-flex;
		font-size: 1rem !important;
		gap: 1.5rem;
	}

	body.et-brand-v2-home br.et-home-desktop-break,
	.editor-styles-wrapper:has(.et-home-hero) br.et-home-desktop-break {
		display: initial;
	}

	/* The approved process axis is 960px, not the legacy 1280px container. */
	body.et-brand-v2-home
		.wp-site-blocks
		.wp-block-post-content
		> .et-home-process-section.et-section
		.et-home-process-grid,
	.editor-styles-wrapper .et-home-process-section .et-home-process-grid {
		margin-inline: auto !important;
		max-width: 60rem !important;
		width: min(calc(100% - 5rem), 60rem) !important;
	}

	/* Final request panel: exact 906x125 geometry and target typography. */
	body.et-brand-v2-home .wp-site-blocks .wp-block-post-content > .et-request-section.et-section:last-child .et-request-panel,
	.editor-styles-wrapper:has(.et-home-hero) .et-request-section .et-request-panel {
		height: 7.8125rem !important;
		min-height: 7.8125rem !important;
	}

	body.et-brand-v2-home .wp-site-blocks .wp-block-post-content > .et-request-section.et-section:last-child .et-request-copy,
	.editor-styles-wrapper:has(.et-home-hero) .et-request-section .et-request-copy {
		gap: 0 !important;
	}

	body.et-brand-v2-home .wp-site-blocks .wp-block-post-content > .et-request-section.et-section:last-child .et-request-copy h2,
	.editor-styles-wrapper:has(.et-home-hero) .et-request-section .et-request-copy h2 {
		font-size: 1.5rem !important;
	}

	/* Footer: readable production scale instead of the tiny PDF annotation scale. */
	body.et-brand-v2-home .wp-site-blocks footer.wp-block-template-part .et-site-footer.et-site-footer--v030 {
		font-size: 0.75rem !important;
		height: auto !important;
		line-height: 1.5 !important;
		max-height: none !important;
		min-height: 17rem !important;
		padding-block: 2rem 1rem !important;
	}

	body.et-brand-v2-home .et-site-footer--v030 .et-footer-grid {
		gap: 3rem !important;
		grid-template-columns: 12.5rem 7.5rem 10rem minmax(18rem, 1fr) !important;
		height: auto !important;
		max-height: none !important;
		max-width: 65rem !important;
		min-height: 11.25rem !important;
		width: min(calc(100% - 5rem), 65rem) !important;
	}

	body.et-brand-v2-home .et-site-footer--v030 .et-footer-logo img {
		max-width: 11.25rem !important;
		width: 11.25rem !important;
	}

	body.et-brand-v2-home .et-site-footer .et-footer-title {
		font-size: 0.75rem !important;
		line-height: 1.3 !important;
		margin-block-end: 0.5rem !important;
	}

	body.et-brand-v2-home .et-site-footer .et-footer-links li,
	body.et-brand-v2-home .et-site-footer :is(.et-footer-links a, .et-footer-links span) {
		font-size: 0.6875rem !important;
		line-height: 1.25rem !important;
		min-height: 1.25rem !important;
	}

	body.et-brand-v2-home .et-site-footer .et-footer-brand p,
	body.et-brand-v2-home .et-site-footer--v030 .et-footer-contact-item p {
		font-size: 0.71875rem !important;
		line-height: 1.5 !important;
	}

	body.et-brand-v2-home .et-site-footer .et-footer-brand p {
		margin-block: 0.75rem 0 !important;
	}

	body.et-brand-v2-home .et-site-footer .et-footer-brand .et-footer-brand-note {
		font-size: 0.65625rem !important;
		line-height: 1.5 !important;
		margin-block: 0.3rem 0 !important;
	}

	body.et-brand-v2-home .et-site-footer--v030 .et-footer-contact-list {
		display: grid !important;
		gap: 0.25rem !important;
	}

	body.et-brand-v2-home .et-site-footer--v030 .et-footer-contact-icon {
		height: 0.875rem !important;
		width: 0.875rem !important;
	}

	body.et-brand-v2-home .et-site-footer .et-footer-meta {
		box-sizing: border-box !important;
		font-size: 0.65625rem !important;
		line-height: 1rem !important;
		margin: 1rem auto 0 !important;
		max-width: 65rem !important;
		padding-block-start: 0.75rem !important;
		padding-inline: 0 !important;
		width: min(calc(100% - 5rem), 65rem) !important;
	}

	body.et-brand-v2-home .et-site-footer .et-footer-meta :is(p, a) {
		font-size: 0.65625rem !important;
		line-height: 1rem !important;
	}
}
