/* HUMX Design System v3 – tokeni (sursa unică pentru Desk, portaluri, Puls, Control Tower și paginile publice).
   Direcția: „Human-Centered Enterprise Design” – profesional, cald, intuitiv, eficient.
   Regula de aur: portocaliul HUMX e identitate (marcă, element activ, focus), niciodată stare.
   Stările folosesc doar paleta funcțională (progres / atenție / risc / info) și apar mereu cu text. */

/* Plus Jakarta Sans (OFL, găzduit local) – fontul principal; Inter (inclus în Frappe) – tabele dense. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
	src: url(/assets/humx_people/fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
	src: url(/assets/humx_people/fonts/plus-jakarta-sans-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "InterVariable"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url(/assets/frappe/css/fonts/inter/InterVariable.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
	src: url(/assets/humx_people/fonts/space-grotesk-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
	src: url(/assets/humx_people/fonts/space-grotesk-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	/* ---- paleta principală (brief) */
	--humx-canvas: #faf9f6;        /* Warm Canvas – fundalul aplicației */
	--humx-surface: #ffffff;       /* Pure Surface – carduri, tabele, formulare */
	--humx-stone: #efeee9;         /* Soft Stone – bara laterală, zone secundare, hover */
	--humx-charcoal: #22221f;      /* Charcoal – text principal, butonul principal */
	--humx-orange: #e94c19;        /* HUMX Orange – doar identitate */
	--humx-grey: #77766f;          /* Warm Grey – pictograme, text ≥ 14px pe alb */

	--humx-orange-ink: #c2410c;    /* text în portocaliu pe alb (5,2:1) – rar, doar marcă */
	--humx-orange-soft: #fdeee7;   /* evidențiere de marcă (de ex. pasul curent din configurare) */

	/* ---- neutre calde (scala folosită și pentru --gray-* din Frappe) */
	--humx-warm-50: #faf9f6;
	--humx-warm-100: #f5f4f0;
	--humx-warm-200: #efeee9;
	--humx-warm-300: #e4e2dc;
	--humx-warm-400: #cac7bf;
	--humx-warm-500: #9e9c94;
	--humx-warm-600: #77766f;
	--humx-warm-700: #5c5b55;
	--humx-warm-800: #3a3935;
	--humx-warm-900: #22221f;
	--humx-warm-950: #171715;

	/* ---- text */
	--humx-ink: var(--humx-charcoal);
	--humx-ink-2: #66655f;         /* text secundar (5,5:1 pe canvas) */
	--humx-ink-3: var(--humx-grey);/* meta, pictograme */
	--humx-line: #e7e5df;          /* contururi fine, contrast scăzut */
	--humx-line-strong: #d6d3cb;

	/* ---- paleta funcțională (stări) */
	--humx-progress: #52766b;   --humx-progress-ink: #405a51;   --humx-progress-soft: #e9efec;   --humx-progress-line: #cfd9d6;
	--humx-attention: #ac782d;  --humx-attention-ink: #7f5b26;  --humx-attention-soft: #f5eee3;  --humx-attention-line: #e8d9c4;
	--humx-risk: #b74538;       --humx-risk-ink: #9f3e33;       --humx-risk-soft: #f7e9e7;       --humx-risk-line: #ebcbc7;
	--humx-info: #6c7897;       --humx-info-ink: #525b70;       --humx-info-soft: #eceef3;       --humx-info-line: #d6d9e2;

	/* compatibilitate v2 (cod existent) */
	--humx-black: var(--humx-charcoal);
	--humx-white: #ffffff;
	--humx-accent: var(--humx-orange);
	--humx-accent-ink: var(--humx-orange-ink);
	--humx-accent-soft: var(--humx-orange-soft);
	--humx-sidebar: var(--humx-stone);
	--humx-success: var(--humx-progress);
	--humx-warning: var(--humx-attention-ink);
	--humx-danger: var(--humx-risk);

	/* ---- tipografie */
	--humx-font-text: "Plus Jakarta Sans", "InterVariable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--humx-font-data: "InterVariable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--humx-font-display: var(--humx-font-text);
	--humx-font-brand: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
	--humx-text-xs: 12px;
	--humx-text-sm: 13px;
	--humx-text: 14px;
	--humx-text-lg: 15px;
	--humx-h3: 16px;
	--humx-h2: 19px;
	--humx-title: 30px;           /* titlul paginii: 28–32 px semibold */
	--humx-kpi: 34px;             /* cifra principală */
	--humx-kpi-sm: 26px;

	/* ---- formă, ritm, adâncime */
	--humx-space-1: 4px; --humx-space-2: 8px; --humx-space-3: 12px; --humx-space-4: 16px;
	--humx-space-5: 20px; --humx-space-6: 24px; --humx-space-8: 32px; --humx-space-10: 40px;
	--humx-radius-xs: 6px;
	--humx-radius-sm: 8px;        /* butoane, câmpuri */
	--humx-radius-md: 10px;       /* carduri mici */
	--humx-radius-lg: 12px;       /* carduri */
	--humx-radius-full: 999px;
	--humx-shadow-xs: 0 1px 1px rgba(34, 34, 31, 0.04);
	--humx-shadow-sm: 0 1px 2px rgba(34, 34, 31, 0.05), 0 1px 1px rgba(34, 34, 31, 0.03);
	--humx-shadow-md: 0 4px 12px -2px rgba(34, 34, 31, 0.08), 0 1px 3px rgba(34, 34, 31, 0.05);
	--humx-shadow-lg: 0 16px 40px -8px rgba(34, 34, 31, 0.16), 0 2px 6px rgba(34, 34, 31, 0.06);
	--humx-row: 44px;             /* rând de tabel, densitate confortabilă */
	--humx-row-compact: 34px;     /* rând de tabel, densitate compactă */
	--humx-sidebar-width: 248px;   /* meniul contextual: 240–260 px, reglabil prin tragere (220–320) */

	/* ---- navigație (Dock + meniul contextual) */
	--humx-nav-dock-bg: #ffffff;
	--humx-nav-bg: #f4f3ef;
	--humx-nav-active: #fbe9e0;    /* selecția activă */
	--humx-nav-active-ink: #b53c12;/* pictograma activă (5,3:1 pe #FBE9E0) */
	--humx-nav-ink: #2f2f2b;       /* text meniu (12:1) */
	--humx-nav-icon: #5c5b55;      /* pictograme secundare (6,2:1) */
	--humx-nav-hover: rgba(34, 34, 31, 0.055);
	--humx-nav-item-h: 36px;
	--humx-nav-dock-w: 60px;
	--humx-content-max: 1200px;

	/* ---- mișcare: 120–180 ms, fără sărituri */
	--humx-ease: cubic-bezier(0.2, 0, 0, 1);
	--humx-fast: 120ms;
	--humx-base: 160ms;
	--humx-slow: 180ms;

	--humx-focus: 0 0 0 2px var(--humx-surface), 0 0 0 4px rgba(233, 76, 25, 0.55);
}

