/* Reusable supporter sections, shared by the front end and Gutenberg. */
/* stylelint-disable no-descending-specificity -- Disjoint opt-in sections. */
.emergency-supporter-composition {
	--supporter-space: var(--wp--preset--spacing--80, 6rem);
	--supporter-display: var(--emergency-type-title-display-xl);
	background: var(--wp--preset--color--white);
}

/* Full-width chrome must not include the vertical scrollbar in its bleed. */
body:has(.emergency-supporter-composition) .wp-site-blocks > .site-header {
	width: 100%;
	margin-inline: 0 !important;
}

body:has(.emergency-supporter-composition) .emergency-mega-menu__topbar::before,
body:has(.emergency-supporter-composition) .emergency-mega-menu__sticky::before,
body:has(.emergency-supporter-composition) .emergency-mega-menu__sticky::after,
body:has(.emergency-supporter-composition) .wp-block-emergency-footer::before {
	max-width: 100%;
}

body:has(.emergency-supporter-composition) .emergency-footer__bottom::before {
	width: calc(100% + (2 * var(--emergency-layout-margin)));
}

body:has(.emergency-supporter-composition)
.emergency-mega-menu__language-trigger .emergency-mega-menu__chevron {
	inset-inline-end: 4px;
	position: relative;
}

.wp-site-blocks
.wp-block-post-content > .emergency-supporter-composition.alignfull,
.editor-styles-wrapper
.is-root-container > .emergency-supporter-composition.alignfull {
	width: 100%;
	max-width: var(--emergency-layout-boxed-max-width);
	margin-inline: auto !important;
}

/* The template owns the gutter; the background adapter bleeds once. */
.wp-site-blocks
.wp-block-post-content > .emergency-supporter-composition.alignfull {
	width: calc(100% + (2 * var(--emergency-layout-margin)));
	margin-inline: calc(-1 * var(--emergency-layout-margin)) !important;
}

.wp-site-blocks .emergency-supporter-composition > .alignfull,
.editor-styles-wrapper .emergency-supporter-composition > .alignfull {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
}

:is(
.emergency-supporter-hero,
.emergency-supporter-intro,
.emergency-supporter-project,
.emergency-supporter-contact,
.emergency-supporter-links
)
* {
	box-sizing: border-box;
	min-width: 0;
}

:is(
.emergency-supporter-hero,
.emergency-supporter-intro,
.emergency-supporter-project,
.emergency-supporter-contact,
.emergency-supporter-links
)
:is(p, h1, h2, h3, figure, .wp-block-group, .wp-block-buttons) {
	margin-block: 0;
}

.emergency-supporter-hero {
	position: relative;
}

.emergency-supporter-hero__photo {
	position: relative;
	min-height: 47.0625rem;
	overflow: hidden;
	background: var(--wp--preset--color--black);
}

.emergency-supporter-hero__image {
	position: absolute;
	inset: 0;
}

.emergency-supporter-hero .emergency-supporter-hero__image img {
	position: absolute;
	width: 135.13%;
	height: 147.24%;
	max-width: none;
	left: -34.37%;
	top: -29.82%;
	object-fit: cover;
}

.emergency-supporter-hero__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(229deg, transparent 43%, rgba(0, 0, 0, 0.6) 98%);
	pointer-events: none;
}

.emergency-supporter-hero .emergency-supporter-hero__copy {
	position: absolute;
	z-index: 1;
	left: var(--emergency-layout-margin);
	bottom: 4.5rem;
	width: 45%;
	color: var(--wp--preset--color--white);
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.emergency-supporter-hero__copy h1 {
	font-size: var(--emergency-type-title-display-2xl);
	line-height: 0.75;
	letter-spacing: -0.01em;
	color: inherit;
}

.emergency-supporter-breadcrumb {
	font-size: var(--wp--custom--utopia--step-minus-2);
	font-weight: 500;
	line-height: 1.2;
}

.emergency-supporter-hero__description {
	border-left: 3px solid currentcolor;
	padding-left: 1rem;
	font-weight: 700;
	font-size: var(--wp--custom--utopia--step-0);
	line-height: 1.2;
}

.emergency-supporter-card {
	position: absolute;
	z-index: 2;
	width: 33.0556%;
	max-width: 29.75rem;
	right: var(--emergency-layout-margin);
	bottom: 5.1875rem;
	padding: 1.875rem 2rem 1.5rem;
	border: 1px solid var(--wp--preset--color--grey-300);
	border-radius: 1.5rem;
	background: var(--wp--preset--color--white);
	display: flex;
	flex-direction: column;
	gap: 2rem;
	text-align: center;
	font-size: var(--emergency-type-body-s);
	line-height: 1.5;
}

.emergency-supporter-card strong,
.emergency-supporter-contact strong {
	font-weight: 500;
}

.emergency-supporter-person {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	padding: 0.5rem;
	border-radius: 0.75rem;
}

.emergency-supporter-card .emergency-supporter-person {
	background: var(--wp--preset--color--muted);
}

.emergency-supporter-portrait {
	flex: 0 0 5.625rem;
	width: 5.625rem;
}

.emergency-supporter-portrait img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
}

