/* HD Give — front end. Theme-agnostic: everything is scoped to .hdg-* and driven by tokens. */

:root {
	--hdg-accent: #136fa5;
	--hdg-accent-2: #ff6b4a;
}

.hdg-form,
.hdg-campaign,
.hdg-goal,
.hdg-ring,
.hdg-wall,
.hdg-ticker,
.hdg-cgrid,
.hdg-totals,
.hdg-dash,
.hdg-receipt,
.hdg-closed {
	--hdg-c: var(--hdg-accent);
	--hdg-ink: #1d2433;
	--hdg-muted: #5a6172;
	--hdg-line: #dfe6eb;
	--hdg-soft: color-mix(in srgb, var(--hdg-c) 9%, #fff);
	--hdg-soft-2: color-mix(in srgb, var(--hdg-c) 16%, #fff);
	--hdg-bg: #fff;
	--hdg-radius: 22px;
	--hdg-ease: cubic-bezier(.22, 1, .36, 1);
	--hdg-spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121 25.3%, 1.13 27.8%, 1.12, 1.098 33.5%, 1.009 41.5%, .987 46.1%, .983 49.5%, .995 59.4%, 1.002 70%, 1);
	box-sizing: border-box;
	color: var(--hdg-ink);
}

.hdg-form *,
.hdg-form *::before,
.hdg-form *::after,
.hdg-campaign *,
.hdg-dash *,
.hdg-receipt * {
	box-sizing: border-box;
}

.hdg-form [hidden],
.hdg-campaign [hidden],
.hdg-dash [hidden] {
	display: none !important;
}

.hdg-icon {
	display: inline-block;
	vertical-align: -0.18em;
	flex: none;
}

/* ------------------------------------------------------------------ buttons */

.hdg-btn {
	--b: var(--hdg-c);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 50px;
	padding: .8em 1.6em;
	border: 0;
	border-radius: 999px;
	background: var(--b);
	color: #fff !important;
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.1;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--b) 70%, transparent);
	transition: transform .25s var(--hdg-ease), box-shadow .25s var(--hdg-ease), background-color .2s;
}

.hdg-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--b) 80%, transparent);
}

.hdg-btn:active {
	transform: translateY(0) scale(.98);
}

.hdg-btn:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--b) 40%, transparent);
	outline-offset: 3px;
}

.hdg-btn[disabled] {
	opacity: .65;
	cursor: progress;
	transform: none;
}

.hdg-btn--block {
	width: 100%;
}

.hdg-btn--sm {
	min-height: 40px;
	padding: .55em 1.2em;
	font-size: .92rem;
}

.hdg-btn--ghost {
	background: transparent;
	color: var(--hdg-ink) !important;
	box-shadow: inset 0 0 0 2px var(--hdg-line);
}

.hdg-btn--ghost:hover {
	box-shadow: inset 0 0 0 2px var(--hdg-c);
	color: var(--hdg-c) !important;
}

.hdg-btn--give {
	--b: var(--hdg-accent-2);
	flex: 1;
	background: linear-gradient(135deg, var(--hdg-accent-2), color-mix(in srgb, var(--hdg-accent-2) 78%, #000));
	color: #1d1007 !important;
	color: #fff !important;
}

.hdg-btn--give .hdg-icon {
	transition: transform .4s var(--hdg-spring, ease);
}

.hdg-btn--give:hover .hdg-icon {
	transform: scale(1.25);
}

.hdg-link {
	background: none;
	border: 0;
	padding: 0;
	color: var(--hdg-c);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* --------------------------------------------------------------------- form */

.hdg-form {
	position: relative;
	max-width: 560px;
	margin-inline: auto;
	border-radius: var(--hdg-radius);
	background: var(--hdg-bg);
	box-shadow: 0 1px 0 rgba(0, 27, 68, .04), 0 24px 60px -28px rgba(0, 27, 68, .35);
	border: 1px solid color-mix(in srgb, var(--hdg-c) 12%, var(--hdg-line));
	overflow: hidden;
	font-size: 16px;
	line-height: 1.5;
	isolation: isolate;
}

.hdg-form::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: linear-gradient(90deg, var(--hdg-c), var(--hdg-accent-2));
	transform-origin: left;
	transform: scaleX(var(--progress, .33));
	transition: transform .6s var(--hdg-ease);
	z-index: 2;
}

.hdg-form[data-step="2"] { --progress: .66; }
.hdg-form[data-step="3"] { --progress: .9; }
.hdg-form[data-step="done"] { --progress: 1; }

.hdg-form__inner {
	padding: 30px clamp(18px, 4vw, 34px) 26px;
	margin: 0;
}

.hdg-form__head {
	margin-bottom: 18px;
}

.hdg-form__title {
	margin: 0 0 6px;
	font-size: clamp(1.35rem, 2.6vw, 1.7rem);
	line-height: 1.2;
	font-weight: 600;
	color: var(--hdg-ink);
}

.hdg-form__intro {
	margin: 0 0 4px;
	color: var(--hdg-muted);
	font-size: .97rem;
}

.hdg-form {
	container-type: inline-size;
	container-name: hdgform;
}

.hdg-form__head {
	position: relative;
}

.hdg-testbadge {
	position: absolute;
	top: -14px;
	right: -8px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fff4e5;
	color: #8a4b00;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* Steps indicator */
.hdg-steps {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	counter-reset: s;
}

.hdg-steps li {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	color: var(--hdg-muted);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .02em;
	white-space: nowrap;
	transition: color .3s;
}

.hdg-steps li::after {
	content: "";
	flex: 1;
	height: 2px;
	border-radius: 2px;
	background: var(--hdg-line);
	margin-right: 4px;
}

.hdg-steps li:last-child::after {
	display: none;
}

.hdg-steps span {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--hdg-soft);
	color: var(--hdg-c);
	font-size: .8rem;
	transition: background-color .3s, color .3s, transform .4s var(--hdg-ease);
}

.hdg-steps li.is-active {
	color: var(--hdg-ink);
}

.hdg-steps li.is-active span {
	background: var(--hdg-c);
	color: #fff;
	transform: scale(1.12);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--hdg-c) 16%, transparent);
}

