/* ==========================================================================
   Year-End / Giving Tuesday campaign
   Tokens map the Figma values to the site's existing palette (theme.json)
   and fonts (Typekit: artigo = serif, apparat = sans).
   ========================================================================== */

:root {
	--sc-teal: #006581;        /* theme "teal" */
	--sc-teal-dark: #00546b;
	--sc-coral: #F06B6B;       /* theme "salmon" */
	--sc-coral-dark: #e05555;
	--sc-yellow: #FFCB6F;      /* theme "creamsicle" */
	--sc-orange: #F49420;      /* close to theme "tangerine" #F6941F */
	--sc-ink: #393939;         /* theme "black" */
	--sc-muted: #5f6b70;
	--sc-line: #d9e3e6;
	--sc-sky: #84CDDF;         /* theme "paleblue" */
	--sc-sky-soft: #e6f4f8;
	--sc-sel-fill: #AEDBC8;
	--sc-sel-border: #3F8F6E;
	--sc-sel-text: #0E3B2A;
	--sc-unsel: #7A8E94;
	--sc-green: #3F8F6E;
	--sc-shadow: 0 18px 44px rgba(0, 50, 70, 0.18);
	--sc-serif: "artigo", "Bitter", Georgia, serif;
	--sc-sans: "apparat", "Nunito Sans", Arial, sans-serif;
	--sc-bottom-bar: 0px;
}

.sc-block {
	font-family: var(--sc-sans);
	color: var(--sc-ink);
	position: relative;
}

.sc-block *,
.sc-block *::before,
.sc-block *::after,
.sc-popup,
.sc-popup * {
	box-sizing: border-box;
}

.sc-shell {
	max-width: 1212px;
	margin: 0 auto;
	padding: 0 16px;
}

.sc-block p {
	margin: 0;
}

.sc-icon {
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	vertical-align: -0.125em;
}

/* ---------- Type ---------- */
.sc-display {
	font-family: var(--sc-serif);
	font-weight: 200;
	font-size: clamp(36px, 4.4vw, 54px);
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 20px !important;
	color: inherit;
	text-transform: none;
}

.sc-h2 {
	font-family: var(--sc-serif);
	font-weight: 200;
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.18;
	margin: 0 0 24px;
	color: inherit;
	text-transform: none;
}

.sc-eyebrow {
	font-family: var(--sc-sans);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--sc-teal);
	margin: 0 0 10px !important;
}

.sc-quote {
	font-family: var(--sc-serif);
	font-style: italic;
	font-weight: 200;
	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.35;
	color: var(--sc-teal);
	margin: 0 0 16px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important; /* theme blockquotes add a crane graphic */
	quotes: none;
	text-align: left;
}

.sc-quote::before,
.sc-quote::after {
	content: none;
}

.sc-quote--sm {
	font-size: clamp(19px, 1.8vw, 23px);
}

.sc-attribution {
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 14px !important;
}

.sc-coral { color: var(--sc-coral); }
.sc-text--teal { color: var(--sc-teal); }
.sc-text--orange { color: var(--sc-orange); }
.sc-text--green { color: var(--sc-green); }

.sc-highlight {
	color: var(--sc-yellow);
}

/* ---------- Buttons ---------- */
.sc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 26px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--sc-sans);
	font-weight: 800;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.sc-btn:focus-visible,
.sc-toggle__option input:focus-visible + span,
.sc-amounts__option input:focus-visible + span,
.sc-popup__close:focus-visible,
.sc-give-dialog__close:focus-visible {
	outline: 3px solid var(--sc-teal);
	outline-offset: 3px;
}

.sc-btn--coral { background: var(--sc-coral); color: #fff !important; }
.sc-btn--coral:hover { background: var(--sc-coral-dark); }
.sc-btn--teal { background: var(--sc-teal); color: #fff !important; border-radius: 8px; }
.sc-btn--teal:hover { background: var(--sc-teal-dark); }
.sc-btn--yellow { background: var(--sc-yellow); color: var(--sc-ink) !important; }
.sc-btn--yellow:hover { background: #ffbd47; }
.sc-btn--outline {
	background: #fff;
	color: var(--sc-ink) !important;
	border: 1px solid #c5ced1;
	border-radius: 8px;
	font-weight: 700;
	font-size: 15px;
	padding: 10px 12px;
	min-height: 44px;
}
.sc-btn--outline:hover { border-color: var(--sc-teal); color: var(--sc-teal) !important; }
.sc-btn--block { display: flex; width: 100%; }

/* ---------- Cards, chips, misc ---------- */
.sc-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 50, 70, 0.08);
}

.sc-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	font-weight: 800;
	font-size: 13px;
	color: var(--sc-ink);
	margin-bottom: 18px;
}

.sc-chip--outline-yellow {
	background: transparent;
	color: var(--sc-yellow);
	border: 1.5px solid var(--sc-yellow);
	letter-spacing: 0.1em;
	font-size: 12px;
}

.sc-match {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 14px 18px;
	border: 1.5px dashed rgba(0, 101, 129, 0.35);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.75);
	font-size: 15px;
	line-height: 1.45;
	margin: 0 0 22px !important;
}

