/* Global values live in theme.json. These rules cover rich-text accents,
 * native navigation composition and responsive layouts not expressed cleanly
 * by core block controls. Mobile is the base; wide layouts enhance DOM order.
 */
.wp-site-blocks :focus,
.editor-styles-wrapper :focus {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 4px;
}

.epb-dark :focus {
	outline-color: var(--wp--preset--color--ivory);
}

.wp-site-blocks :where(h1, h2, h3, h4, h5, h6, p),
.editor-styles-wrapper :where(h1, h2, h3, h4, h5, h6, p) {
	overflow-wrap: anywhere;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.wp-block-button__link {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	/* Core's outline variation has its own padding; all three styles use this size. */
	padding: var(--wp--custom--button--padding-block) var(--wp--custom--button--padding-inline);
}

/* Fill keeps its resting appearance; Outline retains its own interaction rules. */
.wp-block-button:where(:not(.is-style-outline)) > .wp-block-button__link {
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, filter 160ms ease;
}

.wp-block-button:where(:not(.is-style-outline):not(.is-style-gold)) > .wp-block-button__link:hover {
	background: color-mix(in srgb, var(--wp--preset--color--navy) 90%, var(--wp--preset--color--text));
	border-color: color-mix(in srgb, var(--wp--preset--color--navy) 90%, var(--wp--preset--color--text));
}

.wp-block-button:where(:not(.is-style-outline)) > .wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button:where(:not(.is-style-outline)) > .wp-block-button__link:active {
	transform: translateY(0);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	color: var(--wp--preset--color--navy);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--ivory);
}

.epb-dark .wp-block-button > .wp-block-button__link {
	background: var(--wp--preset--color--ivory);
	border-color: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--navy);
}

.epb-dark .wp-block-button > .wp-block-button__link:hover {
	background: var(--wp--preset--color--soft-ivory);
	border-color: var(--wp--preset--color--soft-ivory);
}

.epb-dark .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ivory);
}

.epb-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--navy);
}

/* Reuse the hero accent token in both states, including inside dark sections. */
.wp-block-button.is-style-gold > .wp-block-button__link,
.wp-block-button.is-style-gold > .wp-block-button__link:hover {
	background: var(--wp--custom--gold-gradient);
	border-color: var(--wp--preset--color--champagne);
	color: var(--wp--preset--color--text);
}

.wp-block-button.is-style-gold > .wp-block-button__link:hover {
	filter: brightness(1.04);
}

/* Ivory inner ring + navy outer ring remain visible on all three brand surfaces. */
.wp-block-button > .wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 4px;
	box-shadow: 0 0 0 4px var(--wp--preset--color--ivory);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button:where(:not(.is-style-outline)) > .wp-block-button__link {
		transition: none;
	}

	.wp-block-button:where(:not(.is-style-outline)) > .wp-block-button__link:hover,
	.wp-block-button:where(:not(.is-style-outline)) > .wp-block-button__link:active {
		transform: none;
	}
}

@media (forced-colors: active) {
	.wp-block-button.is-style-gold > .wp-block-button__link:hover {
		filter: none;
	}

	.wp-block-button > .wp-block-button__link:focus-visible {
		outline-color: Highlight;
		box-shadow: none;
	}
}

.epb-dark a:not(.wp-element-button) {
	color: inherit;
}

.epb-editorial-link a {
	display: inline-block;
	padding-block: 0.625rem;
	text-underline-offset: 0.25em;
}

/* This is a controlled rich-text treatment, not an editor gradient preset. */
.epb-gold-text {
	color: var(--wp--preset--color--champagne);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
	.epb-gold-text {
		background-image: var(--wp--custom--gold-gradient);
		background-clip: text;
		-webkit-background-clip: text;
		color: transparent;
	}
}

@media (forced-colors: active) {
	.epb-gold-text {
		background: none;
		color: CanvasText;
	}
}

.epb-brand-logo img {
	height: auto;
	max-width: 100%;
}

.epb-brand-logo a {
	display: inline-block;
}

/* Core still owns the overlay, focus trap, Escape and menu interaction. */
.epb-header .epb-brand-logo {
	flex-shrink: 0;
	max-width: min(240px, 60vw);
	margin: 0;
}

.epb-header .epb-brand-logo img {
	max-width: min(220px, 60vw);
}

.epb-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
	display: none;
}

.epb-header .wp-block-navigation__responsive-container-open {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--wp--preset--color--champagne);
	border-radius: var(--wp--custom--radius--control);
}