.hdg-steps li.is-done span {
	background: var(--hdg-c);
	color: #fff;
}

.hdg-steps li.is-done::after {
	background: var(--hdg-c);
}

.hdg-form[data-step="done"] .hdg-steps,
.hdg-form.is-done .hdg-form__head {
	display: none;
}

/* Step transitions */
.hdg-step {
	animation: hdg-in .45s var(--hdg-ease) both;
}

.hdg-step.is-back {
	animation-name: hdg-in-back;
}

.hdg-step[hidden] {
	display: none !important;
}

@keyframes hdg-in {
	from { opacity: 0; transform: translateX(26px); }
	to { opacity: 1; transform: none; }
}

@keyframes hdg-in-back {
	from { opacity: 0; transform: translateX(-26px); }
	to { opacity: 1; transform: none; }
}

/* Segmented frequency control with a sliding thumb */
.hdg-seg {
	--i: 0;
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--n), 1fr);
	padding: 5px;
	margin-bottom: 16px;
	border-radius: 999px;
	background: #f1f4f7;
}

.hdg-seg__opt {
	position: relative;
	z-index: 1;
	margin: 0;
	cursor: pointer;
}

.hdg-seg__opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hdg-seg__opt span {
	display: block;
	padding: 9px 6px;
	text-align: center;
	font-size: .9rem;
	font-weight: 600;
	color: var(--hdg-muted);
	transition: color .25s;
}

.hdg-seg__opt input:checked + span {
	color: #fff;
}

.hdg-seg__opt input:focus-visible + span {
	outline: 2px solid var(--hdg-c);
	outline-offset: 2px;
	border-radius: 999px;
}

.hdg-seg__thumb {
	position: absolute;
	top: 5px;
	bottom: 5px;
	left: 5px;
	width: calc((100% - 10px) / var(--n));
	border-radius: 999px;
	background: var(--hdg-c);
	box-shadow: 0 6px 16px -8px var(--hdg-c);
	transform: translateX(calc(var(--i) * 100%));
	transition: transform .5s var(--hdg-spring, var(--hdg-ease));
}

/* Amount tiles */
.hdg-amounts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	gap: 10px;
	margin-bottom: 10px;
}

.hdg-amount {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.hdg-amounts.is-swap .hdg-amount {
	animation: hdg-pop .5s var(--hdg-ease) both;
	animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes hdg-pop {
	from { opacity: 0; transform: translateY(8px) scale(.94); }
	to { opacity: 1; transform: none; }
}

.hdg-amount input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hdg-amount__v {
	display: grid;
	place-items: center;
	min-height: 58px;
	padding: 8px;
	border: 2px solid var(--hdg-line);
	border-radius: 14px;
	background: #fff;
	font-size: 1.2rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--hdg-ink);
	transition: border-color .2s, background-color .2s, color .2s, transform .35s var(--hdg-spring, var(--hdg-ease)), box-shadow .3s;
}

.hdg-amount:hover .hdg-amount__v {
	border-color: color-mix(in srgb, var(--hdg-c) 55%, var(--hdg-line));
	transform: translateY(-2px);
}

.hdg-amount input:checked + .hdg-amount__v {
	border-color: var(--hdg-c);
	background: var(--hdg-c);
	color: #fff;
	transform: scale(1.04);
	box-shadow: 0 10px 22px -12px var(--hdg-c);
}

.hdg-amount input:focus-visible + .hdg-amount__v {
	outline: 3px solid color-mix(in srgb, var(--hdg-c) 35%, transparent);
	outline-offset: 2px;
}

/* Custom amount */
.hdg-custom {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0 16px;
	border: 2px solid var(--hdg-line);
	border-radius: 14px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}

.hdg-custom:focus-within,
.hdg-form.has-custom .hdg-custom {
	border-color: var(--hdg-c);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--hdg-c) 14%, transparent);
}

.hdg-custom__sym,
.hdg-custom__per {
	color: var(--hdg-muted);
	font-weight: 600;
	font-size: 1.15rem;
}

.hdg-custom input {
	flex: 1;
	min-width: 0;
	height: 54px;
	border: 0 !important;
	outline: 0;
	background: transparent;
	box-shadow: none !important;
	font: inherit;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--hdg-ink);
	padding: 0;
}

