/* Stat: a big number and a short label. */
.px-page .px-stat { display: grid; gap: var(--px-space-xs); align-content: start; }
.px-page .px-stat--al-start { text-align: start; justify-items: start; }
.px-page .px-stat--al-center { text-align: center; justify-items: center; }
.px-page .px-stat__value {
	margin: 0;
	color: var(--px-color-heading);
	font-family: var(--px-font-heading);
	font-weight: var(--px-weight-heading);
	font-size: var(--px-stat-fs, var(--px-text-h2));
	line-height: 1;
	overflow-wrap: anywhere;
}
/* Big numbers stay on one line: capped by the column width (the column is an inline-size container).
   1.12: in a row with dividing lines every column sizes its number from the narrowest content box of the row (own width
   + own line padding - the largest line padding of the row), so equal columns give equal numbers that still fit. */
.px-page .px-stat { --px-stat-w: calc(100cqi + var(--px-pad-s, 0px) + var(--px-pad-e, 0px) - var(--px-pad-max, 0px)); }
.px-page :is(.px-stat--l, .px-stat--xl, .px-stat--xxl) .px-stat__value { white-space: nowrap; overflow-wrap: normal; }
.px-page .px-stat--s { --px-stat-fs: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); }
.px-page .px-stat--l { --px-stat-fs: min(var(--px-text-display), calc(var(--px-stat-w) * .22)); }
.px-page .px-stat--xl { --px-stat-fs: min(clamp(3rem, 2rem + 4vw, 6rem), calc(var(--px-stat-w) * .26)); }
.px-page .px-stat--xxl { --px-stat-fs: min(clamp(4.5rem, 9vw, 8.25rem), calc(var(--px-stat-w) * .46)); }
.px-page .px-stat--accent .px-stat__value { color: var(--px-color-primary-text); }
.px-page .px-stat--outline .px-stat__value { color: var(--px-color-primary-text); }
@supports (-webkit-text-stroke: 1px transparent) {
	.px-page .px-stat--outline .px-stat__value { color: transparent; -webkit-text-stroke: 2px var(--px-color-primary-text); }
}
.px-page .px-stat__label { margin: 0; color: var(--px-color-muted); font-size: 1rem; line-height: var(--px-leading-body); overflow-wrap: anywhere; }

/* Suffix: small, raised after the number (+, k, %). */
.px-page .px-stat__num { display: flex; align-items: flex-start; gap: .1em; min-width: 0; max-width: 100%; }
.px-page .px-stat__suffix {
	flex: none;
	color: var(--px-color-primary-text);
	font-family: var(--px-font-heading);
	font-weight: var(--px-weight-heading);
	font-size: calc(var(--px-stat-fs, var(--px-text-h2)) * .45);
	line-height: 1;
	white-space: nowrap;
}

/* labelTop (advanced): the label is printed before the number (1rem). rule (advanced): a 1px line on top of the figure. */
.px-page .px-stat--label-top .px-stat__label { font-size: 1rem; }
.px-page .px-stat--rule { padding-top: var(--px-space-s); border-top: 1px solid var(--px-color-border); }
.px-page .px-stat--label-inline { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .5em; row-gap: 0; }
/* labelInline (advanced): the label sits on the number's line, after it, at its own size. */
.px-page .px-stat--label-inline .px-stat__num { align-items: baseline; }
.px-page .px-stat--s .px-stat__label,
.px-page .px-stat--label-s .px-stat__label { font-size: .90625rem; }
