/* Legacy lesson view adapter. Never resize :root or alter the video/image itself. */
.jwl-learning-preferences { --jwl-lesson-bg: #201e1c; --jwl-lesson-panel: #2c2926; --jwl-lesson-text: #f2e9e0; --jwl-lesson-border: #77685b; --jwl-lesson-accent: #d6966f; }
.jwl-learning-theme-light { --jwl-lesson-bg: #fffaf5; --jwl-lesson-panel: #f2e9e0; --jwl-lesson-text: #241e19; --jwl-lesson-border: #88715f; --jwl-lesson-accent: #8c4827; }
@media (prefers-color-scheme: light) { .jwl-learning-theme-system { --jwl-lesson-bg: #fffaf5; --jwl-lesson-panel: #f2e9e0; --jwl-lesson-text: #241e19; --jwl-lesson-border: #88715f; --jwl-lesson-accent: #8c4827; } }
.jwl-learning-contrast-high { --jwl-lesson-bg: #000; --jwl-lesson-panel: #111; --jwl-lesson-text: #fff; --jwl-lesson-border: #fff; --jwl-lesson-accent: #ffdc8f; }
.jwl-learning-preferences:is(.jwl-learning-vision-protanopia,.jwl-learning-vision-deuteranopia,.jwl-learning-vision-deuteranomaly) { --jwl-lesson-accent: #78b8ff; }
.jwl-learning-theme-light:not(.jwl-learning-contrast-high):is(.jwl-learning-vision-protanopia,.jwl-learning-vision-deuteranopia,.jwl-learning-vision-deuteranomaly) { --jwl-lesson-accent: #0759a8; }
.jwl-learning-preferences :is(.tutor-course-single-content-wrapper,.tutor-course-topic-single-body,.tutor-lesson-wrapper) { background: var(--jwl-lesson-bg) !important; color: var(--jwl-lesson-text) !important; }
.jwl-learning-preferences :is(.tutor-course-single-sidebar-wrapper,.tutor-course-topic-single-header,.tutor-course-topic-single-footer,.tutor-accordion-item-header,.tutor-accordion-item-body) { background: var(--jwl-lesson-panel) !important; color: var(--jwl-lesson-text) !important; border-color: var(--jwl-lesson-border) !important; }
.jwl-learning-preferences :is(.tutor-lesson-wrapper,.tutor-lesson-wrapper p,.tutor-course-topic-item-title) { font-size: var(--jwl-lesson-text-size,16px) !important; line-height: 1.6; }
.jwl-learning-preferences :is(.tutor-lesson-wrapper,.tutor-course-single-sidebar-wrapper) :is(p,h1,h2,h3,h4,span,a) { color: var(--jwl-lesson-text); }
.jwl-learning-preferences :is(.tutor-lesson-wrapper,.tutor-course-single-sidebar-wrapper) a { text-decoration: underline; text-underline-offset: 3px; }
.jwl-learning-preferences .tutor-course-topic-item.is-active { border-inline-start: 3px solid var(--jwl-lesson-accent); }
.jwl-learning-preferences :is(a,button,input,select):focus-visible { outline: 3px solid var(--jwl-lesson-accent); outline-offset: 3px; }
.jwl-learning-motion_effects-reduce :is(.tutor-course-single-sidebar-wrapper,.tutor-course-single-content-wrapper) * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { .jwl-learning-motion_effects-auto :is(.tutor-course-single-sidebar-wrapper,.tutor-course-single-content-wrapper) * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (prefers-color-scheme: light) { .jwl-learning-theme-system:not(.jwl-learning-contrast-high):is(.jwl-learning-vision-protanopia,.jwl-learning-vision-deuteranopia,.jwl-learning-vision-deuteranomaly) { --jwl-lesson-accent: #0759a8; } }

/* The theme's marketing hero also wraps lessons; the player is a full-width workspace. */
.single-lesson.jwl-learning-preferences #simple_hero.post_hero { padding: 0; text-align: start; }
.single-lesson.jwl-learning-preferences #simple_hero > .wrapper { width: 100%; max-width: none; margin: 0; }

/* Pair foreground and background for every row, including locked lessons. */
.jwl-learning-preferences .tutor-course-single-sidebar-title,
.jwl-learning-preferences .tutor-course-topic-item { background: var(--jwl-lesson-panel) !important; color: var(--jwl-lesson-text) !important; }
.jwl-learning-preferences .tutor-course-topic-item { border-inline-start: 3px solid transparent; }
.jwl-learning-preferences .tutor-course-topic-item.is-active { background: var(--jwl-lesson-bg) !important; border-inline-start-color: var(--jwl-lesson-accent); }
.jwl-learning-preferences .tutor-course-topic-item > a { background: var(--jwl-lesson-panel) !important; color: var(--jwl-lesson-text); text-decoration: none; }
.jwl-learning-preferences .tutor-course-topic-item.is-active > a,
.jwl-learning-preferences .tutor-course-topic-item > a:hover,
.jwl-learning-preferences .tutor-course-topic-item > a:focus-visible { background: var(--jwl-lesson-bg) !important; }
.jwl-learning-preferences .tutor-course-topic-item.is-active :is(a,span),
.jwl-learning-preferences .tutor-accordion-item-header::after { color: var(--jwl-lesson-accent) !important; }
.jwl-learning-preferences .tutor-course-topic-title { text-align: start; line-height: 1.45; }
.jwl-learning-preferences .tutor-course-topic-summary { color: var(--jwl-lesson-text); font-size: 14px; white-space: nowrap; }
.jwl-learning-preferences .tutor-course-topic-item-title { overflow-wrap: anywhere; }
.jwl-learning-preferences .tutor-course-topic-single-header { text-align: start; }
.jwl-learning-preferences .tutor-course-spotlight-nav { background: var(--jwl-lesson-panel); border-color: var(--jwl-lesson-border); }
.jwl-learning-preferences .tutor-course-spotlight-nav .tutor-nav-link { color: var(--jwl-lesson-text); }
.jwl-learning-preferences .tutor-course-spotlight-nav .tutor-nav-link.is-active { background: var(--jwl-lesson-bg) !important; color: var(--jwl-lesson-accent) !important; border-color: var(--jwl-lesson-accent); }

.single-lesson.jwl-learning-preferences { background: var(--jwl-lesson-bg); }
.jwl-learning-preferences .tutor-course-topic-single-body .tutor-container { max-width: 100%; }
.jwl-learning-preferences .tutor-course-topic-single-body .tutor-lesson-wrapper { padding-inline: 16px; }
.jwl-learning-preferences .tutor-course-topic-single-header .tutor-iconic-btn { color: var(--jwl-lesson-text) !important; }
.jwl-learning-preferences .tutor-course-topic-summary,
.jwl-learning-preferences .tutor-course-topic-item .tutor-icon-lock-line { color: var(--jwl-lesson-text) !important; }
.jwl-learning-preferences .tutor-spotlight-mobile-progress-complete { background: var(--jwl-lesson-panel) !important; color: var(--jwl-lesson-text); }
.jwl-learning-preferences .tutor-spotlight-mobile-progress-left .tutor-color-muted { color: var(--jwl-lesson-text) !important; font-size: 14px; }