/* Impact */
.hdg-impact {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 0;
	margin: 0;
	padding: 0 14px;
	border-radius: 12px;
	background: var(--hdg-soft);
	color: color-mix(in srgb, var(--hdg-c) 72%, #000);
	font-size: .93rem;
	font-weight: 500;
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	transition: opacity .35s, max-height .45s var(--hdg-ease), padding .35s, margin .35s;
}

.hdg-impact.is-on {
	opacity: 1;
	max-height: 120px;
	padding: 11px 14px;
	margin-bottom: 12px;
}

.hdg-impact .hdg-icon {
	color: var(--hdg-c);
	animation: hdg-beat 1.6s ease-in-out infinite;
}

@keyframes hdg-beat {
	0%, 60%, 100% { transform: scale(1); }
	30% { transform: scale(1.22); }
}

/* Monthly nudge */
.hdg-nudge {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	margin: 0 0 12px;
	padding: 12px 14px;
	border: 1.5px dashed color-mix(in srgb, var(--hdg-c) 45%, transparent);
	border-radius: 12px;
	font-size: .9rem;
	color: var(--hdg-muted);
	animation: hdg-in .5s var(--hdg-ease) both;
}

/* Fields */
.hdg-field {
	display: block;
	margin: 0 0 14px;
}

.hdg-field__label,
.hdg-fieldset legend {
	display: block;
	margin-bottom: 6px;
	font-size: .85rem;
	font-weight: 600;
	color: var(--hdg-ink);
}

.hdg-field input,
.hdg-field select,
.hdg-field textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1.5px solid var(--hdg-line);
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-size: 1rem;
	color: var(--hdg-ink);
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	appearance: none;
}

.hdg-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6172' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
}

.hdg-field textarea {
	min-height: 0;
	resize: vertical;
}

.hdg-field input:focus,
.hdg-field select:focus,
.hdg-field textarea:focus {
	outline: 0;
	border-color: var(--hdg-c);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--hdg-c) 14%, transparent);
}

.hdg-field [aria-invalid="true"] {
	border-color: #d32f2f;
	box-shadow: 0 0 0 4px rgba(211, 47, 47, .12);
}

.hdg-field small,
.hdg-help {
	display: block;
	margin-top: 5px;
	color: var(--hdg-muted);
	font-size: .82rem;
}

.hdg-help {
	margin: 0 0 12px;
}

.hdg-fieldset {
	margin: 4px 0 8px;
	padding: 0;
	border: 0;
}

.hdg-grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 12px;
}

.hdg-grid3 {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 0 10px;
}

.hdg-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 12px;
	font-size: .93rem;
	color: var(--hdg-muted);
	cursor: pointer;
}

.hdg-check input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--hdg-c);
	flex: none;
}

/* Tribute toggle card */
.hdg-toggle-card {
	margin: 4px 0 14px;
	padding: 14px 16px;
	border: 1.5px solid var(--hdg-line);
	border-radius: 14px;
	transition: border-color .25s, background-color .25s;
}

.hdg-toggle-card:has(input[data-reveal]:checked) {
	border-color: color-mix(in srgb, var(--hdg-c) 45%, var(--hdg-line));
	background: color-mix(in srgb, var(--hdg-c) 3%, #fff);
}

.hdg-switch {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-weight: 600;
	font-size: .95rem;
	cursor: pointer;
}

.hdg-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hdg-switch__ui {
	position: relative;
	width: 42px;
	height: 24px;
	flex: none;
	border-radius: 999px;
	background: #cdd6dd;
	transition: background-color .25s;
}

.hdg-switch__ui::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	transition: transform .4s var(--hdg-spring, var(--hdg-ease));
}

.hdg-switch input:checked + .hdg-switch__ui {
	background: var(--hdg-c);
}

.hdg-switch input:checked + .hdg-switch__ui::after {
	transform: translateX(18px);
}

.hdg-switch input:focus-visible + .hdg-switch__ui {
	outline: 3px solid color-mix(in srgb, var(--hdg-c) 35%, transparent);
	outline-offset: 2px;
}

.hdg-switch .hdg-icon {
	color: var(--hdg-c);
}

.hdg-reveal-panel {
	padding-top: 14px;
	animation: hdg-in .4s var(--hdg-ease) both;
}