.emergency-supporter-person__text {
	padding-left: 0.75rem;
	border-left: 1px solid var(--wp--preset--color--grey-300);
	text-align: left;
	font-size: var(--emergency-type-body-s);
	line-height: 1.5;
}

.emergency-supporter-person__text p:first-child {
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.emergency-supporter-person__text p:last-child {
	color: var(--wp--preset--color--grey-500);
}

:is(.emergency-supporter-card, .emergency-supporter-contact) .wp-block-buttons,
:is(.emergency-supporter-card, .emergency-supporter-contact) .wp-block-button {
	width: 100%;
}

.emergency-supporter-phone .wp-block-button__link {
	width: 100%;
	background: var(--wp--preset--color--red);
	color: var(--wp--preset--color--white);
	padding: 1.25rem 0.75rem;
	border-radius: 2px;
	font-size: var(--wp--custom--utopia--step-0);
	line-height: 1.2;
	font-weight: 700;
}

.emergency-supporter-phone .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: 24px;
	height: 24px;
	margin-right: 0.5rem;
	vertical-align: middle;
	background: url(../images/supporter/phone-red.svg) center no-repeat;
}

.emergency-supporter-email {
	font-size: var(--emergency-type-body-s);
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.emergency-supporter-email a {
	color: inherit;
	text-decoration: underline;
}

.emergency-supporter-card .emergency-supporter-email {
	margin-top: -0.875rem;
}

.emergency-supporter-intro {
	padding-block: 3.75rem var(--supporter-space, 6rem);
}

.emergency-supporter-intro__lead {
	max-width: 61.5rem;
	font-family: var(--wp--preset--font-family--serif-text);
	font-size: var(--emergency-type-title-serif-3xl);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.emergency-supporter-intro__row {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--emergency-layout-gutter);
	margin-top: 3.75rem !important;
}

.emergency-supporter-intro__row > .wp-block-image img {
	width: 100%;
	aspect-ratio: 863 / 548;
	object-fit: cover;
}

.emergency-supporter-intro__body {
	font-size: var(--emergency-type-body-s);
	line-height: 1.5;
	color: var(--wp--preset--color--grey-700);
}

.emergency-supporter-intro__body p + p {
	margin-top: 1.6875rem;
}

.emergency-supporter-title {
	padding-block: var(--supporter-space, 6rem) 3.5rem;
	text-align: center;
	border-bottom: 1px solid var(--wp--preset--color--grey-300);
}

.emergency-supporter-title h2 {
	font-size: var(--emergency-type-title-display-xl);
	line-height: 0.8;
	letter-spacing: -0.02em;
}

.emergency-supporter-project {
	padding: var(--supporter-space, 6rem) var(--emergency-layout-margin) 4rem;
}

.emergency-supporter-project__inner {
	width: 100%;
	max-width: var(--emergency-layout-max-width);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--emergency-layout-gutter);
	align-items: center;
}

.emergency-supporter-project__inner > .wp-block-image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.emergency-supporter-project__copy h3 {
	font-size: var(--emergency-type-title-display-l);
	line-height: 0.85;
	letter-spacing: -0.03em;
	margin-bottom: 2rem;
}

.emergency-supporter-project__copy p {
	font-size: var(--wp--custom--utopia--step-0);
	line-height: 1.5;
	max-width: var(--emergency-layout-content-width);
}

.emergency-supporter-project .emergency-supporter-project__copy a {
	color: var(--wp--preset--color--red);
	text-decoration: underline;
}

.emergency-section-composition.emergency-supporter-project--reverse {
	padding-top: 4rem;
	background: var(--wp--preset--color--muted);
}

.emergency-supporter-project--reverse .emergency-supporter-project__copy {
	grid-column: 1;
	grid-row: 1;
}

.emergency-supporter-project--reverse .wp-block-image {
	grid-column: 2;
	grid-row: 1;
}

.emergency-section-composition.emergency-supporter-contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--wp--preset--color--red);
	color: var(--wp--preset--color--white);
}

.emergency-supporter-contact__copy {
	width: 100%;
	margin: auto !important;
	padding: 4rem var(--emergency-layout-margin);
	display: flex;
	flex-direction: column;
	gap: 2rem;
	text-align: center;
	font-size: var(--emergency-type-body-s);
	line-height: 1.5;
}

