/* Light theme of the public site. The pages are written dark; under :root[data-theme="light"] this file maps
   their dark colours to light ones (warm off-white, audit/AUDIT_VIZUALNA_IDENTITA_2026-11-30.md, part 5).
   The theme follows the device (prefers-color-scheme) unless the visitor picked one (theme switch in base.html).
   The administration has no data-theme and is not affected. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="light"] body { background: #f7f6f2; color: #1c1f26; }
:root[data-theme="light"] .admin-area { background: #f3f5f9; }
/* Brand text on white: the accent mixed with black reads well; backgrounds keep the accent. */
:root[data-theme="light"] .text-brand, :root[data-theme="light"] .hover\:text-brand:hover { color: color-mix(in srgb, rgb(var(--brand-accent)) 42%, #000); }
:root[data-theme="light"] .ui-button { border-color: #cfd6de; }
:root[data-theme="light"] .ui-button-secondary { background: #ffffff; color: #1e293b; }
:root[data-theme="light"] .ui-control { background: #ffffff; color: #1c1f26; border-color: #cbd5e1; }
:root[data-theme="light"] .ui-label { color: #5b6170; }
:root[data-theme="light"] .country-picker-list { background: #ffffff; border-color: #deddd5; box-shadow: 0 12px 30px rgb(15 23 42 / .12); }
:root[data-theme="light"] .country-picker-empty { color: #5b6170; }
:root[data-theme="light"] .legal-text { color: #334155; }
:root[data-theme="light"] .legal-text h2, :root[data-theme="light"] .legal-text h3, :root[data-theme="light"] .legal-text strong { color: #1c1f26; }
:root[data-theme="light"] .legal-text th { background: #efeee9; color: #1c1f26; }
:root[data-theme="light"] .legal-text th, :root[data-theme="light"] .legal-text td, :root[data-theme="light"] .legal-stack tr { border-color: #deddd5; }
:root[data-theme="light"] .legal-stack td::before { color: #5b6170; }
:root[data-theme="light"] input::placeholder, :root[data-theme="light"] textarea::placeholder { color: #8a94a3; }
:root[data-theme="light"] .shadow-xl { box-shadow: 0 16px 32px rgb(15 23 42 / .12); }
:root[data-theme="light"] .bg-\[\#0a0a0a\] { background-color: #f7f6f2; }
:root[data-theme="light"] .bg-\[\#0a0a0a\]\/95 { background-color: rgb(255 255 255 / .92); }
:root[data-theme="light"] .bg-\[\#0d0d0d\] { background-color: #efeee9; }
:root[data-theme="light"] .bg-\[\#121212\],
:root[data-theme="light"] .bg-black,
:root[data-theme="light"] .bg-slate-900,
:root[data-theme="light"] .bg-slate-950 { background-color: #ffffff; }
:root[data-theme="light"] .bg-slate-900\/80,
:root[data-theme="light"] .bg-slate-900\/60,
:root[data-theme="light"] .bg-slate-950\/60,
:root[data-theme="light"] .bg-slate-950\/50,
:root[data-theme="light"] .bg-slate-950\/70,
:root[data-theme="light"] .bg-slate-900\/90 { background-color: rgb(255 255 255 / .88); }
:root[data-theme="light"] .bg-\[\#141414\],
:root[data-theme="light"] .bg-\[\#1c1c1c\],
:root[data-theme="light"] .bg-\[\#1d1d1d\],
:root[data-theme="light"] .bg-\[\#161616\],
:root[data-theme="light"] .bg-\[\#181818\],
:root[data-theme="light"] .bg-\[\#1a1a1a\],
:root[data-theme="light"] .bg-\[\#1f1f1f\],
:root[data-theme="light"] .bg-slate-800,
:root[data-theme="light"] .bg-slate-800\/60 { background-color: #efeee9; }
:root[data-theme="light"] .bg-slate-700 { background-color: #e2e8f0; }
:root[data-theme="light"] .hover\:bg-\[\#222\]:hover,
:root[data-theme="light"] .hover\:bg-\[\#252525\]:hover,
:root[data-theme="light"] .hover\:bg-\[\#2a2a2a\]:hover,
:root[data-theme="light"] .hover\:bg-\[\#282828\]:hover,
:root[data-theme="light"] .hover\:bg-\[\#181818\]\/70:hover,
:root[data-theme="light"] .hover\:bg-slate-800\/40:hover,
:root[data-theme="light"] .hover\:bg-slate-700:hover,
:root[data-theme="light"] .hover\:bg-slate-800:hover { background-color: #e9e8e2; }
:root[data-theme="light"] .border-\[\#262626\],
:root[data-theme="light"] .border-\[\#2e2e2e\],
:root[data-theme="light"] .border-\[\#333\],
:root[data-theme="light"] .border-\[\#222\],
:root[data-theme="light"] .border-\[\#1f1f1f\],
:root[data-theme="light"] .border-\[\#1c1c1c\],
:root[data-theme="light"] .border-\[\#383838\],
:root[data-theme="light"] .divide-\[\#1f1f1f\] > * + *,
:root[data-theme="light"] .divide-\[\#262626\] > * + *,
:root[data-theme="light"] .divide-slate-800 > * + *,
:root[data-theme="light"] .divide-slate-800\/60 > * + *,
:root[data-theme="light"] .border-slate-700\/60,
:root[data-theme="light"] .border-slate-800 { border-color: #deddd5; }
:root[data-theme="light"] .border-slate-700 { border-color: #cbd5e1; }
:root[data-theme="light"] .border-slate-600 { border-color: #94a3b8; }
:root[data-theme="light"] .hover\:border-slate-500:hover { border-color: #64748b; }
:root[data-theme="light"] .text-white,
:root[data-theme="light"] .text-slate-100,
:root[data-theme="light"] .text-slate-200,
:root[data-theme="light"] .text-neutral-100,
:root[data-theme="light"] .text-neutral-200 { color: #1c1f26; }
:root[data-theme="light"] .hover\:text-white:hover { color: #1c1f26; }
:root[data-theme="light"] .text-neutral-300,
:root[data-theme="light"] .text-slate-300 { color: #334155; }
:root[data-theme="light"] .text-neutral-400,
:root[data-theme="light"] .text-slate-400 { color: #475569; }
:root[data-theme="light"] .text-neutral-500,
:root[data-theme="light"] .text-slate-500 { color: #5b6170; }
:root[data-theme="light"] .text-neutral-600,
:root[data-theme="light"] .text-slate-600 { color: #7a8494; }
:root[data-theme="light"] .text-\[\#22c55e\],
:root[data-theme="light"] .text-green-300,
:root[data-theme="light"] .text-green-400 { color: #15803d; }
:root[data-theme="light"] .text-emerald-300,
:root[data-theme="light"] .text-emerald-400 { color: #047857; }
:root[data-theme="light"] .text-\[\#ef4444\],
:root[data-theme="light"] .text-red-300,
:root[data-theme="light"] .text-red-400 { color: #b91c1c; }
:root[data-theme="light"] .hover\:text-red-300:hover,
:root[data-theme="light"] .hover\:text-\[\#ef4444\]:hover { color: #991b1b; }
:root[data-theme="light"] .text-amber-200,
:root[data-theme="light"] .text-amber-300,
:root[data-theme="light"] .text-amber-400,
:root[data-theme="light"] .text-yellow-300 { color: #92400e; }
:root[data-theme="light"] .text-orange-300,
:root[data-theme="light"] .text-orange-400 { color: #c2410c; }
:root[data-theme="light"] .text-indigo-200,
:root[data-theme="light"] .text-indigo-300,
:root[data-theme="light"] .text-indigo-400 { color: #4338ca; }
:root[data-theme="light"] .hover\:text-indigo-200:hover,
:root[data-theme="light"] .hover\:text-indigo-300:hover { color: #3730a3; }
:root[data-theme="light"] .text-sky-300,
:root[data-theme="light"] .text-sky-400 { color: #0369a1; }
/* Theme switch: the chosen option stays marked in the light theme too. */
:root[data-theme="light"] [data-theme-option][aria-pressed="true"] { background: rgb(var(--brand-accent) / .15);
  color: color-mix(in srgb, rgb(var(--brand-accent)) 42%, #000); font-weight: 700; }
/* Public review site (dntfck.me) */
:root[data-theme="light"] .bg-neutral-700, :root[data-theme="light"] .bg-neutral-600 { background-color: #d6d4cc; }
:root[data-theme="light"] .border-slate-500, :root[data-theme="light"] .hover\:border-neutral-500:hover { border-color: #8b93a1; }
:root[data-theme="light"] .ui-control { border-color: #8b93a1; }
:root[data-theme="light"] .ui-button-primary { color: #1c1f26; }
:root[data-theme="light"] .criterion-help-details > summary { border-color: #8b93a1; color: #5b6170; }
:root[data-theme="light"] .criterion-help-panel { background: #ffffff; border-color: #8b93a1; color: #1c1f26; box-shadow: 0 .75rem 2rem rgb(28 31 38 / .18); }
:root[data-theme="light"] .criterion-help-panel > strong { color: #1c1f26; }
:root[data-theme="light"] .criterion-help-panel > p { color: #3d4250; }
:root[data-theme="light"] .criterion-help-panel > .criterion-help-scale { border-color: #deddd5; color: #6b5200; }
:root[data-theme="light"] .text-yellow-400, :root[data-theme="light"] .text-yellow-200 { color: #6b5200; }
:root[data-theme="light"] .text-cyan-300 { color: #0e7490; }
:root[data-theme="light"] .text-purple-300 { color: #7e22ce; }
:root[data-theme="light"] .text-rose-300, :root[data-theme="light"] .text-rose-400 { color: #be123c; }
/* Form fields: edges visible (3 : 1 on white) and a clear keyboard focus frame (audit, part 3, points 5 and 6). */
:root[data-theme="light"] :is(input, select, textarea):is(.border-\[\#2e2e2e\], .border-\[\#333\], .border-\[\#262626\]):not(:focus) { border-color: #8b93a1; }
:root[data-theme="light"] :focus-visible, :root[data-theme="light"] .outline-none:focus-visible { outline: 2px solid #1c1f26; outline-offset: 2px; box-shadow: 0 0 0 4px #facc15; }
