/* Light mode for the admin pages, sign in pages and guest upload page.
   theme.js sets html[data-theme] from the person's choice (Auto follows the device).
   Screens (pulpit, kids, green room, Tech desk) always stay dark, so they never glare in the room. */

.logo-l { display: none; }
[data-theme=light] .logo-d { display: none; }
[data-theme=light] .logo-l { display: revert; }

[data-theme=light] {
  --brand-hi: #b0345d;
  --ink: #f5f1f7;
  --ink-2: #ffffff;
  --text: #1d1f40;
  --muted: #5d5b7c;
  --line: rgba(36,38,79,.12);
  --glass: rgba(255,255,255,.78);
  --glass-2: rgba(36,38,79,.06);
  --shadow: 0 16px 36px -22px rgba(36,38,79,.35);
  color-scheme: light;
}
[data-theme=light] body { background: radial-gradient(1200px 800px at 80% -10%, #ecdff4 0%, transparent 60%), var(--ink); }
[data-theme=light] .aurora span { opacity: .14; }
[data-theme=light] .aurora span:nth-child(2) { opacity: .1; }
[data-theme=light] .aurora span:nth-child(3) { opacity: .06; }

/* Menu */
[data-theme=light] .side { background: rgba(255,255,255,.82); }
[data-theme=light] .side nav a.on { background: linear-gradient(135deg, rgba(182,61,101,.16), rgba(138,92,246,.1)); color: var(--brand); box-shadow: inset 0 0 0 1px rgba(182,61,101,.2); }
[data-theme=light] .tabs a:hover { background: rgba(36,38,79,.05); }
[data-theme=light] .tabs a.on { background: linear-gradient(135deg, rgba(182,61,101,.16), rgba(138,92,246,.1)); color: var(--brand); }

/* Buttons and fields */
[data-theme=light] .btn, [data-theme=light] button.btn { color: var(--text); }
[data-theme=light] .btn:hover { background: rgba(36,38,79,.1); }
[data-theme=light] .btn.primary, [data-theme=light] .btn.danger, [data-theme=light] .btn.signed { color: #fff; }
[data-theme=light] .btn.primary:hover { background: linear-gradient(135deg, var(--brand), #d04f80); }
[data-theme=light] .btn.danger:hover { background: linear-gradient(135deg, #e11d48, #ff4d6a); }
[data-theme=light] .btn.go:hover { background: linear-gradient(135deg, #10b981, #34d399); }
[data-theme=light] .btn.warn:hover { background: linear-gradient(135deg, #f59e0b, #ffb547); }
[data-theme=light] input, [data-theme=light] select, [data-theme=light] textarea { background: #fff; border-color: rgba(36,38,79,.18); }
[data-theme=light] input:focus, [data-theme=light] select:focus, [data-theme=light] textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(182,61,101,.15); }
[data-theme=light] select option { background: #fff; }
[data-theme=light] .tick { border-color: rgba(36,38,79,.3); }

/* Messages, tags and states: darker text so they stay readable on white */
[data-theme=light] .flash.ok { color: #08714c; background: rgba(16,185,129,.12); }
[data-theme=light] .flash.err { color: #b4173a; background: rgba(225,29,72,.09); }
[data-theme=light] .tag.ok, [data-theme=light] .stat-ok b, [data-theme=light] .st-done .ck-meta .st, [data-theme=light] .pos-tab.done .cnt { color: #08714c; }
[data-theme=light] .tag.over, [data-theme=light] .stat-over b, [data-theme=light] .st-overdue .ck-meta .st, [data-theme=light] .pos-tab em.bad, [data-theme=light] .conn.bad { color: #b4173a; }
[data-theme=light] .tag.warn, [data-theme=light] .st-due_soon .ck-meta .st, [data-theme=light] .st-done_late .ck-meta .st, [data-theme=light] .pos-tab em.soon, [data-theme=light] .warn-text { color: #8a4b00; }
[data-theme=light] .tag.role-admin { color: #9c2c53; background: rgba(182,61,101,.13); }
[data-theme=light] .tag.role-tech, [data-theme=light] .tag.role-sound, [data-theme=light] .tag.role-easyworship, [data-theme=light] .tag.role-vision, [data-theme=light] .tag.role-camera { color: #075985; background: rgba(14,165,233,.13); }
[data-theme=light] .tag.role-viewer { color: #475569; background: rgba(100,116,139,.14); }
[data-theme=light] .tag.role-leader { color: #8a4b00; background: rgba(245,158,11,.16); }
[data-theme=light] .tag.role-preacher { color: #5b21b6; background: rgba(138,92,246,.14); }
[data-theme=light] .note-chip { color: #7a4300; background: rgba(255,181,71,.14); }
[data-theme=light] .guide-body h3, [data-theme=light] .guide-preview h3 { color: var(--brand); }

/* Panels that were darker than the card */
[data-theme=light] .secret, [data-theme=light] .codes code { background: rgba(36,38,79,.05); border-color: rgba(36,38,79,.2); }
[data-theme=light] .checks li, [data-theme=light] .guide-list a, [data-theme=light] details.edit-roles form,
[data-theme=light] .media, [data-theme=light] .req-list li, [data-theme=light] .preacher-name { background: rgba(36,38,79,.04); }
[data-theme=light] .guide-preview, [data-theme=light] .guide-body { background: rgba(36,38,79,.03); }
[data-theme=light] table.list tbody tr:hover { background: rgba(36,38,79,.03); }
[data-theme=light] .checks li.st-done .ck-title, [data-theme=light] .checks li.st-done_late .ck-title { text-decoration-color: rgba(36,38,79,.35); }
[data-theme=light] .chip b { background: rgba(36,38,79,.08); }

/* Planner */
[data-theme=light] .pal-item { background: #fff; }
[data-theme=light] .pi-n { background: rgba(36,38,79,.08); }
[data-theme=light] .pi-title:hover { color: var(--brand); }
[data-theme=light] .chip-s { background: rgba(36,38,79,.07); }
[data-theme=light] .chip-s.key { color: #5b21b6; background: rgba(138,92,246,.13); }
[data-theme=light] .chip-s.mic { color: #075985; background: rgba(14,165,233,.13); }
[data-theme=light] .chip-s.warn { color: #8a4b00; background: rgba(255,181,71,.18); }
[data-theme=light] .chip-s.bad { color: #b4173a; background: rgba(255,77,106,.12); }
[data-theme=light] .m-st { color: #8a4b00; }
[data-theme=light] .m-err { color: #b4173a; }
[data-theme=light] .progress { background: rgba(36,38,79,.08); }
[data-theme=light] .pick.oneoff { color: var(--brand); }
[data-theme=light] .pc-date { background: linear-gradient(160deg, rgba(182,61,101,.16), rgba(138,92,246,.12)); }
/* Item colours: deeper shades for text on white */
[data-theme=light] .t-welcome { --c: #db2777; } [data-theme=light] .t-song { --c: #7c3aed; } [data-theme=light] .t-reading { --c: #b45309; }
[data-theme=light] .t-prayer { --c: #2563eb; } [data-theme=light] .t-notices { --c: #64748b; } [data-theme=light] .t-sermon { --c: #be185d; }
[data-theme=light] .t-communion { --c: #dc2626; } [data-theme=light] .t-video { --c: #0891b2; }
[data-theme=light] .t-kids_out, [data-theme=light] .t-kids_back { --c: #059669; } [data-theme=light] .t-custom { --c: #64748b; }

/* Phones: menu bar and open menu */
@media (max-width: 900px) {
  [data-theme=light] .side { background: rgba(255,255,255,.94); }
  [data-theme=light] .nav-open .side nav a { background: rgba(36,38,79,.04); }
  [data-theme=light] table.list.stack-sm tr { background: rgba(255,255,255,.7); }
}

/* Theme switch in the menu */
.theme-switch { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--glass-2); }
.theme-switch button { flex: 1; border: 0; background: none; color: var(--muted); font: 700 12px var(--head); padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.theme-switch button.on { background: var(--glass); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.15); }

/* Timer ring and position colours on white */
[data-theme=light] .ring .track { stroke: rgba(36,38,79,.09); }
[data-theme=light] .pos-pill { color: color-mix(in srgb, var(--pos) 70%, #000); background: color-mix(in srgb, var(--pos) 16%, transparent); }
[data-theme=light] .tabs a .dot { box-shadow: none; }
