/* The light ("white") theme of the public pages (wave 6, 11 Nov 2026, Johan: "add the white front-end theme as a toggle").

   The public site is written dark, with Tailwind utilities (bg-gray-950, text-white, text-gray-400, border-gray-800 ...). This one
   hand-written sheet, linked after tailwind.min.css on the public layout and the stand-alone sign-in pages, maps those utilities to
   light ones under <html data-theme="light"> and changes nothing on the dark theme. The views are not rewritten.

   - The theme is drawn on <html> by the server from the visitor's choice (cookie sh_theme, Services/PublicTheme.cs) and flipped
     at once by wwwroot/js/public-theme.js. Dark stays the default.
   - Every dark utility the public views use is mapped here: W6LightThemeTests reads the views and this file and fails when a
     view uses one that is not. Hover, focus and group-hover colours are restated after the base rules, because the base rules
     here are stronger than Tailwind's own variants and would otherwise hide them.
   - Text pairs meet WCAG AA (4.5:1 for body text); W6LightThemeTests works the ratios out from the hex values below.
   - The accent stays emerald, darkened to emerald-700 (#047857, 5.5:1 on white) wherever it is text. No red for anything that
     is not an error.
   - [data-theme-keep] marks a part that keeps its dark look on the light theme: a photograph with a dark veil and the words on
     it, a tile with a dark tint drawn inline. Nothing inside it is mapped (the :not() on every rule). The 3D demo site page is
     dark as a whole (<html data-theme="dark" data-theme-locked>) and draws no switch.

   Palette (Tailwind's slate): ground #ffffff, panel #f8fafc, raised #f1f5f9, #e2e8f0, #cbd5e1; text #0f172a (headings),
   #1e293b (body), #334155, #475569 (muted); field edge #8391a7 (3.2:1 on white, enough for a form field's outline). */