.epb-header .wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.epb-header .is-menu-open {
	padding: var(--wp--custom--layout--page-gutter);
	--navigation-layout-justification-setting: flex-start;
}

.epb-header .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
	padding-top: 5rem;
}

.epb-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: var(--wp--preset--spacing--medium);
	width: 100%;
}

.epb-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start;
	align-self: stretch;
}

.epb-header .wp-block-navigation-item__content {
	box-sizing: border-box;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.epb-header .is-menu-open .wp-block-navigation-item__content {
	font-size: 1.5rem;
}

.epb-header .epb-navigation-cta .wp-block-navigation-item__content {
	background: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--navy);
	border: 1px solid var(--wp--preset--color--ivory);
	border-radius: var(--wp--custom--radius--control);
	padding: 0.75rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
}

.epb-header .epb-navigation-cta .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--soft-ivory);
}

.epb-header .is-menu-open .epb-navigation-cta .wp-block-navigation-item__content {
	padding: 0.75rem 1.25rem;
}

.epb-header .wp-block-navigation-item:not(.epb-navigation-cta) a:hover,
.epb-footer .wp-block-navigation a:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.wp-block-group.epb-split,
.wp-block-group.epb-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--x-large);
	align-items: center;
}

.epb-split > *,
.epb-footer-grid > * {
	min-width: 0;
	margin-block-start: 0;
}

.epb-copy > p:not(.epb-content-needed):where(:not(.epb-hero-video p)) {
	max-width: 36rem;
}

.epb-hero:where(:not(.epb-hero-video)) .wp-block-heading {
	overflow-wrap: normal;
}

/* Decorative media behavior only. Hero design belongs to the saved Cover block. */
.wp-block-cover.epb-hero-video {
	isolation: isolate;
}

.epb-hero-video > .epb-hero-video-poster,
.epb-hero-video > .wp-block-cover__video-background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	pointer-events: none;
}

.epb-hero-video > .epb-hero-video-poster ~ .wp-block-cover__video-background {
	opacity: 0;
}

.epb-hero-video.epb-hero-video-playing > .wp-block-cover__video-background {
	opacity: 1;
}

.epb-hero-video > .wp-block-cover__inner-container {
	position: relative;
	z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.epb-hero-video > .epb-hero-video-poster ~ .wp-block-cover__video-background {
		display: none;
	}
}

.epb-content-needed,
.epb-media-slot {
	font-size: var(--wp--preset--font-size--small);
}

.epb-innovation > p {
	max-width: var(--wp--style--global--content-size);
}

.epb-final-cta .wp-block-heading {
	max-width: 18ch;
}

/* Typography roles are independent of the semantic heading level. Explicit
 * rich-text line breaks use the heading's own line height. */
.wp-block-heading.epb-heading-lines {
	line-height: 1.12;
}

.wp-block-heading.epb-display-heading {
	font-weight: 700;
	line-height: 1.02;
}

/* A reusable size role for the existing animated media and future step assets.
 * How it works' placeholder media does not opt into this role yet. */
.epb-process .wp-block-image,
.epb-process-illustration {
	width: min(100%, var(--wp--custom--process--illustration-size));
}

.epb-process .wp-block-image img,
.epb-process-illustration img {
	display: block;
	width: 100%;
	height: auto;
}

.epb-footer .wp-block-navigation a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.epb-footer p a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
}

.epb-motion-controls-host {
	position: relative;
}

.epb-motion-toggle {
	position: absolute;
	inset-inline-end: 0.75rem;
	inset-block-end: 0.75rem;
	z-index: 2;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--ivory);
	cursor: pointer;
}

.epb-motion-toggle::before {
	position: absolute;
	inset: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--navy);
	opacity: 0.9;
	content: '';
}

.epb-motion-toggle svg {
	position: relative;
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.epb-motion-toggle:hover::before {
	opacity: 1;
}

.epb-motion-toggle:disabled {
	cursor: default;
}

.epb-motion-toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 4px;
	box-shadow: 0 0 0 4px var(--wp--preset--color--ivory);
}

@media (forced-colors: active) {
	.epb-motion-toggle {
		color: ButtonText;
	}
	.epb-motion-toggle::before {
		border: 1px solid ButtonText;
		background: ButtonFace;
		opacity: 1;
	}
}

