/* ==========================================================================
 * TL Commodities Enterprise Design System — Canonical Tokens & Self-Hosted Fonts
 * Source: GitLab project tlc/shared/design-system
 * Pinned Commit: ae9cce94cbc71ecca291fd2e799a68351b3a271b (@tlcommodities/ui)
 * Figma Baseline: freight-for-trader-2026-10 (shadcn/ui Nova compact kit)
 *
 * PURELY DECLARATIVE LAYER:
 * - Only `--tlc-*` custom properties + `@font-face` declarations (SIL OFL Geist).
 * - Zero unprefixed shadcn/Bootstrap/Frappe variable overrides (safe across Desk,
 *   Web/Login, HRMS Ionic PWA `/hrms`, Roster Vue `/hr/roster`, and Raven `/raven`).
 * ========================================================================== */

@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/tlc_hr/fonts/Geist-Regular.woff2") format("woff2");
}

@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/assets/tlc_hr/fonts/Geist-Medium.woff2") format("woff2");
}

@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/assets/tlc_hr/fonts/Geist-SemiBold.woff2") format("woff2");
}

@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/assets/tlc_hr/fonts/Geist-Bold.woff2") format("woff2");
}

@font-face {
	font-family: "Geist Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/tlc_hr/fonts/GeistMono-Regular.woff2") format("woff2");
}

@font-face {
	font-family: "Geist Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/assets/tlc_hr/fonts/GeistMono-Medium.woff2") format("woff2");
}

@font-face {
	font-family: "Geist Mono";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/assets/tlc_hr/fonts/GeistMono-SemiBold.woff2") format("woff2");
}

@font-face {
	font-family: "Geist Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/assets/tlc_hr/fonts/GeistMono-Bold.woff2") format("woff2");
}

:root {
	/* Neutral surface ramp (Figma shadcn neutral) */
	--tlc-white: #ffffff;
	--tlc-neutral-50: #fafafa;
	--tlc-neutral-100: #f5f5f5;
	--tlc-neutral-200: #e5e5e5;
	--tlc-neutral-300: #d4d4d4;
	--tlc-neutral-400: #a3a3a3;
	--tlc-neutral-500: #737373;
	--tlc-neutral-600: #525252;
	--tlc-neutral-700: #404040;
	--tlc-neutral-800: #262626;
	--tlc-neutral-900: #171717;
	--tlc-neutral-950: #0a0a0a;
	--tlc-black: #000000;

	/* Brand accents (Figma accent/tlc-accent-1 & accent/tlc-accent-2) */
	--tlc-teal: #0f5a59;
	--tlc-teal-hover: #0b423e;
	--tlc-teal-soft: #e6f0ef;
	--tlc-teal-border: #b6d4d2;
	--tlc-accent-1: #0f5a59;
	--tlc-accent-2: #dc8332;
	--tlc-orange: #dc8332;
	--tlc-orange-hover: #c8742a;
	--tlc-orange-soft: #fbf0e4;

	/* Status & feedback axis */
	--tlc-green: #16a34a;
	--tlc-green-soft: #dcfce7;
	--tlc-red: #dc2626;
	--tlc-red-soft: #fadfdf;
	--tlc-amber: #d97706;
	--tlc-amber-soft: #fef3c7;
	--tlc-blue: #3b82f6;
	--tlc-blue-strong: #2563eb;

	/* Deuteranopia-verified chart series (palette.ts chartSeries 1..6) */
	--tlc-chart-1: #dc2626;
	--tlc-chart-2: #dc8332;
	--tlc-chart-3: #0f5a59;
	--tlc-chart-4: #3b82f6;
	--tlc-chart-5: #93c5fd;
	--tlc-chart-6: #1e40af;

	/* Semantic aliases for tlc_hr components */
	--tlc-brand: var(--tlc-teal);
	--tlc-brand-hover: var(--tlc-teal-hover);
	--tlc-brand-soft: var(--tlc-teal-soft);
	--tlc-brand-border: var(--tlc-teal-border);
	--tlc-ink: var(--tlc-neutral-950);
	--tlc-muted: var(--tlc-neutral-500);
	--tlc-surface: var(--tlc-white);
	--tlc-surface-subtle: var(--tlc-neutral-50);
	--tlc-surface-muted: var(--tlc-neutral-100);
	--tlc-border: var(--tlc-neutral-200);

	/* Typography (Geist Sans & Geist Mono, SIL OFL) */
	--tlc-font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tlc-font-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tlc-font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	/* Nova Compact Radii */
	--tlc-radius-sm: 6px;
	--tlc-radius-md: 8px;
	--tlc-radius-lg: 10px;
	--tlc-radius-xl: 14px;
	--tlc-radius-full: 999px;

	/* Elevation, Focus Ring & Motion */
	--tlc-ring-shadow: 0 0 0 2px rgba(212, 212, 212, 0.65);
	--tlc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--tlc-shadow-md: 0 4px 6px -4px rgba(0, 0, 0, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--tlc-shadow-lg: 0 4px 6px -4px rgba(0, 0, 0, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--tlc-ease: cubic-bezier(0.2, 0.7, 0.3, 1);

	/* Shell geometry (1728px frame / 240px sidebar / 52px topbar) */
	--tlc-sidebar-width: 240px;
	--tlc-topbar-height: 52px;
}

/* Dark-mode accessible token overrides (WCAG AA contrast on dark Desk surfaces) */
:root[data-theme="dark"] {
	--tlc-brand: #2dd4bf;
	--tlc-brand-hover: #5eead4;
	--tlc-brand-soft: rgba(15, 90, 89, 0.28);
	--tlc-brand-border: rgba(45, 212, 191, 0.35);
	--tlc-ink: #fafafa;
	--tlc-muted: #a3a3a3;
	--tlc-surface: #171717;
	--tlc-surface-subtle: #262626;
	--tlc-surface-muted: #262626;
	--tlc-border: #404040;
	--tlc-ring-shadow: 0 0 0 2px rgba(45, 212, 191, 0.45);
}