.sc-match .sc-icon { color: var(--sc-teal); margin-top: 3px; }
.sc-match--compact { font-size: 13px; padding: 10px 12px; margin: 14px 0 !important; }

.sc-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--sc-muted);
	margin-top: 12px !important;
}
.sc-secure .sc-icon { color: var(--sc-orange); }

.sc-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #cfe7ee, #e9f3f6);
	color: rgba(0, 101, 129, 0.45);
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-size: 12px;
	min-height: 160px;
}

/* ---------- Progress ring ---------- */
.sc-ring {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.sc-ring__graphic {
	position: relative;
	width: 140px;
	height: 140px;
}

.sc-ring--md .sc-ring__graphic { width: 96px; height: 96px; }
.sc-ring--sm .sc-ring__graphic { width: 72px; height: 72px; }

.sc-ring svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
	display: block;
}

.sc-ring__track,
.sc-ring__fill {
	fill: none;
	stroke-width: 10;
}

.sc-ring__track { stroke: #e6ecee; }
.sc-ring__fill {
	stroke: var(--sc-coral);
	stroke-linecap: round;
	transition: stroke-dashoffset 1s ease;
}

.sc-ring--dark .sc-ring__track { stroke: rgba(255, 255, 255, 0.22); }

.sc-ring__value {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--sc-serif);
	font-weight: 300;
	font-size: 34px;
	color: var(--sc-teal);
}

.sc-ring--md .sc-ring__value { font-size: 26px; color: var(--sc-coral); }
.sc-ring--dark .sc-ring__value,
.sc-ring--dark .sc-ring__label { color: #fff; }

.sc-ring__label {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	max-width: 180px;
}

.sc-ring-block {
	text-align: center;
	padding: 24px 0;
}

/* ==========================================================================
   Home: quick-give bar
   ========================================================================== */
.sc-quick-give {
	padding: 40px 0;
}

.sc-quick-give__panel {
	background: var(--sc-teal);
	color: #fff;
	border-radius: 16px;
	padding: 24px 28px;
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 0;
	align-items: center;
}

.sc-quick-give__progress {
	padding-right: 28px;
	border-right: 1px solid rgba(255, 255, 255, 0.3);
	display: flex;
	justify-content: center;
	align-self: stretch;
	align-items: center;
}

.sc-quick-give__form {
	padding-left: 28px;
	margin: 0;
}

.sc-quick-give__title {
	font-family: var(--sc-serif);
	font-weight: 200;
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.2;
	color: #fff;
	margin: 0 0 14px;
	text-transform: none;
}

.sc-toggle,
.sc-amounts {
	border: 0;
	padding: 0;
	margin: 0 0 14px;
	min-width: 0;
}

.sc-toggle {
	display: flex;
	gap: 8px;
}

.sc-toggle__option,
.sc-amounts__option {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.sc-toggle__option input,
.sc-amounts__option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.sc-toggle__option span,
.sc-amounts__option span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #fff;
	color: var(--sc-ink);
	border: 1.5px solid var(--sc-unsel);
	font-weight: 800;
	transition: background-color .15s ease, border-color .15s ease;
}

.sc-toggle__option span {
	min-height: 44px;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 15px;
}

.sc-amounts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.sc-amounts__option span {
	min-height: 52px;
	padding: 8px;
	border-radius: 10px;
	font-size: 18px;
}

.sc-toggle__option .sc-icon,
.sc-amounts__option .sc-icon {
	display: none;
	width: 16px;
	height: 16px;
	stroke-width: 2.6;
}

.sc-toggle__option input:checked + span,
.sc-amounts__option input:checked + span {
	background: var(--sc-sel-fill);
	border-color: var(--sc-sel-border);
	color: var(--sc-sel-text);
}

.sc-toggle__option input:checked + span .sc-icon,
.sc-amounts__option input:checked + span .sc-icon {
	display: block;
}

.sc-toggle__option:hover span,
.sc-amounts__option:hover span {
	border-color: var(--sc-sel-border);
}

.sc-amounts__mo {
	display: none;
	font-style: normal;
	font-weight: 600;
	font-size: 0.75em;
	margin-left: -4px;
}

.is-monthly .sc-amounts__mo {
	display: inline;
}

.sc-quick-give__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.sc-quick-give__impact {
	font-size: 15px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 !important;
}

.sc-quick-give__submit {
	min-height: 54px;
	font-size: 18px;
	white-space: nowrap;
}

@media (max-width: 860px) {
	.sc-quick-give { padding: 24px 0; }
	.sc-quick-give__panel {
		grid-template-columns: 1fr;
		padding: 20px 16px;
	}
	.sc-quick-give__progress {
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.3);
		padding: 0 0 16px;
		margin-bottom: 16px;
		justify-content: flex-start;
	}
	.sc-quick-give__progress .sc-ring {
		flex-direction: row;
		gap: 14px;
		text-align: left;
	}
	.sc-quick-give__progress .sc-ring__graphic { width: 84px; height: 84px; }
	.sc-quick-give__progress .sc-ring__value { font-size: 22px; }
	.sc-quick-give__form { padding-left: 0; }
	.sc-toggle__option { flex: 1; }
	.sc-amounts { grid-template-columns: repeat(2, 1fr); }
	.sc-quick-give__foot { flex-direction: column; align-items: stretch; }
	.sc-quick-give__submit { width: 100%; }
}

