/**
 * Donate Now — the page every Donate button leads to.
 *
 * A photograph of the work behind the title, three steps saying how giving
 * works, then every appeal as an add-to-cart card (donation.css), with chips to
 * narrow them by kind. Prefixed dn-, built on the Our Work kit.
 */

.dn {
	--dn-ink: #1f1633;
	--dn-purple: #50155b;
	--dn-deep: #2a0a44;
	--dn-red: #d90429;
	--dn-gold: #f2c14e;
}



/* =========================================================
   HERO — the photograph, darkened on the side the words are on
   ========================================================= */
.dn-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(40px, 5vw, 70px) 0 clamp(96px, 9vw, 130px);
	background:
		linear-gradient(90deg, rgba(42, 10, 68, 0.94) 0%, rgba(67, 19, 107, 0.82) 42%, rgba(67, 19, 107, 0.25) 78%, rgba(67, 19, 107, 0.1) 100%),
		var(--dn-photo) center 38% / cover no-repeat,
		var(--dn-deep);
	color: #ffffff;
}

.dn-crumbs a,
.dn-crumbs span,
.dn-crumbs i { color: rgba(255, 255, 255, 0.78); }
.dn-crumbs span[aria-current] { color: #ffffff; }
.dn-crumbs a:hover { color: #ffffff; }

.dn-hero__copy { max-width: 780px; margin-top: 18px; }

.dn-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 15px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 40px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.dn-eyebrow i { color: #ff8fb1; }

.dn-hero__title {
	margin: 16px 0 14px;
	color: #ffffff;
	font-size: clamp(38px, 5vw, 64px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.5px;
}

.dn .dn-hero__lead {
	max-width: 620px;
	margin: 0 0 26px;
	color: rgba(255, 255, 255, 0.86);
	font-size: clamp(16px, 1.3vw, 18.5px);
	line-height: 1.7;
}

.dn-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dn-trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	color: #ffffff;
	font-size: 13.5px;
	font-weight: 600;
}

.dn-trust i { color: var(--dn-gold); }
.dn .dn-trust a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   STEPS — overlapping the hero's lower edge
   ========================================================= */
.dn-steps { position: relative; z-index: 2; margin-top: -58px; }

.dn-steps__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	overflow: hidden;
	list-style: none;
	border: 1px solid var(--ow-line);
	border-radius: 22px;
	background: #ffffff;
	box-shadow: var(--ow-shadow);
}

.dn-steps__list li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 24px;
	color: var(--ow-body);
	font-size: 14px;
	line-height: 1.5;
}

.dn-steps__list li + li { border-left: 1px solid var(--ow-line); }
.dn-steps__list b { display: block; color: var(--dn-ink); font-size: 16px; }

.dn-steps__num {
	display: grid;
	flex: 0 0 44px;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--dn-purple), #8b3fc9);
	color: #ffffff;
	font-size: 18px;
	font-weight: 800;
}

.dn-steps__list li:last-child .dn-steps__num { background: linear-gradient(135deg, #e0112f, #b8001f); }

/* =========================================================
   THE APPEALS
   ========================================================= */
.dn-list { padding: 56px 0 30px; }

.dn-list__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 26px;
}

.dn-list__head .ow-h2 { margin-bottom: 4px; }
.dn .dn-list__count { margin: 0; color: var(--ow-muted); font-size: 15px; }
.dn-list__count span { color: var(--dn-purple); font-weight: 800; }

.dn-filter { display: flex; flex-wrap: wrap; gap: 8px; }

.dn-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border: 1.5px solid var(--ow-line);
	border-radius: 40px;
	background: #ffffff;
	color: var(--dn-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.dn-chip i { color: var(--dn-purple); }
.dn-chip span { padding: 1px 8px; border-radius: 20px; background: var(--ow-tint); color: var(--ow-muted); font-size: 12px; }
.dn-chip:hover { border-color: var(--dn-purple); color: var(--dn-purple); }
.dn-chip.is-active { border-color: var(--dn-purple); background: var(--dn-purple); color: #ffffff; }
.dn-chip.is-active i { color: #ffffff; }
.dn-chip.is-active span { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.dn-chip:focus-visible { outline: 3px solid rgba(80, 21, 91, 0.3); outline-offset: 2px; }

/* A card leaving or joining the grid as the filter changes. */
.dn .fpkd-cause { transition: opacity 0.3s ease, transform 0.3s ease; }
.dn .fpkd-cause.is-leaving { opacity: 0; transform: scale(0.97); }
.dn .fpkd-cause[hidden] { display: none; }

/* =========================================================
   HELP
   ========================================================= */
.dn-help { padding: 30px 0 70px; }

.dn-help__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px 30px;
	align-items: center;
	padding: clamp(24px, 3vw, 36px);
	border-radius: 24px;
	background: linear-gradient(135deg, #2a0a44 0%, #50155b 60%, #6b2596 100%);
	color: #ffffff;
}

.dn-help__text h2 { margin: 0 0 6px; color: #ffffff; font-size: clamp(21px, 2.2vw, 26px); font-weight: 800; }
.dn .dn-help__text p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 15.5px; }

.dn-help__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.dn .dn-help__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	border-radius: 40px;
	color: #ffffff;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dn .dn-help__link:hover { border-color: #ffffff; background: #ffffff; color: var(--dn-purple); }

.dn .dn-help__small { grid-column: 1 / -1; margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 13.5px; }
.dn .dn-help__small a { color: #ffffff; }

/* =========================================================
   NARROWER SCREENS
   ========================================================= */
@media (max-width: 991.98px) {
	.dn-steps__list { grid-template-columns: minmax(0, 1fr); }
	.dn-steps__list li + li { border-top: 1px solid var(--ow-line); border-left: 0; }
	.dn-help__card { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
	.dn-hero {
		background:
			linear-gradient(180deg, rgba(42, 10, 68, 0.9) 0%, rgba(67, 19, 107, 0.86) 100%),
			var(--dn-photo) 60% center / cover no-repeat,
			var(--dn-deep);
	}

	.dn-trust li { width: 100%; }
	.dn-steps__list li { padding: 16px 18px; }
	.dn-filter { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.dn .fpkd-cause { transition: none; }
}
