/*
 * Sportelo type tokens — the ONE place our plugins take text sizes and weights from.
 *
 * Sizes follow the site's Core Framework scale (--text-xs … --text-4xl), so a change of the scale in
 * Core Framework reaches every plugin widget. The px values in var() are fallbacks for a site without
 * Core Framework. The in-between steps (3xs, xs, sm) are fixed fractions of a scale step with a floor,
 * so small UI text stays readable on phones.
 *
 * The same block ships with each Sportelo plugin (identical values). It sits in :where(:root), which
 * has no specificity, so the site can override any token once (e.g. in Additional CSS) and every
 * plugin follows. Weights never go above 700 (owner's rule).
 */
:where(:root) {
	--sp-fs-3xs: max(9.5px, calc(var(--text-xs, 11.5px) * 0.87));
	--sp-fs-2xs: var(--text-xs, 11.5px);
	--sp-fs-xs: max(11.5px, calc(var(--text-s, 14.4px) * 0.85));
	--sp-fs-sm: max(12.5px, calc(var(--text-s, 14.4px) * 0.91));
	--sp-fs-s: var(--text-s, 14.4px);
	--sp-fs-m: var(--text-m, 18px);
	--sp-fs-l: var(--text-l, 22.5px);
	--sp-fs-xl: var(--text-xl, 28px);
	--sp-fs-2xl: var(--text-2xl, 35px);
	--sp-fs-3xl: var(--text-3xl, 44px);
	--sp-fs-4xl: var(--text-4xl, 55px);

	--sp-fw-regular: 400;
	--sp-fw-medium: 500;
	--sp-fw-semibold: 600;
	--sp-fw-bold: 700;
}
