/**
 * Top fundraisers list
 *
 * Reproduces the typography the homepage card's individual Elementor heading
 * widgets used to carry, so the dynamic list renders identically without
 * depending on Elementor's per-element generated CSS.
 */
.nami-top-fundraisers {
	/**
	 * The NAMIWalks green, darkened for use as text. The button green (#94D500)
	 * only reaches 1.78:1 against the white card — fine behind black button text,
	 * too pale as text itself. This shade reads as the same green and clears the
	 * 3:1 WCAG minimum for 19px bold. Swap in #94D500 here for the exact button
	 * colour if the brand match matters more than the contrast.
	 */
	--nami-hover-color: #6d9e00;

	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nami-top-fundraisers .elementor-heading-title {
	margin: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 19px;
	font-weight: 800;
	line-height: 20px;
	letter-spacing: 0;
	text-align: center;
	color: #000;
}

.nami-top-fundraisers .elementor-heading-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}

.nami-top-fundraisers .elementor-heading-title a:hover,
.nami-top-fundraisers .elementor-heading-title a:focus-visible {
	color: var(--nami-hover-color);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The colour shift plus the underline is the whole focus indicator, so the
   default outline would only double up on it. */
.nami-top-fundraisers .elementor-heading-title a:focus-visible {
	outline: none;
}

/**
 * Goal progress bar
 *
 * Colours and dimensions match the hand-built bar this replaces (#F4F4F4 track,
 * #79A631 fill, 145px tall dropping to 130px on tablet) — the difference is that
 * the fill is now sized from the real percentage instead of a fixed 25px border.
 */
.namiwalks-progress {
	--namiwalks-progress-size: 145px;
	--namiwalks-progress-value: 0%;
	--namiwalks-progress-track: #f4f4f4;
	--namiwalks-progress-fill: #79a631;

	position: relative;
	overflow: hidden;
	background: var(--namiwalks-progress-track);
}

.namiwalks-progress__fill {
	position: absolute;
	background: var(--namiwalks-progress-fill);
	transition: height 0.6s ease-out, width 0.6s ease-out;
}

.namiwalks-progress--vertical {
	width: 100%;
	min-height: var(--namiwalks-progress-size);
}

.namiwalks-progress--vertical .namiwalks-progress__fill {
	right: 0;
	bottom: 0;
	left: 0;
	height: var(--namiwalks-progress-value);
}

.namiwalks-progress--horizontal {
	width: 100%;
	height: var(--namiwalks-progress-size);
}

.namiwalks-progress--horizontal .namiwalks-progress__fill {
	top: 0;
	bottom: 0;
	left: 0;
	width: var(--namiwalks-progress-value);
}

@media (max-width: 1024px) {
	.namiwalks-progress--vertical {
		min-height: 130px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nami-top-fundraisers .elementor-heading-title a,
	.namiwalks-progress__fill {
		transition: none;
	}
}
