/* The Mike Way: light theme.
   Turned on by <html class="light">. Areas marked .keep-dark (hero video, Meet Mike, photo badges) stay dark on purpose. */
html.light { color-scheme: light; scrollbar-color: #C99A2B #EFEBE2; }
html.light body {
  background-color: #F6F3EC; color: #18181B;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(226, 178, 60, 0.12) 0%, transparent 38%),
    radial-gradient(circle at 85% 80%, rgba(226, 178, 60, 0.08) 0%, transparent 42%),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.018) 0px, rgba(0, 0, 0, 0.018) 1px, transparent 1px, transparent 6px);
}
html.light .grit-overlay { opacity: .05; mix-blend-mode: multiply; }
html.light ::-webkit-scrollbar-track, html.light ::-webkit-scrollbar-corner { background: #EFEBE2; }

/* Surfaces */
html.light .bg-tmw-black:not(.keep-dark, .keep-dark *) { background-color: #EFEBE2; }
html.light .bg-tmw-card:not(.keep-dark, .keep-dark *) { background-color: #FFFFFF; }
html.light .bg-tmw-surface\/95:not(.keep-dark, .keep-dark *) { background-color: rgba(255, 253, 248, .95); }
html.light .bg-tmw-surface:not(.keep-dark, .keep-dark *) { background-color: #FFFDF8; }
html.light .border-tmw-border:not(.keep-dark, .keep-dark *) { border-color: #DED7C7; }
html.light .hover\:bg-tmw-card:hover:not(.keep-dark *), html.light .hover\:bg-zinc-800:hover:not(.keep-dark *), html.light .hover\:bg-zinc-900:hover:not(.keep-dark *), html.light .hover\:bg-tmw-black:hover:not(.keep-dark *) { background-color: #E8E2D4; }
html.light .from-tmw-card:not(.keep-dark *) { --tw-gradient-from: #FFFFFF var(--tw-gradient-from-position); --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
html.light .to-tmw-black:not(.keep-dark *) { --tw-gradient-to: #EFEBE2 var(--tw-gradient-to-position); }
html.light .to-tmw-card:not(.keep-dark *) { --tw-gradient-to: #FFFFFF var(--tw-gradient-to-position); }
html.light .shadow-xl:not(.keep-dark *), html.light .shadow-2xl:not(.keep-dark *) { --tw-shadow-color: rgba(60, 45, 10, .12); }

/* Text */
html.light :is(.text-white, .text-zinc-50, .text-zinc-100):not(.keep-dark, .keep-dark *, [class*="bg-black"]:not(.fixed) *, [class*="bg-rose"], [class*="bg-emerald-5"], [class*="bg-sky-5"], .bg-tmw-yellow *, [class*="from-black"] *) { color: #141416; }
html.light .text-zinc-200:not(.keep-dark, .keep-dark *, [class*="bg-black"]:not(.fixed) *) { color: #27272A; }
html.light .text-zinc-300:not(.keep-dark, .keep-dark *, [class*="bg-black"]:not(.fixed) *) { color: #3F3F46; }
html.light .text-zinc-400:not(.keep-dark, .keep-dark *, [class*="bg-black"]:not(.fixed) *) { color: #57534E; }
html.light :is(.text-zinc-500, .text-zinc-600):not(.keep-dark, .keep-dark *) { color: #78716C; }
html.light .text-tmw-silver:not(.keep-dark, .keep-dark *) { color: #52525B; }
html.light .hover\:text-white:hover:not(.keep-dark *) { color: #000; }
/* Gold text is too light on white: deepen it (buttons with gold backgrounds keep their black text) */
html.light :is(.text-tmw-yellow, .hover\:text-tmw-yellow:hover):not(.keep-dark, .keep-dark *, [class*="bg-black"]:not(.fixed), [class*="bg-black"]:not(.fixed) *) { color: #8A5A00; }
html.light .text-emerald-400:not(.keep-dark, .keep-dark *) { color: #047857; }
html.light .text-emerald-300:not(.keep-dark, .keep-dark *) { color: #065F46; }
html.light .text-rose-300:not(.keep-dark, .keep-dark *), html.light .text-rose-400:not(.keep-dark, .keep-dark *) { color: #BE123C; }
html.light .text-sky-300:not(.keep-dark, .keep-dark *), html.light .text-sky-400:not(.keep-dark, .keep-dark *) { color: #0369A1; }
html.light .text-amber-200:not(.keep-dark, .keep-dark *), html.light .text-amber-300:not(.keep-dark, .keep-dark *) { color: #92400E; }
html.light .bg-emerald-950\/60:not(.keep-dark *) { background-color: #ECFDF5; }
html.light .border-emerald-700\/60:not(.keep-dark *) { border-color: #6EE7B7; }

/* Forms */
html.light :is(input, select, textarea):not(.keep-dark *) { color: #141416; }
html.light :is(input, textarea)::placeholder { color: #A8A29E; }

/* Long-form pages (guides, legal) */
html.light .guide h1, html.light .guide h3, html.light .guide th { color: #141416; }
html.light .guide h2 { color: #8A5A00; border-top-color: #DED7C7; }
html.light .guide p, html.light .guide li, html.light .guide td { color: #3F3F46; }
html.light .guide th { background: #EFEBE2; }
html.light .guide th, html.light .guide td { border-color: #DED7C7; }

/* Lightning: dark charge on light paper */
html.light #orb { background: radial-gradient(circle, rgba(20, 20, 22, .9) 0%, rgba(120, 85, 10, .45) 38%, rgba(226, 178, 60, 0) 70%); mix-blend-mode: multiply; }
html.light #orb::after { border-color: rgba(20, 20, 22, .35); }

/* Theme switch icon state */
.theme-sun { display: none; } html.light .theme-sun { display: inline; } html.light .theme-moon { display: none; }

/* Dark tinted chips/buttons/banners become light tints so their (darkened) text reads */
html.light :is([class*="bg-emerald-950"], [class*="bg-emerald-900"], .hover\:bg-emerald-900:hover):not(.keep-dark, .keep-dark *) { background-color: #D1FAE5; }
html.light :is([class*="bg-rose-950"], [class*="bg-rose-900"]):not(.keep-dark, .keep-dark *) { background-color: #FFE4E6; }
html.light :is([class*="bg-sky-950"], [class*="bg-sky-900"]):not(.keep-dark, .keep-dark *) { background-color: #E0F2FE; }
html.light :is([class*="bg-amber-950"], [class*="bg-amber-900"]):not(.keep-dark, .keep-dark *) { background-color: #FEF3C7; }
html.light :is(.bg-zinc-900, [class*="bg-zinc-900/"], .bg-zinc-800):not(.keep-dark, .keep-dark *) { background-color: #E7E2D6; }
html.light :is(.text-rose-100, .text-rose-200):not(.keep-dark, .keep-dark *) { color: #9F1239; }
html.light :is(.text-emerald-100, .text-emerald-200):not(.keep-dark, .keep-dark *) { color: #065F46; }
html.light :is(.text-sky-100, .text-sky-200):not(.keep-dark, .keep-dark *) { color: #075985; }
html.light .border-emerald-700\/60:not(.keep-dark *), html.light .border-emerald-600\/60:not(.keep-dark *) { border-color: #059669; }

/* Staff guide: bold text, code and callouts */
html.light .guide strong, html.light .guide b { color: #141416; }
html.light .guide code { color: #8A5A00; }
html.light .guide blockquote { background: #EFEBE2; color: #27272A; }
html.light .guide a { color: #8A5A00; }

/* See-through dark bars (sticky headers like the consultation bar) */
html.light :is([class*="bg-tmw-black/"], [class*="bg-tmw-card/"], [class*="bg-zinc-950"]):not(.keep-dark, .keep-dark *, .fixed) { background-color: rgba(246, 243, 236, .96); }

/* Date / time picker icons: dark on light */
html.light input::-webkit-calendar-picker-indicator { filter: invert(0) brightness(0) opacity(.75); }
html.light input:is([type=date], [type=time], [type=datetime-local], [type=month]) { color-scheme: light; }