.hdg-pills {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.hdg-pills label {
	margin: 0;
	cursor: pointer;
}

.hdg-pills input {
	position: absolute;
	opacity: 0;
}

.hdg-pills span {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1.5px solid var(--hdg-line);
	font-size: .88rem;
	font-weight: 600;
	transition: all .2s;
}

.hdg-pills input:checked + span {
	background: var(--hdg-c);
	border-color: var(--hdg-c);
	color: #fff;
}

/* Gateways: pill tabs with a sliding indicator */
.hdg-gws {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.hdg-gw {
	margin: 0;
	cursor: pointer;
	flex: 1 1 auto;
}

.hdg-gw input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hdg-gw span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 46px;
	padding: 8px 14px;
	border: 1.5px solid var(--hdg-line);
	border-radius: 12px;
	font-size: .9rem;
	font-weight: 600;
	color: var(--hdg-muted);
	white-space: nowrap;
	transition: border-color .2s, color .2s, background-color .2s, box-shadow .2s;
}

.hdg-gw:hover span {
	border-color: color-mix(in srgb, var(--hdg-c) 50%, var(--hdg-line));
}

.hdg-gw input:checked + span {
	border-color: var(--hdg-c);
	color: var(--hdg-c);
	background: var(--hdg-soft);
	box-shadow: 0 0 0 1px var(--hdg-c) inset;
}

.hdg-gw input:focus-visible + span {
	outline: 3px solid color-mix(in srgb, var(--hdg-c) 35%, transparent);
	outline-offset: 2px;
}

.hdg-panel {
	position: relative;
	min-height: 40px;
	margin-bottom: 14px;
	animation: hdg-fade .35s ease both;
}

@keyframes hdg-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.hdg-panel.is-loading::after {
	content: "";
	display: block;
	height: 120px;
	border-radius: 12px;
	background: linear-gradient(90deg, #f1f4f7 25%, #e7ecf0 37%, #f1f4f7 63%);
	background-size: 400% 100%;
	animation: hdg-shimmer 1.3s ease infinite;
}

@keyframes hdg-shimmer {
	from { background-position: 100% 50%; }
	to { background-position: 0 50%; }
}

.hdg-manual,
.hdg-testcard {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 14px;
	background: #f6f8fa;
	font-size: .92rem;
	color: var(--hdg-muted);
}

.hdg-manual p {
	margin: 0 0 .6em;
}

.hdg-manual p:last-child {
	margin: 0;
}

.hdg-manual .hdg-icon {
	color: var(--hdg-c);
	margin-top: 2px;
}

.hdg-testcard {
	display: block;
	background: repeating-linear-gradient(-45deg, #fff8ee, #fff8ee 10px, #fff3e2 10px, #fff3e2 20px);
	border: 1px dashed #e9c48d;
}

.hdg-testcard .hdg-field {
	margin-bottom: 6px;
}

.hdg-testcard .hdg-help {
	margin: 0;
}

/* Fee recovery */
.hdg-fee {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 14px;
	padding: 13px 15px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--hdg-accent-2) 8%, #fff);
	border: 1.5px solid color-mix(in srgb, var(--hdg-accent-2) 28%, transparent);
	font-size: .92rem;
	line-height: 1.45;
	cursor: pointer;
}

.hdg-fee[hidden] {
	display: none;
}

.hdg-fee input {
	position: absolute;
	opacity: 0;
}

.hdg-fee__box {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	flex: none;
	margin-top: 1px;
	border-radius: 7px;
	border: 2px solid color-mix(in srgb, var(--hdg-accent-2) 60%, #999);
	background: #fff;
	color: transparent;
	transition: all .25s var(--hdg-ease);
}

.hdg-fee input:checked + .hdg-fee__box,
.hdg-fee__box.is-on {
	background: var(--hdg-accent-2);
	border-color: var(--hdg-accent-2);
	color: #fff;
	transform: rotate(-6deg) scale(1.05);
}

.hdg-fee input:focus-visible + .hdg-fee__box {
	outline: 3px solid color-mix(in srgb, var(--hdg-accent-2) 40%, transparent);
	outline-offset: 2px;
}

/* Summary */
.hdg-summary {
	margin: 0 0 14px;
	padding: 4px 0;
}

.hdg-summary > div {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 2px;
	border-bottom: 1px dashed var(--hdg-line);
	font-size: .93rem;
}

.hdg-summary dt,
.hdg-summary dd {
	margin: 0;
}

.hdg-summary dt {
	color: var(--hdg-muted);
}

.hdg-summary dd {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.hdg-summary .is-total {
	border-bottom: 0;
	font-size: 1.05rem;
}

.hdg-summary .is-total dt {
	color: var(--hdg-ink);
	font-weight: 600;
}

.hdg-summary small {
	color: var(--hdg-muted);
	font-weight: 500;
}

.hdg-actions {
	display: flex;
	gap: 10px;
	margin-top: 6px;
}

.hdg-actions .hdg-btn:not(.hdg-btn--ghost) {
	flex: 1;
}

.hdg-form.hide-give .hdg-step[data-step="3"] .hdg-btn--give {
	display: none;
}

.hdg-form.hide-give .hdg-step[data-step="3"] .hdg-actions {
	justify-content: flex-start;
}

.hdg-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 14px 0 0;
	font-size: .78rem;
	color: var(--hdg-muted);
}

.hdg-error {
	margin: 0 0 12px;
	padding: 11px 14px;
	border-radius: 12px;
	background: #fdeceb;
	color: #a1271f;
	font-size: .92rem;
	font-weight: 500;
}

.hdg-error.is-shake {
	animation: hdg-shake .45s ease;
}

@keyframes hdg-shake {
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}

/* Busy */
.hdg-form.is-busy .hdg-btn--give .hdg-icon {
	animation: hdg-beat .8s ease-in-out infinite;
}

.hdg-form.is-busy .hdg-stage {
	pointer-events: none;
}

.hdg-form.is-busy .hdg-btn--give {
	background-size: 200% 100%;
	background-image: linear-gradient(110deg, var(--hdg-accent-2) 30%, color-mix(in srgb, var(--hdg-accent-2) 60%, #fff) 50%, var(--hdg-accent-2) 70%);
	animation: hdg-shimmer 1.1s linear infinite;
}

/* Thank you */
.hdg-done {
	position: relative;
	text-align: center;
	padding: 10px 0 4px;
	outline: 0;
}

.hdg-done__icon {
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	margin: 6px auto 16px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--hdg-accent-2), color-mix(in srgb, var(--hdg-accent-2) 70%, var(--hdg-c)));
	color: #fff;
	box-shadow: 0 16px 34px -14px var(--hdg-accent-2);
	animation: hdg-heart 1s var(--hdg-spring, var(--hdg-ease)) both;
}

.hdg-done__icon .hdg-icon {
	fill: currentColor;
}

@keyframes hdg-heart {
	0% { transform: scale(0) rotate(-20deg); }
	100% { transform: scale(1) rotate(0); }
}

.hdg-done__burst {
	position: absolute;
	top: 48px;
	left: 50%;
	width: 0;
	height: 0;
	pointer-events: none;
}

.hdg-done__burst i {
	position: absolute;
	width: 9px;
	height: 9px;
	border-radius: 3px;
	opacity: 0;
	background: var(--hdg-c);
	animation: hdg-confetti 1.3s var(--hdg-ease) .15s forwards;
}

.hdg-done__burst i:nth-child(3n) { background: var(--hdg-accent-2); border-radius: 50%; }
.hdg-done__burst i:nth-child(3n+1) { background: #3ecfb2; }
.hdg-done__burst i:nth-child(1) { --x: -120px; --y: -70px; --r: 200deg; }
.hdg-done__burst i:nth-child(2) { --x: 110px; --y: -84px; --r: -160deg; }
.hdg-done__burst i:nth-child(3) { --x: -80px; --y: -120px; --r: 90deg; }
.hdg-done__burst i:nth-child(4) { --x: 70px; --y: -130px; --r: 300deg; }
.hdg-done__burst i:nth-child(5) { --x: -150px; --y: -10px; --r: 120deg; }
.hdg-done__burst i:nth-child(6) { --x: 150px; --y: -20px; --r: -90deg; }
.hdg-done__burst i:nth-child(7) { --x: -30px; --y: -150px; --r: 45deg; }
.hdg-done__burst i:nth-child(8) { --x: 30px; --y: -146px; --r: -45deg; }
.hdg-done__burst i:nth-child(9) { --x: -120px; --y: 40px; --r: 160deg; }
.hdg-done__burst i:nth-child(10) { --x: 126px; --y: 36px; --r: -200deg; }
.hdg-done__burst i:nth-child(11) { --x: -60px; --y: 70px; --r: 70deg; }
.hdg-done__burst i:nth-child(12) { --x: 64px; --y: 76px; --r: -70deg; }
.hdg-done__burst i:nth-child(13) { --x: -170px; --y: -60px; --r: 20deg; }
.hdg-done__burst i:nth-child(14) { --x: 172px; --y: -56px; --r: -20deg; }

@keyframes hdg-confetti {
	0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.6); }
	70% { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 60px)) rotate(var(--r)) scale(1); }
}