.emergency-supporter-contact h2 {
	color: inherit;
	font-size: var(--emergency-type-title-display-xl);
	line-height: 0.8;
	letter-spacing: -0.02em;
}

.emergency-supporter-contact .emergency-supporter-portrait {
	width: 5rem;
	flex-basis: 5rem;
}

.emergency-supporter-contact .emergency-supporter-person__text p:last-child {
	color: inherit;
}

.emergency-supporter-contact > .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emergency-supporter-contact .emergency-supporter-phone .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.emergency-supporter-contact
.emergency-supporter-phone
.wp-block-button__link::before {
	background-image: url(../images/supporter/phone-black.svg);
}

.emergency-supporter-contact .emergency-supporter-email {
	margin-top: -0.875rem;
}

.emergency-section-composition.emergency-supporter-links {
	background: var(--wp--preset--color--muted);
	padding: var(--supporter-space, 6rem) var(--emergency-layout-margin);
	text-align: center;
}

.emergency-supporter-links > h2 {
	font-size: var(--emergency-type-title-display-l);
	line-height: 0.8;
	letter-spacing: -0.03em;
	margin-bottom: 4.75rem;
}

.emergency-supporter-links__row {
	max-width: var(--emergency-layout-max-width);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.emergency-supporter-links__card {
	padding: 2.5rem 1.25rem 1.25rem;
}

.emergency-supporter-links__card + .emergency-supporter-links__card {
	border-left: 1px solid var(--wp--preset--color--grey-300);
}

.emergency-supporter-links__card h3 {
	font-size: var(--wp--custom--utopia--step-2);
	line-height: 1.1;
	font-weight: 400;
}

.emergency-supporter-links__card p {
	margin-block: 1.25rem 1.875rem;
	font-size: var(--wp--custom--utopia--step-minus-2);
	line-height: 1.5;
}

.emergency-supporter-links__card .wp-block-buttons {
	justify-content: center;
}

.emergency-supporter-links__card .wp-block-button__link {
	font-size: var(--emergency-type-body-2xs);
	padding: 0.75rem 1rem;
}

@media (max-width: 63.999rem) {

	.emergency-supporter-composition {
		--supporter-space: 4rem;
	}

	.emergency-supporter-hero__photo {
		min-height: 40.375rem;
	}

	.emergency-supporter-hero .emergency-supporter-hero__image img {
		width: 272.39%;
		height: 100%;
		left: -107.75%;
		top: 0;
	}

	.emergency-supporter-hero .emergency-supporter-hero__copy {
		bottom: 8.5rem;
		width: calc(100% - (2 * var(--emergency-layout-margin)));
		gap: 0.875rem;
	}

	.emergency-supporter-hero__copy h1 {
		font-size: var(--emergency-type-title-display-m);
		line-height: 0.8;
		letter-spacing: -0.02em;
	}

	.emergency-supporter-breadcrumb {
		font-size: var(--emergency-type-body-xs);
	}

	.emergency-supporter-card {
		position: relative;
		right: auto;
		bottom: auto;
		width: calc(100% - (2 * var(--emergency-layout-margin)));
		max-width: none;
		margin: -6rem auto 0 !important;
		padding: 1.875rem 1rem 1.5rem;
		border-radius: 0;
	}

	.emergency-supporter-card .emergency-supporter-person {
		order: -1;
		background: none;
		padding: 0;
	}

	.emergency-supporter-card .emergency-supporter-person__text {
		display: none;
	}

	.emergency-supporter-card .emergency-supporter-portrait {
		width: 7.5rem;
		flex-basis: 7.5rem;
	}

	.emergency-supporter-intro {
		padding-block: 2.5rem 2.25rem;
	}

	.emergency-supporter-intro__lead {
		font-size: var(--wp--custom--utopia--step-3);
	}

	.emergency-supporter-intro__row {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		margin-top: 1.5rem !important;
	}

	.emergency-supporter-intro__body {
		grid-row: 1;
	}

	.emergency-supporter-intro__row > .wp-block-image img {
		aspect-ratio: 370 / 463;
		object-position: 54% center;
	}

	.emergency-supporter-title {
		padding-block: 2.5rem;
	}

	.emergency-supporter-title h2 {
		font-size: var(--emergency-type-title-display-m);
	}

	.emergency-supporter-project {
		padding-block: 4rem;
	}

	.emergency-supporter-project__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.emergency-supporter-project__inner > .wp-block-image img {
		aspect-ratio: 489 / 611;
	}

	.emergency-supporter-project__copy h3 {
		font-size: var(--emergency-type-title-display-l);
	}

	.emergency-supporter-project__copy p {
		max-width: none;
		font-size: var(--emergency-type-body-s);
	}

	.emergency-supporter-project--reverse .wp-block-image,
	.emergency-supporter-project--reverse .emergency-supporter-project__copy {
		grid-column: auto;
		grid-row: auto;
	}

	.emergency-section-composition.emergency-supporter-contact {
		grid-template-columns: 1fr;
	}

	.emergency-supporter-contact > .wp-block-image {
		display: none;
	}

	.emergency-supporter-contact__copy {
		padding: 4rem var(--emergency-layout-margin);
	}

	.emergency-supporter-contact h2 {
		font-size: var(--emergency-type-title-display-m);
	}

	.emergency-supporter-person {
		gap: 1rem;
	}

	.emergency-supporter-person__text {
		font-size: var(--emergency-type-body-s);
	}

	.emergency-supporter-links > h2 {
		font-size: var(--emergency-type-title-display-m);
		margin-bottom: 2.5rem;
	}

	.emergency-supporter-links__row {
		grid-template-columns: 1fr;
	}

	.emergency-supporter-links__card + .emergency-supporter-links__card {
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--grey-300);
	}
}

