/**
 * Narrow presentation corrections for release 0.1.26.
 *
 * This late layer removes the unused icon reservation from Documents and the
 * divider between adjacent commercial-content sections. It does not change
 * Navigation-block behaviour, card borders or the established 40px rhythm.
 */

@media (min-width: 80rem) {
	/* Documents has no SVG, so its card uses the service-card copy surface
	 * without the otherwise empty 2.25rem icon strip. Include interactive
	 * states explicitly because their earlier selector is more specific. */
	.et-primary-nav li.et-documents-menu
		> ul.wp-block-navigation__submenu-container
		> li
		> a,
	.et-primary-nav li.et-documents-menu
		> ul.wp-block-navigation__submenu-container
		> li
		> a:is(:hover, :focus-visible) {
		background: rgba(255, 255, 255, 0.9) !important;
		padding: 0.5rem 0.65rem !important;
	}
}

@media (max-width: 79.99rem) {
	/* Mobile service cards use a continuous soft field rather than a fixed icon
	 * strip. Keep that shared surface while reserving no icon-sized padding. */
	.et-primary-nav .wp-block-navigation__responsive-container.is-menu-open
		li.et-documents-menu
		> ul.wp-block-navigation__submenu-container
		> li
		> a,
	.et-primary-nav .wp-block-navigation__responsive-container.is-menu-open
		li.et-documents-menu
		> ul.wp-block-navigation__submenu-container
		> li
		> a:is(:hover, :focus-visible) {
		background: var(--et-header-card-background) !important;
		padding: 0.45rem 0.6rem !important;
	}
}

/* Only the separator owned by two adjacent top-level commercial sections is
 * removed. The independent 40px sibling margin remains authoritative, while
 * card, process and FAQ borders are outside this selector. */
body:is(
	.et-page-family--service,
	.et-page-family--country,
	.et-page-family--cargo
)
	.et-service-media {
	display: none !important;
}

body:is(
	.et-page-family--service,
	.et-page-family--country,
	.et-page-family--cargo
)
	.et-content-shell
	> .wp-block-post-content {
	margin-block-start: 0 !important;
}

body:is(
	.et-page-family--service,
	.et-page-family--country,
	.et-page-family--cargo
)
	.wp-block-post-content
	> .et-service-section
	+ .et-service-section {
	border-top: 0;
}

/* The semantic section class is already narrow enough to mirror the same
 * presentation inside the Gutenberg iframe, where frontend body classes are
 * not available. */
.editor-styles-wrapper
	.is-root-container
	> .et-service-section
	+ .et-service-section {
	border-top: 0;
}