.hdg-done__title {
	margin: 0 0 6px;
	font-size: 1.6rem;
	line-height: 1.2;
}

.hdg-done__msg {
	margin: 0 auto 16px;
	max-width: 38ch;
	color: var(--hdg-muted);
}

.hdg-done__extra {
	text-align: left;
}

.hdg-done__extra .hdg-manual {
	margin-bottom: 14px;
}

.hdg-done__summary {
	max-width: 360px;
	margin-inline: auto;
	text-align: left;
}

.hdg-done__progress {
	max-width: 360px;
	margin: 6px auto 16px;
	font-size: .86rem;
	color: var(--hdg-muted);
}

.hdg-done__progress p {
	margin: 8px 0 0;
}

.hdg-done__actions {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.hdg-share {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	font-size: .85rem;
	color: var(--hdg-muted);
}

.hdg-share > span {
	margin-right: 4px;
}

.hdg-share__btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1.5px solid var(--hdg-line);
	background: #fff;
	color: var(--hdg-ink) !important;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: all .2s;
}

.hdg-share__btn:hover {
	border-color: var(--hdg-c);
	color: var(--hdg-c) !important;
	transform: translateY(-2px);
}

.hdg-share__btn.is-copied {
	background: var(--hdg-c);
	border-color: var(--hdg-c);
	color: #fff !important;
}

.hdg-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hdg-closed {
	max-width: 560px;
	margin-inline: auto;
	padding: 34px 28px;
	border-radius: var(--hdg-radius);
	background: var(--hdg-soft);
	text-align: center;
}

.hdg-closed .hdg-icon {
	color: var(--hdg-c);
}

.hdg-closed h3 {
	margin: 10px 0 6px;
}

/* --------------------------------------------------------------- progress */

.hdg-bar {
	position: relative;
	height: 12px;
	border-radius: 999px;
	background: #e8eef2;
	overflow: hidden;
}

.hdg-bar--slim {
	height: 7px;
}

.hdg-bar > span {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--p, 0%);
	border-radius: inherit;
	background: linear-gradient(90deg, var(--hdg-c), color-mix(in srgb, var(--hdg-c) 55%, #3ecfb2));
	transition: width 1.6s var(--hdg-ease);
}

.hdg-bar > span::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%);
	background-size: 220% 100%;
	animation: hdg-glint 2.8s ease-in-out infinite;
}

@keyframes hdg-glint {
	from { background-position: 160% 0; }
	to { background-position: -60% 0; }
}

.hdg-bar > i {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--m, 0%);
	border-radius: inherit;
	background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px);
	transition: width 1.6s var(--hdg-ease);
}

/* Bars start empty and fill when they scroll into view (only once the script is running). */
.hdg-js .hdg-reveal:not(.is-in) .hdg-bar > span,
.hdg-js .hdg-reveal:not(.is-in) .hdg-bar > i {
	width: 0;
}

