/* ==========================================================================
   RDA Campaign Landing Pages
   ========================================================================== */

.rda-lp {
	--lp-navy: #002553;
	--lp-navy-2: #213C73;
	--lp-ink: #110028;
	--lp-gold: #F5D094;
	--lp-gold-btn: linear-gradient(180deg, #FBE0B4 0%, #F5D094 53.37%, #E0B877 100%);
	--lp-gold-text: linear-gradient(180deg, #F4E6B9 0%, #E0AE50 100%);
	--lp-light: #E3ECFF;
	--lp-red: #D03630;
	--lp-stat-icon: #B6CEFF;
	--lp-card-icon: #97ACDA;

	--lp-font-head: 'Freeman', 'Impact', sans-serif;
	--lp-font-body: 'DM Sans', system-ui, sans-serif;

	--lp-container: 1240px;
	--lp-gutter: clamp(16px, 4vw, 40px);
	--lp-section-y: clamp(64px, 8vw, 110px);
	--lp-radius: 10px;
	--lp-radius-lg: 23px;

	margin: 0;
	background: #fff;
	color: var(--lp-ink);
	font-family: var(--lp-font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.rda-lp *,
.rda-lp *::before,
.rda-lp *::after { box-sizing: border-box; }

.rda-lp img,
.rda-lp video,
.rda-lp iframe { display: block; max-width: 100%; }
.rda-lp img { height: auto; }

.lp-main { overflow-x: clip; }

.lp-container {
	width: 100%;
	max-width: calc(var(--lp-container) + var(--lp-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--lp-gutter);
}

/* ---------- Typography ---------- */

.lp-h1,
.lp-h2,
.lp-h3,
.lp-hero__title,
.lp-hero__tagline,
.lp-media-text__highlight,
.lp-stats__value,
.lp-donate__amount span {
	font-family: var(--lp-font-head);
	font-weight: 400;
	margin: 0;
}

.lp-h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.2; }
.lp-h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.33; }
.lp-h3 { font-size: 24px; line-height: 32px; }

.lp-gold {
	color: var(--lp-gold);
	background: linear-gradient(180deg, #F4E6B9 0%, #E0AE50 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.lp-eyebrow {
	margin: 0;
	color: var(--lp-red);
	font-weight: 600;
	text-transform: uppercase;
}

.lp-lead { margin: 0; font-size: 18px; opacity: .75; }
.lp-muted { margin: 0; opacity: .75; }

.lp-richtext { opacity: .75; }
.lp-richtext > * { margin: 0; }
.lp-richtext > * + * { margin-top: 20px; }
.lp-richtext ul { list-style: none; padding: 0; display: grid; gap: 16px; }
.lp-richtext li { position: relative; padding-left: 30px; }
.lp-richtext li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 19px;
	background: var(--lp-gold);
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.lp-richtext a { color: var(--lp-navy); }

/* ---------- Buttons & links ---------- */

.lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	align-self: flex-start;
	padding: 10px 30px;
	border-radius: var(--lp-radius);
	background: var(--lp-gold-btn);
	color: var(--lp-navy);
	font: 600 18px/23px var(--lp-font-body);
	text-decoration: none;
	white-space: nowrap;
	transition: filter .2s, transform .2s, box-shadow .2s;
}
.lp-btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(224, 184, 119, .35); }
.lp-btn:focus-visible,
.lp-link:focus-visible,
.lp-donate__amount input:focus-visible + span,
.lp-video__play:focus-visible { outline: 3px solid var(--lp-navy-2); outline-offset: 3px; }
.lp-btn--sm { padding: 10px 30px; }

.lp-link {
	align-self: flex-start;
	color: var(--lp-navy);
	font-weight: 600;
	text-decoration: none;
}
.lp-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections & backgrounds ---------- */

.lp-block { position: relative; padding-block: var(--lp-section-y); }
.lp-bg--white { background: #fff; }
.lp-bg--light { background: var(--lp-light); }
.lp-bg--light-gradient { background: linear-gradient(180deg, rgba(227, 236, 255, 0) 0%, var(--lp-light) 100%); }
.lp-bg--navy { background: linear-gradient(180deg, var(--lp-navy) 0%, var(--lp-navy-2) 100%); color: #fff; }
/* Stars and lights are baked into the image */
.lp-bg--navy-lights { background: var(--lp-navy-2) url('../text-image-book-bg.png') center bottom / cover no-repeat; color: #fff; overflow: hidden; }
.lp-bg--navy .lp-h1,
.lp-bg--navy .lp-h2,
.lp-bg--navy-lights .lp-h1,
.lp-bg--navy-lights .lp-h2 { color: #fff; }
.lp-bg--navy .lp-link,
.lp-bg--navy .lp-richtext a,
.lp-bg--navy-lights .lp-link,
.lp-bg--navy-lights .lp-richtext a { color: var(--lp-gold); }

/* Same background in a row: don't double the spacing */
.lp-bg--white + .lp-bg--white,
.lp-bg--white + .lp-bg--light-gradient,
.lp-bg--light + .lp-bg--light,
.lp-bg--navy + .lp-bg--navy { padding-top: 0; }

.lp-icon-box {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 50px;
	height: 50px;
	border-radius: var(--lp-radius);
}
.lp-icon-box img { width: 30px; height: 30px; object-fit: contain; }
.lp-icon-box--stat { background: var(--lp-stat-icon); }
.lp-icon-box--card { background: var(--lp-card-icon); }

/* ---------- Sparkles ---------- */

.lp-spark { position: absolute; z-index: 0; max-width: none; pointer-events: none; }
.rda-lp .lp-spark--ideas-duo { top: 68px; right: max(16px, calc(50% - 670px)); }
.rda-lp .lp-spark--ideas-single { top: 185px; left: max(16px, calc(50% - 600px)); }
.rda-lp .lp-spark--need-help { top: 62%; left: calc(50% - 162px); }
.lp-media-text--media-left .lp-spark--need-help { left: calc(50% + 10px); }
.rda-lp .lp-spark--share-duo { top: 132px; left: calc(50% - 173px); }
.rda-lp .lp-spark--share-single { top: 61px; right: max(16px, calc(50% - 660px)); }
.rda-lp .lp-spark--thanks-duo { top: 100px; left: max(16px, calc(50% - 615px)); }
.rda-lp .lp-spark--thanks-single { top: 152px; right: max(16px, calc(50% - 622px)); }

/* ---------- Header ---------- */

.lp-header {
	position: relative;
	z-index: 10;
	padding-block: 24px;
	background: var(--lp-navy);
}
.lp-header--overlay { position: absolute; inset: 0 0 auto; background: none; padding-top: 35px; }
.lp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lp-header__logo img { height: 61px; width: auto; }
.lp-header__logo-text { color: #fff; font: 400 32px var(--lp-font-head); }
.lp-header__logo { text-decoration: none; }

/* ---------- Hero ---------- */

.lp-hero {
	min-height: max(576px, 100vw * var(--lp-hero-ratio, 0));
	padding-top: 184px;
	padding-bottom: 80px;
	background: var(--lp-navy);
	color: #fff;
	isolation: isolate;
}
.lp-hero__bg { position: absolute; inset: 0; z-index: -1; }
.lp-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--lp-hero-focus, center); }
.lp-hero__inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.lp-hero__content { max-width: 545px; display: flex; flex-direction: column; gap: 10px; }
.lp-hero__title { font-size: clamp(42px, 5vw, 64px); line-height: 1; padding-block: 10px; }
.lp-hero__subtitle { margin: 0; font-weight: 700; font-size: 18px; line-height: 23px; }
.lp-hero__text { margin: 0; font-size: 20px; line-height: 1.5; }
.lp-hero__checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, max-content);
	gap: 30px 85px;
	max-width: 640px;
}
.lp-hero__checklist li { display: flex; align-items: center; gap: 10px; line-height: 21px; }
.lp-hero__checklist svg { flex: none; }
.lp-hero__tagline { margin: 0; font-size: 24px; line-height: 32px; }

/* Hero — boxed */
.lp-hero--boxed { padding-top: calc(141px + var(--lp-hero-offset, 0px)); padding-bottom: 64px; }
.lp-hero--boxed .lp-hero__inner {
	max-width: 505px;
	padding: 40px;
	gap: 20px;
	background: var(--lp-hero-card, var(--lp-navy));
	-webkit-backdrop-filter: blur(var(--lp-hero-card-blur, 0));
	backdrop-filter: blur(var(--lp-hero-card-blur, 0));
	border-radius: 30px;
}
.lp-hero--boxed .lp-hero__content { gap: 20px; }
.lp-hero--boxed .lp-hero__checklist { grid-template-columns: 1fr; gap: 14px; }
/* Card position when the image makes the block taller than the card */
@media (min-width: 768px) {
	.lp-hero--boxed { display: flex; flex-direction: column; }
	.lp-hero--boxed > .lp-container { width: 100%; }
	.lp-hero--card-middle > .lp-container { margin-block: auto; }
	.lp-hero--card-bottom > .lp-container { margin-top: auto; }
}

/* Donate box overlaps the hero when placed right after it */
.lp-hero:has(+ .lp-donate) { padding-bottom: 222px; }
.lp-hero + .lp-donate { margin-top: -150px; padding-top: 0; background: transparent; z-index: 2; }

/* Laptops: the image is shorter here, so a compact card and a smaller overlap keep the block close to the image's height */
@media (min-width: 768px) and (max-width: 1599px) {
	.lp-hero--boxed { min-height: max(480px, 100vw * var(--lp-hero-ratio, 0)); padding-top: calc(110px + var(--lp-hero-offset, 0px) / 4); }
	.lp-hero--boxed .lp-hero__inner { max-width: 440px; padding: 32px; }
	.lp-hero--boxed .lp-hero__title { font-size: clamp(36px, 3.4vw, 54px); }
	.lp-hero:has(+ .lp-donate) { padding-bottom: 170px; }
	.lp-hero + .lp-donate { margin-top: -110px; }
}

/* ---------- Donate ---------- */

.lp-donate__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	padding: clamp(32px, 5vw, 75px) clamp(20px, 6vw, 100px);
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 16px 46px rgba(0, 0, 0, .15);
	text-align: center;
}
.lp-donate__head { display: grid; gap: 5px; }
.lp-donate__sub { margin: 0; font-size: 18px; }
.lp-donate__amounts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 25px;
	width: 100%;
}
.lp-donate__amount { position: relative; cursor: pointer; }
.lp-donate__amount input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lp-donate__amount span {
	display: grid;
	place-items: center;
	min-height: 84px;
	padding: 10px 20px;
	border-radius: var(--lp-radius);
	background: var(--lp-light);
	color: var(--lp-ink);
	font-size: 48px;
	line-height: 64px;
	transition: background-color .2s, transform .2s;
}
.lp-donate__amount:hover span { transform: translateY(-2px); }
.lp-donate__amount input:checked + span { background: var(--lp-gold); }

.lp-donate__other[hidden] { display: none; }
.lp-donate__other {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 20px;
	border: 2px solid var(--lp-gold);
	border-radius: var(--lp-radius);
	font: 400 32px var(--lp-font-head);
}
.lp-donate__other input {
	width: 160px;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	color: var(--lp-ink);
}
.lp-donate__footer { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.lp-donate__footer .lp-btn { align-self: center; }
.lp-donate__impact { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 18px; }
.lp-donate__impact span { opacity: .75; }
.lp-donate__icon { width: 30px; height: 30px; object-fit: contain; }

/* ---------- Media + Text ---------- */

.lp-media-text__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 609px);
	align-items: center;
	gap: clamp(40px, 8vw, 125px);
}
.lp-media-text--media-left .lp-media-text__inner { grid-template-columns: minmax(0, 609px) minmax(0, 1fr); }
.lp-media-text--media-left .lp-media-text__media { order: -1; }
.lp-media-text--media-right .lp-media-text__content { justify-self: center; }

