/*
 * Scoped Core-block adapters for the marker-owned Gutenberg front page.
 * The parent meet-2026 stylesheet remains the visual source of truth.
 */

body.meet-editor-front-page .meet-editor-front-page__entry,
body.meet-editor-front-page .meet-editor-front-page__content {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

body.meet-editor-front-page .meet-editor-front-page__content > * {
	margin-block: 0;
}

body.meet-editor-front-page .meet-editor-front-page__content > .alignfull {
	position: relative;
	left: auto;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	transform: none;
}

/* Hero cover: Core markup mapped to the production hero contract. */

:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) {
	display: block;
	min-height: 0 !important;
	padding: 0;
	isolation: isolate;
	border-radius: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) > .wp-block-cover__background,
:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) > .wp-block-cover__image-background {
	z-index: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) > .wp-block-cover__background {
	opacity: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero)::before {
	z-index: 1;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-inline: 0;
	color: var(--meet-white);
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) .hero__inner,
:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) .hero__principles {
	width: min(calc(100% - (2 * var(--meet-gutter))), var(--meet-wide));
	max-width: var(--meet-wide);
	margin-inline: auto;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) .hero__content {
	width: 100%;
	margin-inline: 0 !important;
	justify-self: start;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) .hero__content > * {
	margin-inline: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero__content > * + *,
:where(body.meet-editor-front-page, .editor-styles-wrapper) .section-heading .wp-block-column > * + *,
:where(body.meet-editor-front-page, .editor-styles-wrapper) .section-heading--compact .wp-block-group > * + *,
:where(body.meet-editor-front-page, .editor-styles-wrapper) .mission__content > * + * {
	margin-block-start: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) .hero__content > .eyebrow {
	margin-block: 0 1rem;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) .hero__content > h1 {
	margin-block: 0 0.35em;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) .hero__content > .hero__lede {
	margin-block: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) .hero__content > .button-row {
	margin-block: clamp(1.75rem, 4vw, 2.75rem) 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .wp-block-buttons,
:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .wp-block-button {
	margin-block: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .wp-block-button__link {
	margin-block: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .wp-block-button__link::after,
:where(body.meet-editor-front-page, .editor-styles-wrapper) .mission .wp-block-button__link::after {
	width: 1.15rem;
	height: 1.15rem;
	flex: 0 0 auto;
	background: currentColor;
	content: "";
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 180ms ease;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .wp-block-button:first-child .wp-block-button__link {
	background: var(--meet-gold);
	color: var(--meet-navy);
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .wp-block-button:first-child .wp-block-button__link:hover {
	background: var(--meet-white);
	color: var(--meet-navy);
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .wp-block-button.is-style-outline .wp-block-button__link {
	padding-inline: 0.25rem;
	background: transparent;
	color: var(--meet-white);
	border-color: transparent transparent rgba(255, 255, 255, 0.82);
	border-radius: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: transparent;
	color: var(--meet-gold);
	border-bottom-color: var(--meet-gold);
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .hero__principles {
	gap: 0;
	padding: 0;
	margin-block-start: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .hero__principles > p {
	display: flex;
	min-height: 5.4rem;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem clamp(0.75rem, 2vw, 1.5rem);
	margin: 0;
	color: var(--meet-white);
	font-size: clamp(0.75rem, 1vw, 0.9rem);
	font-weight: 750;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .hero__principles > p + p {
	border-left: 1px solid rgba(255, 255, 255, 0.32);
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .hero__principles strong {
	color: var(--meet-gold);
	font-family: var(--meet-font-editorial);
	font-size: 1.4rem;
	font-style: italic;
	font-weight: 400;
}

/* Editable front-page sections keep the production shell and spacing. */

:where(body.meet-editor-front-page, .editor-styles-wrapper) :is(.meet-block-focus, .meet-block-mission, .meet-block-featured).wp-block-group {
	padding-right: var(--meet-gutter);
	padding-left: var(--meet-gutter);
	border-radius: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-mission.wp-block-group {
	padding-block: var(--meet-section);
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) :is(.meet-block-focus, .meet-block-featured) .section-heading,
:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-focus .bento-grid,
:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-mission .mission__inner,
:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-featured .latest-query,
:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-featured > .post-grid {
	width: min(100%, var(--meet-wide));
	max-width: var(--meet-wide);
	margin-inline: auto;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .section-heading.wp-block-columns,
:where(body.meet-editor-front-page, .editor-styles-wrapper) .mission__inner.wp-block-columns {
	display: grid;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-focus .section-heading > .wp-block-column:last-child > p {
	max-width: 38rem;
	margin: 0;
	color: var(--meet-ink-muted);
	font-size: 1.08rem;
}

/* Image-backed focus cards, with production-style icon and stretched CTA. */

:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-focus .bento-grid {
	padding: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-focus .bento-grid > * {
	margin-block-start: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .focus-card.wp-block-group {
	display: flex;
	min-height: 23rem;
	flex-direction: column;
	justify-content: space-between;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .focus-card .wp-block-image.focus-card__media {
	margin: 0;
	border-radius: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .focus-card .focus-card__media img {
	border-radius: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .focus-card .focus-card__body {
	position: static;
	width: 100%;
	margin-right: auto !important;
	margin-left: 0 !important;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .focus-card .focus-card__body > :not(.wp-block-buttons) {
	position: relative;
	z-index: 2;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .focus-card > .focus-card__icon {
	margin: 0 !important;
}

body.meet-editor-front-page .focus-card .wp-block-buttons,
body.meet-editor-front-page .focus-card .wp-block-button {
	display: contents;
}

body.meet-editor-front-page .focus-card .wp-block-button__link {
	position: absolute;
	z-index: 3;
	inset: 0;
	display: block;
	min-height: 0;
	padding: 0;
	overflow: hidden;
	background: transparent;
	color: transparent;
	border: 0;
	border-radius: var(--meet-radius-lg);
	font-size: 0;
	text-align: left;
}

body.meet-editor-front-page .focus-card .wp-block-button__link::before {
	position: absolute;
	right: 1.5rem;
	bottom: 1.5rem;
	width: 3rem;
	height: 3rem;
	background: var(--meet-gold);
	border-radius: 50%;
	content: "";
}

body.meet-editor-front-page .focus-card .wp-block-button__link::after {
	position: absolute;
	right: 2.4rem;
	bottom: 2.4rem;
	width: 1.2rem;
	height: 1.2rem;
	background: var(--meet-navy);
	content: "";
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.meet-editor-front-page .focus-card .wp-block-button__link:focus-visible {
	outline: 3px solid var(--meet-gold);
	outline-offset: -4px;
}

body.meet-editor-front-page .focus-card:has(.wp-block-button__link):hover {
	box-shadow: var(--meet-shadow);
	transform: translateY(-0.35rem);
}

body.meet-editor-front-page .focus-card:has(.wp-block-button__link):hover .focus-card__media img {
	transform: scale(1.035);
}

/* Mission: the empty visual column becomes the production three-part motif. */

:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-mission .mission__visual {
	position: relative;
	min-height: clamp(23rem, 40vw, 34rem);
}

body.meet-editor-front-page .meet-block-mission .mission__visual {
	background: none;
	border-radius: 0;
	transform: none;
}

body.meet-editor-front-page .meet-block-mission .mission__visual::before,
body.meet-editor-front-page .meet-block-mission .mission__visual::after {
	content: none;
}

.editor-styles-wrapper .meet-block-mission .mission__visual {
	background:
		radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.36), transparent 12%),
		linear-gradient(145deg, var(--meet-teal), var(--meet-green));
	border-radius: 44% 56% 62% 38% / 40% 42% 58% 60%;
	transform: rotate(-7deg);
}

.editor-styles-wrapper .meet-block-mission .mission__visual::before {
	position: absolute;
	inset: 13% -7% -6% 18%;
	border: 1px solid rgba(255, 255, 255, 0.36);
	border-radius: 55% 45% 38% 62% / 44% 61% 39% 56%;
	content: "";
	transform: rotate(17deg);
}

.editor-styles-wrapper .meet-block-mission .mission__visual::after {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	display: grid;
	width: 7rem;
	height: 7rem;
	background: var(--meet-gold);
	color: var(--meet-navy);
	border-radius: 50%;
	box-shadow: 0 20px 45px rgba(7, 24, 55, 0.35);
	font-family: var(--meet-font-editorial);
	font-size: 5rem;
	line-height: 1.2;
	content: "\201c";
	transform: translate(-50%, -50%) rotate(7deg);
	place-items: center;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-mission .mission__values > p {
	padding: 0.4rem 0.75rem;
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-mission .mission__text {
	margin-bottom: 1.2em;
	font-size: clamp(1.25rem, 2.4vw, 1.8rem) !important;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-mission .mission__content > h2 {
	margin-bottom: 0.7em;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-mission .mission__values {
	margin-block: 2rem;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-mission .wp-block-button__link {
	margin-block: 0;
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-mission .wp-block-button__link {
	background: var(--meet-white);
	color: var(--meet-navy);
}

:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-mission .wp-block-button__link:hover {
	background: var(--meet-gold);
	color: var(--meet-navy);
}

/* Dynamic featured cards already emit the parent's post-card contract. */

:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-featured .post-grid {
	width: min(100%, var(--meet-wide));
	max-width: var(--meet-wide);
	padding: 0;
	margin-inline: auto;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	body.meet-editor-front-page :is(.hero, .mission) .wp-block-button__link:hover::after {
		transform: translateX(0.2rem);
	}
}

@media (max-width: 900px) {
	:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-mission .mission__inner {
		grid-template-columns: minmax(14rem, 0.75fr) minmax(0, 1.25fr);
	}
}

@media (max-width: 640px) {
	:where(body.meet-editor-front-page, .editor-styles-wrapper) .focus-card.wp-block-group {
		min-height: 19rem;
	}

	:where(body.meet-editor-front-page, .editor-styles-wrapper) .focus-card .focus-card__body {
		padding-right: 5rem;
	}

	:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) .hero__inner {
		min-height: auto;
		padding-block: clamp(15rem, 68vw, 21rem) 1.5rem;
	}

	:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) > .wp-block-cover__image-background,
	:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) > .wp-block-cover__background {
		top: 0;
		bottom: auto;
		height: clamp(17rem, 72vw, 23rem);
	}

	:where(body.meet-editor-front-page, .editor-styles-wrapper) .wp-block-cover:is(.hero, .meet-block-hero) > .wp-block-cover__image-background {
		object-position: 62% center;
	}

	:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .hero__content {
		padding: clamp(1.35rem, 5vw, 2rem);
		background: rgba(7, 24, 55, 0.96);
		border: 1px solid rgba(255, 255, 255, 0.15);
		border-radius: var(--meet-radius);
		box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
	}

	:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .button-row > .wp-block-button:last-child {
		flex-basis: 100%;
	}

	:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .hero__principles {
		grid-template-columns: 1fr;
		padding-block: 0.5rem;
	}

	:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .hero__principles > p {
		min-height: 3.5rem;
		padding-inline: 0.5rem;
	}

	:where(body.meet-editor-front-page, .editor-styles-wrapper) .hero .hero__principles > p + p {
		border-top: 1px solid rgba(255, 255, 255, 0.3);
		border-left: 0;
	}

	:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-mission .mission__inner {
		grid-template-columns: 1fr;
	}

	:where(body.meet-editor-front-page, .editor-styles-wrapper) .meet-block-mission .mission__visual {
		min-height: 20rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.meet-editor-front-page .focus-card:has(.wp-block-button__link):hover,
	body.meet-editor-front-page .focus-card:has(.wp-block-button__link):hover .focus-card__media img,
	body.meet-editor-front-page :is(.hero, .mission) .wp-block-button__link:hover::after {
		transform: none !important;
	}
}