/* ---------- Quick-give design: photo + progress strip (Figma "form A") ---------- */
.sc-qg--photo .sc-quick-give__panel {
	background: #fff;
	color: var(--sc-ink);
	border: 1px solid var(--sc-line);
	box-shadow: 0 8px 24px rgba(0, 50, 70, .08);
	padding: 0;
	overflow: hidden;
	grid-template-columns: 360px 1fr;
	grid-template-areas: "strip strip" "photo form";
}

.sc-qg-strip {
	grid-area: strip;
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--sc-teal);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	padding: 10px 24px;
}

.sc-qg-strip__track {
	flex: 1;
	height: 8px;
	border-radius: 99px;
	background: rgba(255, 255, 255, .25);
	overflow: hidden;
}

.sc-qg-strip__track span { display: block; height: 100%; background: var(--sc-yellow); border-radius: 99px; }

.sc-qg-photo {
	grid-area: photo;
	position: relative;
	align-self: stretch;
}

.sc-qg-photo__img,
.sc-qg-photo .sc-placeholder {
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	display: block;
}

.sc-qg-photo__badge {
	position: absolute;
	left: 16px;
	bottom: 16px;
	background: #fff;
	border-radius: 8px;
	padding: 6px 12px;
	display: flex;
	flex-direction: column;
}

.sc-qg-photo__number { font-family: var(--sc-serif); font-weight: 300; font-size: 30px; line-height: 1.1; color: var(--sc-teal); }
.sc-qg-photo__label { font-size: 12px; font-weight: 700; }

.sc-qg--photo .sc-quick-give__form { grid-area: form; padding: 24px 28px; }
.sc-qg--photo .sc-quick-give__title { color: var(--sc-teal); }
.sc-qg--photo .sc-quick-give__impact { color: var(--sc-muted); }

@media (max-width: 860px) {
	.sc-qg--photo .sc-quick-give__panel {
		grid-template-columns: 1fr;
		grid-template-areas: "strip" "photo" "form";
		padding: 0;
	}
	.sc-qg-strip { flex-wrap: wrap; gap: 6px 12px; padding: 10px 16px; }
	.sc-qg-strip__track { order: 3; flex-basis: 100%; }
	.sc-qg-photo__img, .sc-qg-photo .sc-placeholder { min-height: 0; height: 200px; }
	.sc-qg--photo .sc-quick-give__form { padding: 20px 16px; }
}

/* ==========================================================================
   Home: feature band
   Measurements from Figma node 27:1237 (1440 frame): 560px photo, 580px card
   overlapping the photo by 232px, stats start 60px below the photo, a
   left-to-right yellow → orange gradient behind everything.
   ========================================================================== */
.sc-fb--yellow { background: linear-gradient(102deg, var(--sc-yellow) 11.5%, var(--sc-orange) 263%); }
.sc-fb--blue { background: var(--sc-sky); }
.sc-fb--white { background: #fff; border-top: 1px solid var(--sc-line); border-bottom: 1px solid var(--sc-line); }

.sc-fb-hl { color: var(--sc-coral); }
.sc-fb--yellow .sc-fb-hl { color: inherit; font-weight: 400; }

.sc-fb__text {
	font-size: 16px;
	line-height: 1.6;
	max-width: 480px;
}

/* ---------- Design: half photo, half color ---------- */
.sc-fb-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 680px;
}

.sc-fb--photo-left .sc-fb-split__media { order: -1; }
.sc-fb--photo-right .sc-fb-split__media { order: 2; }

.sc-fb-split__media img,
.sc-fb-split__media .sc-placeholder {
	width: 100%;
	height: 100%;
	min-height: 360px;
	object-fit: cover;
	display: block;
}

.sc-fb-split__panel {
	display: flex;
	align-items: center;
	padding: 64px clamp(24px, 5vw, 56px);
}

.sc-fb--photo-right .sc-fb-split__panel { justify-content: flex-end; }

.sc-fb-split__content {
	width: 100%;
	max-width: 520px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.sc-fb-split__content > * { margin: 0 !important; }

.sc-fb-split__quote {
	background: #fff;
	border-radius: 12px;
	padding: 18px 22px;
	align-self: stretch;
}

.sc-fb-split__quote .sc-quote { margin-bottom: 8px !important; font-size: 22px; line-height: 30px; }
.sc-fb-split__quote .sc-attribution { margin: 0 !important; font-weight: 800; font-size: 13px; }
.sc-fb-split .sc-feature-band__stats { margin: 8px 0 0; align-self: stretch; }

/* ---------- Design: quote + stat cards ---------- */
.sc-fb-cards { padding-top: 64px; padding-bottom: 64px; }

.sc-fb-cards__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 550px);
	gap: 48px;
	align-items: center;
	margin-bottom: 36px;
}

.sc-fb-cards__intro > * { margin: 0 0 18px !important; }
.sc-fb-cards__intro > *:last-child { margin-bottom: 0 !important; }

.sc-fb-cards__quote {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 18px;
	align-items: center;
	padding: 16px;
	border-radius: 16px;
}