.epb-footer .wp-block-navigation__container {
	column-gap: var(--wp--preset--spacing--large);
	row-gap: var(--wp--preset--spacing--small);
}

.epb-footer-legal {
	color: var(--wp--preset--color--ivory);
}

/* Compatibility for independent older wireframe content. The old colour is
 * no longer in the editor palette; existing slots inherit the approved neutral.
 */
.has-wireframe-surface-background-color {
	background-color: var(--wp--preset--color--soft-ivory);
}

.wp-block-group.is-style-wireframe-media-landscape,
.wp-block-group.is-style-wireframe-media-square {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--medium);
	border: 1px solid var(--wp--preset--color--border);
	min-width: 0;
	text-align: center;
}

.wp-block-group.is-style-wireframe-media-landscape {
	aspect-ratio: var(--wp--custom--wireframe--landscape-ratio);
}

.wp-block-group.is-style-wireframe-media-square {
	aspect-ratio: var(--wp--custom--wireframe--square-ratio);
}

.epb-dark .epb-media-slot {
	border-color: var(--wp--preset--color--champagne);
}

@media (min-width: 48rem) {
	/* Split media stays in a proportionate column throughout tablet and desktop.
	 * Investors keeps its existing, separately reviewed layout. */
	.wp-block-group.epb-split:where(:not(.epb-investors-page *)) {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: var(--wp--custom--layout--split-gap);
	}
	.wp-block-group.epb-split--hero:where(:not(.epb-investors-page *)) {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	}
	.wp-block-group.epb-split--business:where(:not(.epb-investors-page *)) {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}
	.epb-about-page .wp-block-group.epb-about-split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.epb-about-page .wp-block-group.epb-about-team,
	.epb-process .wp-block-group.is-layout-grid,
	.wp-block-group.epb-process-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.wp-block-group.epb-footer-grid {
		grid-template-columns: 12rem minmax(0, 1fr);
		align-items: start;
	}
}

@media (min-width: 64rem) {
	.epb-header .epb-brand-logo img {
		max-width: 240px;
	}
	.epb-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: flex;
	}
	.epb-header .wp-block-navigation__responsive-container-open {
		display: none;
	}
	.wp-block-group.epb-split {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	}
	.wp-block-group.epb-split--hero {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	}
	.wp-block-group.epb-split--business {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}
}

/* Business review: native single-column Groups gain columns only when the
 * supplied copy has enough room. Keep the same tokens and mobile DOM order.
 */
.epb-business-page .epb-business-benefits > *,
.epb-business-page .epb-business-audiences > * {
	min-width: 0;
	margin-block-start: 0;
}