.hdg-goal {
	margin: 0 0 26px;
	padding: 22px 24px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid var(--hdg-line);
	box-shadow: 0 14px 40px -28px rgba(0, 27, 68, .35);
}

.hdg-goal__nums {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin-bottom: 12px;
}

.hdg-goal__value {
	font-size: clamp(1.8rem, 4vw, 2.5rem);
	line-height: 1;
	font-weight: 700;
	color: var(--hdg-c);
	font-variant-numeric: tabular-nums;
}

.hdg-goal__value .is-bump {
	display: inline-block;
	animation: hdg-bump .6s var(--hdg-spring, ease);
}

@keyframes hdg-bump {
	40% { transform: scale(1.12); }
}

.hdg-goal__of {
	color: var(--hdg-muted);
	font-weight: 500;
}

.hdg-goal__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 12px;
	font-size: .9rem;
	color: var(--hdg-muted);
}

.hdg-goal__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hdg-goal__meta .hdg-icon {
	color: var(--hdg-c);
}

.hdg-goal__match {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--hdg-accent-2) 10%, #fff);
	color: color-mix(in srgb, var(--hdg-accent-2) 70%, #000);
	font-size: .9rem;
	font-weight: 600;
}

.hdg-goal--compact {
	padding: 16px 18px;
}

.hdg-ring {
	position: relative;
	width: 180px;
	aspect-ratio: 1;
	margin-inline: auto;
}

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

.hdg-ring circle {
	fill: none;
	stroke-width: 10;
}

.hdg-ring__track {
	stroke: #e8eef2;
}

.hdg-ring__fill {
	stroke: var(--hdg-c);
	stroke-linecap: round;
	stroke-dasharray: var(--circ);
	stroke-dashoffset: var(--circ);
	transition: stroke-dashoffset 1.8s var(--hdg-ease);
}

.hdg-ring.is-in .hdg-ring__fill,
html:not(.hdg-js) .hdg-ring__fill {
	stroke-dashoffset: var(--off);
}

.hdg-ring__label {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	text-align: center;
}

.hdg-ring__label strong {
	font-size: 1.6rem;
	color: var(--hdg-c);
}

.hdg-ring__label span {
	font-size: .85rem;
	color: var(--hdg-muted);
}

.hdg-totals {
	text-align: center;
}

.hdg-totals__num {
	font-size: clamp(2.4rem, 7vw, 4rem);
	line-height: 1;
	font-weight: 700;
	color: var(--hdg-c);
	font-variant-numeric: tabular-nums;
}

.hdg-totals__label {
	margin: 6px 0 16px;
	color: var(--hdg-muted);
}

.hdg-totals .hdg-bar {
	max-width: 520px;
	margin-inline: auto;
}

.hdg-totals__meta {
	margin-top: 10px;
	font-size: .9rem;
	color: var(--hdg-muted);
}

/* --------------------------------------------------------------- campaign */

.hdg-campaign {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}

.hdg-campaign__aside {
	position: sticky;
	top: calc(var(--hdg-sticky-top, 90px));
	scroll-margin-top: 90px;
}

.hdg-campaign__media {
	margin: 0 0 22px;
	border-radius: var(--hdg-radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.hdg-campaign__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hdg-campaign__title {
	margin: 0 0 16px;
}

.hdg-campaign__story {
	margin-bottom: 30px;
}

.hdg-campaign__wall h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
}

.hdg-campaign__wall h3 .hdg-icon {
	color: var(--hdg-c);
}

.hdg-formtabs {
	display: flex;
	gap: 6px;
	margin: 0 0 12px;
	padding: 5px;
	border-radius: 999px;
	background: #f1f4f7;
}

.hdg-formtab {
	flex: 1;
	padding: 9px 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--hdg-muted);
	font: inherit;
	font-size: .88rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .25s, color .25s;
}

.hdg-formtab.is-active {
	background: #fff;
	color: var(--hdg-ink);
	box-shadow: 0 2px 8px rgba(0, 27, 68, .1);
}

@media (max-width: 960px) {
	.hdg-campaign {
		grid-template-columns: 1fr;
	}

	.hdg-campaign__aside {
		position: static;
		order: -1;
	}

	.hdg-campaign__main {
		display: contents;
	}

	.hdg-campaign__media { order: -3; }
	.hdg-campaign .hdg-goal { order: -2; }
}

/* Campaign cards */
.hdg-cgrid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	gap: 24px;
}

@media (max-width: 1000px) {
	.hdg-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.hdg-cgrid { grid-template-columns: 1fr; }
}

.hdg-ccard {
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--hdg-line);
	overflow: hidden;
	transition: transform .4s var(--hdg-ease), box-shadow .4s var(--hdg-ease), border-color .3s;
}

.hdg-ccard:hover {
	transform: translateY(-5px);
	border-color: color-mix(in srgb, var(--hdg-c) 40%, var(--hdg-line));
	box-shadow: 0 24px 50px -28px rgba(0, 27, 68, .45);
}

.hdg-ccard__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--hdg-soft);
}

.hdg-ccard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--hdg-ease);
}

.hdg-ccard:hover .hdg-ccard__media img {
	transform: scale(1.06);
}

