/* Tokens – the custom properties every other sheet reads. A colour, size or font that recurs belongs
   here rather than as a literal; nothing in this project defines Bootstrap's --bs-* properties, so a
   var(--bs-…) resolves to nothing (css-health --check undeclared-vars catches one). */

:root {
	/* Fixed colours – the same in any theme: text on a coloured fill, a fill's hover shade, shadows, backdrops */
	--white-color: #fff;
	--black-color: #000;
	--gray-100: #f8f9fa;
	--gray-200: #e9ecef;
	--gray-300: #dee2e6;
	--gray-400: #ced4da;
	--gray-500: #adb5bd;
	--gray-600: #6c757d;
	--gray-900: #212529;

	/* Theme colours */
	--primary-color: #0d6efd;
	--primary-hover: color-mix(in srgb, var(--primary-color) 85%, var(--black-color));
	--secondary-color: var(--gray-600);
	--secondary-hover: color-mix(in srgb, var(--secondary-color) 85%, var(--black-color));
	--success-color: #198754;
	--success-hover: color-mix(in srgb, var(--success-color) 85%, var(--black-color));
	--danger-color: #dc3545;
	--danger-hover: color-mix(in srgb, var(--danger-color) 85%, var(--black-color));
	--warning-color: #ffc107;
	--warning-hover: color-mix(in srgb, var(--warning-color) 85%, var(--black-color));
	--info-color: #0dcaf0;
	--purple-color: #6f42c1;
	--light-color: var(--gray-100);
	--dark-color: var(--gray-900);
	--ordinal-color: #D4A017;

	/* Surface and ink – what a theme redefines. A tint mixes toward --body-bg and a shade toward
	   --emphasis-color, so a rule written over them follows the theme without an override of its own. */
	--body-color: var(--dark-color);
	--body-bg: var(--white-color);
	--emphasis-color: var(--black-color);
	--secondary-bg: var(--gray-200);
	--tertiary-bg: var(--gray-100);
	--border-color: var(--gray-300);
	--border-color-strong: var(--gray-400);
	--border-color-translucent: color-mix(in srgb, var(--emphasis-color) 17.5%, transparent);

	/* Spacing – --space-N is the utility step N (var(--space-2) is .mb-2's 0.5rem), and --space-N-5
	   the half step above it; a padding, margin or gap reads one of these. An em length is a ratio to
	   the element's own font and stays literal, as does a 1px hairline. */
	--space-0-5: 0.125rem;
	--space-1: 0.25rem;
	--space-1-5: 0.375rem;
	--space-2: 0.5rem;
	--space-2-5: 0.75rem;
	--space-3: 1rem;
	--space-3-5: 1.25rem;
	--space-4: 1.5rem;
	--space-5: 3rem;

	/* Type – the steps below the body size; the headings' sizes live in the .fs-* utilities. Plot SVG
	   text keeps its px sizes: they are plot geometry, and the layout measures them. */
	--font-size-2xs: 0.625rem;
	--font-size-xs: 0.75rem;
	--font-size-xs-plus: 0.8125rem;
	--font-size-sm: 0.875rem;
	--font-size-base: 1rem;

	/* Radius – Bootstrap's steps; -pill rounds any box into a capsule */
	--border-radius-xs: 0.125rem;
	--border-radius-sm: 0.25rem;
	--border-radius: 0.375rem;
	--border-radius-lg: 0.5rem;
	--border-radius-xl: 1rem;
	--border-radius-xxl: 2rem;
	--border-radius-pill: 50rem;

	--font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	--navbar-height: 56px;
}