@media (min-width: 48rem) {
	.epb-business-page .wp-block-group.epb-business-benefits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.epb-business-page .wp-block-group.epb-business-audiences {
		grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 80rem) {
	.epb-business-page .wp-block-group.epb-business-benefits {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* How it works: keep each step's copy and media together in DOM order.
 * Media follows the asset review's 160px narrow / 240px wide size guidance.
 */
.epb-how-page .epb-how-steps > *,
.epb-how-page .epb-how-choices > *,
.epb-how-page .epb-how-next > * {
	min-width: 0;
	margin-block-start: 0;
}

.epb-how-page .epb-how-step-media {
	width: min(100%, 10rem);
}

@media (min-width: 48rem) {
	.epb-how-page .wp-block-group.epb-how-choices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.epb-how-page .wp-block-group.epb-how-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.epb-how-page .wp-block-group.epb-how-next {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}
}

@media (min-width: 64rem) {
	.epb-how-page .epb-how-step-media {
		width: min(100%, 15rem);
	}
}

/* Celebrations review: open typography and purposeful media, with the supplied
 * copy first on mobile. These enhancements apply only to this full-page pattern.
 */
.epb-celebrations-page .epb-celebrations-hero > *,
.epb-celebrations-page .epb-celebrations-benefits > *,
.epb-celebrations-page .epb-celebrations-inspiration > *,
.epb-celebrations-page .epb-celebrations-range > * {
	min-width: 0;
	margin-block-start: 0;
}

.epb-celebrations-page .epb-celebrations-secondary-media {
	width: min(100%, 18rem);
	justify-self: end;
}

.epb-celebrations-page .epb-celebrations-secondary-media .epb-media-slot {
	aspect-ratio: var(--wp--custom--wireframe--landscape-ratio);
}

@media (min-width: 48rem) {
	.epb-celebrations-page .wp-block-group.epb-celebrations-benefits {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 48rem) {
	.epb-celebrations-page .wp-block-group.epb-celebrations-hero {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: center;
	}
	.epb-celebrations-page .wp-block-group.epb-celebrations-inspiration {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
		align-items: end;
	}
	.epb-celebrations-page .epb-celebrations-secondary-media {
		width: 100%;
	}
	.epb-celebrations-page .epb-celebrations-secondary-media .epb-media-slot {
		aspect-ratio: var(--wp--custom--wireframe--square-ratio);
	}
	.epb-celebrations-page .wp-block-group.epb-celebrations-range {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
		align-items: center;
	}
}

/* About / Contact: editorial profiles and an explicitly nonfunctional form
 * wireframe. Keep all additions scoped to this full-page pattern.
 */
.epb-about-page .epb-about-review-note {
	border-inline-start: 1px solid var(--wp--preset--color--champagne);
	padding-inline-start: var(--wp--preset--spacing--regular);
	font-weight: 600;
	max-width: 46rem;
}

.epb-about-page .epb-about-team > *,
.epb-about-page .epb-about-contact > * {
	min-width: 0;
	margin-block-start: 0;
}

.epb-about-page .epb-about-portrait {
	aspect-ratio: 4 / 5;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--soft-ivory);
	padding: var(--wp--preset--spacing--medium);
	text-align: center;
}

.epb-about-page .epb-about-profile-copy > p {
	max-width: 36rem;
}

.epb-about-page .epb-about-contact {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--x-large);
	align-items: start;
}

.epb-about-page .epb-contact-wireframe {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.epb-about-page .epb-contact-wireframe legend {
	padding: 0;
	margin-block-end: var(--wp--preset--spacing--medium);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 600;
}

.epb-about-page .epb-contact-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--medium);
}

.epb-about-page .epb-contact-field {
	min-width: 0;
	display: grid;
	gap: var(--wp--preset--spacing--small);
}

.epb-about-page .epb-contact-field label {
	font-weight: 500;
}

.epb-about-page .epb-contact-field :is(input, select, textarea) {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 48px;
	border: 1px solid var(--wp--preset--color--text-muted);
	border-radius: var(--wp--custom--radius--control);
	background: var(--wp--preset--color--soft-ivory);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 1rem;
	line-height: 1.5;
	padding: var(--wp--preset--spacing--compact) var(--wp--preset--spacing--regular);
}

.epb-about-page .epb-contact-field textarea {
	resize: vertical;
}

.epb-about-page .epb-contact-wireframe .wp-element-button {
	margin-block-start: var(--wp--preset--spacing--large);
	min-height: 48px;
	background: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--ivory);
}

.epb-about-page .epb-contact-wireframe .wp-element-button:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

/* Contact Form 7 reuses About's existing field grid and control tokens. */
.epb-about-page#contact .wpcf7 .epb-contact-required-note {
	margin-block: 0 var(--wp--preset--spacing--medium);
	font-size: var(--wp--preset--font-size--small);
}

.epb-about-page#contact .wpcf7 .wpcf7-form-control-wrap {
	display: block;
	min-width: 0;
}

.epb-about-page#contact .wpcf7 .epb-contact-field > p,
.epb-about-page#contact .wpcf7 .epb-contact-actions > p {
	margin: 0;
}

.epb-about-page#contact .wpcf7 .wpcf7-not-valid-tip {
	margin-block-start: var(--wp--preset--spacing--small);
	color: var(--wp--preset--color--ivory);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

.epb-about-page#contact .wpcf7 [aria-invalid="true"] {
	border-color: var(--wp--preset--color--champagne);
}

.epb-about-page#contact .wpcf7 .epb-contact-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--regular);
	margin-block-start: var(--wp--preset--spacing--large);
}

.epb-about-page#contact .wpcf7 .wpcf7-submit {
	min-height: 48px;
	max-width: 100%;
	border: 1px solid var(--wp--preset--color--ivory);
	border-radius: var(--wp--custom--radius--control);
	background: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--navy);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.5;
	padding: var(--wp--custom--button--padding-block) var(--wp--custom--button--padding-inline);
	cursor: pointer;
}

.epb-about-page#contact .wpcf7 .wpcf7-submit:hover {
	background: var(--wp--preset--color--soft-ivory);
	border-color: var(--wp--preset--color--soft-ivory);
}