.hdg-ccard__media .hdg-chip {
	position: absolute;
	top: 12px;
	left: 12px;
}

.hdg-ccard__media .hdg-chip--match {
	left: auto;
	right: 12px;
}

.hdg-ccard__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 18px 20px 20px;
}

.hdg-ccard__body h3 {
	margin: 0;
	font-size: 1.18rem;
	line-height: 1.3;
}

.hdg-ccard__body h3 a {
	color: inherit;
	text-decoration: none;
}

.hdg-ccard__body p {
	margin: 0;
	color: var(--hdg-muted);
	font-size: .93rem;
}

.hdg-ccard__stats {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: .85rem;
	color: var(--hdg-muted);
}

.hdg-ccard__stats strong {
	color: var(--hdg-ink);
}

.hdg-ccard .hdg-btn {
	align-self: flex-start;
	margin-top: auto;
}

.hdg-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: var(--hdg-ink);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .03em;
	backdrop-filter: blur(6px);
}

.hdg-chip--match {
	background: var(--hdg-accent-2);
	color: #fff;
}

.hdg-chip--soft {
	background: var(--hdg-soft);
	color: var(--hdg-c);
	font-size: .7rem;
	padding: 2px 8px;
}

/* -------------------------------------------------------------- donor wall */

.hdg-wall {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}

.hdg-wall--empty {
	display: block;
	padding: 24px;
	border-radius: 16px;
	background: var(--hdg-soft);
	text-align: center;
	color: var(--hdg-muted);
}

.hdg-gift {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--hdg-line);
	transition: transform .3s var(--hdg-ease), border-color .3s;
}

.hdg-js .hdg-wall .hdg-gift.hdg-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .6s var(--hdg-ease), transform .6s var(--hdg-ease), border-color .3s;
	transition-delay: calc(min(var(--i, 0), 8) * 60ms);
}

.hdg-js .hdg-wall .hdg-gift.hdg-reveal.is-in {
	opacity: 1;
	transform: none;
}

.hdg-gift:hover {
	border-color: hsl(var(--h) 55% 70%);
}

.hdg-gift__avatar {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 50%;
	background: linear-gradient(135deg, hsl(var(--h) 62% 52%), hsl(calc(var(--h) + 40) 60% 42%));
	color: #fff;
	font-weight: 700;
	font-size: .95rem;
}

.hdg-gift__body {
	min-width: 0;
	flex: 1;
}

.hdg-gift__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

.hdg-gift__amt {
	font-weight: 700;
	color: var(--hdg-c);
}

.hdg-gift__tribute {
	margin-top: 2px;
	font-size: .82rem;
	color: var(--hdg-muted);
	font-style: italic;
}

.hdg-gift__comment {
	margin: 6px 0 0;
	font-size: .9rem;
	color: var(--hdg-ink);
}

.hdg-gift__ago {
	margin-top: 4px;
	font-size: .78rem;
	color: var(--hdg-muted);
}

.hdg-ticker {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hdg-ticker__track {
	display: flex;
	gap: 12px;
	width: max-content;
	animation: hdg-marquee 60s linear infinite;
}

.hdg-ticker:hover .hdg-ticker__track {
	animation-play-state: paused;
}

.hdg-ticker .hdg-gift {
	width: 280px;
	flex: none;
}

@keyframes hdg-marquee {
	to { transform: translateX(calc(-50% - 6px)); }
}

/* Generic reveal */
.hdg-js .hdg-goal.hdg-reveal,
.hdg-js .hdg-ccard.hdg-reveal,
.hdg-js .hdg-totals.hdg-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s var(--hdg-ease), transform .7s var(--hdg-ease), box-shadow .4s, border-color .3s;
}

.hdg-js .hdg-goal.hdg-reveal.is-in,
.hdg-js .hdg-ccard.hdg-reveal.is-in,
.hdg-js .hdg-totals.hdg-reveal.is-in {
	opacity: 1;
	transform: none;
}

.hdg-js .hdg-ccard.hdg-reveal.is-in:hover {
	transform: translateY(-5px);
}

/* ---------------------------------------------------------- donor dashboard */

.hdg-dash {
	max-width: 980px;
	margin-inline: auto;
}

.hdg-dash__card {
	padding: clamp(20px, 4vw, 34px);
	border-radius: var(--hdg-radius);
	background: #fff;
	border: 1px solid var(--hdg-line);
	box-shadow: 0 24px 60px -36px rgba(0, 27, 68, .4);
}

.hdg-dash__login {
	max-width: 480px;
	margin-inline: auto;
	text-align: center;
}

.hdg-dash__login .hdg-dash__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--hdg-soft);
	color: var(--hdg-c);
}

.hdg-dash__login h2 {
	margin: 0 0 6px;
}

.hdg-dash__login p {
	color: var(--hdg-muted);
}

.hdg-dash__login form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
	text-align: left;
}

.hdg-dash__login form.is-sent .hdg-field,
.hdg-dash__login form.is-sent button {
	display: none;
}

.hdg-dash__msg {
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--hdg-soft);
	color: var(--hdg-ink);
	font-size: .93rem;
}

.hdg-dash__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 20px;
}

.hdg-dash__head h2 {
	margin: 0;
}

.hdg-dash__head p {
	margin: 2px 0 0;
	color: var(--hdg-muted);
}

.hdg-dash__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	margin-bottom: 22px;
}

