/*
	* Corporate inner surfaces v1: shared premium editorial presentation.
	*
	* This CSS is deliberately loaded only for non-front Corporate pages/posts.
	* WordPress/Gutenberg own content and SEO; no site-specific copy or fake
	* testimonials are inserted by the Theme.
	*/
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) {
	--corp-ink: #173a3d;
	--corp-ink-soft: #526d70;
	--corp-bg: #f5faf8;
	--corp-surface: #ffffff;
	--corp-surface-strong: #e8f7f1;
	--corp-line: #cfdfdb;
	--corp-accent: #087d67;
	--corp-accent-strong: #075845;
	--corp-reading: min(760px, calc(100vw - 3rem));
	--corp-shell: min(1280px, calc(100vw - 4rem));
	--corp-radius-md: 1.125rem;
	--corp-radius-lg: 1.8rem;
	--corp-shadow-md: 0 28px 70px rgb(14 57 61 / 10%);
	background: var(--corp-bg);
	color: var(--corp-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) *,
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) *::before,
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) *::after {
	box-sizing: border-box;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) :is(h1,h2,h3,h4) {
	overflow-wrap: normal;
	hyphens: none;
	text-wrap: balance;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header {
	background: linear-gradient(95deg, #0b3034, #12484c);
	border-bottom: 1px solid rgb(255 255 255 / 14%);
	color: #ffffff;
	box-shadow: none;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header__inner {
	width: var(--corp-shell);
	min-height: 80px;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header :is(
	.wp-block-site-title, .wp-block-site-title a, .seo-geo-preset-navigation__item a
) {
	color: #f7fffc;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
.seo-geo-preset-navigation__item a:hover,
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
.seo-geo-preset-navigation__item a[aria-current="page"] {
	color: #78e8c8;
}
/*
 * Inner-page navigation contrast + viewport-safe dropdown alignment.
 * The inner dark header must not inherit its white link color onto the
 * light Corporate fallback submenu. Scope to the inner presentation only;
 * keep the home header and the WordPress-authored menu hierarchy untouched.
 */
@media (min-width: 1281px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__desktop .seo-geo-preset-navigation__sublist {
		width: max-content;
		min-width: min(15rem, calc(100vw - 2rem));
		max-width: min(21rem, calc(100vw - 2rem));
		border-color: rgb(120 232 200 / 35%);
		background: #123e42;
		box-shadow: 0 24px 50px rgb(4 28 32 / 28%);
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__desktop .seo-geo-preset-navigation__sublist a {
		display: flex;
		align-items: center;
		min-height: 44px;
		color: #f7fffc;
		white-space: normal;
		overflow-wrap: anywhere;
		line-height: 1.35;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__desktop .seo-geo-preset-navigation__sublist a:is(:hover, :focus-visible),
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__desktop .seo-geo-preset-navigation__sublist a[aria-current="page"] {
		background: #215b5a;
		color: #d7fff1;
	}
	/* Blog and Contact sit at the right edge; open inward instead of offscreen. */
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__desktop > .seo-geo-preset-navigation__list >
	.seo-geo-preset-navigation__item:nth-last-child(-n + 2) > .seo-geo-preset-navigation__sublist {
		left: auto;
		right: 0;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__desktop > .seo-geo-preset-navigation__list >
	.seo-geo-preset-navigation__item:nth-last-child(-n + 2) .seo-geo-preset-navigation__sublist
	.seo-geo-preset-navigation__sublist {
		left: auto;
		right: 100%;
	}
}
@media (max-width: 1280px) {
	/* The compact navigation uses a white panel: its links must be dark. */
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__mobile[open] > .seo-geo-preset-navigation__list {
		background: #ffffff;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__mobile[open] .seo-geo-preset-navigation__item a {
		color: #173a3d;
		white-space: normal;
		overflow-wrap: anywhere;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__mobile[open] .seo-geo-preset-navigation__item a:is(:hover, :focus-visible),
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__mobile[open] .seo-geo-preset-navigation__item a[aria-current="page"] {
		background: #e8f7f1;
		color: #075845;
	}
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-page-shell,
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-insights-shell,
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-index-shell,
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-single-shell,
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-archive-shell {
	box-sizing: border-box;
	width: var(--corp-shell);
	max-width: 100%;
	margin-inline: auto;
	padding-block: clamp(3.25rem, 7vw, 7.5rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) :is(
	.seo-geo-page-title,
	.seo-geo-insights-title,
	.seo-geo-single-title,
	.seo-geo-archive-title
) {
	width: 100%;
	max-width: 1100px;
	margin: 0 0 clamp(2.25rem, 4vw, 4.5rem);
	color: #173a3d;
	font-size: clamp(2.9rem, 5.8vw, 6.25rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -.055em;
	text-wrap: balance;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-page-shell > .wp-block-post-featured-image {
	margin-block: 0 clamp(2rem, 4vw, 4rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: 1.35rem;
	object-fit: cover;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) :is(.seo-geo-page-shell,.seo-geo-single-shell) .wp-block-post-content {
	max-width: 100%;
	color: var(--corp-ink);
	font-size: clamp(1.025rem, 1.1vw, 1.16rem);
	line-height: 1.78;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .wp-block-post-content :is(h2,h3,h4) {
	color: #173a3d;
	line-height: 1.15;
	letter-spacing: -.03em;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .wp-block-post-content h2 {
	font-size: clamp(1.75rem, 3.2vw, 3.1rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .wp-block-post-content :where(p,li) {
	color: #49666a;
	line-height: 1.8;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .wp-block-post-content a {
	color: #066b5c;
	text-underline-offset: .2em;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .wp-block-post-content :is(
	.wp-block-columns,.wp-block-group.is-style-card,.seo-geo-inner-service-grid
) {
	max-width: var(--corp-shell);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content .seo-geo-inner-service-grid {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: clamp(1rem,2vw,1.5rem);
	margin-block: clamp(2rem,4vw,3.75rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content .seo-geo-inner-service-card {
	min-width: 0;
	margin: 0;
	border: 1px solid var(--corp-line);
	border-radius: 1.5rem;
	background: #fff;
	padding: clamp(1.5rem,2.4vw,2.35rem);
	box-shadow: 0 20px 55px rgb(16 62 62 / 7%);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content .seo-geo-inner-service-card h3 {
	font-size: clamp(1.35rem,1.9vw,1.85rem);
	line-height: 1.18;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content .seo-geo-inner-cta {
	padding: clamp(1.65rem,4vw,3rem);
	margin-block: clamp(2.5rem,5vw,4.5rem);
	border: 1px solid #bfe9db;
	border-radius: 1.75rem;
	background: linear-gradient(120deg,#e6f7f1,#d4efe5);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) :is(
	.seo-geo-insights-shell,.seo-geo-index-shell,.seo-geo-archive-shell
) .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: clamp(1rem,2vw,1.6rem);
	padding: 0;
	margin: 0;
	list-style: none;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) :is(
	.seo-geo-insights-shell,.seo-geo-index-shell,.seo-geo-archive-shell
) .wp-block-post-template > li {
	min-width: 0;
	margin: 0;
	border: 1px solid var(--corp-line);
	border-radius: 1.6rem;
	background: #fff;
	padding: clamp(1.35rem,2vw,2rem);
	overflow: hidden;
	box-shadow: 0 16px 50px rgb(14 57 61 / 8%);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) :is(
	.seo-geo-insights-shell,.seo-geo-index-shell,.seo-geo-archive-shell
) .wp-block-post-title {
	font-size: clamp(1.3rem,1.8vw,1.85rem);
	line-height: 1.22;
	letter-spacing: -.025em;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) :is(
	.seo-geo-insights-shell,.seo-geo-index-shell,.seo-geo-archive-shell
) .wp-block-post-title a {
	color: var(--corp-ink);
	text-decoration: none;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) :is(
	.seo-geo-insights-shell,.seo-geo-index-shell,.seo-geo-archive-shell
) .wp-block-post-title a:hover {
	color: #087d67;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) :is(
	.seo-geo-insights-shell,.seo-geo-index-shell,.seo-geo-archive-shell
) :is(.wp-block-post-date,.wp-block-post-excerpt) {
	color: #526d70;
	font-size: .95rem;
	line-height: 1.65;
}
/* Gutenberg latest-posts lists used by EMMAKE's legacy Blog pages. */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content :is(.wp-block-latest-posts__list,.wp-block-latest-posts) {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: clamp(1rem,2vw,1.5rem);
	max-width: var(--corp-shell);
	margin-inline: auto;
	padding: 0;
	list-style: none;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content .wp-block-latest-posts > li {
	display: flex;
	flex-direction: column;
	gap: .55rem;
	min-width: 0;
	margin: 0;
	padding: clamp(1.25rem,2vw,1.8rem);
	border: 1px solid var(--corp-line);
	border-radius: 1.35rem;
	background: #fff;
	box-shadow: 0 16px 45px rgb(14 57 61 / 7%);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content .wp-block-latest-posts__post-title {
	color: var(--corp-ink);
	font-size: clamp(1.2rem,1.65vw,1.65rem);
	font-weight: 760;
	line-height: 1.22;
	letter-spacing: -.02em;
	text-decoration: none;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content .wp-block-latest-posts__post-date {
	display: block;
	font-size: .85rem;
	color: #526d70;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content .wp-block-latest-posts__post-excerpt {
	font-size: .975rem;
	line-height: 1.65;
	color: #526d70;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content .wp-block-latest-posts__featured-image img {
	aspect-ratio: 16/9;
	object-fit: cover;
	border-radius: .9rem;
}
@media(max-width: 1000px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.wp-block-post-content :is(.wp-block-latest-posts__list,.wp-block-latest-posts) {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
}
@media(max-width: 650px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.wp-block-post-content :is(.wp-block-latest-posts__list,.wp-block-latest-posts) {
		grid-template-columns: minmax(0,1fr);
	}
}

body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .wp-block-query-pagination {
	margin-block-start: clamp(2rem,4vw,4rem);
	gap: .75rem;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .wp-block-query-pagination a {
	color: #087d67;
	text-decoration: none;
	font-weight: 700;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-corporate-system-surface {
	max-width: var(--corp-shell);
	margin-inline: auto;
	padding-block: clamp(2rem,5vw,4rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-corporate-system-surface
.seo-geo-corporate-native-process {
	border-radius: 1.75rem;
	padding: clamp(2rem,4vw,4rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-corporate-system-surface
.wp-block-post-content {
	max-width: var(--corp-reading);
	margin-inline: auto;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-footer {
	margin-top: clamp(3rem,6vw,6rem);
	background: #0b3034;
	color: #f7fffc;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-footer__inner {
	width: var(--corp-shell);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-footer :is(a,.wp-block-site-title) {
	color: #f7fffc;
}
@media(max-width: 1000px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) :is(
	.seo-geo-insights-shell,.seo-geo-index-shell,.seo-geo-archive-shell
	) .wp-block-post-template {
	grid-template-columns: repeat(2,minmax(0,1fr));
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.wp-block-post-content .seo-geo-inner-service-grid {
	grid-template-columns: repeat(2,minmax(0,1fr));
	}
}
@media(max-width: 900px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-site-header .seo-geo-preset-navigation__mobile > summary {
	min-height: 44px;
	background: #0d3940;
	border: 1px solid #78e8c8;
	color: #fff;
	font-weight: 800;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-site-header .seo-geo-preset-navigation__mobile[open] .seo-geo-preset-navigation__item a {
	color: #173a3d;
	}
}
@media(max-width: 650px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) {
	--corp-shell: min(100% - 2.5rem,1280px);
	--corp-reading: min(100% - 2.5rem,760px);
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) :is(
	.seo-geo-insights-shell,.seo-geo-index-shell,.seo-geo-archive-shell
	) .wp-block-post-template,
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.wp-block-post-content .seo-geo-inner-service-grid {
	grid-template-columns: minmax(0,1fr);
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) :is(
	.seo-geo-page-title,.seo-geo-insights-title,.seo-geo-single-title,.seo-geo-archive-title
	) {
	font-size: clamp(2.65rem,11vw,3.75rem);
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-site-header__inner {
	min-height: 68px;
	}
}
@media(prefers-reduced-motion:reduce) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) * {
	scroll-behavior: auto;
	}
}

/* Migrated pages may own their only H1 inside native post content. */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content h1 {
	max-width: 1100px;
	margin: 0 0 clamp(2.25rem, 4vw, 4.5rem);
	color: var(--corp-ink);
	font-size: clamp(2.9rem, 5.8vw, 6.25rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -.055em;
	text-wrap: balance;
}

/*
 * Migrated Divi blurb collections.
 * Public layout evidence (2026-11-12): oversized legacy image blocks were
 * creating 10k-pixel brand pages. This is class-based and reusable for every
 * migrated Corporate client, never hard-coded to a client post ID.
 */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-blurb ~ .sgmb-divi-blurb) {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: clamp(1.25rem, 2.4vw, 2rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-blurb ~ .sgmb-divi-blurb) > :not(.sgmb-divi-blurb) {
	grid-column: 1 / -1;
	min-width: 0;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content > .sgmb-divi-blurb {
	min-width: 0;
	margin: 0;
	padding: clamp(1.35rem, 2.4vw, 2rem);
	border: 1px solid var(--corp-line);
	border-radius: var(--corp-radius-md);
	background: var(--corp-surface);
	box-shadow: 0 12px 36px rgb(14 57 61 / 8%);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content > .sgmb-divi-blurb .wp-block-image {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	max-width: 100%;
	max-height: 11.5rem;
	margin: 0 0 1.25rem;
	overflow: hidden;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content > .sgmb-divi-blurb .wp-block-image img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 11.5rem;
	object-fit: contain;
	object-position: left center;
}
/*
 * Corporate grouped blurb media fallback:
 * Progressive enhancement may wrap native migrated blurbs inside a
 * .seo-geo-legacy-about-card-grid, invalidating the original direct-child
 * image sizing selectors. Keep the authored image, alt and links while
 * applying the same non-cropping 184px containment to grouped cards.
 */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content.seo-geo-legacy-about-enhanced
> .seo-geo-legacy-about-card-grid > .sgmb-divi-blurb .wp-block-image {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: none;
	margin: 0 0 1.25rem;
	overflow: visible;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content.seo-geo-legacy-about-enhanced
> .seo-geo-legacy-about-card-grid > .sgmb-divi-blurb .wp-block-image img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 11.5rem;
	object-fit: contain;
	object-position: left center;
}

body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content > .sgmb-divi-blurb :is(h2,h3,h4) {
	font-size: clamp(1.2rem, 1.8vw, 1.55rem);
	line-height: 1.22;
	margin-block: 0 0.7rem;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content > .sgmb-divi-blurb :is(p,li) {
	line-height: 1.62;
}

/*
 * Gutenberg Latest Posts lists containing one/two posts should occupy the
 * reading grid instead of presenting an orphan 1/3-width card. Editorial
 * ordering and the WordPress query remain untouched.
 */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content .wp-block-latest-posts:has(> li:only-child) {
	grid-template-columns: minmax(0, 1fr);
	max-width: min(100%, 780px);
	margin-inline: auto;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content .wp-block-latest-posts:has(> li:nth-child(2):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 950px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-blurb ~ .sgmb-divi-blurb) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 650px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-blurb ~ .sgmb-divi-blurb),
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.wp-block-post-content .wp-block-latest-posts:has(> li:nth-child(2):last-child) {
		grid-template-columns: minmax(0, 1fr);
	}
}

/*
 * Contrast-safe native Gutenberg CTAs on Corporate inner pages.
 * 2026-11-12 field QA found dark inherited link text on a saturated teal pill
 * in Nuestras Marcas. The semantic block and its destination stay WordPress-owned.
 * White (#fff) on #087d67 has WCAG contrast 5.07:1 (AA normal text).
 */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content .wp-block-button > a,
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content a.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .8rem 1.35rem;
	border: 1px solid #087d67 !important;
	border-radius: 999px;
	background-color: #087d67 !important;
	color: #fff !important;
	font-weight: 750;
	text-decoration: none;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content .wp-block-button > a:is(:hover,:focus-visible),
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content a.wp-block-button__link:is(:hover,:focus-visible) {
	background-color: #075845 !important;
	border-color: #075845 !important;
	color: #fff !important;
}

/*
 * Editorial migration rescue: About-style pages with a migrated Divi header
 * and an on-page native contact form. WP owns all text, images and links.
 * A legacy source may contain unwrapped inline text between blocks, making
 * the generic blurb-driven root grid create anonymous narrow grid items.
 * Switch to natural reading flow; render authored blurb/image siblings as
 * balanced, responsive premium cards without changing post_content.
 */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap) {
	display: block;
	max-width: var(--corp-shell);
	font-size: clamp(1.03rem, 1.2vw, 1.18rem);
	line-height: 1.78;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap) > .sgmb-divi-fullwidth-header {
	width: 100%;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	margin: 0 0 clamp(1.35rem, 3vw, 2.5rem);
	border: 1px solid var(--corp-line);
	border-radius: var(--corp-radius-lg);
	background: linear-gradient(135deg, #e6f8f1, #f8fcfa);
	overflow: hidden;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
> .sgmb-divi-fullwidth-header .sgmb-divi-header-background img {
	width: 100%;
	height: auto;
	max-height: 330px;
	object-fit: cover;
	object-position: center;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
> .sgmb-divi-fullwidth-header + figure.wp-block-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 760px);
	height: clamp(210px, 26vw, 340px);
	margin: clamp(1.5rem, 3vw, 2.7rem) auto;
	overflow: hidden;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
> .sgmb-divi-fullwidth-header + figure.wp-block-image img {
	width: 100%;
	height: 100%;
	max-height: 340px;
	object-fit: contain;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
> h2 {
	max-width: 960px;
	margin-block: clamp(2rem, 3.6vw, 3.6rem) clamp(.9rem, 1.5vw, 1.4rem);
	font-size: clamp(1.9rem, 3vw, 2.9rem);
	line-height: 1.13;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
> strong {
	display: block;
	margin: clamp(1rem, 1.8vw, 1.7rem) 0;
	color: var(--corp-accent-strong);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
> .sgmb-divi-blurb {
	display: inline-block;
	vertical-align: top;
	width: calc(50% - 1.25rem);
	min-height: 230px;
	margin: .65rem .6rem 1.15rem;
	padding: clamp(1.4rem, 2vw, 2rem);
	border-radius: 1.35rem;
	break-inside: avoid;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
> h2:has(+ figure.wp-block-image) {
	max-width: 100%;
	margin-top: clamp(2.5rem, 4vw, 4.5rem);
	text-align: center;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
> h2 ~ figure.wp-block-image {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	width: calc(25% - 1.5rem);
	min-width: 0;
	height: 175px;
	margin: .65rem .7rem 1rem;
	padding: 1.15rem;
	border: 1px solid var(--corp-line);
	border-radius: var(--corp-radius-md);
	background: #fff;
	box-shadow: 0 14px 42px rgb(14 57 61 / 6%);
	overflow: hidden;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
> h2 ~ figure.wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 135px;
	object-fit: contain;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
> .seo-geo-contact-form-wrap {
	width: min(100%, 900px);
	margin: clamp(1.5rem, 3vw, 3rem) auto;
}
@media (max-width: 850px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
	> h2 ~ figure.wp-block-image {
		width: calc(50% - 1.45rem);
	}
}
@media (max-width: 650px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
	> .sgmb-divi-blurb {
		display: block;
		width: 100%;
		min-height: 0;
		margin: .9rem 0 1.25rem;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
	> h2 ~ figure.wp-block-image {
		height: 145px;
		margin: .6rem;
		padding: .8rem;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-page-shell .wp-block-post-content:has(> .sgmb-divi-fullwidth-header):has(> .seo-geo-contact-form-wrap)
	> h2 ~ figure.wp-block-image img {
		max-height: 112px;
	}
}

/* Semantic-only progressive enhancement: group only existing authored siblings. */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content.seo-geo-legacy-about-enhanced > .seo-geo-legacy-about-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: clamp(1.2rem, 2.5vw, 2rem) 0;
	align-items: stretch;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content.seo-geo-legacy-about-enhanced
> .seo-geo-legacy-about-card-grid > .sgmb-divi-blurb {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: clamp(1.4rem, 2vw, 2rem);
	border: 1px solid var(--corp-line);
	border-radius: var(--corp-radius-md);
	background: #fff;
	box-shadow: 0 12px 36px rgb(14 57 61 / 8%);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content.seo-geo-legacy-about-enhanced > .seo-geo-legacy-about-brand-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(.9rem, 1.8vw, 1.3rem);
	margin: clamp(1.3rem, 2.6vw, 2.3rem) 0 clamp(2rem, 4vw, 3.8rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content.seo-geo-legacy-about-enhanced
> .seo-geo-legacy-about-brand-grid > figure.wp-block-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 175px;
	min-width: 0;
	margin: 0;
	padding: 1.2rem;
	border: 1px solid var(--corp-line);
	border-radius: var(--corp-radius-md);
	background: linear-gradient(145deg, #e7f3ee, #ffffff);
	box-shadow: 0 13px 35px rgb(14 57 61 / 7%);
	overflow: hidden;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content.seo-geo-legacy-about-enhanced
> .seo-geo-legacy-about-brand-grid > figure.wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 135px;
	object-fit: contain;
	filter: drop-shadow(0 1px 3px rgb(14 57 61 / 25%));
}

/* Contrast fallback is decided from local image pixels, never filenames or client IDs. */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content.seo-geo-legacy-about-enhanced
> .seo-geo-legacy-about-brand-grid > figure.seo-geo-legacy-about-light-logo {
	border-color: #245d62;
	background: linear-gradient(140deg, #103f43, #1c6264);
}
@media (max-width: 850px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-page-shell .wp-block-post-content.seo-geo-legacy-about-enhanced > .seo-geo-legacy-about-brand-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 650px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-page-shell .wp-block-post-content.seo-geo-legacy-about-enhanced > .seo-geo-legacy-about-card-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-page-shell .wp-block-post-content.seo-geo-legacy-about-enhanced
	> .seo-geo-legacy-about-brand-grid > figure.wp-block-image {
		height: 145px;
		padding: .85rem;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-page-shell .wp-block-post-content.seo-geo-legacy-about-enhanced
	> .seo-geo-legacy-about-brand-grid > figure.wp-block-image img {
		max-height: 112px;
	}
}

/*
 * Migrated editorial landing: preserve the authored WordPress source and
 * display one featured article plus a unique, balanced 2×2 reading grid.
 * The enhancer activates only when the known legacy blog block signature
 * exists. Native Articles, main Blog, Home and other client pages are intact.
 */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content.seo-geo-blog-digital-enhanced {
	--editorial-ink: #103f43;
	--editorial-line: #d4e6e0;
	--editorial-surface: #ffffff;
	max-width: var(--corp-shell);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced > figure.wp-block-image:first-child {
	width: min(100%, 780px);
	margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced > figure.wp-block-image:first-child img {
	display: block;
	max-height: 116px;
	max-width: 100%;
	object-fit: contain;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced > h2:first-of-type {
	font-size: clamp(1.2rem, 1.65vw, 1.45rem);
	letter-spacing: .015em;
	color: var(--corp-accent-strong);
	margin: 1rem 0 clamp(1rem, 2.2vw, 1.8rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature {
	padding: 0;
	margin: 0 0 clamp(2.3rem, 4.4vw, 4.5rem);
	background: none;
	border: 0;
	box-shadow: none;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature ul.wp-block-latest-posts {
	display: block;
	max-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature ul.wp-block-latest-posts > li {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1.25rem, 2.9vw, 3rem);
	min-height: 335px;
	margin: 0;
	padding: clamp(1.4rem, 3vw, 3.4rem);
	background: linear-gradient(125deg, #103a3f, #175a5b);
	border: 1px solid #2b6968;
	border-radius: 1.8rem;
	box-shadow: 0 24px 68px rgb(5 48 48 / 16%);
	color: #f9fffd;
	overflow: hidden;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature
.wp-block-latest-posts__featured-image {
	grid-row: 1 / 5;
	grid-column: 1;
	margin: 0;
	max-width: 100%;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature
.wp-block-latest-posts__featured-image img {
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 1.2rem;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature
.wp-block-latest-posts__post-title {
	font-size: clamp(1.75rem, 2.8vw, 2.8rem);
	line-height: 1.12;
	color: #ffffff;
	max-width: 640px;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature
:is(.wp-block-latest-posts__post-date,.wp-block-latest-posts__post-excerpt) {
	color: #d7efe7;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature a:focus-visible {
	outline: 3px solid #8ee4cf;
	outline-offset: 4px;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced > h2 {
	margin-block: clamp(2.4rem, 4vw, 4.4rem) clamp(1.1rem, 2vw, 1.7rem);
	max-width: 950px;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced > .seo-geo-blog-digital-archive {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.15rem, 2.4vw, 2rem);
	max-width: 100%;
	margin: 0 0 clamp(3rem, 5vw, 5rem);
	padding: 0;
	list-style: none;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced > .seo-geo-blog-digital-archive > li {
	min-width: 0;
	margin: 0;
	padding: clamp(1.5rem, 2.3vw, 2.2rem);
	border: 1px solid var(--editorial-line);
	border-radius: 1.5rem;
	background: var(--editorial-surface);
	box-shadow: 0 15px 48px rgb(14 57 61 / 8%);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced > .seo-geo-blog-digital-archive
.wp-block-latest-posts__post-title {
	font-size: clamp(1.3rem, 1.7vw, 1.75rem);
	line-height: 1.24;
	color: var(--editorial-ink);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced > .seo-geo-blog-digital-archive
.wp-block-latest-posts__featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: .85rem;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced > figure.seo-geo-blog-digital-blank-legacy {
	display: none;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-topic-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(.85rem, 1.65vw, 1.25rem);
	margin-bottom: clamp(2.4rem, 4vw, 4rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-topic-grid > h3 {
	display: flex;
	align-items: center;
	min-height: 90px;
	margin: 0;
	padding: clamp(1.25rem, 1.8vw, 1.8rem);
	border: 1px solid var(--editorial-line);
	border-left: 4px solid #087d67;
	border-radius: 1rem;
	background: #fff;
	color: var(--editorial-ink);
	font-size: clamp(1.15rem, 1.5vw, 1.35rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .85rem;
	margin: 0 0 clamp(2.8rem, 4.2vw, 4.5rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-category-grid > p {
	display: flex;
	align-items: center;
	min-height: 48px;
	margin: 0;
	padding: .9rem 1rem;
	border: 1px solid var(--editorial-line);
	border-radius: 1rem;
	background: #e9f5f1;
	color: #174f4c;
	font-size: .95rem;
	font-weight: 650;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-conversion-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 1.8vw, 1.5rem);
	margin-bottom: clamp(2rem, 4vw, 4rem);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-conversion-card {
	padding: clamp(1.4rem, 2.2vw, 2rem);
	border: 1px solid var(--editorial-line);
	border-radius: 1.5rem;
	background: #fff;
	box-shadow: 0 14px 42px rgb(14 57 61 / 7%);
	min-width: 0;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-conversion-card > h3 {
	font-size: clamp(1.2rem, 1.75vw, 1.6rem);
	line-height: 1.18;
	margin: 0 0 1rem;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced
.seo-geo-blog-digital-conversion-card > .sgmb-divi-social-link {
	display: inline-flex;
	margin: .3rem .35rem .25rem 0;
	padding: .5rem .8rem;
	border: 1px solid var(--editorial-line);
	border-radius: .75rem;
	background: #e8f7f1;
	font-size: .9rem;
}
@media (max-width: 950px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-conversion-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-topic-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 650px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature
	ul.wp-block-latest-posts > li {
		display: flex;
		flex-direction: column;
		gap: 1rem;
		padding: 1.6rem;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature
	.wp-block-latest-posts__post-title {
		font-size: clamp(1.55rem, 7vw, 2.15rem);
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.wp-block-post-content.seo-geo-blog-digital-enhanced > .seo-geo-blog-digital-archive,
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-topic-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* No featured picture in this migration: make typography, not a fake image,
 * the hero. Layout remains compatible with featured-image cards. */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature
ul.wp-block-latest-posts > li:not(:has(.wp-block-latest-posts__featured-image)) {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: .8rem;
	min-height: 350px;
	padding: clamp(2rem, 4vw, 4rem);
	background:
		radial-gradient(circle at 90% 20%, rgb(109 213 187 / 15%) 0, transparent 36%),
		radial-gradient(circle at 70% 85%, rgb(109 213 187 / 10%) 0, transparent 35%),
		linear-gradient(125deg, #0d353a, #15575a);
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature
ul.wp-block-latest-posts > li:not(:has(.wp-block-latest-posts__featured-image))::before {
	content: "Artículo destacado";
	display: block;
	order: -2;
	color: #9debd6;
	font-size: .8rem;
	font-weight: 750;
	letter-spacing: .11em;
	text-transform: uppercase;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature
ul.wp-block-latest-posts > li:not(:has(.wp-block-latest-posts__featured-image))
.wp-block-latest-posts__post-date {
	order: -1;
	font-size: .92rem;
	color: #c9ede0;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature
ul.wp-block-latest-posts > li:not(:has(.wp-block-latest-posts__featured-image))
.wp-block-latest-posts__post-title {
	display: block;
	max-width: 860px;
	margin: 0;
	font-size: clamp(2.15rem, 3.4vw, 3.4rem);
	line-height: 1.07;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced .seo-geo-blog-digital-feature
ul.wp-block-latest-posts > li:not(:has(.wp-block-latest-posts__featured-image))
.wp-block-latest-posts__post-excerpt {
	max-width: 740px;
	margin-top: .55rem;
	font-size: clamp(1.02rem, 1.25vw, 1.16rem);
	line-height: 1.7;
	color: #d8ede7;
}

/* No signup promise without a real newsletter form: preserve source markup,
 * display only usable contact/social cards until WordPress is configured. */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced
.seo-geo-blog-digital-conversion-card.seo-geo-blog-digital-newsletter-unavailable {
	display: none;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.wp-block-post-content.seo-geo-blog-digital-enhanced
.seo-geo-blog-digital-conversion-grid:has(> .seo-geo-blog-digital-newsletter-unavailable) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 650px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.wp-block-post-content.seo-geo-blog-digital-enhanced
	.seo-geo-blog-digital-conversion-grid:has(> .seo-geo-blog-digital-newsletter-unavailable) {
		grid-template-columns: minmax(0, 1fr);
	}
}


/*
 * Corporate editorial index reading-width rescue (measured 14 Nov 2026).
 * Native Gutenberg pages with a long direct Latest Posts list render 3 tiny
 * cards inside a 760px reading column. Expand ONLY long lists (9+ items)
 * into the existing 1280px corporate shell, without altering WP content,
 * order, rendered text, links, article single pages, or Digital Blog cards.
 * The first-party archive remains usable at 390/768/1440px.
 */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-page-shell .wp-block-post-content:not(.seo-geo-blog-digital-enhanced)
> ul.wp-block-latest-posts:has(> li:nth-child(9)) {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: min(1160px, calc(100vw - 4rem));
	max-width: none;
	margin: clamp(1.6rem, 3vw, 2.5rem) 0 clamp(2.25rem, 4vw, 4rem);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 1.8vw, 1.5rem);
}
@media (max-width: 1020px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-page-shell .wp-block-post-content:not(.seo-geo-blog-digital-enhanced)
	> ul.wp-block-latest-posts:has(> li:nth-child(9)) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 650px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-page-shell .wp-block-post-content:not(.seo-geo-blog-digital-enhanced)
	> ul.wp-block-latest-posts:has(> li:nth-child(9)) {
		grid-template-columns: minmax(0, 1fr);
		width: calc(100vw - 2.5rem);
	}
}

/*
 * Native migrated contact forms: the configured WordPress privacy-policy
 * link belongs with the input controls, and is kept visible on mobile.
 * No legal claims, consent checkbox, URL or sender addresses are invented.
 */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-contact-form .seo-geo-contact-form-privacy {
	margin: clamp(.6rem, 1.5vw, 1rem) 0 .5rem;
	font-size: .9rem;
	line-height: 1.55;
	color: #3e5e62;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-contact-form .seo-geo-contact-form-privacy a {
	color: #075845;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .16em;
	font-weight: 700;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
.seo-geo-contact-form .seo-geo-contact-form-privacy a:focus-visible {
	outline: 3px solid #087d67;
	outline-offset: 4px;
	border-radius: .15rem;
}


/*
 * Emmake interior navigation — parity with the approved homepage mobile header.
 * The old 340px absolutely positioned panel overlaid Services/About content;
 * keep the brand and Menu trigger on one line and move the open list in-flow.
 * Only this Corporate inner-page skin is affected, never the homepage.
 */
@media (max-width: 1280px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header__inner {
		position: relative;
		display: flex;
		flex-wrap: wrap !important;
		align-items: center;
		justify-content: space-between;
		width: var(--corp-shell);
		gap: .25rem 0;
		padding-block: .8rem;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header .seo-geo-site-brand {
		display: flex;
		flex: 1 1 0;
		min-width: 0;
		margin-right: .75rem;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header .seo-geo-site-brand .wp-block-site-title {
		min-width: 0;
		overflow-wrap: anywhere;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header .seo-geo-preset-navigation--primary {
		display: block;
		flex: 0 0 auto;
		width: auto;
		min-width: 0;
		margin-left: auto;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header .seo-geo-preset-navigation__mobile {
		position: static;
		display: block;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header .seo-geo-preset-navigation__mobile > summary {
		box-sizing: border-box;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 106px;
		min-height: 46px;
		margin-left: auto;
		padding: .65rem 1.25rem;
		border: 1px solid #78e8c8;
		border-radius: 999px;
		background: #0d3940;
		color: #ffffff;
		-webkit-text-fill-color: #ffffff;
		box-shadow: none;
		text-align: center;
		cursor: pointer;
		list-style: none;
	}
	/* The trigger stays upper-right while the expanded navigation gets its
	 * own full-width row, increasing header height instead of covering main. */
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header__inner:has(.seo-geo-preset-navigation__mobile[open])
	.seo-geo-preset-navigation--primary {
		flex: 0 0 100%;
		width: 100%;
		margin-left: 0;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header__inner:has(.seo-geo-preset-navigation__mobile[open])
	.seo-geo-preset-navigation__mobile > summary {
		position: absolute;
		top: .8rem;
		right: 0;
		z-index: 2;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__mobile[open] > .seo-geo-preset-navigation__list {
		position: static !important;
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		justify-content: stretch;
		justify-items: stretch;
		align-items: stretch;
		width: 100%;
		max-width: none;
		max-height: calc(100dvh - 110px);
		overflow-y: auto;
		overscroll-behavior: contain;
		gap: .15rem;
		margin: 1.05rem 0 0;
		padding: .8rem;
		border: 1px solid rgb(120 232 200 / 30%);
		border-radius: 18px;
		background: #123f43;
		box-shadow: 0 12px 30px rgb(0 20 24 / 16%);
		list-style: none;
		text-align: left;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__mobile[open] .seo-geo-preset-navigation__item {
		width: 100%;
		min-width: 0;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__mobile[open] .seo-geo-preset-navigation__item > a {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		width: 100%;
		min-height: 46px;
		padding: .7rem .85rem;
		border: 1px solid transparent;
		border-radius: 10px;
		background: transparent;
		color: #f7fffc;
		-webkit-text-fill-color: #f7fffc;
		font-size: .95rem;
		font-weight: 700;
		line-height: 1.35;
		white-space: normal;
		overflow-wrap: anywhere;
		text-align: left;
		text-decoration: none;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__mobile[open] .seo-geo-preset-navigation__item > a:is(:hover, :focus-visible),
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__mobile[open] .seo-geo-preset-navigation__item > a[aria-current="page"] {
		background: rgb(120 232 200 / 13%);
		color: #a4f7dc;
		-webkit-text-fill-color: #a4f7dc;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__mobile[open] .seo-geo-preset-navigation__sublist {
		position: static !important;
		display: grid;
		gap: .1rem;
		margin: .1rem 0 .4rem .75rem;
		padding: 0 0 0 .7rem;
		border: 0;
		border-left: 2px solid rgb(120 232 200 / 40%);
		background: transparent;
		box-shadow: none;
		list-style: none;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__mobile[open] .seo-geo-preset-navigation__sublist a {
		min-height: 44px;
		padding: .55rem .75rem;
		color: #d7efea;
		-webkit-text-fill-color: #d7efea;
		font-size: .9rem;
		font-weight: 600;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
	.seo-geo-preset-navigation__mobile[open] > .seo-geo-preset-navigation__list > .seo-geo-preset-navigation__item:last-child > a {
		margin-top: .25rem;
		border: 1px solid rgb(120 232 200 / 55%);
		color: #a4f7dc;
		-webkit-text-fill-color: #a4f7dc;
	}
}


/* The WordPress header's brand slot can be empty on migrated interiors.
 * Reserve an actual first row, or the expanded panel starts under Menu. */
@media (max-width: 1280px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-site-header .seo-geo-site-brand {
		min-height: 48px;
		align-items: center;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-site-header__inner:has(.seo-geo-preset-navigation__mobile[open])
	.seo-geo-site-brand {
		flex: 0 1 calc(100% - 122px);
		max-width: calc(100% - 122px);
		margin-right: auto;
	}
}


/* Site identity is dynamic: provide contrast only for the fallback link that
 * WordPress renders when a migrated interior header has an empty brand slot. */
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
.seo-geo-site-brand .seo-geo-site-brand__fallback {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	max-width: 100%;
	color: #f7fffc;
	-webkit-text-fill-color: #f7fffc;
	font-size: .9rem;
	font-weight: 850;
	letter-spacing: .12em;
	text-decoration: none;
	overflow-wrap: anywhere;
}
body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5) .seo-geo-site-header
.seo-geo-site-brand .seo-geo-site-brand__fallback:is(:hover, :focus-visible) {
	color: #a4f7dc;
	-webkit-text-fill-color: #a4f7dc;
}


/* The WordPress Site Title block already contains the brand, but a legacy
 * header rule hides its <p> on interiors. Restore the authored link in mobile
 * without changing WordPress content or introducing a second brand. */
@media (max-width: 1280px) {
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-site-header .seo-geo-site-brand .wp-block-site-title {
		display: flex !important;
		align-items: center;
		visibility: visible !important;
		opacity: 1 !important;
		min-height: 44px;
		min-width: 0;
		margin: 0;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-site-header .seo-geo-site-brand .wp-block-site-title a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		color: #f7fffc !important;
		-webkit-text-fill-color: #f7fffc;
		font-weight: 850;
		letter-spacing: .11em;
		text-decoration: none;
	}
	body.seo-geo-preset-corporate:not(.seo-geo-corporate-home-v5)
	.seo-geo-site-header .seo-geo-site-brand .wp-block-site-title a:is(:hover,:focus-visible) {
		color: #a4f7dc !important;
		-webkit-text-fill-color: #a4f7dc;
	}
}