/* ---- tema închisă: Desk ([data-theme=dark]) și paginile web care urmează sistemul (.hx-dark sau prefers-color-scheme) */
[data-theme="dark"] {
	--humx-canvas: #171715;
	--humx-surface: #1f1e1c;
	--humx-stone: #262522;
	--humx-charcoal: #f3f1ec;
	--humx-grey: #a3a199;
	--humx-orange: #f0602e;
	--humx-orange-ink: #ff8a5c;
	--humx-orange-soft: rgba(240, 96, 46, 0.14);
	--humx-ink: #f3f1ec;
	--humx-ink-2: #c4c1b8;
	--humx-ink-3: #a3a199;
	--humx-line: #33322e;
	--humx-line-strong: #45433e;
	--humx-progress: #86ab9f;   --humx-progress-ink: #a6c6bb;   --humx-progress-soft: rgba(134, 171, 159, 0.14);  --humx-progress-line: rgba(134, 171, 159, 0.3);
	--humx-attention: #d4a45f;  --humx-attention-ink: #e3bd85;  --humx-attention-soft: rgba(212, 164, 95, 0.14);  --humx-attention-line: rgba(212, 164, 95, 0.3);
	--humx-risk: #e07a6c;       --humx-risk-ink: #eea095;       --humx-risk-soft: rgba(224, 122, 108, 0.14);     --humx-risk-line: rgba(224, 122, 108, 0.3);
	--humx-info: #9ea8c6;       --humx-info-ink: #bcc3da;       --humx-info-soft: rgba(158, 168, 198, 0.14);     --humx-info-line: rgba(158, 168, 198, 0.3);
	--humx-shadow-xs: none;
	--humx-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
	--humx-shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.45);
	--humx-shadow-lg: 0 18px 44px -10px rgba(0, 0, 0, 0.6);
	--humx-focus: 0 0 0 2px var(--humx-surface), 0 0 0 4px rgba(240, 96, 46, 0.6);
	--humx-nav-dock-bg: #1c1b19;
	--humx-nav-bg: #201f1c;
	--humx-nav-active: rgba(240, 96, 46, 0.16);
	--humx-nav-active-ink: #ff9a70;
	--humx-nav-ink: #e9e6df;
	--humx-nav-icon: #b4b1a9;
	--humx-nav-hover: rgba(255, 255, 255, 0.05);
}

@media (prefers-reduced-motion: reduce) {
	:root { --humx-fast: 0ms; --humx-base: 0ms; --humx-slow: 0ms; }
}
