/* Site-local display preferences shared by the public site, account and classroom. */
:root {
  --eur-design-page-bg: #f7fafb; --eur-design-surface: #fff; --eur-design-soft-bg: #eef7fa;
  --eur-design-text: #0e2a3a; --eur-design-copy: #405562; --eur-design-subtle: #617784;
  --eur-design-border: #d7e4ea; --eur-design-border-strong: #adcad5;
  --eur-design-brand: #00add9;
  --eur-design-action: var(--eur-design-brand); --eur-design-action-hover: #009cc4; --eur-design-link: var(--eur-design-brand);
  --eur-design-success: #248654;
  --eur-design-hero: #0e2a3a;
}
html[data-eurekers-theme=dark] {
  color-scheme: dark;
  --eur-design-page-bg: #0b1822; --eur-design-surface: #122631; --eur-design-soft-bg: #162f3d;
  --eur-design-text: #eaf6fb; --eur-design-copy: #c0d1da; --eur-design-subtle: #9cb3c0;
  --eur-design-border: #294552; --eur-design-border-strong: #456472;
  --eur-design-success: #74db9e;
  --eur-design-hero: #123647;
}
.eur-preference-controls { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.eur-theme-toggle {
  display: inline-flex !important; align-items: center; justify-content: center;
  flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; padding: 12px !important;
  border: 0 !important; border-radius: 0 !important;
  background: transparent !important; color: var(--eur-design-text) !important;
  cursor: pointer; line-height: 1; box-shadow: none !important;
}
.eur-theme-toggle:hover { color: var(--eur-design-link) !important; }
.eur-theme-toggle:focus-visible { outline: 3px solid var(--eur-design-link) !important; outline-offset: 3px; }
.eur-theme-toggle svg { pointer-events: none; width: 20px; height: 20px; }
.site-header-primary-section-right > .eur-preference-controls { margin-left: 12px; }
.ld-focus-header > .eur-preference-controls { align-self: center; margin: 0 24px 0 12px; order: 8; }
.eur-theme-menu { display: none; }
.eur-theme-menu > span { display: block; margin-bottom: 10px; color: var(--eur-design-text); font-size: 14px; font-weight: 700; }
.eur-theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.eur-theme-options > button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px;
  margin: 0; padding: 8px 5px !important; border: 1px solid var(--eur-design-border-strong) !important;
  border-radius: 8px !important; background: var(--eur-design-surface) !important;
  color: var(--eur-design-text) !important; box-shadow: none !important;
  font: inherit; font-size: 13px; font-weight: 650; line-height: 1.2; cursor: pointer;
}
.eur-theme-options > button:hover { border-color: var(--eur-design-link) !important; }
.eur-theme-options > button[aria-pressed=true] {
  border-color: var(--eur-design-link) !important; background: var(--eur-design-soft-bg) !important;
  color: var(--eur-design-text) !important;
}
.eur-theme-options > button:focus-visible { outline: 3px solid var(--eur-design-link) !important; outline-offset: 2px; }
@media (max-width:960px) {
  .eur-public-actions > .eur-preference-controls,
  .site-header-primary-section-right > .eur-preference-controls { display: none; }
  .eur-public-menu > .eur-theme-menu { display: block; padding: 20px 0 0; }
}
/* Disable decorative transitions too; never hide content or affect video playback. */
html[data-eurekers-motion=off] { scroll-behavior: auto !important; }
html[data-eurekers-motion=off] body.eurekers-themed *,
html[data-eurekers-motion=off] body.eurekers-themed *::before,
html[data-eurekers-motion=off] body.eurekers-themed *::after { transition: none !important; scroll-behavior: auto !important; }
html[data-eurekers-theme=dark] body.eurekers-themed {
  --eur-navy: var(--eur-design-text); --eur-body: var(--eur-design-copy); --eur-muted: var(--eur-design-subtle);
  --eur-line: var(--eur-design-border); --eur-soft: var(--eur-design-soft-bg);
  --eurekers-navy: var(--eur-design-text); --eurekers-copy: var(--eur-design-copy); --eurekers-muted: var(--eur-design-subtle);
  --eurekers-soft: var(--eur-design-soft-bg); --eurekers-line: var(--eur-design-border);
  --eurekers-success: #74db9e; --eurekers-success-soft: #133c2b;
  --eurekers-error: #ffabb9; --eurekers-error-soft: #402330;
  --eurekers-legal-navy: var(--eur-design-text); --eurekers-legal-copy: var(--eur-design-copy);
  --eurekers-legal-muted: var(--eur-design-subtle); --eurekers-legal-line: var(--eur-design-border); --eurekers-legal-accent: var(--eur-design-link);
  background: var(--eur-design-page-bg); color: var(--eur-design-copy);
}
html[data-eurekers-theme=dark] .learndash-wrapper-login-modal {
  --eurekers-auth-navy: var(--eur-design-text); --eurekers-auth-copy: var(--eur-design-copy); --eurekers-auth-muted: var(--eur-design-subtle);
  --eurekers-auth-line: var(--eur-design-border-strong); --eurekers-auth-soft: var(--eur-design-soft-bg);
  --eurekers-auth-success: #74db9e; --eurekers-auth-success-soft: #133c2b;
}
html[data-eurekers-theme=dark] body.eurekers-themed #content,
html[data-eurekers-theme=dark] body.eurekers-themed #page,
html[data-eurekers-theme=dark] .eurekers-learndash-v2 .learndash-wrapper .ld-focus .ld-focus-main { background: var(--eur-design-page-bg) !important; }
html[data-eurekers-theme=dark] .eur-public-logo img,
html[data-eurekers-theme=dark] body.eurekers-themed .custom-logo,
html[data-eurekers-theme=dark] .ld-brand-logo img,
html[data-eurekers-theme=dark] .eurekers-auth-brand img { filter: brightness(0) invert(1); }
/* Native plugin surfaces that do not yet expose a theme variable. */
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .learndash-wrapper,
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .ld-lesson-item,
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .ld-topic-list { background-color: var(--eur-design-page-bg) !important; }
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .ld-focus-sidebar .learndash-wrapper,
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .ld-focus-sidebar .ld-lesson-item { background-color: var(--eur-design-surface) !important; }
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .ld-focus-sidebar .ld-is-current-item { background-color: var(--eur-design-soft-bg) !important; }
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .learndash-wrapper .ld-focus .ld-focus-header .ld-mobile-nav span { background-color: var(--eur-design-text) !important; }
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .learndash-wrapper .ld-course-navigation .ld-table-list.ld-topic-list .ld-table-list-item .ld-table-list-item-preview .ld-topic-title,
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .learndash-wrapper .ld-focus-sidebar .ld-table-list-item-preview { color: var(--eur-design-text) !important; }
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .ld-topic-list.ld-table-list:before { background-color: var(--eur-design-page-bg) !important; }
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label { color: var(--eur-design-text) !important; }
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label:hover { background: var(--eur-design-soft-bg); }
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem.wpProQuiz_answerCorrect label { color: var(--eurekers-success) !important; }
html[data-eurekers-theme=dark] body.eurekers-learndash-v2 .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem.wpProQuiz_answerIncorrect label { color: var(--eurekers-error) !important; }
html[data-eurekers-theme=dark] .learndash-wrapper-login-modal .ld-modal.eurekers-auth-v2 input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=hidden]) {
  background: var(--eur-design-surface) !important; color: var(--eur-design-text) !important; border-color: var(--eur-design-border-strong) !important;
}
html[data-eurekers-theme=dark] .learndash-wrapper-login-modal .eurekers-auth-v2 #registerform #user_reg_phone { background: var(--eur-design-surface) !important; }
html[data-eurekers-theme=dark] .learndash-wrapper-login-modal .ld-modal.eurekers-auth-v2 a { color: var(--eur-design-link) !important; }
/* Existing course states keep their semantics without light-only backgrounds. */
html[data-eurekers-theme=dark] .eurekers-area-v2 :is(.eurekers-area-v2-modules,.eurekers-area-v2-course--locked,.eurekers-area-v2-course--expired) { background: var(--eur-design-surface); }
html[data-eurekers-theme=dark] .eurekers-area-v2 :is(.eurekers-area-v2-course-icon,.eurekers-area-v2-module-number,.eurekers-area-v2-commercial,.eurekers-area-v2-access,.eurekers-area-v2-certificate--locked),
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-course-meta strong { background: var(--eur-design-soft-bg); }
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-module-number { border-color: var(--eur-design-border-strong); color: var(--eur-design-link); }
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-course-meta strong { color: var(--eur-design-text); }
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-course-progress { background: var(--eur-design-border); }
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-certificate--locked > span { background: var(--eur-design-border); border-color: var(--eur-design-border-strong); color: var(--eur-design-subtle); }
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-module--completed .eurekers-area-v2-module-number,
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-program--completed > .eurekers-area-v2-program-heading .eurekers-area-v2-course-meta strong,
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-course--completed .eurekers-area-v2-course-meta strong { background: #133c2b; border-color: #2c6046; color: var(--eur-design-success); }
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-module--completed .eurekers-area-v2-module-meta strong { color: var(--eur-design-success); }
html[data-eurekers-theme=dark] .eurekers-area-v2 :is(.eurekers-area-v2-module--locked,.eurekers-area-v2-module--expired) .eurekers-area-v2-module-number,
html[data-eurekers-theme=dark] .eurekers-area-v2 :is(.eurekers-area-v2-program--locked,.eurekers-area-v2-course--locked) .eurekers-area-v2-course-meta strong { color: var(--eur-design-subtle); }
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-access.is-warning { background: #3b3020; color: #f2c688; }
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-card-link:hover,
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-card-link:focus,
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-certificate a:hover,
html[data-eurekers-theme=dark] .eurekers-area-v2 .eurekers-area-v2-certificate a:focus { background: var(--eur-design-soft-bg); }
@media (max-width:767px) {
  .ld-focus-header > .eur-preference-controls { display: none; }
  .ld-focus-sidebar .eur-theme-menu { display: block; padding: 16px 18px; border-bottom: 1px solid var(--eur-design-border); }
}
