/* ---------------------------------------------------------------------------
   DanceSportLive LIGHT MODE - Nov 2026. Opt-in only: DSL is BLACK by default
   (standing ruling); visitors may choose light with the sun/moon button, which
   sets <html data-theme="light"> and remembers it in the browser (dsl_theme).
   Loaded on every new-look page by results/_css/theme_head.php, so existing
   event folders get it without a re-save. Every rule is scoped to
   html[data-theme="light"], so it does nothing in dark mode.
   The header bar STAYS PURE BLACK in both modes (logo ruling) - its variables are
   reset to the dark set below.
   Gold: --accent is a darker gold for TEXT on white; buttons and filled chips keep
   the bright gold (#F2B632) with dark text.
   --------------------------------------------------------------------------- */
html[data-theme="light"]{
--bg:#F3F3F6;--band:#FFFFFF;--card:#FFFFFF;--card2:#F7F7FA;--well:#ECECF1;
--line:#DCDCE3;--line2:#C4C4CE;--text:#16161A;--muted:#56565F;--faint:#6B6B75;
--accent:#8F5E00;--live:#D92D2D;--live-txt:#B3261E;--prop:#8A6100;
color-scheme:light;
}
/* Header stays black: put the dark set back for everything inside it */
html[data-theme="light"] .top{
--bg:#0B0B0D;--card2:#1A1A1F;--line:#2A2A31;--line2:#3A3A42;--text:#F2F2F4;--muted:#A3A3AD;--faint:#8A8A94;--accent:#F2B632;
color:var(--text);
}

/* Bright gold fills (buttons, selected chips) */
html[data-theme="light"] .btn-solid:hover,
html[data-theme="light"] .search button,
html[data-theme="light"] .chip[aria-pressed="true"],
html[data-theme="light"] .years button[aria-pressed="true"],
html[data-theme="light"] .ev-acts a.solid,
html[data-theme="light"] #article input[type="submit"],
html[data-theme="light"] #article button,
html[data-theme="light"] #article .vsw-seg a.on,
html[data-theme="light"] #article .me-alert-on,
html[data-theme="light"] #article .me-who a.on,
html[data-theme="light"] .me-bell{background:#F2B632;border-color:#F2B632;color:#111}
html[data-theme="light"] #article .me-other a{background:#F2B632 !important;color:#111 !important}
html[data-theme="light"] .spin{border-top-color:#F2B632}

/* Dividers and outlines that were typed in as dark greys */
html[data-theme="light"] .band,html[data-theme="light"] .foot,html[data-theme="light"] .ev-banner,
html[data-theme="light"] .ev-strip,html[data-theme="light"] .pwa-tip{border-color:var(--line)}
html[data-theme="light"] #footer{border-top-color:var(--line)}
html[data-theme="light"] .search-box,html[data-theme="light"] .search select,html[data-theme="light"] .cal-none,
html[data-theme="light"] #article input[type="text"],html[data-theme="light"] #article input[type="search"],
html[data-theme="light"] #article .vsw-find input{border-color:var(--line2)}
html[data-theme="light"] .wkcard{border-color:var(--line)}
html[data-theme="light"] .pwa-tip{background:var(--well)}

/* Live / closed / warning reds */
html[data-theme="light"] .live,html[data-theme="light"] .chip-live,html[data-theme="light"] .tile.hot,
html[data-theme="light"] .me-now{background:#FFF1F1;border-color:#F2B8B8}
html[data-theme="light"] .live .btn{border-color:#F2B8B8}
html[data-theme="light"] .chip-warn,html[data-theme="light"] .badge-closed{border-color:#F2B8B8}

/* Badges and greens */
html[data-theme="light"] .badge-open{border-color:#9FD8B4;color:#1E7A43}
html[data-theme="light"] .badge-soon,html[data-theme="light"] .badge-prop{border-color:#E3C27A}
html[data-theme="light"] #article [style*="color:#060"],html[data-theme="light"] #article input[type="text"],
html[data-theme="light"] #article .vsw-col,html[data-theme="light"] .my-st.on{color:#1E7A43}
html[data-theme="light"] #article input[type="text"]{color:var(--text)}

/* Row hovers */
html[data-theme="light"] #viewtable tr:hover td,
html[data-theme="light"] #article .vsw-seg a:not(.on):hover,
html[data-theme="light"] #article .vsw-back a:hover{background:#F1F1F5}

/* Timetables (screen view - print stays white anyway) */
html[data-theme="light"] #article .dsevt td,
html[data-theme="light"] #article tr[style*="background-color:#ccc"]{background:#E9E9EF !important}
html[data-theme="light"] #article .dsbreak td,
html[data-theme="light"] #article tr[style*="background-color:#ccf"]{background:#E6E8F7 !important}
html[data-theme="light"] #article .dsheat td{background:#F1F1F5 !important}

/* My Events boxes */
html[data-theme="light"] #article .me-caution,
html[data-theme="light"] .me-other{background:#FFF7E0;border-color:#E3C27A}
html[data-theme="light"] .me-other{border-color:#C99A2E}
html[data-theme="light"] .me-rc.ok{background:#E5F6EC;color:#1E7A43;border-color:#9FD8B4}

/* ---------------------------------------------------------------------------
   The sun/moon button (added to the header by theme_head.php). Header is black in
   both modes, so it is drawn like the language buttons beside it.
   --------------------------------------------------------------------------- */
.theme-btn{flex:0 0 auto;min-height:36px;min-width:40px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;border-radius:6px;
border:1px solid #34343C;background:transparent;color:#F2F2F4;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.theme-btn:hover{border-color:#F2B632;color:#F2B632}
.theme-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.theme-btn .moon{display:none}
html[data-theme="light"] .theme-btn .sun{display:none}
html[data-theme="light"] .theme-btn .moon{display:inline}