/* Override deep-layout defaults only for this opt-in composition. */
.wp-site-blocks
.emergency-page-shell:has(.emergency-supporter-composition) > .wp-block-post-content {
	width: 100%;
	max-width: none;
	margin-inline: 0 !important;
	padding-inline: 0 !important;
}

.emergency-supporter-composition > .emergency-supporter-hero.alignfull {
	margin-inline: 0 !important;
}


:is(
.emergency-supporter-hero,
.emergency-supporter-title,
.emergency-supporter-project,
.emergency-supporter-contact,
.emergency-supporter-links
)
:is(h1, h2, h3):not(.has-serif-font-family) {
	text-transform: uppercase;
}

/* Native groups expose their children through two editor-only wrappers. */
.editor-styles-wrapper
.emergency-supporter-composition
:is(.block-editor-inner-blocks, .block-editor-block-list__layout):not(
	.wp-block-group
) {
	display: contents;
}

.editor-styles-wrapper .emergency-supporter-composition .block-list-appender {
	position: absolute;
	bottom: 0;
	right: 0;
}

.editor-styles-wrapper
.emergency-supporter-hero__image
:is(.components-resizable-box__container, .block-editor-image__container) {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
}

@media (max-width: 63.999rem) {

	.emergency-supporter-intro__lead.has-title-serif-3xl-font-size {
		font-size: var(--emergency-type-title-serif-2xl) !important;
	}
}

/* Native Cover keeps the background replaceable from the block toolbar. */
.emergency-supporter-hero .wp-block-cover.emergency-supporter-hero__photo {
	height: 47.0625rem;
	min-height: 47.0625rem !important;
	padding: 0;
	color: var(--wp--preset--color--white);
}

.emergency-supporter-hero__photo .wp-block-cover__inner-container {
	position: static;
	width: 100%;
	max-width: none;
	z-index: 2;
}

.editor-styles-wrapper .emergency-supporter-hero .emergency-supporter-hero__copy {
	position: absolute !important;
	max-width: 45% !important;
	margin-inline: 0 !important;
}

@media (max-width: 63.999rem) {

	.emergency-supporter-hero .wp-block-cover.emergency-supporter-hero__photo {
		height: 40.375rem;
		min-height: 40.375rem !important;
	}

	.editor-styles-wrapper .emergency-supporter-hero .emergency-supporter-hero__copy {
		max-width: none !important;
	}
}

.editor-styles-wrapper .emergency-supporter-hero .emergency-supporter-card {
	position: absolute !important;
	left: auto !important;
	top: auto !important;
	right: var(--emergency-layout-margin);
	bottom: 5.1875rem;
	margin: 0 !important;
	max-width: min(33.0556%, 29.75rem) !important;
}

.emergency-supporter-hero__photo .wp-block-cover__image-background {
	width: 135.13%;
	height: 147.24%;
	max-width: none;
	left: -34.37%;
	top: -29.82%;
}

@media (max-width: 63.999rem) {

	.emergency-supporter-hero__photo .wp-block-cover__image-background {
		width: 272.39%;
		height: 100%;
		left: -107.75%;
		top: 0;
	}

	.editor-styles-wrapper .emergency-supporter-hero .emergency-supporter-card {
		position: relative !important;
		right: auto;
		bottom: auto;
		max-width: none !important;
		margin: -6rem auto 0 !important;
	}
}

.emergency-supporter-portrait--mobile {
	display: none;
}

@media (max-width: 63.999rem) {

	.emergency-supporter-portrait--desktop {
		display: none;
	}

	.emergency-supporter-portrait--mobile {
		display: block;
	}
}
