/* Dark theme of the public site: graphite instead of near-black (audit/AUDIT_VIZUALNA_IDENTITA_2026-11-30.md, part 5).
   The pages are written with near-black colours; under :root[data-theme="dark"] (set by the theme switch in base.html)
   this file maps them to graphite. The administration has no data-theme and stays as it is. */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="dark"] body { background: #16181d; color: #e8e6e1; }
:root[data-theme="dark"] .text-white,
:root[data-theme="dark"] .hover\:text-white:hover,
:root[data-theme="dark"] .text-neutral-100,
:root[data-theme="dark"] .text-slate-100 { color: #e8e6e1; }
:root[data-theme="dark"] .text-neutral-200,
:root[data-theme="dark"] .text-slate-200,
:root[data-theme="dark"] .text-neutral-300,
:root[data-theme="dark"] .text-slate-300 { color: #d3d2cd; }
:root[data-theme="dark"] .text-neutral-400,
:root[data-theme="dark"] .text-slate-400,
:root[data-theme="dark"] .text-neutral-500,
:root[data-theme="dark"] .text-slate-500 { color: #a3a8b3; }
:root[data-theme="dark"] .text-neutral-600,
:root[data-theme="dark"] .text-slate-600 { color: #8c919c; }

/* Page and header */
:root[data-theme="dark"] .bg-\[\#0a0a0a\],
:root[data-theme="dark"] .bg-\[\#0d0d0d\],
:root[data-theme="dark"] .bg-black { background-color: #16181d; }
:root[data-theme="dark"] .bg-\[\#0a0a0a\]\/95 { background-color: rgb(22 24 29 / .95); }
/* Cards */
:root[data-theme="dark"] .bg-\[\#121212\],
:root[data-theme="dark"] .bg-\[\#141414\],
:root[data-theme="dark"] .bg-\[\#161616\],
:root[data-theme="dark"] .bg-slate-900,
:root[data-theme="dark"] .bg-slate-950 { background-color: #1e2128; }
:root[data-theme="dark"] .bg-slate-900\/80,
:root[data-theme="dark"] .bg-slate-900\/90,
:root[data-theme="dark"] .bg-slate-900\/60,
:root[data-theme="dark"] .bg-slate-950\/50,
:root[data-theme="dark"] .bg-slate-950\/60,
:root[data-theme="dark"] .bg-slate-950\/70 { background-color: rgb(30 33 40 / .9); }
/* Raised surfaces (menus, chips) */
:root[data-theme="dark"] .bg-\[\#181818\],
:root[data-theme="dark"] .bg-\[\#1a1a1a\],
:root[data-theme="dark"] .bg-\[\#1c1c1c\],
:root[data-theme="dark"] .bg-\[\#1d1d1d\],
:root[data-theme="dark"] .bg-\[\#1f1f1f\],
:root[data-theme="dark"] .bg-slate-800,
:root[data-theme="dark"] .bg-slate-800\/60 { background-color: #262a32; }
:root[data-theme="dark"] .hover\:bg-\[\#181818\]\/70:hover,
:root[data-theme="dark"] .hover\:bg-\[\#222\]:hover,
:root[data-theme="dark"] .hover\:bg-\[\#252525\]:hover,
:root[data-theme="dark"] .hover\:bg-\[\#282828\]:hover,
:root[data-theme="dark"] .hover\:bg-\[\#2a2a2a\]:hover,
:root[data-theme="dark"] .hover\:bg-slate-800\/40:hover,
:root[data-theme="dark"] .hover\:bg-slate-800:hover { background-color: #2c313a; }
/* Lines */
:root[data-theme="dark"] .border-\[\#1c1c1c\],
:root[data-theme="dark"] .border-\[\#1f1f1f\],
:root[data-theme="dark"] .border-\[\#222\],
:root[data-theme="dark"] .border-\[\#262626\],
:root[data-theme="dark"] .border-\[\#2e2e2e\],
:root[data-theme="dark"] .border-slate-800,
:root[data-theme="dark"] .divide-\[\#1f1f1f\] > * + *,
:root[data-theme="dark"] .divide-\[\#262626\] > * + *,
:root[data-theme="dark"] .divide-slate-800 > * + *,
:root[data-theme="dark"] .divide-slate-800\/60 > * + * { border-color: #2e323b; }
:root[data-theme="dark"] .border-\[\#333\],
:root[data-theme="dark"] .border-\[\#383838\],
:root[data-theme="dark"] .border-slate-700,
:root[data-theme="dark"] .border-slate-700\/60 { border-color: #3a3f4a; }

/* Buttons, form fields and pickers from base.html: field edges must be visible (3 : 1). */
:root[data-theme="dark"] .ui-button { border-color: #4b515c; }
:root[data-theme="dark"] .ui-button-secondary { background: #1e2128; color: #e8e6e1; }
:root[data-theme="dark"] .ui-button-primary { color: #16181d; }
:root[data-theme="dark"] .ui-control { background: #1e2128; color: #e8e6e1; border-color: #6b7280; }
:root[data-theme="dark"] .ui-label { color: #a3a8b3; }
:root[data-theme="dark"] .country-picker-list { background: #262a32; border-color: #3a3f4a; }
:root[data-theme="dark"] .criterion-help-panel { background: #262a32; border-color: #6b7280; color: #e8e6e1; }
:root[data-theme="dark"] .legal-text { color: #d3d2cd; }
:root[data-theme="dark"] .legal-text th { background: #262a32; }
:root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder { color: #8c919c; }
:root[data-theme="dark"] .text-red-400,
:root[data-theme="dark"] .text-\[\#ef4444\] { color: #f87171; }
/* Form fields: edges visible (3 : 1) and a clear keyboard focus frame (audit, part 3, points 5 and 6). */
:root[data-theme="dark"] :is(input, select, textarea):is(.border-\[\#2e2e2e\], .border-\[\#333\], .border-\[\#262626\]):not(:focus) { border-color: #6b7280; }
:root[data-theme="dark"] .outline-none:focus-visible { outline: 2px solid rgb(var(--brand-accent)); outline-offset: 2px; }
