/* Wspólny ciemny motyw i kontrast: strona kursu, moduły, lekcje i oznaczenie projektu. */
body.dark{
  --bg:#07111d;--surface:#0f2030;--surface-2:#122739;--ink:#f3f8fb;
  --muted:#bdcbd6;--line:#31485a;--brand:#5eead4;--focus:#fbbf24;
  background:#07111d!important;color:#f3f8fb!important;color-scheme:dark
}
body.dark :is(.section,.modules,.effects-section,.tools,.access){background:#07111d!important}
body.dark :is(.section.alt,.content-card,.principle,.topic-card,.lesson-sidebar,.lesson-orientation,.lesson-section,.lesson-checklist,.lesson-completion,.reflection){background:#0f2030!important;color:#f3f8fb!important;border-color:#31485a!important}
body.dark :is(p,li,dd,.muted,.section-head p,.principle p,.topic-card p,.lesson-section p){color:#bdcbd6!important}
body.dark .lesson-sidebar a.active,body.dark .lesson-sidebar a:hover{background:#164e4a!important;color:#ccfbf1!important}

body.contrast{
  --bg:#1a1a2e;--surface:#16213e;--surface-2:#0f3460;--ink:#f0f0f0;
  --muted:#ffda85;--line:#ffb347;--brand:#ffa500;--focus:#ffa500;
  background:#1a1a2e!important;color:#f0f0f0!important;color-scheme:dark
}
body.contrast *{box-shadow:none!important;text-shadow:none!important}
body.contrast :is(.access-toolbar,.site-header,.lesson-status-bar,.footer,.header,.topbar){background:#0f3460!important;color:#fff!important;border-color:#ffb347!important}
body.contrast :is(.section,.modules,.effects-section,.tools,.access,.support-section){background:#1a1a2e!important;color:#f0f0f0!important}
body.contrast :is(.section.alt,.content-card,.principle,.topic-card,.lesson-sidebar,.lesson-orientation,.lesson-section,.lesson-checklist,.lesson-completion,.reflection,.module-card,.feature-box,.tool,.access-card,.mini-point,.fact,.hero-login-card){background:#16213e!important;color:#fff!important;border-color:#ffb347!important}
body.contrast :is(h1,h2,h3,h4,h5,h6,strong,dt){color:#fff!important}
body.contrast :is(p,li,dd,small,.muted,.section-head p,.principle p,.topic-card p,.lesson-section p,.knowledge-prompt span,.reflection-note){color:#ffda85!important}
body.contrast :is(a,button){text-decoration:none!important}
body.contrast :is(.header-nav a,.nav a,.footer a){color:#fff!important}
body.contrast :is(.header-nav a,.nav a,.footer a):hover{color:#ffa500!important}
body.contrast :is(.breadcrumb a,.kicker){color:#ffa500!important}
body.contrast :is(.btn,.topic-link,.pause-button,.access-toolbar button){background:#1e2a78!important;color:#fff!important;border:2px solid #ffb347!important}
body.contrast :is(.btn,.topic-link,.pause-button,.access-toolbar button):hover,
body.contrast :is(.btn,.topic-link,.pause-button,.access-toolbar button):focus-visible,
body.contrast .access-toolbar button[aria-pressed=true]{background:#ffa500!important;color:#16213e!important;border-color:#fff!important}
body.contrast .lesson-sidebar a{color:#fff!important;border:1px solid transparent!important}
body.contrast .lesson-sidebar a.active,body.contrast .lesson-sidebar a:hover{background:#ffa500!important;color:#16213e!important;border-color:#fff!important;font-weight:900!important}
body.contrast :is(.role-badge,.public-badge,.principle-number,.topic-number,.map-step,.lesson-section-number,.completion-badge){background:#ffa500!important;color:#16213e!important;border-color:#fff!important}
body.contrast :is(.lesson-metrics div,.knowledge-prompt,.lesson-checklist li,.outcomes li,.access-label){background:#0f3460!important;color:#fff!important;border-color:#ffb347!important}
body.contrast .module-hero{background:#030b14!important;color:#fff!important}
body.contrast .module-hero p,body.contrast .lesson-cover p{color:#ffda85!important}
body.contrast :is(img,svg){filter:none!important}
body.contrast :focus-visible{outline:3px solid #ffa500!important;outline-offset:3px}

@media print{body.dark,body.contrast{background:#fff!important;color:#000!important;color-scheme:light}}