.lp-media-text__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 502px;
	width: 100%;
}
.lp-media-text__content .lp-btn { margin-top: 10px; }
.lp-media-text__highlight { font-size: 24px; line-height: 32px; }

.lp-media-text__media > img,
.lp-video {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--lp-radius-lg);
}
.lp-media-text--landscape .lp-media-text__media > img,
.lp-media-text--landscape .lp-video { aspect-ratio: 4 / 3; }
.lp-media-text--portrait .lp-media-text__media > img,
.lp-media-text--portrait .lp-video { aspect-ratio: 4 / 5; }

.lp-media-text--natural .lp-media-text__media > img {
	aspect-ratio: auto;
	object-fit: contain;
	border-radius: 0;
	margin-block: -40px;
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .25));
}
.lp-media-text--natural .lp-video { aspect-ratio: 16 / 9; }

/* Cut-out on the lights background: text sets the height, the image is cropped by the section's bottom edge */
.lp-bg--navy-lights.lp-media-text--natural { padding-block: 0; }
.lp-bg--navy-lights.lp-media-text--natural .lp-media-text__inner {
	grid-template-columns: minmax(320px, 1fr) minmax(0, 601px);
	align-items: stretch;
	gap: 24px;
	min-height: 455px;
	padding-inline: calc(var(--lp-gutter) + min(85px, 5.9vw));
}
.lp-bg--navy-lights.lp-media-text--natural .lp-media-text__content {
	align-self: center;
	justify-self: start;
	max-width: 440px;
	padding-block: 60px;
}
.lp-bg--navy-lights.lp-media-text--natural .lp-richtext { max-width: 397px; }
.lp-bg--navy-lights.lp-media-text--natural .lp-media-text__media { position: relative; }
.lp-bg--navy-lights.lp-media-text--natural .lp-media-text__media > img {
	position: absolute;
	top: 32px;
	left: 0;
	margin: 0;
	filter: none;
}
.lp-media-text__inner { position: relative; }

