/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME
   Only activates under [data-theme="light"] on <html>.
   Dark mode = original stylesheet, completely untouched.
════════════════════════════════════════════════════════════════ */

[data-theme="light"] {
    --bg:      #f0f2f7;
    --surface: #ffffff;
    --surface2:#e0e3ee;
    --border:  #b8bccb;
    --text:    #12121e;
    --muted:   #12121e;
    --radius:  6px;
}

/* ── Hardcoded #fff text ── */
[data-theme="light"] #players-table a { color: #12121e !important; }

[data-theme="light"] .idx-access-h2 { color: #12121e !important; }
[data-theme="light"] .idx-table tbody td[style*="color:#fff"] { color: #12121e !important; }
[data-theme="light"] .idx-table tbody td[style*="color:#fff"] { color: #12121e !important; }
[data-theme="light"] h1 { color: #12121e !important; }
[data-theme="light"] h2 { color: #12121e !important; }
[data-theme="light"] h3 { color: #12121e !important; }
[data-theme="light"] strong { color: #12121e !important; }
[data-theme="light"] table.flat td span:not(.f-pill) { color: #12121e !important; }
[data-theme="light"] table.flat td span.f-pill { color: #eee !important; }
[data-theme="light"] .top-bar-brand,
[data-theme="light"] .top-bar-brand:hover        { color: #12121e; }
[data-theme="light"] .site-header h1             { color: #12121e; }
[data-theme="light"] .nav-btn                    { color: #12121e; }
[data-theme="light"] .nav-btn:hover,
[data-theme="light"] .nav-btn.active             { color: #000; }
[data-theme="light"] .nav-dropdown-menu a        { color: #12121e; }
[data-theme="light"] .nav-dropdown-menu a:hover  { background: var(--surface2); color: #12121e; }
[data-theme="light"] .modal h2                   { color: #12121e; }
[data-theme="light"] .modal .close-btn:hover     { color: #12121e; }
[data-theme="light"] .key-abbr                   { color: #12121e; }
[data-theme="light"] .player-name                { color: #12121e; }
[data-theme="light"] .card-player-name           { color: #12121e; }
[data-theme="light"] .pr-name                    { color: #12121e; }
[data-theme="light"] .site-footer a:hover        { color: #12121e; }
[data-theme="light"] table.flat th:hover,
[data-theme="light"] table.flat th.sorted        { color: #12121e; }

/* ── Hardcoded dark backgrounds ── */
[data-theme="light"] .at-divider                                 { background: #d0d4e4; color: #12121e; }
[data-theme="light"] .tip-sep                                    { background: #d0d4e4; color: #12121e; }
[data-theme="light"] .matchup-table tr.team-header-row td        { color: #12121e; }
[data-theme="light"] .matchup-table tr.team-header-row td.at-hd  { background: #d0d4e4; color: #12121e; }
[data-theme="light"] .card-at                                    { background: #d0d4e4; color: #12121e; }

/* ── Hover rows ── */
[data-theme="light"] .data-table tbody tr:hover td    { background: rgba(0,0,0,.04); }
[data-theme="light"] .matchup-table tr:hover td       { background: rgba(0,0,0,.04); }
[data-theme="light"] table.flat tr:hover td           { background: rgba(0,0,0,.04); }
[data-theme="light"] table.picks-table tr:hover td    { background: rgba(0,0,0,.04); }

/* ── stats-style.css: hardcoded #fff text ── */
[data-theme="light"] .sl                              { color: #12121e; }
[data-theme="light"] .sl .sl-sub                      { color: #12121e; }
[data-theme="light"] .dt tbody td.name                { color: #12121e; }
[data-theme="light"] .h2h-val                         { color: #12121e !important; }
[data-theme="light"] .h2h-col                         { color: #12121e; }
[data-theme="light"] .prev-matchup-header             { color: #12121e; }
[data-theme="light"] .stab.active                     { background: #12121e; color: #fff; }
[data-theme="light"] .stab-dd-item.active             { background: #12121e; color: #fff; }

/* ── stats-style.css: tab buttons ── */
[data-theme="light"] .stab                            { color: #12121e; border-color: #b8bccb; }
[data-theme="light"] .stab:hover                      { color: #000; border-color: #888; }

/* ── stats-style.css: hardcoded light text on data cells ── */
[data-theme="light"] .dt tbody td.num                 { color: #12121e; }
[data-theme="light"] .dt thead th                     { color: #12121e; }
[data-theme="light"] .data-table thead th             { color: #12121e; }
[data-theme="light"] table.flat th                    { color: #12121e; }
[data-theme="light"] table.picks-table th             { color: #12121e; }
[data-theme="light"] .matchup-table th                { color: #12121e; }

/* ── ET/date and muted data columns ── */
[data-theme="light"] .dt tbody td                     { color: #12121e; }
[data-theme="light"] .data-table td                   { color: #12121e; }
[data-theme="light"] .rank-num                        { color: #12121e; }
[data-theme="light"] .at                              { color: #555; }
[data-theme="light"] .empty-dash                      { color: #aaa; }

/* ── Sortable table player names ── */
[data-theme="light"] table.flat td                    { color: #12121e; }

/* ── Active button hover — keep white text ── */
[data-theme="light"] .stab.active:hover               { color: #fff; }
[data-theme="light"] .stab-dd-item.active:hover       { color: #fff; }
/* ── player.php & players.php ── */
[data-theme="light"] .player-summary          { color: #12121e; }
[data-theme="light"] .dt-log tbody td         { color: #12121e; }
[data-theme="light"] .dt-log thead th         { color: #12121e; }

/* ── index.php ── */
[data-theme="light"] .idx-table-player        { color: #12121e; }
[data-theme="light"] .idx-plan-name           { color: #12121e; }
[data-theme="light"] .idx-access-h2           { color: #12121e !important; }

/* ── content pages ── */
[data-theme="light"] .content-page h1         { color: #12121e; }
[data-theme="light"] .content-page h2         { color: #12121e; }
[data-theme="light"] .content-page p          { color: #12121e; }
[data-theme="light"] .content-page ul,
[data-theme="light"] .content-page ol         { color: #12121e; }
[data-theme="light"] .content-page a          { color: #12121e; }
[data-theme="light"] .contact-label           { color: #555; }
[data-theme="light"] .contact-input,
[data-theme="light"] .contact-textarea        { color: #12121e; border-color: var(--border); }
[data-theme="light"] .contact-input:focus,
[data-theme="light"] .contact-textarea:focus  { border-color: #12121e; }