.hdg-dash__stat {
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--hdg-soft);
}

.hdg-dash__stat strong {
	display: block;
	font-size: 1.5rem;
	color: var(--hdg-c);
	font-variant-numeric: tabular-nums;
}

.hdg-dash__stat span {
	font-size: .85rem;
	color: var(--hdg-muted);
}

.hdg-dash__tabs {
	display: flex;
	gap: 6px;
	margin: 0 0 18px;
	padding: 0;
	border-bottom: 1px solid var(--hdg-line);
	overflow-x: auto;
}

.hdg-dash__tabs button {
	padding: 10px 14px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	color: var(--hdg-muted);
	font: inherit;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.hdg-dash__tabs button.is-active {
	color: var(--hdg-ink);
	border-bottom-color: var(--hdg-c);
}

.hdg-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .93rem;
}

.hdg-table th,
.hdg-table td {
	padding: 11px 8px;
	border-bottom: 1px solid var(--hdg-line);
	text-align: left;
	vertical-align: middle;
}

.hdg-table th {
	font-size: .78rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--hdg-muted);
}

.hdg-table td.num {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.hdg-status {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	background: #eef2f5;
	font-size: .76rem;
	font-weight: 700;
}

.hdg-status--completed,
.hdg-status--active { background: #e3f4ea; color: #1f6b3a; }
.hdg-status--pending,
.hdg-status--processing,
.hdg-status--past_due { background: #fff4e5; color: #8a4b00; }
.hdg-status--failed,
.hdg-status--cancelled,
.hdg-status--refunded { background: #fdeceb; color: #a1271f; }

.hdg-subs {
	display: grid;
	gap: 12px;
}

.hdg-sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid var(--hdg-line);
	border-radius: 16px;
}

.hdg-sub__main strong {
	display: block;
	font-size: 1.08rem;
}

.hdg-sub__main span {
	font-size: .88rem;
	color: var(--hdg-muted);
}

.hdg-sub__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.hdg-sub__actions input {
	width: 110px;
	min-height: 40px;
	padding: 6px 12px;
	border: 1.5px solid var(--hdg-line);
	border-radius: 999px;
	font: inherit;
}

.hdg-years {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hdg-empty {
	padding: 20px;
	border-radius: 14px;
	background: #f6f8fa;
	color: var(--hdg-muted);
	text-align: center;
}

/* ----------------------------------------------------------------- receipt */

.hdg-receipt {
	max-width: 720px;
	margin-inline: auto;
	padding: clamp(22px, 5vw, 48px);
	border-radius: var(--hdg-radius);
	background: #fff;
	border: 1px solid var(--hdg-line);
	box-shadow: 0 24px 60px -36px rgba(0, 27, 68, .4);
}

.hdg-receipt__head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 3px solid var(--hdg-c);
}

.hdg-receipt__head h2 {
	margin: 0;
}

.hdg-receipt__org {
	text-align: right;
	font-size: .88rem;
	color: var(--hdg-muted);
	white-space: pre-line;
}

.hdg-receipt__org strong {
	color: var(--hdg-ink);
}

.hdg-receipt .hdg-table td:last-child {
	text-align: right;
}

.hdg-receipt__note {
	margin-top: 20px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #f6f8fa;
	font-size: .88rem;
	color: var(--hdg-muted);
}

.hdg-receipt__actions {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

@media print {
	.hdg-receipt { box-shadow: none; border: 0; padding: 0; }
	.hdg-receipt__actions,
	.hdg-dash__tabs,
	.hdg-noprint { display: none !important; }
}

/* Narrow forms (sidebars, phones): only the current step keeps its label. */
@container hdgform (max-width: 440px) {
	.hdg-steps li { font-size: 0; gap: 4px; }
	.hdg-steps li.is-active { font-size: .8rem; }
	.hdg-steps li::after { margin-left: 4px; }
	.hdg-btn--give { white-space: nowrap; font-size: .95rem; padding-inline: 1em; }
	.hdg-actions .hdg-btn--ghost { padding-inline: 1.1em; }
	.hdg-grid2 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 520px) {
	.hdg-form { border-radius: 18px; }
	.hdg-grid2,
	.hdg-grid3 { grid-template-columns: 1fr; }
	.hdg-amounts { grid-template-columns: repeat(2, 1fr); }
	.hdg-steps li { font-size: 0; gap: 4px; }
	.hdg-steps li.is-active { font-size: .8rem; }
	.hdg-receipt__head { flex-direction: column; }
	.hdg-receipt__org { text-align: left; }
	.hdg-table th:nth-child(4),
	.hdg-table td:nth-child(4) { display: none; }
}

/* --------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
	.hdg-form *,
	.hdg-form::before,
	.hdg-campaign *,
	.hdg-goal,
	.hdg-goal *,
	.hdg-ring *,
	.hdg-ccard,
	.hdg-ccard *,
	.hdg-wall *,
	.hdg-ticker__track,
	.hdg-totals,
	.hdg-totals * {
		animation: none !important;
		transition: none !important;
	}

	.hdg-reveal,
	.hdg-wall .hdg-gift.hdg-reveal {
		opacity: 1 !important;
		transform: none !important;
	}

	.hdg-reveal:not(.is-in) .hdg-bar > span { width: var(--p, 0%); }
	.hdg-ring .hdg-ring__fill { stroke-dashoffset: var(--off); }
}