.sc-fb--white .sc-fb-cards__quote { box-shadow: none; }

.sc-fb-cards__thumb img,
.sc-fb-cards__thumb .sc-placeholder {
	width: 180px;
	height: 180px;
	min-height: 0;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.sc-fb-cards__words .sc-quote { font-size: 20px; line-height: 28px; margin-bottom: 12px !important; color: var(--sc-muted); }
.sc-fb-cards__words .sc-attribution { margin: 0 0 6px !important; font-weight: 800; font-size: 13px; }
.sc-fb-cards__program { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--sc-teal); margin: 0 !important; }

.sc-fb-cards__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.sc-fb-cards__stat {
	background: #fff;
	border-radius: 16px;
	padding: 22px 28px 28px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sc-fb-cards__number {
	font-family: var(--sc-serif);
	font-weight: 300;
	font-size: 44px;
	line-height: 1.1;
	color: var(--sc-teal);
}

.sc-fb-cards__label { font-weight: 800; font-size: 15px; }
.sc-fb-cards__detail { font-size: 14px; line-height: 1.5; }

/* White: outlined cards in three accent colors (Figma "Feature band B"). */
.sc-fb--white .sc-fb-cards__stat { border: 1.5px solid; box-shadow: 0 8px 20px rgba(0, 50, 70, .06); }
.sc-fb--white .sc-fb-cards__stat--0 { border-color: #02A8D6; }
.sc-fb--white .sc-fb-cards__stat--0 .sc-fb-cards__number { color: #02A8D6; }
.sc-fb--white .sc-fb-cards__stat--1 { border-color: var(--sc-green); }
.sc-fb--white .sc-fb-cards__stat--1 .sc-fb-cards__number { color: var(--sc-green); }
.sc-fb--white .sc-fb-cards__stat--2 { border-color: var(--sc-orange); }
.sc-fb--white .sc-fb-cards__stat--2 .sc-fb-cards__number { color: var(--sc-orange); }

@media (max-width: 960px) {
	.sc-fb-split { grid-template-columns: 1fr; min-height: 0; }
	.sc-fb-split__media { order: -1 !important; height: 300px; }
	.sc-fb-split__panel { padding: 32px 16px 40px; justify-content: flex-start !important; }
	.sc-fb-cards { padding-top: 40px; padding-bottom: 40px; }
	.sc-fb-cards__top { grid-template-columns: 1fr; gap: 24px; }
	.sc-fb-cards__quote { grid-template-columns: 110px 1fr; }
	.sc-fb-cards__thumb img,
	.sc-fb-cards__thumb .sc-placeholder { width: 110px; height: 110px; }
	.sc-fb-cards__stats { grid-template-columns: 1fr; gap: 12px; }
	.sc-fb-cards__number { font-size: 34px; }
}

.sc-feature-band__media {
	height: 560px;
	overflow: hidden;
}

.sc-feature-band__media img,
.sc-feature-band__media .sc-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sc-feature-band__bottom {
	padding-bottom: 66px;
}

.sc-feature-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 580px) minmax(0, 520px);
	column-gap: 56px;
	align-items: start;
}

.sc-feature-band__card {
	margin-top: -232px;
	padding: 36px 40px;
	box-shadow: var(--sc-shadow);
	border-radius: 18px;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.sc-feature-band__card > * {
	margin: 0 !important;
}

.sc-feature-band__card .sc-eyebrow {
	letter-spacing: 0.14em;
}

.sc-feature-band__title {
	font-size: 42px !important;
	line-height: 47px !important;
	color: var(--sc-ink);
}

.sc-feature-band__card .sc-quote {
	font-size: 24px;
	line-height: 32px;
}

.sc-feature-band__card .sc-attribution {
	font-weight: 800;
	font-size: 14px;
}

.sc-feature-band__card .sc-btn {
	min-height: 48px;
	padding: 14px 28px;
	font-size: 15px;
}

.sc-feature-band__aside {
	padding-top: 60px;
}

.sc-feature-band__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-bottom: 20px;
}

.sc-feature-band__number {
	display: block;
	font-family: var(--sc-serif);
	font-weight: 400;
	font-size: 36px;
	line-height: 40px;
	color: var(--sc-teal);
	margin-bottom: 2px;
	white-space: nowrap;
}

.sc-feature-band__label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 19px;
}

.sc-feature-band__closing {
	font-size: 17px;
	line-height: 27px;
	max-width: 520px;
}

@media (max-width: 1100px) {
	.sc-feature-band__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
	.sc-feature-band__stats { gap: 20px; }
	.sc-feature-band__number { font-size: 30px; line-height: 34px; }
}

@media (max-width: 860px) {
	.sc-feature-band__media { height: 330px; }
	.sc-feature-band__bottom { padding-bottom: 32px; }
	.sc-feature-band__inner { grid-template-columns: 1fr; row-gap: 24px; }
	.sc-feature-band__card { margin-top: -90px; padding: 24px 20px; gap: 14px; }
	.sc-feature-band__title { font-size: 30px !important; line-height: 36px !important; }
	.sc-feature-band__card .sc-quote { font-size: 20px; line-height: 28px; }
	.sc-feature-band__aside { padding-top: 0; }
	.sc-feature-band__stats { gap: 12px; margin-bottom: 16px; }
	.sc-feature-band__number { font-size: 26px; line-height: 30px; white-space: normal; }
	.sc-feature-band__label { font-size: 13px; line-height: 17px; }
	.sc-feature-band__closing { font-size: 16px; line-height: 24px; }
}

