/* Skoolplug Study Hub · accessible user-selected appearance · v0.3.2
   Only the seven student Elementor pages use this. Welcome stays as approved. */
.skpa-theme-toggle{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:88px;min-height:40px;padding:8px 11px!important;border:1px solid #564a39!important;border-radius:12px!important;background:#201b15!important;color:#f0e8d9!important;cursor:pointer;font:750 12px/1.2 'Instrument Sans',sans-serif!important;white-space:nowrap;box-shadow:none!important;transition:background .18s,border-color .18s!important}
.skpa-theme-toggle:hover{border-color:#f9a11b!important;background:#382d1d!important;color:#fff!important}
.skpa-theme-toggle:focus-visible{outline:3px solid #f9a11b!important;outline-offset:3px}
.skpa-theme-icon{display:inline-flex;width:18px;height:18px;flex:none}
.skpa-theme-fallback{position:fixed;right:20px;top:20px;z-index:9999}.skpa-theme-fallback .skpa-theme-toggle{box-shadow:0 6px 30px #0006!important}
@media(max-width:767px){.skpa-actions{gap:6px!important}.skpa-theme-toggle{min-width:36px;width:36px;height:36px;min-height:36px;padding:7px!important;border-radius:10px!important}.skpa-theme-label{display:none}.skpa-theme-fallback{top:auto;bottom:90px;right:14px}}
@media(max-width:359px){.skpa-header .skpa-brand img{width:112px!important}.skpa-header .skpa-cta{padding:8px 7px!important;font-size:10px!important}.skpa-header-inner{padding-left:8px;padding-right:8px}}

/* Dark palette applied to the app; keep the approved Welcome page as-is. */
html[data-skp-theme="dark"] body.skp-branded-type{background:#111612!important;color:#f1eee6!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpd-page,
html[data-skp-theme="dark"] body.skp-branded-type .skpd-body-wrap,
html[data-skp-theme="dark"] body.skp-branded-type .skpd-main-layout,
html[data-skp-theme="dark"] body.skp-branded-type .skpd-main-col,
html[data-skp-theme="dark"] body.skp-branded-type .skpd-shell,
html[data-skp-theme="dark"] body.skp-branded-type .skpd-login-page{background:#111612!important;color:#f1eee6!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpd-page .elementor-element:not(.skpa-header-row):not(.skpa-footer-row){--e-global-color-primary:#f9a11b;--e-global-color-secondary:#d6cfc2}
/* Card surfaces: dashboard, mock, lesson reader, quiz, login and forms. */
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpd-card,.skpd-stat,.skpd-action:not(.skpd-action-amber),.skpd-empty,.skpd-metric,.skpd-plan-status,.skpx-card,.skpx-lesson,.skpx-metric,.skpx-plan,.skpx-review,.skpx-setup-card,.skpx-empty,.skpx-benefits>span,.skpx-explanation,.skpx-lesson-rich .skp-lesson-block,.skpm-score-card,.skpm-review-item,.skpm-english-lock,.skpm-summary,.skpm-tab,.skpm-answer,.skpm-mode-toggle,.skpm-history-card,.skpm-history-list>div,.skpm-empty,.skpx-login-card .skp-app,.skpx-login-card .skp-app.skp-auth-bg,.skpx-login-card .skp-login-panel){background:#1c241f!important;color:#f2f0e8!important;border-color:#36453b!important;box-shadow:none!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-hero,.skpd-squad-banner){background:#21291f!important;color:#f1eee6!important;border:1px solid #3f4b3d!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpd-hero h1,.skpd-section h2,.skpd-card h2,.skpd-stat strong,.skpd-stat-num,.skpd-action h3,.skpd-card strong,.skpd-action:not(.skpd-action-amber),.skpx-feature h1,.skpx-feature h2,.skpx-feature h3,.skpx-card strong,.skpx-lesson strong,.skpx-login-card .skp-login-panel h1,.skpm h2,.skpm h3,.skpm-score-card strong,.skpm-score-grid strong){color:#f5f0e7!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpd-hero p,.skpd-action p,.skpd-card p,.skpd-card small,.skpd-stat small,.skpd-activity small,.skpd-subjects small,.skpd-muted,.skpn-bottom small,.skpx-feature p,.skpx-feature small,.skpx-setup-meta,.skpx-question-meta,.skpx-lesson-tag,.skpx-metric small,.skpx-smallnote,.skpx-lesson-rich p,.skpx-login-card .skp-login-panel p,.skpm-note,.skpm-review-content p,.skpm-question-meta,.skpm-summary small){color:#b3bfb1!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-option,.skpx-number-grid>button,.skpm-numbers>button,.skpx-btn-outline,.skpx-fields select,.skpx-fields input,.skpx-library-search input,.skpx-two-col input,.skpx-two-col select,.skpm-subject-fields select,.skpx-login-card .skp-login-panel input[type=email],.skpm-mode:not(.is-active),.skpx-choice-check){background:#151d18!important;color:#f6f2e8!important;border-color:#506153!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(input,select,textarea){color-scheme:dark}
html[data-skp-theme="dark"] body.skp-branded-type :is(input,textarea)::placeholder{color:#9aa89c!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-option:hover,.skpx-lesson:hover,.skpm-answer:hover,.skpx-number-grid>button:hover,.skpm-numbers>button:hover,.skpx-btn-outline:hover){background:#3d3020!important;border-color:#f9a11b!important;color:#fff1d8!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-option.is-selected,.skpx-number-grid .is-current,.skpx-number-grid .is-answered,.skpm-numbers .is-current,.skpm-numbers .is-answered,.skpm-tab.is-active){background:#f9a11b!important;border-color:#f9a11b!important;color:#1a170f!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-lesson-icon,.skpd-stat-icon,.skpd-action-icon,.skpd-sub-dot,.skpd-activity-icon,.skpx-lesson-access){background:#46341d!important;color:#ffc66c!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpd-activity,.skpd-subjects>a,.skpx-squad-item,.skpx-history){border-color:#36453b!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpd-subjects>a{color:#f1eee6!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpn-rail .skpn-tier,.skpn-bottom,.skpn-link-icon,.skpn-rule,.skpn-top-rule){background:#1d251e!important;border-color:#384538!important;color:#f4eddf!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpn-rail:after{background:linear-gradient(to bottom,transparent,#354237,transparent)!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpn-rail a.skpn-link:not(.is-active){color:#dddacc!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpn-rail a.skpn-link:hover:not(.is-active){background:#302a20!important;border-color:#594b2d!important;color:#ffda96!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpn-rail a.skpn-link.is-active{background:#513b1e!important;border-color:#9f6c20!important;color:#ffce80!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpn-bottom strong{color:#edeada!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-feature,.skpx-cbt,.skpx-study-browser,.skpm,.skpx-lesson-reader){color:#f3eee6!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpa-footer{background:#0e120f!important;border-color:#29342b!important;color:#b7bbaf!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpa-footer :is(.skpa-footer-brand,.skpa-footer-caption,.skpa-footer-right,.skpa-footer-right a){color:#ded8cb!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpa-header{background:#0a0c0b!important;border-bottom-color:#29342b!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpa-theme-toggle{background:#3c2d1b!important;border-color:#c48a36!important;color:#ffdfa3!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpx-login-card .skp-login-panel label{color:#f3e9d8!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpm-mode.is-active{background:#f9a11b!important;color:#18120a!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpx-hero .skpx-hero-tag{color:#ffc36e!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpx-hero-symbol{color:#f9a11b!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpx-explanation{border-left-color:#f9a11b!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpm-review .skpm-explanation,.skpm-readiness,.skpx-results-hero,.skpx-result-chips>span){background:#253025!important;color:#eee9dd!important;border-color:#495b49!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-hero .skpx-btn,.skpx-btn:not(.skpx-btn-outline):not(.skpx-btn-dark),.skpa-cta){background:#f9a11b!important;color:#17120b!important;border-color:#f9a11b!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpx-feature a:not(.skpx-btn):not(.skpa-cta){color:#ffb94c!important}
/* Content-pack images remain unchanged and readable on dark backgrounds. */
html[data-skp-theme="dark"] body.skp-branded-type .skpx-lesson-rich img{background:#fff!important;border-radius:10px;padding:4px}
/* New subject directory imported in v0.2.8. */
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-subject-card,.skpx-topic-card,.skpx-library-topic,.skpx-library-lesson,.skpx-library-group,.skpx-library-card){background:#1c241f!important;color:#f1eee6!important;border-color:#36453b!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-subject-card,.skpx-topic-card,.skpx-library-card):hover{background:#382e21!important;border-color:#f9a11b!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-subject-card,.skpx-topic-card,.skpx-library-card) :is(h2,h3,strong,span){color:inherit}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-library-crumbs,.skpx-library-group-heading,.skpx-library-heading){color:#e9e4d7!important}
@media(prefers-reduced-motion:reduce){.skpa-theme-toggle{transition:none!important}}
/* Orange feature cards and buttons retain dark text for WCAG-friendly contrast. */
html[data-skp-theme="dark"] body.skp-branded-type .skpd-action-amber :is(h3,p,strong,small,.skpd-action-cta,.skpd-action-no){color:#241807!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpx-btn:not(.skpx-btn-outline):not(.skpx-btn-dark):hover{background:#ffba45!important;color:#17120b!important}
/* v0.2.8 directory component specifics (overrides orange-leaning light styles). */
html[data-skp-theme="dark"] body.skp-branded-type .skpx-feature button.skpx-subject-card,
html[data-skp-theme="dark"] body.skp-branded-type .skpx-feature button.skpx-topic-card,
html[data-skp-theme="dark"] body.skp-branded-type .skpx-library-reading,
html[data-skp-theme="dark"] body.skp-branded-type .skpx-library-empty {background:#1c241f!important;border-color:#39483d!important;color:#f1eee7!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpx-feature button.skpx-subject-card:hover,
html[data-skp-theme="dark"] body.skp-branded-type .skpx-feature button.skpx-topic-card:hover{background:#302a20!important;border-color:#f9a11b!important;color:#f8e9cb!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-subject-title,.skpx-topic-main,.skpx-library-view-heading,.skpx-library-group-heading h3,.skpx-library-heading h2){color:#f5f0e7!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-subject-description,.skpx-subject-foot,.skpx-library-count,.skpx-topic-num,.skpx-library-group-heading span,.skpx-library-reading p){color:#aebeaf!important}
html[data-skp-theme="dark"] body.skp-branded-type :is(.skpx-subject-icon,.skpx-library-empty-mark){background:#493721!important;color:#ffc46b!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpx-feature button.skpx-lesson :is(strong,.skpx-lesson-tag){color:#f3eee4!important}
html[data-skp-theme="dark"] body.skp-branded-type .skpx-feature button.skpx-lesson:hover :is(strong,.skpx-lesson-tag){color:#f9e4be!important}
