/* One visual system for classroom, authoring, previews and public lesson players. */
body.cp-learning-theme{--cp-lesson-ink:#081d38;--cp-lesson-muted:#30475f;--cp-lesson-card:#fbfdff;--cp-lesson-navy:#042e48;--cp-lesson-active:#a3efff;--cp-lesson-shadow:0 8px 26px #031c3b24;color:var(--cp-lesson-ink)!important;isolation:isolate;background-color:#173b5b!important}
body.cp-learning-theme .lesson-topic-background{background:#15364e}
body.cp-learning-theme .lesson-topic-background svg{opacity:1;filter:contrast(1.1) saturate(1.08)}
body.cp-learning-theme .lesson-topic-background::after{content:"";position:absolute;inset:0;background:rgba(1,25,56,.3);pointer-events:none}
body.cp-learning-theme:not([data-lesson-topic-art])::before{filter:brightness(.76) contrast(1.1) saturate(1.08)}
body.cp-learning-theme :is(.shell>.top,.shell>header,.workflow-header){background:linear-gradient(110deg,#061b3aee,#032d45ed)!important;border:0!important;border-radius:16px!important;min-height:76px;padding:14px 22px!important;box-sizing:border-box;box-shadow:var(--cp-lesson-shadow);margin-bottom:12px;color:#fff}
body.cp-learning-theme :is(.shell>.top,.shell>header,.workflow-header) a{color:#fff!important}
body.cp-learning-theme :is(.shell>.top,.shell>header,.workflow-header) img{width:220px;max-width:56vw!important;height:auto;object-fit:contain}
body.cp-learning-theme .shell{width:min(1240px,calc(100% - 40px));max-width:1240px}
body.cp-learning-theme :is(.lesson-workspace,.class-lesson-layout,.demo-lesson-layout){gap:28px!important}
body.cp-learning-theme :is(.lesson-title-block,main>h1,.cp-lesson-title-surface),html body.cp-learning-theme #page-header #title.cp-lesson-title-surface{background:linear-gradient(110deg,#fbfdff,#eaf4ff)!important;color:var(--cp-lesson-ink)!important;border:1px solid #d8e9f6!important;border-radius:16px!important;padding:26px 30px!important;box-shadow:var(--cp-lesson-shadow);font-weight:850;line-height:1.15;font-size:clamp(32px,4vw,52px);margin:18px 0 20px;min-width:0;overflow-wrap:anywhere}
body.cp-learning-theme :is(.lesson-title-block,main>h1,.cp-lesson-title-surface) h1{color:var(--cp-lesson-ink)!important;font-size:inherit}
body.cp-learning-theme #page-header{display:block;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:18px 0 14px!important;min-height:0}
body.cp-learning-theme main:has(#page-header){padding-top:12px}
body.cp-learning-theme #page-header{margin:0!important}
body.cp-learning-theme #page-header #title{margin:0!important}
body.cp-learning-theme #page-header #title{display:flex;align-items:center;gap:20px}
body.cp-learning-theme #page-header :is(#intro,#label):empty{display:none}
body.cp-learning-theme .direction-hero{min-height:0!important;height:auto!important;background:none!important;padding:0!important;margin:12px 0 20px!important}
body.cp-learning-theme .direction-hero::before,body.cp-learning-theme .direction-hero::after{display:none!important}
body.cp-learning-theme .lesson-cover-icon,body.cp-learning-theme .lesson-round-icon{width:66px;height:66px;flex:0 0 66px;border:1px solid #34546c;border-radius:14px;background:#fff;object-fit:contain;padding:6px;margin:0 6px 0 0}
body.cp-learning-theme :is(h1,h2,h3)::after,body.cp-learning-theme :is(h1,h2,h3)::before{display:none!important;content:none!important}
body.cp-learning-theme :is(h1,h2,h3){border-bottom:0!important;text-decoration:none!important}
body.cp-learning-theme .cp-empty-heading{display:none!important}
html body.cp-learning-theme .demo-section-panels .fire-exercise,html body.cp-learning-theme .lesson-canvas .exercise-card,html body.cp-learning-theme .lesson-section-panels .class-exercise,body.cp-learning-theme .class-exercise{background:var(--cp-lesson-card)!important;color:var(--cp-lesson-ink)!important;border:1px solid #e0ebf4!important;border-radius:16px!important;box-shadow:var(--cp-lesson-shadow);padding:24px!important;margin:0 0 16px!important;min-width:0;overflow-wrap:anywhere}
body.cp-learning-theme :is(.exercise-content,[data-translation-text]){font:400 20px/1.55 system-ui,sans-serif;color:var(--cp-lesson-ink)}
body.cp-learning-theme :is(.exercise-content,[data-translation-text]) :where(p,li,blockquote,td,th){color:inherit;line-height:1.55}
body.cp-learning-theme :is(.exercise-content,[data-translation-text]) p{margin:.65em 0}
body.cp-learning-theme .fire-demo-workspace .exercise-content p:not([style*="color"]){color:var(--cp-lesson-ink)!important}
body.cp-learning-theme :is(.exercise-content,[data-translation-text])>:first-child{margin-top:0}
body.cp-learning-theme :is(.exercise-content,[data-translation-text])>:last-child{margin-bottom:0}
html body.cp-learning-theme :is(.class-exercise,.exercise-card,.fire-exercise)>h2,html body.cp-learning-theme .exercise-heading h2{font-size:clamp(26px,2.5vw,34px)!important;font-weight:850!important;line-height:1.18!important;color:var(--cp-lesson-ink)!important;margin:0 0 16px}
body.cp-learning-theme :is(.exercise-content,[data-translation-text]) :is(h2,h3){color:var(--cp-lesson-ink);line-height:1.25!important;margin:1em 0 .5em}
body.cp-learning-theme :is(.exercise-content,[data-translation-text]) h3{font-size:26px!important}
body.cp-learning-theme :is(.lesson-image,.fire-exercise>img,.exercise-content>img){max-width:100%;height:auto!important;object-fit:contain;border-radius:12px}
body.cp-learning-theme :is(.class-exercise,.exercise-card,.fire-exercise):has(>.lesson-image):not(:has(>h2)),body.cp-learning-theme .fire-exercise[data-exercise-kind="image"]:not(:has(>h2)){padding:10px!important}
html body.cp-learning-theme :is(.class-section-sidebar,.demo-section-sidebar) .section-name,html body.cp-learning-theme .lesson-sections .section-name{background:var(--cp-lesson-navy)!important;color:#fff!important;border:1px solid #779eb366!important;border-radius:12px!important;min-height:56px;padding:12px 16px!important;font:750 19px/1.25 system-ui;display:flex;align-items:center;gap:14px;box-shadow:0 3px 12px #00172e1f;transition:background .15s}
html body.cp-learning-theme :is(.class-section-sidebar,.demo-section-sidebar) .section-name[aria-selected="true"],html body.cp-learning-theme .lesson-sections .section-control[data-active="true"] .section-name{background:var(--cp-lesson-active)!important;color:#04223c!important;border-color:#b4f5ff!important}
html body.cp-learning-theme :is(.class-section-sidebar,.demo-section-sidebar,.lesson-sections) .section-name:hover{background:#0d4a67!important;color:#fff!important}
html body.cp-learning-theme :is(.class-section-sidebar,.demo-section-sidebar) .section-name[aria-selected="true"]:hover,html body.cp-learning-theme .lesson-sections .section-control[data-active="true"] .section-name:hover{background:var(--cp-lesson-active)!important;color:#04223c!important}
body.cp-learning-theme :is(.section-name,.cp-mobile-sections button):focus-visible{outline:3px solid #62dcff!important;outline-offset:3px}
body.cp-learning-theme :is(.class-section-sidebar-title,.demo-section-sidebar-title,.section-controls-header>span){color:#fff!important;font-size:22px;font-weight:750;text-shadow:0 1px 4px #001b3f66}
body.cp-learning-theme #content .demo-section-sidebar-title{color:#fff!important}
body.cp-learning-theme .cp-section-icon{width:27px;height:27px;flex:0 0 27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.cp-learning-theme :is(#back,#footer-home,.lesson-metadata-link){background:#effaff!important;color:#082c49!important;border:1px solid #c2ddeb;border-radius:10px;padding:10px 16px}
body.cp-learning-theme .lesson-description{background:#fbfdfff5;color:var(--cp-lesson-ink);border-radius:14px;padding:20px 24px;margin-bottom:18px}
body.cp-learning-theme .aviation-dictionary-popup{z-index:10050;background:#fff;color:#102942;border:1px solid #76a2ba;box-shadow:0 8px 30px #011a3540}
body.cp-learning-theme .plane-divider{margin:6px 0!important;opacity:.3}
body.cp-learning-theme .insert-exercise-button{margin:6px auto!important}
body.cp-learning-theme .exercise-heading{gap:10px;margin-bottom:12px;flex-wrap:wrap}
@media(min-width:701px){body.cp-learning-theme :is(.lesson-workspace,.class-lesson-layout,.demo-lesson-layout){grid-template-columns:minmax(0,1fr) clamp(190px,24vw,275px)!important}}
@media(max-width:700px){body.cp-learning-theme .shell{width:calc(100% - 24px)}body.cp-learning-theme :is(.shell>.top,.shell>header,.workflow-header){padding:12px 16px!important;min-height:64px}body.cp-learning-theme :is(.lesson-title-block,main>h1,.cp-lesson-title-surface),html body.cp-learning-theme #page-header #title.cp-lesson-title-surface{font-size:32px;padding:20px!important;gap:12px}body.cp-learning-theme :is(.exercise-content,[data-translation-text]){font-size:18px;line-height:1.6}html body.cp-learning-theme .demo-section-panels .fire-exercise,html body.cp-learning-theme .lesson-canvas .exercise-card,html body.cp-learning-theme .lesson-section-panels .class-exercise{padding:18px!important}body.cp-learning-theme .cp-mobile-section-row{background:#042e48;border-color:#5b8ea8}body.cp-learning-theme .cp-mobile-section-strip button[aria-current="true"]{background:var(--cp-lesson-active);color:#04223c}body.cp-learning-theme .lesson-cover-icon,body.cp-learning-theme .lesson-round-icon{width:48px;height:48px;flex-basis:48px}body.cp-learning-theme .cp-mobile-section-menu{background:#effaff}}
@media(prefers-reduced-motion:reduce){body.cp-learning-theme .section-name{transition:none}}

/* Background changes are atomic; section switches never animate a legacy layer. */
body.cp-learning-theme,body.cp-learning-theme::before,body.cp-learning-theme .lesson-topic-background,body.cp-learning-theme .lesson-topic-background::after,body.cp-learning-theme .lesson-topic-background svg{transition:none!important;animation:none!important}

/* Readable lesson controls over the illustrated background. */
body.cp-learning-theme :is(.prototype-note,#workflow-status,.live-class-toolbar,[data-class-status],.shell>footer){color:#fff!important;background:#073456ed;border:1px solid #83b9d8;border-radius:12px;padding:12px 16px;text-shadow:none;box-shadow:0 2px 12px #01152e30}
body.cp-learning-theme :is(#workflow-status,[data-class-status]):empty{display:none}
body.cp-learning-theme :is(.prototype-note,.live-class-toolbar) a{color:#fff!important;text-decoration-color:currentColor}
body.cp-learning-theme #workflow-view>.secondary{color:#fff!important;background:#073456!important;border:1px solid #c9e7f8!important}
body.cp-learning-theme #workflow-view>.save-whole-lesson{color:#fff!important;background:#c90030!important;border:1px solid #ff7193!important}
body.cp-learning-theme #workflow-view>a[href*="test-import"]{display:inline-block;color:#082c49!important;background:#fbfdff!important;border:1px solid #c2ddeb;border-radius:10px;padding:12px 16px}
/* Keep illustrations crisp; never dim the exercise itself. */
body.cp-learning-theme :is(.lesson-image,.fire-exercise>img,.exercise-content img,[data-translation-text] img,.class-exercise>img){opacity:1!important;filter:none!important}
body.cp-learning-theme .imported-test .mcq-result.is-correct{color:#126d2d!important;background:#e4f7e8!important}
body.cp-learning-theme .imported-test .mcq-result.is-wrong{color:#a51f1f!important;background:#ffebeb!important}
body.cp-learning-theme .imported-test .mcq-result:is(.is-correct,.is-wrong) :is(p,strong){color:inherit!important}