/* ==========================================================================
   Giving Tuesday hero
   ========================================================================== */
.sc-gt-hero {
	background: var(--sc-teal);
	color: #fff;
}

.sc-gt-hero__bar {
	background: var(--sc-orange);
	color: #fff;
	text-align: center;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 9px 16px;
}

.sc-gt-hero__inner {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 64px;
	align-items: start;
	padding-top: 64px;
	padding-bottom: 64px;
}

.sc-gt-hero__title { color: #fff; }

.sc-gt-hero__intro {
	font-size: 18px;
	line-height: 1.5;
	max-width: 560px;
	margin-bottom: 28px !important;
}

.sc-gt-hero__photos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	max-width: 560px;
}

.sc-gt-hero__photo {
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.sc-gt-hero__card {
	color: var(--sc-ink);
	padding: 28px 24px 22px;
	text-align: center;
	box-shadow: var(--sc-shadow);
}

.sc-gt-hero__card-title {
	font-family: var(--sc-sans);
	font-weight: 800;
	font-size: 24px;
	margin: 0 0 8px;
	color: var(--sc-ink);
	text-transform: none;
}

.sc-gt-hero__card-text {
	font-size: 14px;
	line-height: 1.5;
	color: var(--sc-muted);
	margin-bottom: 18px !important;
}

.sc-gt-hero__card .sc-ring { margin: 4px 0 6px; }
.sc-gt-hero__card .sc-match { text-align: left; }
.sc-gt-hero__card .sc-btn { margin-top: 8px; }

@media (max-width: 960px) {
	.sc-gt-hero__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; padding-bottom: 40px; }
	.sc-gt-hero__card { order: 2; }
	.sc-gt-hero__photos { order: 3; }
}

/* ==========================================================================
   Year-End hero
   ========================================================================== */
.sc-ye-hero {
	background: linear-gradient(180deg, var(--sc-sky) 0%, #9fd8e7 100%);
	padding: 40px 0 64px;
}

.sc-ye-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	grid-template-areas:
		"main form"
		"media form";
	grid-template-rows: auto 1fr;
	column-gap: 48px;
	align-items: start;
}

.sc-ye-hero__main { grid-area: main; }
.sc-ye-hero__form { grid-area: form; position: sticky; top: 120px; }
.sc-ye-hero__media { grid-area: media; }

.sc-ye-hero__intro {
	font-size: 17px;
	line-height: 1.55;
	max-width: 560px;
	margin-bottom: 22px !important;
}

.sc-progress-card {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 18px 22px;
	max-width: 560px;
	margin-bottom: 16px;
}

.sc-progress-card__title {
	font-family: var(--sc-serif);
	font-weight: 300;
	font-size: 22px;
	line-height: 1.25;
	color: var(--sc-teal);
}

.sc-progress-card__text { font-size: 14px; margin-top: 4px !important; }

.sc-ye-hero__figure {
	position: relative;
	margin: 8px 0 12px;
}

.sc-ye-hero__photo {
	width: 100%;
	height: 380px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}

.sc-ye-hero__caption {
	position: absolute;
	left: 14px;
	bottom: 14px;
	background: #fff;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 700;
}

