/** Illustrated giving cards and page-scoped variations of existing sections. */
.mc-giving-methods {
	padding: 112px 0 80px;
	background: #fff;
}

.mc-giving-methods__header {
	max-width: 768px;
	margin: 0 auto 80px;
	text-align: center;
}

.mc-giving-methods__title {
	margin: 0 0 24px;
	color: var(--mc-color-pink-l1, #f8485e);
	font-family: var(--mc-font-heading, sans-serif);
	font-size: var(--mc-type-h1);
	font-weight: 600;
	line-height: 1.15;
	text-transform: uppercase;
}

.mc-giving-methods__description p {
	margin: 0;
	font-size: var(--text-size-medium);
	line-height: 1.5;
}

.mc-giving-methods__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 608px));
	justify-content: center;
	align-items: center;
	column-gap: 50px;
	row-gap: 80px;
}

.mc-giving-methods__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
	text-align: center;
	min-width: 0;
}

/* Illustration boxes follow the Figma frames (desktop); order matches the design cards. */
.mc-giving-methods__artwork {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 232px;
	height: 276px;
	max-width: 100%;
}

.mc-giving-methods__card:nth-child(2) .mc-giving-methods__artwork { width: 209px; height: 262px; }
.mc-giving-methods__card:nth-child(3) .mc-giving-methods__artwork { width: 388px; height: 275px; }
.mc-giving-methods__card:nth-child(4) .mc-giving-methods__artwork { width: 298px; height: 270px; }
.mc-giving-methods__card:nth-child(5) .mc-giving-methods__artwork { width: 402px; height: 255px; }

.mc-giving-methods__artwork img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin-inline: auto;
}

.mc-giving-methods__card-title {
	margin: 0;
	color: var(--mc-color-pink-l1, #f8485e);
	font-family: var(--mc-font-heading, sans-serif);
	font-size: var(--mc-type-h3, 40px);
	font-weight: 600;
	line-height: 1.2;
}

.mc-giving-methods__card-description {
	max-width: 608px;
	margin: 0;
}

.mc-giving-methods__link {
	margin-top: auto;
}

.mc-giving-methods .mc-giving-methods__card-title,
.mc-giving-methods .mc-giving-methods__card-description {
	text-align: center;
	width: 100%;
}

.mc-giving-methods__dialog {
	box-sizing: border-box;
	width: min(918px, calc(100% - 40px));
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 75px;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: var(--mc-color-text, #070409);
	text-align: center;
	overflow-y: auto;
}

.mc-giving-methods__dialog::backdrop {
	background: rgba(0, 0, 0, 0.2);
}

.mc-giving-methods__dialog:not([open]) {
	display: none;
}

.mc-giving-methods__close {
	position: absolute;
	top: 61px;
	left: 61px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #070409;
	cursor: pointer;
}

.mc-giving-methods .mc-giving-methods__close svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* The global button:hover turns the label white and fades it: keep the X visible. */
.mc-giving-methods .mc-giving-methods__close:hover,
.mc-giving-methods .mc-giving-methods__close:focus-visible {
	background: transparent;
	color: #070409;
	opacity: 1;
}

/* Illustration shows at its natural (design) size, never stretched. */
.mc-giving-methods__popup-image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 26px auto 10px;
}

.mc-giving-methods__dialog .mc-giving-methods__card-title {
	margin: 0 0 10px;
}

.mc-giving-methods__popup-content,
.mc-giving-methods__popup-content p {
	max-width: 550px;
	margin-inline: auto;
	font-family: var(--mc-font-body, sans-serif);
	font-size: var(--mc-type-regular);
	line-height: 1.5;
	text-align: center;
}

.mc-giving-methods__popup-content p {
	margin-block: 0;
}

.mc-giving-methods button:focus-visible {
	outline: 3px solid #070409;
	outline-offset: 4px;
}

.mc-giving-methods a:focus-visible,
.mc-banner-donation--shared-form button:focus-visible,
.mc-banner-donation--shared-form input:focus-visible {
	outline: 3px solid #070409;
	outline-offset: 4px;
}

/* The tax notice uses the existing Highlight Banner with stacked copy. */
.mc-highlight-banner.mc-giving-tax {
	padding: 0 0 112px;
	background: #fff;
}

.mc-giving-tax .mc-highlight-banner__card {
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	padding: 32px 44px;
}

.mc-giving-tax .mc-highlight-banner__title-col,
.mc-giving-tax .mc-highlight-banner__content-col {
	flex: none;
	max-width: 816px;
	width: 100%;
}

.mc-giving-tax .mc-highlight-banner__content-col,
.mc-giving-tax .mc-highlight-banner__content-col p {
	font-size: var(--text-size-medium);
	line-height: 1.5;
}

/* Decorative sweep behind the reused FAQ, outside its reading order. */
.mc-faq.mc-giving-faq {
	background: #fff url('../../assets/images/wtg-faq-bkg.svg') right bottom / auto 100% no-repeat;
}

.mc-giving-faq .mc-faq__header {
	margin-bottom: 80px;
}

.mc-cta.mc-giving-contact,
.mc-cta__section.mc-giving-contact {
	padding: 112px 0;
}

@media (max-width: 991px) {
	.mc-giving-methods {
		padding: 72px 0;
	}

	.mc-giving-methods__grid {
		column-gap: 32px;
		row-gap: 64px;
	}
}

@media (max-width: 767px) {
	.mc-giving-methods {
		padding: 64px 0;
	}

	.mc-giving-methods__header {
		margin-bottom: 48px;
	}

	.mc-giving-methods__title {
		font-size: 40px;
		text-transform: capitalize;
	}

	.mc-giving-methods__description p {
		font-size: var(--mc-type-regular-mobile-compact);
	}

	.mc-giving-methods__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 48px;
	}

	.mc-giving-methods__card {
		gap: 20px;
	}

	/* Mobile illustration boxes from the Figma mobile frame. */
	.mc-giving-methods__artwork { width: 123px; height: 124px; }
	.mc-giving-methods__card:nth-child(2) .mc-giving-methods__artwork { width: 123px; height: 154px; }
	.mc-giving-methods__card:nth-child(3) .mc-giving-methods__artwork { width: 159px; height: 100px; }
	.mc-giving-methods__card:nth-child(4) .mc-giving-methods__artwork { width: 135px; height: 122px; }
	.mc-giving-methods__card:nth-child(5) .mc-giving-methods__artwork { width: 155px; height: 98px; }

	.mc-giving-methods__card-title {
		font-size: 32px;
	}

	.mc-giving-methods__card-description {
		font-size: var(--mc-type-regular-mobile-compact);
	}

	.mc-giving-methods .mc-giving-methods__link {
		font-size: var(--mc-type-regular-medium-mobile-compact);
	}

	.mc-giving-methods__dialog {
		padding: 75px 32px;
	}

	.mc-giving-methods__close {
		left: 18px;
	}

	.mc-giving-methods__popup-content,
	.mc-giving-methods__popup-content p {
		font-size: var(--mc-type-regular-mobile-compact);
	}

	.mc-highlight-banner.mc-giving-tax {
		padding-bottom: 56px;
	}

	.mc-giving-tax .mc-highlight-banner__card {
		padding: 32px 24px;
	}

	.mc-giving-tax .mc-highlight-banner__content-col,
	.mc-giving-tax .mc-highlight-banner__content-col p {
		font-size: var(--mc-type-regular-mobile-compact);
	}

	.mc-cta.mc-giving-contact,
	.mc-cta__section.mc-giving-contact {
		padding: 64px 0;
	}
}
