/* Fundraiser page. Inherits the theme's fonts and sits inside the theme's own
   content width, so it reads as part of the site. The accent (--ct-accent) is
   set inline from the charity's brand setting; the fallback here is the neutral
   green, so the page is never unstyled. Two columns on desktop (story left,
   sticky action card right), stacked on mobile with the card first. */
.ct-fundraiser {
	--ct-accent: #1a7f37;
	--ct-ink: #1a1a1a;
	--ct-muted: #5b6169;
	--ct-line: #e6e2da;
	--ct-surface: #ffffff;
	font-family: inherit;
	color: inherit;
	max-width: 1040px;
	margin-inline: auto;
}
.ct-fundraiser * { box-sizing: border-box; }

/* Cover: a controlled banner, not a full-bleed wall. */
.ct-fr-cover { margin: 0 0 24px; }
.ct-fr-cover-img {
	width: 100%;
	max-height: 380px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}
@media (max-width: 600px) {
	.ct-fr-cover-img { max-height: 220px; }
}

.ct-fr-header { margin: 0 0 24px; }
.ct-fr-title { margin: 0 0 6px; line-height: 1.15; }

.ct-fr-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}
@media (min-width: 900px) {
	.ct-fr-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
}

.ct-fr-by {
	font-size: 0.95em;
	font-weight: 600;
	color: var(--ct-muted);
	margin: 0 0 12px;
}
.ct-fr-story { margin-bottom: 8px; }

/* Action card: progress + donate + share. Sticky on desktop so Donate stays
   in reach as the story scrolls; static on mobile where it sits up top. */
.ct-fr-card {
	border: 1px solid var(--ct-line);
	border-radius: 14px;
	padding: 22px;
	background: var(--ct-surface);
}
@media (min-width: 900px) {
	.ct-fr-side { position: sticky; top: 24px; }
	/* On desktop the card leads with progress, so move it above the story
	   visually by ordering the grid; the aside is the second column already. */
}
/* On mobile, show the action card before the story. */
@media (max-width: 899px) {
	.ct-fr-side { order: -1; }
}

.ct-fr-card .ct-progress { max-width: none; margin-bottom: 16px; }

.ct-fr-donate {
	display: block;
	text-align: center;
	background: var(--ct-accent);
	color: #fff;
	font-weight: 700;
	font-size: 1.05em;
	padding: 13px 18px;
	border-radius: 10px;
	text-decoration: none;
	transition: filter 0.15s ease;
}
.ct-fr-donate:hover,
.ct-fr-donate:focus { filter: brightness(0.92); color: #fff; }

/* Share block: a persuasive prompt with round brand icons and a copy-link
   field, the treatment fundraiser platforms use because sharing drives most
   of the giving. */
.ct-fr-share {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--ct-line);
}
.ct-fr-share-head { font-weight: 700; margin: 0 0 4px; }
.ct-fr-share-sub { font-size: 0.82em; color: var(--ct-muted); margin: 0 0 12px; line-height: 1.4; }
.ct-fr-share-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ct-fr-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: transform 0.12s ease, filter 0.12s ease;
}
.ct-fr-icon:hover,
.ct-fr-icon:focus { filter: brightness(0.92); transform: translateY(-1px); }
.ct-fr-icon svg { width: 20px; height: 20px; fill: #fff; display: block; }
.ct-fr-icon.is-whatsapp { background: #25d366; }
.ct-fr-icon.is-facebook { background: #1877f2; }
.ct-fr-icon.is-x { background: #000; }
.ct-fr-icon.is-linkedin { background: #0a66c2; }
.ct-fr-icon.is-email { background: var(--ct-accent); }

.ct-fr-copy { display: flex; gap: 6px; }
.ct-fr-copy-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 1px solid var(--ct-line);
	border-radius: 8px;
	padding: 9px 10px;
	font: inherit;
	font-size: 0.78em;
	color: var(--ct-muted);
	background: #fff;
}
.ct-fr-copy-btn {
	flex: 0 0 auto;
	border: 1px solid var(--ct-line);
	background: #fff;
	color: var(--ct-ink);
	font: inherit;
	font-size: 0.8em;
	font-weight: 600;
	padding: 9px 12px;
	border-radius: 8px;
	cursor: pointer;
}
.ct-fr-copy-btn:hover,
.ct-fr-copy-btn:focus { border-color: var(--ct-accent); }
.ct-fr-copy-btn.is-copied { border-color: var(--ct-accent); color: var(--ct-accent); }

/* Donor wall: recent supporters. Seeing others give drives giving. */
.ct-fr-wall {
	margin-top: 28px;
	border-top: 1px solid var(--ct-line);
	padding-top: 20px;
}
.ct-fr-wall-title { font-size: 1.1em; margin: 0 0 12px; }
.ct-fr-wall-list { list-style: none; margin: 0; padding: 0; }
.ct-fr-wall-list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--ct-line);
}
.ct-fr-wall-list li:last-child { border-bottom: 0; }
.ct-fr-wall-name { font-weight: 600; }
.ct-fr-wall-amount { color: var(--ct-muted); font-variant-numeric: tabular-nums; }

.ct-fr-give {
	margin-top: 36px;
	border-top: 1px solid var(--ct-line);
	padding-top: 24px;
	scroll-margin-top: 20px;
}
.ct-fr-give-title { margin: 0 0 16px; }