.lp-video { position: relative; overflow: hidden; background: #D9D9D9; }
.lp-video__poster { width: 100%; height: 100%; object-fit: cover; }
.lp-video iframe,
.lp-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.lp-video__play {
	position: absolute;
	inset: 50% auto auto 50%;
	width: clamp(96px, 26%, 161px);
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--lp-gold);
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: transform .2s;
}
.lp-video__play svg { width: 42%; height: auto; margin-left: 6%; }
.lp-video__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.lp-video:fullscreen { border-radius: 0; background: #000; }
.lp-video:-webkit-full-screen { border-radius: 0; background: #000; }
.lp-video:fullscreen video { object-fit: contain; }
.lp-video:-webkit-full-screen video { object-fit: contain; }
.lp-video.is-playing .lp-video__play,
.lp-video.is-playing .lp-video__poster { display: none; }

/* ---------- Stats ---------- */

.lp-stats { padding-block: clamp(56px, 6vw, 76px); text-align: center; }
.lp-stats__title { margin-bottom: 30px; }
.lp-stats__grid {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	gap: 40px 20px;
	max-width: 1240px;
}
.lp-stats__item { display: flex; flex-direction: column; align-items: center; gap: 17px; }
.lp-stats__value {
	font-size: 48px;
	line-height: 1;
	background: var(--lp-gold-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--lp-gold);
}
.lp-stats__text { max-width: 224px; margin-top: -17px; }
.lp-bg--light .lp-stats__text,
.lp-bg--white .lp-stats__text { opacity: .75; }

/* ---------- Section head (stories) ---------- */

.lp-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 74px;
}
.lp-section-head__text { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.lp-section-head .lp-btn { margin-bottom: 8px; }

/* ---------- Stories ---------- */

.lp-stories { padding-block: 75px; }
.lp-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-story {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px;
	background: #fff;
	border-radius: var(--lp-radius);
}
.lp-story__image img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--lp-radius); }
.lp-story__panel { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.lp-story__body { display: flex; flex-direction: column; gap: 10px; }
.lp-story .lp-link { margin-top: auto; }

/* Centered head variant */
.lp-stories--head-center .lp-section-head { justify-content: center; text-align: center; margin-bottom: 50px; }
.lp-stories--head-center .lp-section-head__text { align-items: center; max-width: 1040px; }
.lp-stories--head-center .lp-section-head { flex-direction: column; align-items: center; }

/* Navy panel cards (fundraising ideas) */
.lp-stories--navy .lp-cards-grid { gap: 20px; }
.lp-stories--navy .lp-story {
	padding: 0;
	gap: 0;
	overflow: hidden;
	background: var(--lp-navy);
	color: #fff;
	min-height: 429px;
}
.lp-stories--navy .lp-story__image img { height: 260px; border-radius: 0; }
.lp-stories--navy .lp-story__panel { padding: 20px; }
.lp-stories--navy .lp-link { color: #fff; }
.lp-stories--navy .lp-h3 { color: #fff; }
.lp-stories .lp-container { position: relative; }

/* ---------- Centered head ---------- */

.lp-center-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	max-width: 630px;
	margin: 0 auto 50px;
	text-align: center;
}
.lp-center-head .lp-muted { margin-top: 15px; }

/* ---------- Icon columns ---------- */

.lp-icon-cols {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}
.lp-icon-cols__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 10px clamp(16px, 3vw, 40px) 30px;
	text-align: center;
}
.lp-icon-cols__item + .lp-icon-cols__item { border-left: 0.5px solid rgba(0, 37, 83, .5); }
.lp-icon-cols__item .lp-icon-box { margin-bottom: 20px; }
.lp-icon-cols__item .lp-muted { max-width: 300px; }
.lp-icon-cols__item .lp-link { align-self: center; }

.lp-icon-box--plain { width: 50px; height: 50px; }
.lp-icon-box--plain img { width: 50px; height: 50px; }
.lp-icon-columns--plain .lp-icon-cols__item { padding-block: 20px; }
.lp-icon-columns--plain .lp-icon-cols__item .lp-icon-box { margin-bottom: 20px; }
.lp-icon-columns--plain .lp-center-head .lp-muted { max-width: 860px; }
.lp-icon-columns--plain .lp-center-head { max-width: 960px; }

/* ---------- Share ---------- */

.lp-share__inner { position: relative; display: flex; flex-direction: column; gap: 50px; }
.lp-share__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 6vw, 84px);
}
.lp-share__top::before {
	content: '';
	grid-column: 2;
	grid-row: 1;
	align-self: stretch;
	background: var(--lp-navy);
}
.lp-share__top--single { grid-template-columns: minmax(0, 760px); }
.lp-share__top--single::before { display: none; }
.lp-share__content { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.lp-share__content .lp-h1 { max-width: 430px; }
.lp-share__content .lp-richtext { margin-top: 10px; font-size: 18px; }
.lp-share__quote {
	grid-column: 3;
	grid-row: 1;
	margin: 0;
	max-width: 534px;
	font: italic 400 clamp(26px, 2.8vw, 40px)/1.2 var(--lp-font-body);
	opacity: .75;
}
.lp-share__quote p { margin: 0; }

.lp-share__actions { display: flex; flex-direction: column; gap: 30px; }
.lp-share__composer { display: flex; flex-direction: column; gap: 10px; }
.lp-share__label { font-weight: 600; }
.lp-share__post {
	width: 100%;
	padding: 16px 20px;
	border: 1px solid rgba(0, 37, 83, .25);
	border-radius: var(--lp-radius);
	background: #fff;
	color: var(--lp-ink);
	font: 400 18px/1.5 var(--lp-font-body);
	resize: vertical;
}
.lp-share__post:focus-visible { outline: 3px solid var(--lp-navy-2); outline-offset: 2px; }
.lp-share__hint { margin: 0; min-height: 24px; font-weight: 600; color: var(--lp-navy); }

.lp-share__buttons { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 30px; }
.lp-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 70px;
	padding: 20px 30px;
	border: 2px solid var(--lp-navy);
	border-radius: 49px;
	background: var(--lp-navy);
	color: #fff;
	font: 600 16px/21px var(--lp-font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, transform .2s;
}
.lp-share-btn svg { flex: none; width: 30px; height: 30px; }
.lp-share-btn:hover { transform: translateY(-2px); background: var(--lp-navy-2); border-color: var(--lp-navy-2); }
.lp-share-btn--outline { background: transparent; color: var(--lp-navy); }
.lp-share-btn--outline:hover { background: var(--lp-navy); color: #fff; }
.lp-share-btn--outline svg circle { fill: var(--lp-navy); }
.lp-share-btn--outline:hover svg circle { fill: #fff; }
.lp-share-btn--outline:hover svg path[stroke="#fff"] { stroke: var(--lp-navy); }
.lp-share-btn:focus-visible { outline: 3px solid var(--lp-gold); outline-offset: 3px; }
.lp-share-btn.is-done { background: var(--lp-gold); border-color: var(--lp-gold); color: var(--lp-navy); }

/* ---------- Gift slider ---------- */

.lp-gift-slider__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 50px;
}
.lp-slider-nav { display: flex; gap: 19px; flex: none; }
.lp-slider-nav__btn {
	width: 43px;
	height: 43px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lp-gold);
	color: var(--lp-navy);
	font: 600 18px/1 var(--lp-font-body);
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.lp-slider-nav__btn:disabled { background: rgba(0, 37, 83, .15); color: rgba(0, 37, 83, .5); cursor: default; }
.lp-slider-nav__btn:focus-visible { outline: 3px solid var(--lp-navy-2); outline-offset: 3px; }
.lp-slider-nav[hidden] { display: none; }

.lp-gift-slider__viewport { position: relative; }
.lp-gift-slider__viewport::before,
.lp-gift-slider__viewport::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 1;
	width: max(var(--lp-gutter), calc((100vw - var(--lp-container)) / 2));
	pointer-events: none;
}
.lp-gift-slider__viewport::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.lp-gift-slider__viewport::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.lp-bg--light .lp-gift-slider__viewport::before { background: linear-gradient(90deg, var(--lp-light), rgba(227, 236, 255, 0)); }
.lp-bg--light .lp-gift-slider__viewport::after { background: linear-gradient(270deg, var(--lp-light), rgba(227, 236, 255, 0)); }

.lp-gift-slider__track {
	--pad: max(var(--lp-gutter), calc((100% - var(--lp-container)) / 2));
	list-style: none;
	margin: 0;
	padding: 0 var(--pad) 4px;
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--pad);
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.lp-gift-slider__track::-webkit-scrollbar { display: none; }
.lp-gift-slider__track:focus-visible { outline: 3px solid var(--lp-navy-2); outline-offset: -3px; }
.lp-gift-slider__footer { display: flex; justify-content: center; margin-top: 50px; }

.lp-gift {
	position: relative;
	flex: 0 0 min(400px, 80vw);
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px;
	background: #fff;
	border: 1px solid rgba(0, 37, 83, .1);
	border-radius: var(--lp-radius);
	scroll-snap-align: start;
}
.lp-gift__image img { width: 100%; height: 175px; object-fit: cover; border-radius: var(--lp-radius); }
.lp-gift__body { display: flex; flex-direction: column; gap: 10px; }
.lp-gift__amount { margin: 0; font: 400 48px/64px var(--lp-font-head); color: var(--lp-ink); }
.lp-gift__amount a { color: inherit; text-decoration: none; }
.lp-gift__amount a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.lp-gift:has(a:hover) { box-shadow: 0 10px 30px rgba(0, 37, 83, .1); }

/* ---------- Link cards ---------- */

.lp-link-cards__inner { display: flex; flex-direction: column; gap: 30px; max-width: calc(1070px + var(--lp-gutter) * 2); }
.lp-link-cards__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.lp-link-card {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 20px;
	background: #fff;
	border-radius: var(--lp-radius);
}
.lp-link-card__body { display: flex; flex-direction: column; gap: 10px; }
.lp-link-card .lp-link { margin-top: 0; }
/* Section label styled like the card titles */
.lp-link-cards .lp-eyebrow { color: var(--lp-ink); font: 400 24px/32px var(--lp-font-head); }

/* ---------- CTA banner ---------- */

.lp-cta-banner {
	min-height: 435px;
	padding-block: 70px;
	display: grid;
	align-items: center;
	background: linear-gradient(180deg, var(--lp-navy) 0%, var(--lp-navy-2) 100%);
	color: #fff;
	text-align: center;
	overflow: hidden;
	isolation: isolate;
}
.lp-cta-banner__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.lp-cta-banner .lp-h1 { max-width: 687px; color: #fff; }
.lp-cta-banner .lp-btn { align-self: center; }
.lp-cta-banner__logo img { height: 61px; width: auto; }
/* Trees, stars and glow are baked into the image */
.lp-cta-banner--navy.lp-cta-banner--decor { background: var(--lp-navy-2) url('../ctabgmain.png') center bottom / cover no-repeat; }

/* Light style */
.lp-cta-banner--light {
	min-height: 360px;
	background: linear-gradient(180deg, rgba(245, 208, 148, 0) 51.55%, rgba(245, 208, 148, .6) 100%), #fff;
	color: var(--lp-ink);
}
.lp-cta-banner--light .lp-h1 { max-width: 900px; color: var(--lp-ink); }


/* ---------- Form popup ---------- */

button.lp-btn { border: 0; cursor: pointer; }

html:has(.lp-modal[open]) { overflow: hidden; }

/* Closed dialogs keep their width (not display: none) so embedded forms lay out correctly */
.lp-modal {
	position: fixed;
	inset: 0;
	width: min(976px, 100vw - 32px);
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: clamp(24px, 4vw, 48px);
	border: 0;
	border-radius: 20px;
	background: #fff;
	color: var(--lp-ink);
	overflow: auto;
}
.lp-modal:not([open]) { display: block; visibility: hidden; pointer-events: none; }
/* Beacon sets visibility: visible on its iframe, which would show the form on the page while closed */
.lp-modal:not([open]) * { visibility: hidden !important; }
.lp-modal::backdrop { background: rgba(0, 37, 83, .7); }
.lp-modal__close {
	position: sticky;
	top: 0;
	z-index: 1;
	display: block;
	width: 44px;
	height: 44px;
	margin: -12px -12px 0 auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lp-light);
	color: var(--lp-navy);
	font: 400 28px/1 var(--lp-font-body);
	cursor: pointer;
}
.lp-modal__close:focus-visible { outline: 3px solid var(--lp-navy-2); outline-offset: 2px; }

/* Share popup (link cards) */
.lp-modal--share { width: min(720px, 100vw - 32px); }
.lp-modal--share .lp-modal__body { display: flex; flex-direction: column; gap: 24px; }
.lp-modal--share .lp-share__post { min-height: 260px; }
.lp-modal--share .lp-share__buttons { justify-content: flex-start; gap: 12px; }
.lp-modal--share .lp-share-btn { min-height: 52px; padding: 12px 22px; font-size: 16px; }
.lp-modal--share .lp-share-btn svg { width: 26px; height: 26px; }
button.lp-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }

