/* Impact cards: stat cards built from the page's "Impact cards" fields. See includes/impact-cards.php. */

/* Numbers are sized against the card's width, the way the original artwork scaled. */
.impact-card {
	container-type: inline-size;
}

.impact-card .impact-number {
	color: #3e3e3e;
	font-family: 'Mosvita', sans-serif;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 0.78;
	overflow-wrap: normal;
	word-break: normal;
}

.impact-card .impact-number span {
	display: inline-block;
	max-width: 100%;
	position: relative;
}

.impact-number--xl { font-size: 45.5cqi; }
.impact-number--l { font-size: 39cqi; }
.impact-number--m { font-size: min(73px, 40cqi); }
.impact-number--s { font-size: 25.5cqi; }
.impact-number--xs { font-size: 20cqi; }
.impact-number--xxs { font-size: 16.5cqi; }

.impact-card .impact-number.has-underline {
	padding-bottom: 0.6em;
}

.impact-underline {
	position: absolute;
	top: calc(100% + 0.14em);
	left: 0;
	width: 100%;
	height: auto;
	aspect-ratio: 199 / 31;
	overflow: visible;
}

.impact-underline path {
	fill: #fdbd14;
}

.impact-card .impact-footnote {
	font-size: 12px;
	line-height: 1;
}

.impact-card--tight p + p {
	margin-top: -10px;
}

.impact-card--spaced p {
	margin-bottom: 30px;
}
