/* Rose Isbell — fundraiser thermometer module
   Self-contained: brand colours come from the template's CSS custom properties
   when present, with literal fallbacks so the module also stands alone. */

.mod-ri-fundraiser { height: 100%; }

.fund-card {
	--card-h: 325px;
	background: var(--forest, #3C5741);
	color: #fff;
	border-radius: 8px;
	padding: 18px;
	box-shadow: 0 18px 40px rgba(44, 67, 49, .28);
	height: var(--card-h);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}
.fund-card h3 {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 17px;
	line-height: 1.2;
	margin: 0 0 2px;
	color: var(--cream-c, #F6EEDF);
}
.fund-card .place {
	font-size: 12px;
	color: #CFD9CC;
	margin: 0 0 10px;
}

.fund-body {
	display: flex;
	gap: 14px;
	flex: 1;
	min-height: 0;
}

/* Thermometer — fill height is driven by --pct (0-100) set inline on .thermo */
.thermo {
	--pct: 0;
	position: relative;
	flex: 0 0 46px;
	width: 46px;
}
.thermo-track {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 2px;
	bottom: 34px;
	width: 20px;
	background: rgba(255, 255, 255, .15);
	border-radius: 10px 10px 0 0;
	overflow: hidden;
}
.thermo-fill {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: calc(var(--pct) * 1%);
	min-height: 8px;
	background: linear-gradient(180deg, var(--gold-soft, #D8AC46), var(--clay, #C36B3C));
	transition: height .6s ease;
}
.thermo-bulb {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
}
.thermo-bulb::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: radial-gradient(circle at 38% 34%, var(--clay, #C36B3C), var(--terracotta-deep, #A9602F));
}
.thermo-ticks {
	position: absolute;
	right: 0;
	top: 2px;
	bottom: 34px;
	width: 7px;
	pointer-events: none;
}
.thermo-ticks i {
	position: absolute;
	right: 0;
	width: 7px;
	height: 1.5px;
	background: rgba(255, 255, 255, .28);
	transform: translateY(-50%);
}

.fund-stats {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}
.fund-stats .raised {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
}
.fund-stats .raised small {
	display: block;
	margin-top: 4px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #CFD9CC;
}
.fund-stats .goal {
	font-size: 12.5px;
	color: #CFD9CC;
	margin-top: 8px;
}
.fund-stats .pct {
	align-self: flex-start;
	margin-top: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--forest-deep, #2C4331);
	background: var(--gold-soft, #D8AC46);
	padding: 3px 9px;
	border-radius: 999px;
}

.fund-card .cta {
	display: block;
	text-align: center;
	background: var(--gold, #B9922F);
	color: var(--forest-deep, #2C4331);
	padding: 9px 14px;
	border-radius: var(--radius, 8px);
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 700;
	margin-top: 12px;
}
.fund-card .cta:hover { background: var(--gold-soft, #D8AC46); }

@media (max-width: 640px) {
	.fund-card { max-width: 380px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.thermo-fill { transition: none; }
}

/* When embedded in article content via {loadmoduleid}, host content styles such as
   ".ri-site .item-page h3 / a" would otherwise recolour the heading and button.
   The doubled wrapper class lifts specificity so the module keeps its own colours. */
.mod-ri-fundraiser.mod-ri-fundraiser .fund-card h3 { color: var(--cream-c, #F6EEDF); }
.mod-ri-fundraiser.mod-ri-fundraiser .fund-card .cta,
.mod-ri-fundraiser.mod-ri-fundraiser .fund-card .cta:hover { color: var(--forest-deep, #2C4331); }

/* When embedded inside article content the button is redundant (the reader is
   already on the page it links to), so hide it there. The hero instance keeps it. */
.item-page .mod-ri-fundraiser .fund-card .cta { display: none; }