/* ── The switch itself (both themes) ─────────────────────────────────────────────────────────────── */
/* Display is left to the Tailwind classes on the button (hidden lg:flex in the header, inline-flex on the sign-in pages). */
.sh-theme-btn { align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; padding: 0; margin: 0;
    border-radius: .625rem; border: 1px solid rgba(148, 163, 184, .22); background: transparent; color: #cbd5e1; cursor: pointer; }
.sh-theme-btn:hover { color: #f1f3f6; background: rgba(148, 163, 184, .12); border-color: rgba(148, 163, 184, .4); }
.sh-theme-btn svg { width: 1.25rem; height: 1.25rem; }
.sh-theme-btn:focus-visible, .sh-theme-row:focus-visible { outline: 2px solid #34d399; outline-offset: 2px; }
.sh-theme-float { position: fixed; top: .75rem; right: .75rem; z-index: 40; width: 2.75rem; height: 2.75rem; }   /* w6-show-buy: 44 px, a thumb's target */
.sh-theme-row { min-height: 44px; }
.sh-ico-moon { display: none; }
html[data-theme="light"] .sh-ico-sun { display: none; }
html[data-theme="light"] .sh-ico-moon { display: block; }
.sh-theme-row { cursor: pointer; text-align: left; background: transparent; border: 0; }
.sh-switch { position: relative; display: inline-block; flex-shrink: 0; width: 2.25rem; height: 1.25rem; border-radius: 999px;
    background: #374151; border: 1px solid #4b5563; }
.sh-switch-knob { position: absolute; top: 1px; left: 1px; width: calc(1.25rem - 4px); height: calc(1.25rem - 4px); border-radius: 999px;
    background: #e5e7eb; transition: transform .15s ease; }
[aria-pressed="true"] > .sh-switch { background: #047857; border-color: #047857; }
[aria-pressed="true"] > .sh-switch .sh-switch-knob { transform: translateX(1rem); background: #ffffff; }

html[data-theme="light"] .sh-theme-btn { color: #334155; border-color: #cbd5e1; background: #ffffff; }
html[data-theme="light"] .sh-theme-btn:hover { color: #0f172a; background: #f1f5f9; border-color: #94a3b8; }
html[data-theme="light"] .sh-theme-btn:focus-visible, html[data-theme="light"] .sh-theme-row:focus-visible { outline-color: #047857; }
html[data-theme="light"] .sh-switch { background: #cbd5e1; border-color: #94a3b8; }
html[data-theme="light"] [aria-pressed="true"] > .sh-switch { background: #047857; border-color: #047857; }

/* ── The mark: the drawing with the dark orbit on a white ground ─────────────────────────────────── */
html[data-theme="light"] img.sh-logo-dark { display: none; }
html[data-theme="light"] img.sh-logo-light[hidden] { display: block; }

/* ── Tokens ──────────────────────────────────────────────────────────────────────────────────────── */
/* bg-card, bg-surface, border-border, divide-border and text-muted read these (tailwind.config.js tokenOr); showroom.css too.
   The --pt-* and --sv-* ones are the tool and verify pages' inline colours (their dark value is the fallback in the view). */
html[data-theme="light"] {
    color-scheme: light;
    --sh-card-bg: #ffffff;
    --sh-body-bg: #f8fafc;
    --sh-card-border: #e2e8f0;
    --sh-text-muted: #475569;
    --sh-text-primary: #0f172a;
    --sh-text-secondary: #334155;
    --pt-ink: #0f172a;
    --pt-dim: #475569;
    --pt-faint: #475569;
    --pt-link: #047857;
    --pt-link-line: #059669;
    --pt-warn-ink: #92400e;
    --pt-mid-ink: #92400e;
    --pt-lvl-identify: #047857;
    --pt-lvl-recognise: #166534;
    --pt-lvl-observe: #92400e;
    --pt-lvl-detect: #9a3412;
    --pt-lvl-monitor: #b91c1c;
    --sv-warn-ink: #92400e;
    --sv-dim-ink: #475569;
}
/* The layout sets the muted text colour inline on <body>; this one wins over it only on the light theme. */
html[data-theme="light"] body { --sh-text-muted: #475569 !important; }
/* A kept-dark part gets the dark tokens and the dark text colour back. */
html[data-theme="light"] [data-theme-keep] {
    color-scheme: dark;
    color: #e9ecf0;
    --sh-card-bg: #1f2937;
    --sh-body-bg: #111827;
    --sh-card-border: #374151;
    --sh-text-muted: #9ca3af;
    --sh-text-primary: initial;
    --sh-text-secondary: initial;
}

/* ── Grounds and panels ──────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .bg-gray-950:not([data-theme-keep], [data-theme-keep] *) { background-color: #ffffff; }
html[data-theme="light"] .bg-gray-900:not([data-theme-keep], [data-theme-keep] *) { background-color: #f8fafc; }
html[data-theme="light"] .bg-gray-800:not([data-theme-keep], [data-theme-keep] *) { background-color: #f1f5f9; }
html[data-theme="light"] .bg-gray-700:not([data-theme-keep], [data-theme-keep] *) { background-color: #e2e8f0; }
html[data-theme="light"] .bg-slate-900:not([data-theme-keep], [data-theme-keep] *) { background-color: #f1f5f9; }
html[data-theme="light"] .bg-slate-700:not([data-theme-keep], [data-theme-keep] *) { background-color: #e2e8f0; }
/* bg-black/30 is the public forms' field; bg-black/60 the backdrop behind the phone filter sheet. */
html[data-theme="light"] .bg-black\/30:not([data-theme-keep], [data-theme-keep] *) { background-color: #ffffff; }
html[data-theme="light"] .bg-black\/60:not([data-theme-keep], [data-theme-keep] *) { background-color: rgb(15 23 42 / .5); }
html[data-theme="light"] .bg-white\/5:not([data-theme-keep], [data-theme-keep] *) { background-color: rgb(15 23 42 / .04); }
/* The header's current page: a step darker than the raised grey, so it still shows on white. */
html[data-theme="light"] header nav .bg-gray-800:not([data-theme-keep], [data-theme-keep] *) { background-color: #e2e8f0; }

/* Dark tints behind badges and notes become pale ones. */
html[data-theme="light"] .bg-amber-900\/20:not([data-theme-keep], [data-theme-keep] *) { background-color: #fffbeb; }
html[data-theme="light"] .bg-amber-900\/60:not([data-theme-keep], [data-theme-keep] *) { background-color: #fef3c7; }
html[data-theme="light"] .bg-emerald-900\/20:not([data-theme-keep], [data-theme-keep] *) { background-color: #ecfdf5; }
html[data-theme="light"] .bg-emerald-900\/40:not([data-theme-keep], [data-theme-keep] *) { background-color: #d1fae5; }
html[data-theme="light"] .bg-emerald-900\/60:not([data-theme-keep], [data-theme-keep] *) { background-color: #d1fae5; }
html[data-theme="light"] .bg-blue-900\/60:not([data-theme-keep], [data-theme-keep] *) { background-color: #dbeafe; }
html[data-theme="light"] .bg-yellow-900\/40:not([data-theme-keep], [data-theme-keep] *) { background-color: #fef9c3; }
html[data-theme="light"] .bg-red-900\/30:not([data-theme-keep], [data-theme-keep] *) { background-color: #fef2f2; }

/* ── Gradients (picture placeholders; the veils over photographs sit in [data-theme-keep] parts) ─── */
/* The same three custom properties Tailwind's from-, via- and to- utilities set, in the same order. */
html[data-theme="light"] .from-gray-950:not([data-theme-keep], [data-theme-keep] *) { --tw-gradient-from: #f1f5f9 var(--tw-gradient-from-position); --tw-gradient-to: rgb(241 245 249 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
html[data-theme="light"] .from-gray-950\/80:not([data-theme-keep], [data-theme-keep] *) { --tw-gradient-from: rgb(248 250 252 / .85) var(--tw-gradient-from-position); --tw-gradient-to: rgb(248 250 252 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
html[data-theme="light"] .from-gray-800:not([data-theme-keep], [data-theme-keep] *) { --tw-gradient-from: #f1f5f9 var(--tw-gradient-from-position); --tw-gradient-to: rgb(241 245 249 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
html[data-theme="light"] .from-gray-700:not([data-theme-keep], [data-theme-keep] *) { --tw-gradient-from: #e2e8f0 var(--tw-gradient-from-position); --tw-gradient-to: rgb(226 232 240 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
html[data-theme="light"] .via-gray-950\/50:not([data-theme-keep], [data-theme-keep] *) { --tw-gradient-to: rgb(248 250 252 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), rgb(248 250 252 / .5) var(--tw-gradient-via-position), var(--tw-gradient-to); }
html[data-theme="light"] .via-gray-950\/80:not([data-theme-keep], [data-theme-keep] *) { --tw-gradient-to: rgb(248 250 252 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), rgb(248 250 252 / .8) var(--tw-gradient-via-position), var(--tw-gradient-to); }
html[data-theme="light"] .to-gray-800:not([data-theme-keep], [data-theme-keep] *) { --tw-gradient-to: #f1f5f9 var(--tw-gradient-to-position); }
html[data-theme="light"] .to-gray-900:not([data-theme-keep], [data-theme-keep] *) { --tw-gradient-to: #e2e8f0 var(--tw-gradient-to-position); }

/* ── Text ────────────────────────────────────────────────────────────────────────────────────────── */
/* White text stays white on a solid coloured button or badge (white on emerald-700 is 5.5:1; dark on it would be 3:1). */
html[data-theme="light"] .text-white:not([data-theme-keep], [data-theme-keep] *):not(.bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-blue-600, .bg-red-600, .bg-violet-600, .bg-sky-600, .bg-amber-500, .bg-amber-600) { color: #0f172a; }
html[data-theme="light"] .text-white\/80:not([data-theme-keep], [data-theme-keep] *) { color: #334155; }
html[data-theme="light"] .text-white\/60:not([data-theme-keep], [data-theme-keep] *) { color: #475569; }
html[data-theme="light"] .text-gray-100:not([data-theme-keep], [data-theme-keep] *) { color: #1e293b; }
html[data-theme="light"] .text-gray-200:not([data-theme-keep], [data-theme-keep] *) { color: #1e293b; }
html[data-theme="light"] .text-gray-300:not([data-theme-keep], [data-theme-keep] *) { color: #334155; }
html[data-theme="light"] .text-gray-400:not([data-theme-keep], [data-theme-keep] *) { color: #475569; }
html[data-theme="light"] .text-gray-500:not([data-theme-keep], [data-theme-keep] *) { color: #475569; }
html[data-theme="light"] .text-slate-400:not([data-theme-keep], [data-theme-keep] *) { color: #475569; }
html[data-theme="light"] .text-slate-500:not([data-theme-keep], [data-theme-keep] *) { color: #475569; }
html[data-theme="light"] .placeholder-gray-500:not([data-theme-keep], [data-theme-keep] *)::placeholder { color: #5f6b7c; }
html[data-theme="light"] .placeholder-gray-500:not([data-theme-keep], [data-theme-keep] *)::-moz-placeholder { color: #5f6b7c; }

/* The accent as text: emerald-700 on white. */
html[data-theme="light"] .text-accent:not([data-theme-keep], [data-theme-keep] *) { color: #047857; }
html[data-theme="light"] .text-emerald-200:not([data-theme-keep], [data-theme-keep] *) { color: #047857; }
html[data-theme="light"] .text-emerald-300:not([data-theme-keep], [data-theme-keep] *) { color: #047857; }
html[data-theme="light"] .text-emerald-400:not([data-theme-keep], [data-theme-keep] *) { color: #047857; }
html[data-theme="light"] .text-green-300:not([data-theme-keep], [data-theme-keep] *) { color: #166534; }
html[data-theme="light"] .text-green-400:not([data-theme-keep], [data-theme-keep] *) { color: #166534; }
/* Amber (a warning, a sponsored or featured mark), blue and sky (information), yellow: the deep shades read on white. */
html[data-theme="light"] .text-amber-200:not([data-theme-keep], [data-theme-keep] *) { color: #92400e; }
html[data-theme="light"] .text-amber-300:not([data-theme-keep], [data-theme-keep] *) { color: #92400e; }
html[data-theme="light"] .text-amber-400:not([data-theme-keep], [data-theme-keep] *) { color: #92400e; }
html[data-theme="light"] .text-amber-600:not([data-theme-keep], [data-theme-keep] *) { color: #b45309; }
html[data-theme="light"] .text-blue-300:not([data-theme-keep], [data-theme-keep] *) { color: #1d4ed8; }
html[data-theme="light"] .text-sky-400:not([data-theme-keep], [data-theme-keep] *) { color: #0369a1; }
html[data-theme="light"] .text-yellow-300:not([data-theme-keep], [data-theme-keep] *) { color: #854d0e; }
html[data-theme="light"] .text-yellow-400:not([data-theme-keep], [data-theme-keep] *) { color: #854d0e; }
/* Red is the error colour only (the views use it for errors); the deep shade reads on white. */
html[data-theme="light"] .text-red-300:not([data-theme-keep], [data-theme-keep] *) { color: #b91c1c; }
html[data-theme="light"] .text-red-400:not([data-theme-keep], [data-theme-keep] *) { color: #b91c1c; }
html[data-theme="light"] .text-red-500:not([data-theme-keep], [data-theme-keep] *) { color: #b91c1c; }

/* ── Edges ───────────────────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .border-gray-800:not([data-theme-keep], [data-theme-keep] *) { border-color: #e2e8f0; }
html[data-theme="light"] .border-gray-700:not([data-theme-keep], [data-theme-keep] *) { border-color: #cbd5e1; }
html[data-theme="light"] .border-gray-600:not([data-theme-keep], [data-theme-keep] *) { border-color: #94a3b8; }
html[data-theme="light"] .border-white\/10:not([data-theme-keep], [data-theme-keep] *) { border-color: rgb(15 23 42 / .12); }
/* border-white/15 is the public forms' field edge (with bg-black/30) and the choice tiles beside them. */
html[data-theme="light"] .border-white\/15:not([data-theme-keep], [data-theme-keep] *) { border-color: #8391a7; }
html[data-theme="light"] .border-white\/25:not([data-theme-keep], [data-theme-keep] *) { border-color: rgb(15 23 42 / .3); }
html[data-theme="light"] .border-amber-800:not([data-theme-keep], [data-theme-keep] *) { border-color: #fcd34d; }
html[data-theme="light"] .border-emerald-800:not([data-theme-keep], [data-theme-keep] *) { border-color: #6ee7b7; }
html[data-theme="light"] .border-blue-800:not([data-theme-keep], [data-theme-keep] *) { border-color: #93c5fd; }
html[data-theme="light"] .border-yellow-800:not([data-theme-keep], [data-theme-keep] *) { border-color: #fde047; }
html[data-theme="light"] .border-red-800:not([data-theme-keep], [data-theme-keep] *) { border-color: #fca5a5; }
/* A form field (and the two search boxes, whose edge is on the form) gets an edge that shows on white. */
html[data-theme="light"] :where(input, select, textarea, form).border-gray-700:not([data-theme-keep], [data-theme-keep] *) { border-color: #8391a7; }

/* ── Shadows ─────────────────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .shadow-black\/40:not([data-theme-keep], [data-theme-keep] *) { --tw-shadow-color: rgb(15 23 42 / .08); --tw-shadow: var(--tw-shadow-colored); }
html[data-theme="light"] .pub-soft .shadow-lg:not([data-theme-keep], [data-theme-keep] *) { box-shadow: 0 8px 20px -6px rgb(15 23 42 / .1); }
html[data-theme="light"] .pub-soft .shadow-xl:not([data-theme-keep], [data-theme-keep] *) { box-shadow: 0 14px 28px -8px rgb(15 23 42 / .14); }
html[data-theme="light"] .news-card:not([data-theme-keep], [data-theme-keep] *):hover { box-shadow: 0 4px 16px rgb(15 23 42 / .1); }

/* ── Hover, focus and group-hover, restated after the base rules (every one the public views use) ─── */
html[data-theme="light"] .hover\:text-white:not([data-theme-keep], [data-theme-keep] *):not(.bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-blue-600, .bg-red-600, .bg-violet-600, .bg-sky-600, .bg-amber-500, .bg-amber-600):hover { color: #0f172a; }
html[data-theme="light"] .hover\:text-accent:not([data-theme-keep], [data-theme-keep] *):hover { color: #065f46; }
html[data-theme="light"] .hover\:text-amber-400:not([data-theme-keep], [data-theme-keep] *):hover { color: #78350f; }
html[data-theme="light"] .hover\:text-emerald-700:not([data-theme-keep], [data-theme-keep] *):hover { color: #047857; }
html[data-theme="light"] .hover\:text-slate-700:not([data-theme-keep], [data-theme-keep] *):hover { color: #334155; }
html[data-theme="light"] .hover\:text-slate-800:not([data-theme-keep], [data-theme-keep] *):hover { color: #1e293b; }
html[data-theme="light"] .hover\:bg-gray-800:not([data-theme-keep], [data-theme-keep] *):hover { background-color: #f1f5f9; }
html[data-theme="light"] .hover\:bg-gray-800\/60:not([data-theme-keep], [data-theme-keep] *):hover { background-color: #f1f5f9; }
html[data-theme="light"] .hover\:bg-accent\/5:not([data-theme-keep], [data-theme-keep] *):hover { background-color: rgb(16 185 129 / .05); }
html[data-theme="light"] .hover\:bg-accent\/90:not([data-theme-keep], [data-theme-keep] *):hover { background-color: rgb(16 185 129 / .9); }
html[data-theme="light"] .hover\:bg-accent-dark:not([data-theme-keep], [data-theme-keep] *):hover { background-color: #059669; }
html[data-theme="light"] .hover\:bg-emerald-50:not([data-theme-keep], [data-theme-keep] *):hover { background-color: #ecfdf5; }
html[data-theme="light"] .hover\:bg-emerald-400:not([data-theme-keep], [data-theme-keep] *):hover { background-color: #34d399; }
html[data-theme="light"] .hover\:bg-emerald-500:not([data-theme-keep], [data-theme-keep] *):hover { background-color: #10b981; }
html[data-theme="light"] .hover\:bg-emerald-600:not([data-theme-keep], [data-theme-keep] *):hover { background-color: #059669; }
html[data-theme="light"] .hover\:bg-emerald-900:not([data-theme-keep], [data-theme-keep] *):hover { background-color: #064e3b; }
html[data-theme="light"] .hover\:bg-amber-400:not([data-theme-keep], [data-theme-keep] *):hover { background-color: #fbbf24; }
html[data-theme="light"] .hover\:bg-amber-600:not([data-theme-keep], [data-theme-keep] *):hover { background-color: #d97706; }
html[data-theme="light"] .hover\:border-accent:not([data-theme-keep], [data-theme-keep] *):hover { border-color: #10b981; }
html[data-theme="light"] .hover\:border-accent\/40:not([data-theme-keep], [data-theme-keep] *):hover { border-color: rgb(16 185 129 / .4); }
html[data-theme="light"] .hover\:border-accent\/60:not([data-theme-keep], [data-theme-keep] *):hover { border-color: rgb(16 185 129 / .6); }
html[data-theme="light"] .hover\:border-emerald-400\/40:not([data-theme-keep], [data-theme-keep] *):hover { border-color: rgb(16 185 129 / .45); }
html[data-theme="light"] .hover\:border-gray-400:not([data-theme-keep], [data-theme-keep] *):hover { border-color: #475569; }
html[data-theme="light"] .hover\:border-gray-500:not([data-theme-keep], [data-theme-keep] *):hover { border-color: #64748b; }
html[data-theme="light"] .hover\:border-gray-600:not([data-theme-keep], [data-theme-keep] *):hover { border-color: #94a3b8; }
html[data-theme="light"] .group:hover .group-hover\:text-white:not([data-theme-keep], [data-theme-keep] *) { color: #0f172a; }
html[data-theme="light"] .group:hover .group-hover\:text-accent:not([data-theme-keep], [data-theme-keep] *) { color: #065f46; }
html[data-theme="light"] .group:hover .group-hover\:text-amber-400:not([data-theme-keep], [data-theme-keep] *) { color: #78350f; }
html[data-theme="light"] .group:hover .group-hover\:bg-accent-dark:not([data-theme-keep], [data-theme-keep] *) { background-color: #059669; }
html[data-theme="light"] .group:hover .group-hover\:border-amber-500\/40:not([data-theme-keep], [data-theme-keep] *) { border-color: rgb(245 158 11 / .4); }
html[data-theme="light"] .focus\:text-gray-950:not([data-theme-keep], [data-theme-keep] *):focus { color: #030712; }
html[data-theme="light"] .focus\:bg-accent:not([data-theme-keep], [data-theme-keep] *):focus { background-color: #10b981; }
html[data-theme="light"] .focus\:border-accent:not([data-theme-keep], [data-theme-keep] *):focus { border-color: #10b981; }
html[data-theme="light"] .focus\:border-accent\/60:not([data-theme-keep], [data-theme-keep] *):focus { border-color: rgb(16 185 129 / .6); }
html[data-theme="light"] .focus-within\:border-accent\/60:not([data-theme-keep], [data-theme-keep] *):focus-within { border-color: rgb(16 185 129 / .6); }

/* ── Panels that were already light on the dark page (terms, privacy, the sign-in card) ────────────── */
html[data-theme="light"] .bg-slate-50.shadow-lg:not([data-theme-keep], [data-theme-keep] *) { background-color: #ffffff; box-shadow: 0 0 0 1px #e2e8f0, 0 8px 20px -6px rgb(15 23 42 / .08); }
html[data-theme="light"] body.bg-slate-900 .bg-white.rounded-2xl:not([data-theme-keep], [data-theme-keep] *) { box-shadow: 0 0 0 1px #e2e8f0, 0 4px 14px -6px rgb(15 23 42 / .12); }

/* ── The directory's filter sheet on a phone (its own rules are in Views/Public/Directory.cshtml) ──── */
@media (max-width: 1023.98px) {
    html[data-theme="light"] .dir-filters.is-open { background: #ffffff; border-top-color: #e2e8f0; box-shadow: 0 -8px 24px rgb(15 23 42 / .12); }
    html[data-theme="light"] .dir-sheet-foot { background: #ffffff; border-top-color: #e2e8f0; }
    html[data-theme="light"] .dir-filters.is-open .dir-sheet-handle { background: #cbd5e1; }
}

/* ── Free tools (Views/PublicTools/_ToolStyles.cshtml) ─────────────────────────────────────────────── */
html[data-theme="light"] .pt-wrap { color: #1e293b; }
html[data-theme="light"] .pt-wrap h1, html[data-theme="light"] .pt-card h2, html[data-theme="light"] .pt-big { color: #0f172a; }
html[data-theme="light"] .pt-lead, html[data-theme="light"] .pt-card p, html[data-theme="light"] .pt-note, html[data-theme="light"] .pt-form label,
html[data-theme="light"] .pt-form .hint, html[data-theme="light"] .pt-table th, html[data-theme="light"] .pt-crumb, html[data-theme="light"] .pt-crumb a,
html[data-theme="light"] .pt-list p, html[data-theme="light"] .pt-list-head { color: #475569; }
html[data-theme="light"] .pt-card { background: #ffffff; border-color: #e2e8f0; }
html[data-theme="light"] a.pt-btn.ghost { color: #047857; border-color: #059669; }
html[data-theme="light"] .pt-form input, html[data-theme="light"] .pt-form select { background: #ffffff; border-color: #8391a7; color: #0f172a; }
html[data-theme="light"] .pt-check { color: #334155; }
html[data-theme="light"] .pt-table th { border-bottom-color: #e2e8f0; }
html[data-theme="light"] .pt-table td { border-bottom-color: #e2e8f0; }
html[data-theme="light"] .pt-warn { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
html[data-theme="light"] .pt-chips a:not(.on) { border-color: #cbd5e1; color: #334155; }
html[data-theme="light"] .pt-list li { border-bottom-color: #e2e8f0; }
html[data-theme="light"] .pt-list a { color: #047857; }
@media (max-width: 640px) {
    html[data-theme="light"] .pt-tenders tr { border-bottom-color: #e2e8f0; }
    html[data-theme="light"] .pt-tenders td:nth-child(2)::before, html[data-theme="light"] .pt-tenders td:nth-child(3) { color: #475569; }
}

/* ── Security self-check (Views/PublicTools/SecurityCheck.cshtml) ──────────────────────────────────── */
html[data-theme="light"] #pt-check fieldset { background: #ffffff; border-color: #e2e8f0; }
html[data-theme="light"] #pt-check legend, html[data-theme="light"] #pt-check .c-zone, html[data-theme="light"] #c-out h2,
html[data-theme="light"] .c-item-head { color: #0f172a; }
html[data-theme="light"] #pt-check .opt, html[data-theme="light"] .c-zone-top { color: #334155; }
html[data-theme="light"] #pt-check .opt:hover { background: #f1f5f9; }
html[data-theme="light"] #pt-check .c-zone-sub, html[data-theme="light"] .c-why { color: #475569; }
html[data-theme="light"] #c-progress { background: #ffffff; border-top-color: #e2e8f0; color: #475569; }
html[data-theme="light"] #c-progress .track, html[data-theme="light"] .c-bar { background: #e2e8f0; }
html[data-theme="light"] .c-urgent { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
html[data-theme="light"] .c-zone-card { background: #ffffff; border-color: #e2e8f0; }
html[data-theme="light"] .c-ok { color: #047857; }
html[data-theme="light"] .c-mid { color: #92400e; }
html[data-theme="light"] .c-low { color: #9a3412; }
html[data-theme="light"] .c-who { border-color: #cbd5e1; color: #475569; }
html[data-theme="light"] .c-who-you { border-color: #059669; color: #047857; }

/* ── Shield ID check and training certificate (Views/Verify) ───────────────────────────────────────── */
html[data-theme="light"] .sv-brand .nm, html[data-theme="light"] .sv-card h1, html[data-theme="light"] .sv-card h2,
html[data-theme="light"] .sv-banner .who, html[data-theme="light"] .sv-check .val { color: #0f172a; }
html[data-theme="light"] .sv-brand .sb, html[data-theme="light"] .sv-muted, html[data-theme="light"] .sv-label, html[data-theme="light"] .sv-note,
html[data-theme="light"] .sv-scan-status, html[data-theme="light"] .sv-banner .sub, html[data-theme="light"] .sv-banner .sid,
html[data-theme="light"] .sv-check .k, html[data-theme="light"] .sv-check .meta, html[data-theme="light"] .sv-foot { color: #475569; }
html[data-theme="light"] .sv-strong { color: #1e293b; }
html[data-theme="light"] .sv-card, html[data-theme="light"] .sv-checks { background: #ffffff; border-color: #e2e8f0; }
html[data-theme="light"] .sv-check + .sv-check { border-top-color: #e2e8f0; }
html[data-theme="light"] .sv-input { background: #ffffff; border-color: #8391a7; color: #0f172a; }
html[data-theme="light"] .sv-input:focus { border-color: #10b981; }
html[data-theme="light"] .sv-btn--ghost { background: #e2e8f0; color: #0f172a; }
html[data-theme="light"] .sv-btn--ghost:hover { background: #cbd5e1; }
html[data-theme="light"] .sv-err { color: #b91c1c; }
html[data-theme="light"] .sv--ok .ico, html[data-theme="light"] .sv--ok .verdict, html[data-theme="light"] .sv-ok { color: #047857; }
html[data-theme="light"] .sv--warn .ico, html[data-theme="light"] .sv--warn .verdict, html[data-theme="light"] .sv-warn { color: #92400e; }
html[data-theme="light"] .sv--bad .ico, html[data-theme="light"] .sv--bad .verdict, html[data-theme="light"] .sv-bad { color: #b91c1c; }
html[data-theme="light"] .sv-proofnote { background: #f1f5f9; border-color: #cbd5e1; color: #334155; }
html[data-theme="light"] .sv-chk { color: #334155; }
html[data-theme="light"] .tc-card { background: #ffffff; border-color: #e2e8f0; color: #1e293b; }
html[data-theme="light"] .tc-card h1 { color: #0f172a; }
html[data-theme="light"] .tc-row { border-top-color: #e2e8f0; }
html[data-theme="light"] .tc-k, html[data-theme="light"] .tc-note { color: #475569; }
html[data-theme="light"] .tc-ok { color: #047857; }
html[data-theme="light"] .tc-warn { color: #92400e; }

/* ── Showroom (wwwroot/css/showroom.css). The 3D stage, the marks on product pictures, the picture viewer and the floating
      quote tray keep their dark look: they sit on pictures or float over the page. ───────────────────────────────────── */
html[data-theme="light"] .shw-act { background: #ffffff; color: #334155; border-color: #cbd5e1; }
html[data-theme="light"] .shw-act:hover { color: #0f172a; border-color: #94a3b8; }
html[data-theme="light"] .shw-act-primary { background: rgb(16 185 129 / .1); color: #047857; border-color: rgb(5 150 105 / .55); }
html[data-theme="light"] .shw-act-primary:hover { background: rgb(16 185 129 / .18); color: #065f46; }
html[data-theme="light"] .shw-act[aria-pressed="true"] { background: rgb(16 185 129 / .18); color: #065f46; border-color: #10b981; }
html[data-theme="light"] .shw-act-solid, html[data-theme="light"] .shw-act-solid:hover { background: #10b981; color: #030712; border-color: #10b981; }
html[data-theme="light"] .shw-act:focus-visible, html[data-theme="light"] .shw-chip:focus-visible, html[data-theme="light"] .shw-page:focus-visible,
html[data-theme="light"] .shw-compare-scroll:focus-visible { outline-color: #0369a1; }
html[data-theme="light"] .shw-price { color: #334155; }
html[data-theme="light"] .shw-price b { color: #0f172a; }
html[data-theme="light"] .shw-chip { color: #047857; border-color: rgb(5 150 105 / .55); background: rgb(16 185 129 / .1); }
html[data-theme="light"] .shw-chip:hover { color: #065f46; border-color: #10b981; }
html[data-theme="light"] .shw-page { color: #475569; border-color: #cbd5e1; }
html[data-theme="light"] .shw-page:hover { color: #0f172a; border-color: #94a3b8; }
html[data-theme="light"] .shw-page[aria-current="page"] { background: #10b981; border-color: #10b981; color: #030712; }
html[data-theme="light"] .shw-page-gap { color: #475569; }
html[data-theme="light"] .shw-tile { color: #0f172a; border-color: #e2e8f0; }
html[data-theme="light"] .shw-tile small { color: #475569; }
html[data-theme="light"] .shw-note { background: #f8fafc; color: #334155; border-color: #e2e8f0; }
html[data-theme="light"] .shw-qr { background: #f8fafc; border-color: #e2e8f0; }
html[data-theme="light"] .shw-qr p { color: #334155; }
html[data-theme="light"] .shw-qr b { color: #0f172a; }
html[data-theme="light"] .shw-share-label { color: #475569; }
@media (max-width: 767.98px) {
    html[data-theme="light"] .shw-mbar { background: rgb(255 255 255 / .97); border-top-color: #e2e8f0; }
}
html[data-theme="light"] .shw-compare tbody th, html[data-theme="light"] .shw-compare .shw-group th { color: #475569; }
html[data-theme="light"] .shw-compare td { color: #0f172a; }
html[data-theme="light"] .shw-compare tr.shw-differs td, html[data-theme="light"] .shw-compare tr.shw-differs th { background: rgb(245 158 11 / .1); }
html[data-theme="light"] .shw-compare tr.shw-differs th::before { color: #b45309; }
html[data-theme="light"] .shw-compare .shw-none { color: #64748b; }
html[data-theme="light"] .shw-compare-scroll, html[data-theme="light"] .shw-compare .shw-sticky { background: #ffffff; }
html[data-theme="light"] .shw-compare-thumb, html[data-theme="light"] .shw-list-thumb { background: #f1f5f9; }
html[data-theme="light"] .shw-list-fields label { color: #475569; }
html[data-theme="light"] .shw-list-fields input { background: #ffffff; border-color: #8391a7; color: #0f172a; }

/* ── w6-fixes (13 Nov 2026, hand-in 31): the sign-up wizard and the guard sign-up ─────────────────────────────────────────────────
      Their own layouts (Views/Registration/_WizardShell.cshtml, Views/GuardSignup/_SignupLayout.cshtml) draw <html data-theme> from the
      same cookie and link this sheet, like the sign-in pages. These are the slate utilities only those pages use. The wizard's white card
      is white on both themes; the guard sign-up has no card, so its ground turns white and its fields white with a visible edge. */
html[data-theme="light"] .bg-slate-950:not([data-theme-keep], [data-theme-keep] *) { background-color: #ffffff; }
html[data-theme="light"] .bg-slate-800\/50:not([data-theme-keep], [data-theme-keep] *) { background-color: #ffffff; }
html[data-theme="light"] .bg-slate-900\/60:not([data-theme-keep], [data-theme-keep] *) { background-color: #f8fafc; }
html[data-theme="light"] :where(input, select, textarea).bg-slate-900:not([data-theme-keep], [data-theme-keep] *) { background-color: #ffffff; }
html[data-theme="light"] .border-slate-700:not([data-theme-keep], [data-theme-keep] *) { border-color: #94a3b8; }
html[data-theme="light"] :where(input, select, textarea).border-slate-700:not([data-theme-keep], [data-theme-keep] *) { border-color: #8391a7; }
html[data-theme="light"] .text-slate-100:not([data-theme-keep], [data-theme-keep] *) { color: #0f172a; }
html[data-theme="light"] .text-slate-200:not([data-theme-keep], [data-theme-keep] *) { color: #1e293b; }
html[data-theme="light"] .text-slate-300:not([data-theme-keep], [data-theme-keep] *) { color: #334155; }
html[data-theme="light"] .text-emerald-600:not([data-theme-keep], [data-theme-keep] *) { color: #047857; }
/* The tick of a finished step sits on its emerald-700 dot on both themes (7.4:1). */
html[data-theme="light"] .text-emerald-100:not([data-theme-keep], [data-theme-keep] *) { color: #d1fae5; }
/* The guard sign-up's error box (an error: red is right here). */
html[data-theme="light"] .text-red-200:not([data-theme-keep], [data-theme-keep] *) { color: #b91c1c; }
html[data-theme="light"] .hover\:text-slate-300:not([data-theme-keep], [data-theme-keep] *):hover { color: #1e293b; }
html[data-theme="light"] .hover\:border-slate-400:not([data-theme-keep], [data-theme-keep] *):hover { border-color: #94a3b8; }
html[data-theme="light"] .hover\:border-slate-500:not([data-theme-keep], [data-theme-keep] *):hover { border-color: #64748b; }
/* Inside the wizard's white card: the same colours as on the dark theme, restated like every hover and focus colour. */
html[data-theme="light"] .hover\:bg-slate-50:not([data-theme-keep], [data-theme-keep] *):hover { background-color: #f8fafc; }
html[data-theme="light"] .hover\:bg-slate-100:not([data-theme-keep], [data-theme-keep] *):hover { background-color: #f1f5f9; }
/* w6 merge (14 Nov 2026, hand-in 41): the sign-up's Welcome page card ("Invite my team"), the same colour as on the dark theme. */
html[data-theme="light"] .hover\:border-slate-300:not([data-theme-keep], [data-theme-keep] *):hover { border-color: #cbd5e1; }
html[data-theme="light"] .focus\:border-emerald-500:not([data-theme-keep], [data-theme-keep] *):focus { border-color: #10b981; }
