/* Pollsmax site-wide light mode — dark mode untouched (default). html[data-pollsmax-theme="light"] */

html[data-pollsmax-theme="light"] {
    color-scheme: light;
}

/* —— Base: pure white site shell —— */
html[data-pollsmax-theme="light"] body,
html[data-pollsmax-theme="light"] body.sleek-home {
    background: #ffffff !important;
    color: #0f172a !important;
}

html[data-pollsmax-theme="light"] main {
    background: transparent;
}

/* —— Header / footer —— */
html[data-pollsmax-theme="light"] #mainHeader,
html[data-pollsmax-theme="light"] body.sleek-home #mainHeader,
html[data-pollsmax-theme="light"] header.bg-\[\#0b0e13\] {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom-color: #cbd5e1 !important;
}

html[data-pollsmax-theme="light"] footer,
html[data-pollsmax-theme="light"] body.sleek-home footer {
    background: #ffffff !important;
    border-top-color: #cbd5e1 !important;
    color: #475569 !important;
}

html[data-pollsmax-theme="light"] .sleek-sitelinks-strip,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-sitelinks-strip {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

html[data-pollsmax-theme="light"] .sleek-sitelinks-strip a.sleek-sitelinks-item,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-sitelinks-strip a.sleek-sitelinks-item {
    color: #475569 !important;
}

html[data-pollsmax-theme="light"] .sleek-sitelinks-strip a.sleek-sitelinks-item:hover,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-sitelinks-strip a.sleek-sitelinks-item:hover {
    color: #0f172a !important;
}

/* —— Typography (Tailwind slate utilities) —— */
html[data-pollsmax-theme="light"] .text-white {
    color: #0f172a !important;
}

html[data-pollsmax-theme="light"] .text-slate-200 {
    color: #334155 !important;
}

html[data-pollsmax-theme="light"] .text-slate-300,
html[data-pollsmax-theme="light"] .text-slate-400 {
    color: #64748b !important;
}

html[data-pollsmax-theme="light"] .text-slate-500 {
    color: #64748b !important;
}

html[data-pollsmax-theme="light"] .text-slate-600 {
    color: #475569 !important;
}

html[data-pollsmax-theme="light"] .hover\:text-white:hover,
html[data-pollsmax-theme="light"] .group-hover\:text-slate-200,
html[data-pollsmax-theme="light"] .group-hover\:text-white {
    color: #0f172a !important;
}

/* Seat bar counts stay white on colored segments */
html[data-pollsmax-theme="light"] #numR,
html[data-pollsmax-theme="light"] #numD,
html[data-pollsmax-theme="light"] #govNumR,
html[data-pollsmax-theme="light"] #govNumD,
html[data-pollsmax-theme="light"] #ehNumR,
html[data-pollsmax-theme="light"] #ehNumD,
html[data-pollsmax-theme="light"] #ehPresNumR,
html[data-pollsmax-theme="light"] #ehPresNumD,
html[data-pollsmax-theme="light"] .eh-seat-bar-count {
    color: #ffffff !important;
}

/* Seat bar labels & threshold (51 seats / 26 gov) — black */
html[data-pollsmax-theme="light"] .sleek-seat-bar-label,
html[data-pollsmax-theme="light"] .sleek-seat-threshold,
html[data-pollsmax-theme="light"] .eh-seat-threshold {
    color: #000000 !important;
}

html[data-pollsmax-theme="light"] .sleek-seat-indicator {
    border-top-color: #000000 !important;
}

/* —— Borders & dividers (darker grays) —— */
html[data-pollsmax-theme="light"] .border-slate-800\/80,
html[data-pollsmax-theme="light"] .border-slate-800,
html[data-pollsmax-theme="light"] .border-slate-700,
html[data-pollsmax-theme="light"] body.sleek-home .border-t.border-slate-700 {
    border-color: #cbd5e1 !important;
}

html[data-pollsmax-theme="light"] .bg-\[\#050608\],
html[data-pollsmax-theme="light"] .bg-\[\#0b0e13\],
html[data-pollsmax-theme="light"] .bg-\[\#0a0c10\],
html[data-pollsmax-theme="light"] .bg-\[\#111827\] {
    background-color: #ffffff !important;
}

/* —— Cards, pills, chart shells —— */
html[data-pollsmax-theme="light"] .card,
html[data-pollsmax-theme="light"] body.sleek-home .card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

html[data-pollsmax-theme="light"] .pill,
html[data-pollsmax-theme="light"] body.sleek-home .pill {
    background: #ffffff !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

html[data-pollsmax-theme="light"] .sleek-chart-stage,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-chart-stage {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}

html[data-pollsmax-theme="light"] .sleek-poll-sidebar,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-poll-sidebar {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

html[data-pollsmax-theme="light"] .sleek-poll-sidebar-head,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-poll-sidebar-head {
    background: #f8fafc !important;
}

html[data-pollsmax-theme="light"] .sleek-poll-list > li,
html[data-pollsmax-theme="light"] .sleek-poll-list > div,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-poll-list > li {
    border-bottom-color: #e2e8f0 !important;
}

html[data-pollsmax-theme="light"] .sleek-poll-list > li:hover,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-poll-list > li:hover {
    background: #f1f5f9 !important;
}

html[data-pollsmax-theme="light"] .sleek-band-head,
html[data-pollsmax-theme="light"] .sleek-race-row,
html[data-pollsmax-theme="light"] .senate-race-row,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-race-row {
    border-bottom-color: #e2e8f0 !important;
}

html[data-pollsmax-theme="light"] a.sleek-race-row:hover,
html[data-pollsmax-theme="light"] .senate-race-row:hover,
html[data-pollsmax-theme="light"] body.sleek-home a.sleek-race-row:hover {
    background: #f8fafc !important;
}

html[data-pollsmax-theme="light"] .sleek-eyebrow,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-eyebrow {
    color: #64748b !important;
}

/* Hub race list: “No Polls Yet” stays visible in light mode */
html[data-pollsmax-theme="light"] .senate-race-cands-hub.text-slate-400 {
    color: #64748b !important;
}

/* —— Map tooltips —— */
html[data-pollsmax-theme="light"] #mapTip,
html[data-pollsmax-theme="light"] #govMapTip,
html[data-pollsmax-theme="light"] #ehMapTip,
html[data-pollsmax-theme="light"] body.sleek-home #mapTip,
html[data-pollsmax-theme="light"] body.sleek-home #govMapTip {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
}

html[data-pollsmax-theme="light"] #mapTip .text-slate-300,
html[data-pollsmax-theme="light"] #govMapTip .text-slate-300 {
    color: #64748b !important;
}

/* —— Nav dropdowns —— */
html[data-pollsmax-theme="light"] .sleek-nav-dropdown,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-nav-dropdown {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1) !important;
}

html[data-pollsmax-theme="light"] .sleek-nav-dropdown a,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-nav-dropdown a {
    color: #1e293b !important;
}

html[data-pollsmax-theme="light"] .sleek-nav-dropdown a:hover,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-nav-dropdown a:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

html[data-pollsmax-theme="light"] .sleek-nav-dropdown a.sleek-nav-dropdown-lead,
html[data-pollsmax-theme="light"] body.sleek-home .sleek-nav-dropdown a.sleek-nav-dropdown-lead {
    background: #f8fafc !important;
    color: #0f172a !important;
}

/* —— State / hub inline dark backgrounds —— */
html[data-pollsmax-theme="light"] .section-head,
html[data-pollsmax-theme="light"] body.sleek-home .section-head {
    background: transparent !important;
}

html[data-pollsmax-theme="light"] .row.header,
html[data-pollsmax-theme="light"] #searchTable li,
html[data-pollsmax-theme="light"] .state-polls-shell {
    border-color: #e2e8f0 !important;
}

html[data-pollsmax-theme="light"] select.sleek-select,
html[data-pollsmax-theme="light"] body.sleek-home select.sleek-select {
    color: #0f172a !important;
    border-bottom-color: #94a3b8 !important;
}

/* —— Flip chip outline (inset, same size as solid chips; fully opaque white) —— */
html[data-pollsmax-theme="light"] .et-chip--flip,
html[data-pollsmax-theme="light"] [class*="flip"][class*="chip"] {
    box-shadow: inset 0 0 0 1px #ffffff !important;
}

/* —— Mobile nav —— */
html[data-pollsmax-theme="light"] .et-mobile-nav-btn {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #334155 !important;
}

html[data-pollsmax-theme="light"] .et-mobile-nav-panel {
    border-top-color: #cbd5e1 !important;
}

html[data-pollsmax-theme="light"] .et-mobile-nav-panel a {
    color: #1e293b !important;
}

html[data-pollsmax-theme="light"] .et-mobile-nav-panel .et-mobile-nav-sub a {
    color: #64748b !important;
}

/* —— Electoral history —— */
html[data-pollsmax-theme="light"] .eh-mode-btn {
    border: none !important;
    border-bottom: 3px solid transparent !important;
    color: #64748b !important;
    background-color: transparent !important;
}

html[data-pollsmax-theme="light"] .eh-mode-btn--active[data-eh-mode="president"] {
    color: #0f172a !important;
    border-bottom-color: #ff4142 !important;
    background-color: #ffffff !important;
    background-image: linear-gradient(0deg, rgba(255, 65, 66, 0.18) 0%, rgba(255, 65, 66, 0.08) 22%, rgba(255, 65, 66, 0.03) 52%, #ffffff 80%, #ffffff 100%) !important;
}

html[data-pollsmax-theme="light"] .eh-mode-btn--active[data-eh-mode="senate"] {
    color: #0f172a !important;
    border-bottom-color: #1181ff !important;
    background-color: #ffffff !important;
    background-image: linear-gradient(0deg, rgba(17, 129, 255, 0.18) 0%, rgba(17, 129, 255, 0.08) 22%, rgba(17, 129, 255, 0.03) 52%, #ffffff 80%, #ffffff 100%) !important;
}

html[data-pollsmax-theme="light"] .eh-mode-btn--active[data-eh-mode="governor"] {
    color: #0f172a !important;
    border-bottom-color: #22c55e !important;
    background-color: #ffffff !important;
    background-image: linear-gradient(0deg, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0.08) 22%, rgba(34, 197, 94, 0.03) 52%, #ffffff 80%, #ffffff 100%) !important;
}

html[data-pollsmax-theme="light"] .eh-year-display {
    color: #0f172a !important;
}

/* —— Home theme toggle (home page only) —— */
html[data-pollsmax-theme="light"] body.sleek-home .pollsmax-theme-toggle {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #334155;
}

html[data-pollsmax-theme="light"] body.sleek-home .pollsmax-theme-toggle:hover {
    background: #e2e8f0;
    color: #0f172a;
}

body.sleek-home .pollsmax-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 0.375rem;
    border: 1px solid rgba(71, 85, 105, 0.55);
    background: rgba(15, 23, 42, 0.35);
    color: #cbd5e1;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

body.sleek-home .pollsmax-theme-toggle:hover {
    background: rgba(30, 41, 59, 0.65);
    color: #f8fafc;
}

body.sleek-home .pollsmax-theme-toggle svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

body.sleek-home .pollsmax-theme-toggle .pollsmax-theme-toggle__sun {
    display: none;
}

body.sleek-home .pollsmax-theme-toggle .pollsmax-theme-toggle__moon {
    display: block;
}

body.sleek-home .pollsmax-theme-toggle.is-light .pollsmax-theme-toggle__sun {
    display: block;
}

body.sleek-home .pollsmax-theme-toggle.is-light .pollsmax-theme-toggle__moon {
    display: none;
}

/* —— Hub rules / dividers —— */
html[data-pollsmax-theme="light"] .senate-map-divider::after,
html[data-pollsmax-theme="light"] body.sleek-home .eh-page-body::after,
html[data-pollsmax-theme="light"] body.sleek-home .eh-aside.senate-races-aside::after,
html[data-pollsmax-theme="light"] .hub-aside-races-bottom-rule,
html[data-pollsmax-theme="light"] .senate-search-polls-rule-wrap::after,
html[data-pollsmax-theme="light"] .hub-aside-head-rule::after,
html[data-pollsmax-theme="light"] .senate-right-divider-inset::after {
    background: #cbd5e1 !important;
}

/* —— Approval / legacy pages —— */
html[data-pollsmax-theme="light"] .et-page-shell {
    background: #ffffff !important;
}
