/* Design tokens: the only place with colour, font and radius values. Values from the final mocks
   (light = Harbor navy, dark = Night Shift teal). The *-rgb triplets feed Bootstrap's rgba() uses. */

:root,
[data-bs-theme=light] {
	--tb-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--tb-radius: 6px;

	--tb-accent: #1F5FA8;
	--tb-accent-rgb: 31, 95, 168;
	--tb-accent-hover: #194E8A;
	--tb-on-accent: #FFFFFF;
	--tb-soft: #E8F0FA;
	--tb-soft-border: transparent;
	--tb-ink: #1A528F;
	--tb-ink-rgb: 26, 82, 143;

	--tb-bg: #F0F3F7;
	--tb-surface: #FFFFFF;
	--tb-surface-rgb: 255, 255, 255;
	--tb-surface-alt: #F3F6FA;
	--tb-border: #C5CFDB;
	--tb-text: #16202B;
	--tb-text-rgb: 22, 32, 43;
	--tb-muted: #4A5667;
	--tb-muted-rgb: 74, 86, 103;

	--tb-field-bg: #FFFFFF;
	--tb-field-border: #8593A6;
	--tb-switch-off: #B4BFCC;
	--tb-disabled-bg: #E4E9EF;

	--tb-ok: #1A7F37;
	--tb-ok-rgb: 26, 127, 55;
	--tb-warn: #8F5B00;
	--tb-warn-rgb: 143, 91, 0;
	--tb-danger: #B42318;
	--tb-danger-rgb: 180, 35, 24;
	--tb-on-danger: #FFFFFF;
	--tb-on-warning: #212529;
	--tb-off: #66717F;

	--tb-nav: #FFFFFF;
	--tb-nav-text: #4A5667;
	--tb-nav-active: #16202B;
	--tb-nav-border: #C5CFDB;
	--tb-nav-input-bg: #F3F6FA;
	--tb-nav-input-border: #C5CFDB;
	--tb-nav-input-text: #16202B;
	--tb-nav-placeholder: #66717F;
	/* The company's System Color, only on the active top-nav underline and icon (the icon darkened when too light to see on white). */
	--tb-nav-line: var(--tb-system-color, #1F5FA8);
	--tb-nav-icon-active: oklch(from var(--tb-nav-line) min(l, 0.6) c h);

	--tb-card-title-transform: none;
	--tb-card-title-spacing: normal;
	--tb-card-title-size: 16px;
	--tb-card-title-color: var(--tb-text);
}

[data-bs-theme=dark] {
	--tb-radius: 4px;

	--tb-accent: #2DD4BF;
	--tb-accent-rgb: 45, 212, 191;
	--tb-accent-hover: #5EEAD4;
	--tb-on-accent: #032420;
	--tb-soft: #0F2A28;
	--tb-soft-border: #1D4A45;
	--tb-ink: #5EEAD4;
	--tb-ink-rgb: 94, 234, 212;

	--tb-bg: #0E1014;
	--tb-surface: #171A20;
	--tb-surface-rgb: 23, 26, 32;
	--tb-surface-alt: #1D2128;
	--tb-border: #2A2F38;
	--tb-text: #E8EAED;
	--tb-text-rgb: 232, 234, 237;
	--tb-muted: #9AA3AF;
	--tb-muted-rgb: 154, 163, 175;

	--tb-field-bg: #0E1014;
	--tb-field-border: #586170;
	--tb-switch-off: #3A404B;
	--tb-disabled-bg: #20242B;

	--tb-ok: #A3E36B;
	--tb-ok-rgb: 163, 227, 107;
	--tb-warn: #FFB86B;
	--tb-warn-rgb: 255, 184, 107;
	--tb-danger: #F87171;
	--tb-danger-rgb: 248, 113, 113;
	--tb-on-danger: #2A0A0A;
	--tb-on-warning: #212529;
	--tb-off: #8A93A0;

	--tb-nav: #0A0C0F;
	--tb-nav-text: #B4BCC7;
	--tb-nav-active: #5EEAD4;
	--tb-nav-border: #22262D;
	--tb-nav-input-bg: #171A20;
	--tb-nav-input-border: #2A2F38;
	--tb-nav-input-text: #E8EAED;
	--tb-nav-placeholder: #7C8592;
	--tb-nav-line: var(--tb-system-color, #2DD4BF);
	--tb-nav-icon-active: oklch(from var(--tb-nav-line) max(l, 0.7) c h);

	--tb-card-title-transform: uppercase;
	--tb-card-title-spacing: .1em;
	--tb-card-title-size: 12px;
	--tb-card-title-color: var(--tb-muted);
}