.sc-mini-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.sc-mini-stat {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sc-mini-stat .sc-icon { color: var(--sc-teal); width: 20px; height: 20px; }
.sc-mini-stat__number {
	font-family: var(--sc-serif);
	font-weight: 300;
	font-size: 28px;
	line-height: 1.1;
	color: var(--sc-teal);
}
.sc-mini-stat__label { font-size: 13px; line-height: 1.35; }

.sc-form-card {
	box-shadow: var(--sc-shadow);
	overflow: hidden;
}

.sc-form-card__head {
	padding: 14px 20px;
	border-bottom: 1px solid var(--sc-line);
}

.sc-form-card__title {
	font-family: var(--sc-sans);
	font-weight: 800;
	font-size: 16px;
	margin: 0;
	color: var(--sc-ink);
	text-transform: none;
}

.sc-form-card__body { padding: 0; }
.sc-form-card__body iframe { display: block; width: 100%; border: 0; }
.sc-form-card__trust { padding: 0 16px 16px; }

.sc-form-card__placeholder {
	padding: 48px 24px;
	text-align: center;
	font-size: 14px;
	color: var(--sc-muted);
	background: #f6fafb;
}

@media (max-width: 960px) {
	.sc-ye-hero { padding: 28px 0 40px; }
	.sc-ye-hero__inner {
		grid-template-columns: 1fr;
		grid-template-areas: "main" "form" "media";
		row-gap: 24px;
	}
	.sc-ye-hero__form { position: static; }
	.sc-ye-hero__photo { height: 260px; }
}

@media (max-width: 600px) {
	.sc-mini-stats { grid-template-columns: 1fr; }
	.sc-progress-card { gap: 14px; padding: 14px 16px; }
}

/* ==========================================================================
   Stat cards, story, impact, ways to give
   ========================================================================== */
.sc-stat-cards { padding: 56px 0; }
.sc-bg--sky { background: linear-gradient(90deg, #bfe6f0, var(--sc-sky)); }
.sc-bg--white { background: #fff; }

.sc-stat-cards__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.sc-stat-card { padding: 22px 22px 26px; }

.sc-stat-card__number {
	display: block;
	font-family: var(--sc-serif);
	font-weight: 300;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.1;
	margin-bottom: 8px;
}

.sc-stat-card__label { font-size: 15px; line-height: 1.4; }

.sc-story { padding: 64px 0; background: #fff; }

.sc-story__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.sc-story--flip .sc-story__media { order: 2; }

.sc-story__photo {
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: cover;
	border-radius: 16px;
	display: block;
}

.sc-story__text { font-size: 15px; line-height: 1.5; margin-bottom: 20px !important; }
.sc-story__copy .sc-btn { margin-top: 4px; }

.sc-impact {
	background: var(--sc-teal);
	color: #fff;
	padding: 64px 0;
}

.sc-impact__title { color: #fff; }

.sc-impact__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 28px;
}

.sc-impact__tile {
	background: rgba(0, 0, 0, 0.18);
	border-radius: 12px;
	padding: 20px;
}

.sc-impact__amount {
	display: block;
	font-family: var(--sc-serif);
	font-weight: 300;
	font-size: 36px;
	color: var(--sc-yellow);
	margin-bottom: 8px;
}

.sc-impact__text { font-size: 15px; line-height: 1.4; }

.sc-impact__bar { max-width: 560px; }
.sc-impact__bar-labels {
	display: flex;
	justify-content: space-between;
	font-weight: 800;
	font-size: 13px;
	margin-bottom: 6px;
}
.sc-impact__track {
	height: 8px;
	border-radius: 99px;
	background: rgba(0, 0, 0, 0.25);
	overflow: hidden;
}
.sc-impact__track span { display: block; height: 100%; background: var(--sc-coral); border-radius: 99px; }

.sc-ways { padding: 48px 0 40px; background: #fff; }

.sc-ways__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 36px;
}

.sc-ways__card {
	border: 1px solid var(--sc-line);
	border-radius: 12px;
	padding: 18px 20px;
}

.sc-ways__title { font-weight: 800; color: var(--sc-teal); margin-bottom: 6px !important; }
.sc-ways__text { font-size: 14px; }
.sc-ways__link { font-size: 14px; color: var(--sc-teal); text-decoration: underline; }

.sc-ways__footer {
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.02em;
	line-height: 1.7;
	color: var(--sc-muted);
}

.sc-footnote {
	font-family: var(--sc-sans);
	font-size: 14px;
	padding: 28px 16px;
	margin: 0 !important;
	border-top: 1px solid var(--sc-line);
}
.sc-footnote a { color: var(--sc-teal); }

@media (max-width: 860px) {
	.sc-stat-cards { padding: 40px 0; }
	.sc-stat-cards__grid,
	.sc-ways__grid { grid-template-columns: 1fr; }
	.sc-story { padding: 40px 0; }
	.sc-story__inner { grid-template-columns: 1fr; gap: 24px; }
	.sc-story--flip .sc-story__media { order: 0; }
	.sc-impact { padding: 44px 0; }
	.sc-impact__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Thank-you
   ========================================================================== */
.sc-thanks {
	background: linear-gradient(135deg, #b9e3ee 0%, var(--sc-sky) 100%);
	padding: 72px 0 88px;
}

.sc-thanks__inner {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 56px;
	align-items: center;
}

.sc-thanks__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--sc-orange);
	color: #fff;
	margin-bottom: 22px;
}
.sc-thanks__badge .sc-icon { width: 24px; height: 24px; stroke-width: 2.6; }

.sc-thanks__title strong { font-weight: 400; }
.sc-thanks__text { font-size: 16px; line-height: 1.5; max-width: 480px; margin-bottom: 22px !important; }

.sc-share-card { padding: 20px; max-width: 520px; }
.sc-share-card__title {
	font-family: var(--sc-sans);
	font-weight: 800;
	font-size: 16px;
	margin: 0 0 12px;
	color: var(--sc-ink);
	text-transform: none;
}
.sc-share-card__buttons {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 12px;
}
.sc-share-card__note { font-size: 12px; color: var(--sc-muted); margin-top: 10px !important; min-height: 1.4em; }

.sc-share-preview { padding: 14px; }
.sc-share-preview .sc-eyebrow { color: var(--sc-muted); font-size: 11px; }
.sc-share-preview__media { border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.sc-share-preview__photo { width: 100%; height: 180px; object-fit: cover; display: block; min-height: 0; }
.sc-share-preview__caption { background: var(--sc-teal); color: #fff; padding: 12px 14px 16px; }
.sc-share-preview__caption p { font-family: var(--sc-serif); font-weight: 300; font-size: 20px; line-height: 1.25; }
.sc-share-preview__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--sc-yellow);
	color: var(--sc-ink);
	border-radius: 999px;
	padding: 4px 12px;
	font-weight: 800;
	font-size: 12px;
	margin-bottom: 8px;
}
.sc-share-preview__text { font-size: 14px; line-height: 1.5; }
.sc-share-preview__text a { color: var(--sc-teal); font-weight: 800; }

@media (max-width: 960px) {
	.sc-thanks { padding: 40px 0 56px; }
	.sc-thanks__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
	.sc-share-card__buttons { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Popup
   ========================================================================== */
.sc-popup {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9990;
	width: 300px;
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--sc-shadow);
	padding: 24px 22px 22px;
	font-family: var(--sc-sans);
	color: var(--sc-ink);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .25s ease, transform .25s ease;
}

.sc-popup[hidden] { display: none; }
.sc-popup.is-visible { opacity: 1; transform: none; }

.sc-popup p { margin: 0; }

.sc-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--sc-ink);
	padding: 0;
}
.sc-popup__close::before {
	content: "";
	position: absolute;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f1f4f5;
}
.sc-popup__close .sc-icon { position: relative; width: 14px; height: 14px; stroke-width: 2.4; }

.sc-popup__stat {
	font-family: var(--sc-serif);
	font-weight: 300;
	font-size: 56px;
	line-height: 1;
	color: var(--sc-teal);
	margin-bottom: 6px !important;
	padding-right: 30px;
}
.sc-popup__label { font-weight: 700; font-size: 15px; margin-bottom: 16px !important; }

.sc-popup__mobile { display: none; }

@media (max-width: 767px) {
	.sc-popup {
		left: 12px;
		right: 12px;
		width: auto;
		bottom: calc(var(--sc-bottom-bar) + 10px);
		padding: 14px;
	}
	.sc-popup__desktop { display: none; }
	.sc-popup__mobile { display: grid; gap: 12px; }

	/* Option A: photo card */
	.sc-popup--m-card .sc-popup__mobile { grid-template-columns: 72px 1fr; align-items: center; }
	.sc-popup--m-card .sc-popup__mobile .sc-btn { grid-column: 1 / -1; min-height: 48px; }
	.sc-popup__thumb img,
	.sc-popup__thumb .sc-placeholder { width: 72px; height: 72px; min-height: 0; object-fit: cover; border-radius: 8px; display: block; }

	.sc-popup__title {
		font-family: var(--sc-serif);
		font-weight: 300;
		font-size: 20px;
		line-height: 1.2;
		color: var(--sc-teal);
		padding-right: 34px;
		margin-bottom: 4px !important;
	}
	.sc-popup__text { font-size: 13px; line-height: 1.4; }

	/* Option B: banner */
	.sc-popup--m-banner {
		left: 0;
		right: 0;
		bottom: var(--sc-bottom-bar);
		border-radius: 14px 14px 0 0;
		background: var(--sc-skyblue, #007FBD);
		color: #fff;
		padding: 12px 14px;
	}
	.sc-popup--m-banner .sc-popup__mobile { grid-template-columns: 1fr auto; align-items: center; padding-right: 30px; }
	.sc-popup--m-banner .sc-popup__title { color: #fff; font-size: 17px; padding-right: 0; }
	.sc-popup--m-banner .sc-popup__text { color: rgba(255, 255, 255, .9); font-size: 12px; }
	.sc-popup--m-banner .sc-btn { min-height: 44px; padding: 8px 16px; font-size: 15px; }
	.sc-popup--m-banner .sc-popup__close { color: #fff; top: 2px; right: 2px; }
	.sc-popup--m-banner .sc-popup__close::before { background: rgba(255, 255, 255, .18); }
}

/* Desktop: orange Giving Tuesday card */
.sc-popup--d-gt { background: var(--sc-orange); }
.sc-popup__eyebrow {
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .14em;
	color: var(--sc-teal);
	margin-bottom: 4px !important;
}
.sc-popup--d-gt .sc-popup__label { color: var(--sc-ink); }
.sc-popup--d-gt .sc-popup__close::before { background: rgba(255, 255, 255, .45); }
.sc-popup--d-gt .sc-btn--yellow { color: var(--sc-teal) !important; }

.sc-popup__extra {
	display: block;
	text-align: center;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--sc-teal);
	text-decoration: underline;
}

.sc-btn--skyblue { background: #007FBD; color: #fff !important; }
.sc-btn--skyblue:hover { background: #006aa0; }

/* Minimized "Give" pill after closing */
.sc-popup-pill {
	position: fixed;
	right: 24px;
	bottom: calc(var(--sc-bottom-bar) + 24px);
	z-index: 9989;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--sc-teal);
	color: #fff !important;
	font-family: var(--sc-sans);
	font-weight: 800;
	font-size: 14px;
	text-decoration: none !important;
	box-shadow: var(--sc-shadow);
}
.sc-popup-pill[hidden] { display: none; }
.sc-popup-pill .sc-icon { color: var(--sc-yellow); }

@media (max-width: 767px) {
	.sc-popup-pill { right: 12px; bottom: calc(var(--sc-bottom-bar) + 12px); }

	/* Phone: wide button only */
	.sc-popup--m-button,
	.sc-popup--m-pill {
		background: transparent;
		box-shadow: none;
		padding: 0;
	}
	.sc-popup--m-button .sc-popup__mobile { display: block; }
	.sc-popup--m-button .sc-btn {
		min-height: 54px;
		font-size: 17px;
		box-shadow: var(--sc-shadow);
		padding-right: 48px;
	}
	.sc-popup--m-button .sc-popup__close,
	.sc-popup--m-pill .sc-popup__close {
		top: -18px;
		right: -6px;
		color: #fff;
		z-index: 2;
	}
	.sc-popup--m-button .sc-popup__close::before,
	.sc-popup--m-pill .sc-popup__close::before { background: var(--sc-ink); }

	/* Phone: small pill in the corner */
	.sc-popup--m-pill {
		left: auto;
		right: 12px;
	}
	.sc-popup--m-pill .sc-popup__mobile { display: block; }
	.sc-popup--m-pill .sc-btn {
		min-height: 48px;
		padding: 10px 22px;
		box-shadow: var(--sc-shadow);
	}
	.sc-popup--m-pill .sc-btn .sc-icon { color: var(--sc-yellow); }
}

@media (prefers-reduced-motion: reduce) {
	.sc-popup, .sc-ring__fill, .sc-btn { transition: none; }
}

/* ==========================================================================
   Donation overlay
   ========================================================================== */
.sc-give-dialog {
	position: fixed !important;
	inset: 0 !important;
	margin: auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	width: min(560px, calc(100vw - 24px)) !important;
	max-width: none !important;
	height: min(820px, calc(100vh - 32px)) !important;
	max-height: none !important;
	overflow: visible !important;
}

.sc-give-dialog::backdrop { background: rgba(0, 40, 55, 0.62); }

.sc-give-open { overflow: hidden; }

.sc-give-dialog__frame {
	position: relative;
	width: 100%;
	height: 100%;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--sc-shadow);
}

.sc-give-dialog__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	opacity: 0;
	transition: opacity .2s ease;
}

.sc-give-dialog.is-loaded .sc-give-dialog__iframe { opacity: 1; }

.sc-give-dialog__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sc-give-dialog.is-loaded .sc-give-dialog__loading { display: none; }

.sc-give-dialog__loading span {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 3px solid var(--sc-line);
	border-top-color: var(--sc-teal);
	animation: sc-spin .8s linear infinite;
}

@keyframes sc-spin { to { transform: rotate(360deg); } }

.sc-give-dialog__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	color: var(--sc-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.sc-give-dialog__close svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
	.sc-give-dialog {
		width: 100vw !important;
		height: 100dvh !important;
	}
	.sc-give-dialog__frame { border-radius: 0; }
}


/* Giving Tuesday card: raised / gifts / goal with a bar (final LP design) */
.sc-goal { margin: 6px 0 10px; border: 1px solid var(--sc-line); border-radius: 8px; text-align: center; }
.sc-goal__stats { display: flex; }
.sc-goal__stat { flex: 1 1 0; padding: 14px 6px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-goal__stat + .sc-goal__stat { border-left: 1px solid var(--sc-line); }
.sc-goal__stat strong { font-family: var(--sc-sans); font-size: 17px; font-weight: 600; color: var(--sc-ink); line-height: 1.2; overflow-wrap: anywhere; }
.sc-goal__stat span { font-size: 13px; color: var(--sc-muted); }
.sc-goal__track { margin: 0 16px; height: 12px; border-radius: 999px; background: #eceff0; overflow: hidden; border-top: 1px solid var(--sc-line); }
.sc-goal__stats + .sc-goal__track { margin-top: 18px; }
.sc-goal__fill { display: block; height: 100%; border-radius: inherit; background: var(--sc-orange); }
.sc-goal__ends { display: flex; justify-content: space-between; padding: 8px 16px 14px; font-size: 11px; color: var(--sc-ink); }
.sc-goal__stats { border-bottom: 1px solid var(--sc-line); }
.sc-goal__track { border-top: 0; }
@media (max-width: 400px) {
	.sc-goal__stat strong { font-size: 15px; }
}


/* Quick-give: "67% raised" line beside the circle on phones (Home Option A mobile) */
.sc-ring__kicker { display: none; }
@media (max-width: 767px) {
	.sc-quick-give .sc-ring__kicker { display: block; font-size: 16px; font-weight: 700; margin-bottom: 2px; }
}

/* Share buttons: labels centered, no stray gap */
.sc-share-card__buttons .sc-btn { justify-content: center; text-align: center; gap: 0; padding-left: 8px; padding-right: 8px; }

/* Thank-you: preview that mirrors a real link post (text, then the page's link card) */
.sc-share-preview__text { margin: 0 0 12px !important; }
.sc-share-link { display: block; border: 1px solid var(--sc-line); border-radius: 10px; overflow: hidden; background: #fff; color: var(--sc-ink); text-decoration: none; pointer-events: none; }
.sc-share-link__img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.sc-share-link__meta { display: block; padding: 10px 12px 12px; background: #f2f4f5; }
.sc-share-link__domain { display: block; font-size: 11px; letter-spacing: .04em; color: var(--sc-muted); }
.sc-share-link__title { display: block; font-weight: 800; font-size: 15px; line-height: 1.3; margin-top: 2px; }
.sc-share-preview__note { font-size: 12px; color: var(--sc-muted); margin: 10px 0 0 !important; }