.epb-about-page#contact .wpcf7 .wpcf7-submit:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.epb-about-page#contact .wpcf7 .wpcf7-spinner {
	flex-shrink: 0;
	margin: 0;
	background-color: var(--wp--preset--color--text);
}

.epb-about-page#contact .wpcf7 .wpcf7-spinner::before {
	background-color: var(--wp--preset--color--ivory);
}

.epb-about-page#contact .wpcf7 form .wpcf7-response-output {
	margin: var(--wp--preset--spacing--medium) 0 0;
	padding: var(--wp--preset--spacing--regular);
	border: 1px solid var(--wp--preset--color--champagne);
	color: var(--wp--preset--color--ivory);
	font-size: var(--wp--preset--font-size--small);
	overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
	.epb-about-page .epb-contact-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.epb-about-page .epb-contact-field-wide {
		grid-column: 1 / -1;
	}
}

@media (min-width: 64rem) {
	.epb-about-page .epb-about-contact {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	}
}

/* Investors review: three brief product properties, stacked until there is
 * space for a single unboxed row. Existing helpers own copy/media and markers.
 */
.epb-investors-page .epb-investors-benefits > * {
	min-width: 0;
	margin-block-start: 0;
}

@media (min-width: 64rem) {
	/* The investor hero uses the available wide canvas, with more room for
	 * display copy than media. Its stacked mobile/tablet layout is retained. */
	.epb-investors-hero > .wp-block-columns {
		max-width: none;
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: var(--wp--preset--spacing--x-large);
		align-items: center;
	}

	.epb-investors-hero > .wp-block-columns > .wp-block-column {
		align-self: center;
	}

	.epb-investors-hero .wp-block-heading {
		overflow-wrap: normal;
		word-break: normal;
	}

	.epb-investors-page .wp-block-group.epb-investors-benefits {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* No smooth scrolling or custom navigation script. */

/* A2: neutral pending-media surfaces; retain the existing aspect-ratio rules. */
.wp-block-group.epb-presentation-media {
	background-color: var(--wp--preset--color--soft-ivory);
}
.wp-block-group.epb-presentation-hidden {
	display: none;
}

/* A5: hide only empty A2 media Groups; filling a slot restores its layout. */
.epb-how-page .epb-how-step-media:has(> .epb-presentation-media:empty),
.epb-celebrations-hero > .epb-presentation-media:empty {
	display: none;
}

.epb-celebrations-page .wp-block-group.epb-celebrations-hero:has(> .epb-presentation-media:empty) {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 47.999rem) {
	.epb-how-page .epb-media-slot.epb-presentation-media:empty,
	.epb-about-page .epb-media-slot.epb-presentation-media:empty {
		display: none;
	}

	.epb-about-profile:has(> .epb-about-portrait.epb-presentation-media:empty) > .epb-about-profile-copy {
		margin-block-start: 0;
	}
}

@media (max-width: 63.999rem) {
	.epb-investors-hero > .wp-block-columns > .wp-block-column:has(> .epb-presentation-media:empty) {
		display: none;
	}
}

/* How hero: meet the header without moving or cropping the original image. */
.wp-block-group.epb-how-hero {
	padding-top: 0 !important; /* Override this Group's saved inline padding only. */
}
.epb-how-hero > .wp-block-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	margin-block-start: 0;
}
.epb-how-hero > .wp-block-columns > .wp-block-column {
	min-width: 0;
	margin-block-start: 0;
}
.epb-how-hero .epb-how-hero-media {
	grid-row: 1;
	align-self: start;
}
.epb-how-hero .epb-how-hero-media > .wp-block-image {
	margin: 0;
}
.epb-how-hero .epb-how-hero-media img {
	display: block;
	width: 100%;
	height: auto;
}
.epb-how-hero > .wp-block-columns > :not(.epb-how-hero-media) {
	grid-row: 2;
}
@media (min-width: 48rem) {
	.epb-how-hero > .wp-block-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.epb-how-hero > .wp-block-columns > :not(.epb-how-hero-media) {
		grid-row: 1;
		grid-column: 1;
		padding-block-start: var(--wp--preset--spacing--feature);
	}
	.epb-how-hero .epb-how-hero-media {
		grid-column: 2;
	}
}

/* Real Celebrations hero media: no wireframe border, padding or forced crop. */
.epb-celebrations-hero-media > .wp-block-image {
	margin: 0;
	max-width: none;
}
.epb-celebrations-hero-media img {
	display: block;
	width: 100%;
	height: auto;
}