/* ---------- Site-wide newsletter popup (Popup Builder) ----------
   Its content relies on Bootstrap and the theme's main.css, which these pages don't load. */

.rda-lp .popup { max-width: 550px; background-color: #018940; }
.rda-lp .popup .row { display: flex; flex-direction: column; align-items: center; margin: 0 !important; }
.rda-lp .popup .col-padding { width: 100%; padding-inline: 0 !important; }
.rda-lp .popup .img-popup img { width: 100%; height: 330px; object-fit: cover; }
.rda-lp .popup .popup-content { padding: 20px; text-align: center; }
.rda-lp .popup h3 { margin: 0 0 10px; color: #fff; font-size: 24px; font-weight: 500; line-height: 1.1; }
.rda-lp .popup p { margin: 0 0 10px; color: #fff; font-size: 14px; }
.rda-lp .popup .btn-popup a {
	display: inline-block;
	padding: 9px 25px;
	border: 2px solid transparent;
	border-radius: 5px;
	background: #fff;
	color: #2f80c8;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}
.rda-lp .popup .btn-popup a:hover { border-color: #fff; background: #2f80c8; color: #fff; }

@media (min-width: 768px) {
	.rda-lp .popup .row { flex-direction: row; }
	.rda-lp .popup .col-padding { flex: 0 0 50%; width: 50%; min-width: 0; }
	.rda-lp .popup .img-popup img { height: auto; }
}

/* Text on the left, image on the right, as on the rest of the site */
@media (min-width: 1200px) {
	.rda-lp .popup .col-lg-push-6 { order: 2; }
}

/* ---------- Misc ---------- */

.lp-empty { padding-block: 120px; text-align: center; }
.rda-lp .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Sparkles sit in the side gaps, which close up on narrower screens */
@media (max-width: 1200px) {
	.rda-lp .lp-spark--need-help,
	.rda-lp .lp-spark--share-duo { display: none; }
}

@media (max-width: 1100px) {
	.rda-lp .lp-spark { display: none; }

	/* The side sparkles are gone here, so the thank-you banner stacks one above and one below the text */
	.lp-cta-banner--light.lp-cta-banner--decor .lp-cta-banner__inner::before,
	.lp-cta-banner--light.lp-cta-banner--decor .lp-cta-banner__inner::after {
		content: '';
		width: 56px;
		height: 56px;
		background: url('../single-spark-thankyou.svg') center / contain no-repeat;
	}
}

@media (max-width: 1100px) {
	.lp-hero__checklist { gap: 20px 40px; }
	.lp-stats__grid { grid-template-columns: repeat(min(var(--cols, 4), 2), minmax(0, 1fr)); }
	.lp-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
	.lp-icon-cols { grid-template-columns: repeat(min(var(--cols, 3), 3), minmax(0, 1fr)); row-gap: 20px; }
	.lp-icon-cols__item:nth-child(3n + 1) { border-left: 0; }
	.lp-share__buttons { justify-content: flex-start; }
}

@media (max-width: 900px) {
	.lp-share__top { grid-template-columns: 1fr; }
	.lp-share__top::before { display: none; }
	.lp-share__quote { grid-column: 1; grid-row: 2; padding-left: 24px; border-left: 2px solid var(--lp-navy); }

	.lp-icon-cols { grid-template-columns: 1fr; row-gap: 0; max-width: 420px; margin-inline: auto; }
	/* Same gap above and below each divider, and between the intro and the first column */
	.lp-icon-columns { padding-bottom: 30px; }
	.lp-icon-columns .lp-center-head { margin-bottom: 30px; }
	.lp-icon-columns .lp-icon-cols__item { padding-block: 30px; }
	.lp-icon-columns .lp-icon-cols__item:first-child { padding-top: 0; }
	.lp-icon-columns .lp-icon-cols__item:last-child { padding-bottom: 0; }
	.lp-icon-cols__item + .lp-icon-cols__item { border-left: 0; border-top: 0.5px solid rgba(0, 37, 83, .5); }
	.lp-gift-slider__head { flex-direction: column; align-items: flex-start; }
	.lp-media-text--natural .lp-media-text__media > img { margin-block: 0; max-width: 480px; margin-inline: auto; }
	.lp-bg--navy-lights.lp-media-text--natural .lp-media-text__inner { grid-template-columns: 1fr; min-height: 0; padding-inline: var(--lp-gutter); }
	.lp-bg--navy-lights.lp-media-text--natural .lp-media-text__content { max-width: none; padding-block: 56px 32px; }
	.lp-bg--navy-lights.lp-media-text--natural .lp-richtext { max-width: none; }
	.lp-bg--navy-lights.lp-media-text--natural .lp-media-text__media { order: 1; height: 320px; overflow: hidden; }
	.lp-bg--navy-lights.lp-media-text--natural .lp-media-text__media > img { position: static; margin-inline: auto; }

	.lp-media-text__inner,
	.lp-media-text--media-left .lp-media-text__inner { grid-template-columns: 1fr; }
	.lp-media-text__media { order: -1; }
	.lp-media-text__content { max-width: none; justify-self: stretch !important; }

	.lp-section-head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
	.lp-donate__amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 767px) {
	.lp-header { padding-block: 16px; }
	.lp-header--overlay { padding-top: 20px; }
	.lp-header__logo img { height: 44px; }

	.lp-hero { min-height: 0; padding-top: 120px; }
	.lp-hero__bg img { object-position: var(--lp-hero-focus, 70% center); }
	/* The image's baked-in gradient gets cropped on phones, so the text needs its own overlay */
	.lp-hero--split .lp-hero__bg::after {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(0, 37, 83, .35) 0%, rgba(0, 37, 83, .85) 45%, var(--lp-navy) 75%);
	}
	.lp-hero__text { font-size: 18px; }
	.lp-hero__checklist { grid-template-columns: 1fr; gap: 14px; }
	/* The card moves out of the photo and sits below it */
	.lp-hero--boxed { min-height: 0; padding-block: 0; background: #fff; }
	.lp-hero--boxed .lp-hero__bg { position: relative; inset: auto; z-index: auto; height: clamp(280px, 80vw, 480px); }
	.lp-hero--boxed .lp-hero__inner { margin-top: var(--lp-gutter); padding: 28px 24px; border-radius: 20px; background: var(--lp-hero-card-solid, var(--lp-navy)); backdrop-filter: none; }
	.lp-stories--navy .lp-story { min-height: 0; }
	.lp-stories--navy .lp-story__image img { height: 220px; }
	.lp-gift__amount { font-size: 40px; line-height: 52px; }
	.lp-hero:has(+ .lp-donate) { padding-bottom: 160px; }
	.lp-hero + .lp-donate { margin-top: -100px; }

	.lp-donate__amount span { min-height: 64px; font-size: 32px; line-height: 1; }
	.lp-donate__impact { font-size: 16px; text-align: left; }

	.lp-stats__grid { grid-template-columns: 1fr; }
	.lp-cards-grid { grid-template-columns: 1fr; }
	.lp-stories { padding-block: 56px; }

	.lp-link-card { flex-direction: column; }
	.lp-share__buttons { display: grid; grid-template-columns: 1fr; gap: 12px; }
	.lp-share-btn { min-height: 56px; padding: 14px 24px; }

	.lp-cta-banner { min-height: 420px; }
}

@media (max-width: 420px) {
	.lp-donate__amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lp-btn { white-space: normal; text-align: center; }
}
