/* Editorial lesson canvas. Scoped so the library and global navigation retain their own layout. */
body.in-lesson{--ink:#24262b;--muted:#6b7078;--teal:#315fcb;--pale:#f1f4fa;--line:#e0e2e5;--white:#fff;--paper:#f7f7f5;background:#f7f7f5;color:#24262b}
body.in-lesson .breadcrumb{font-size:12px;padding:18px 0;color:#6b7078}
body.in-lesson .lesson-shell{border:1px solid #e0e2e5;border-radius:12px;background:#fff;box-shadow:0 8px 30px #24262b04;isolation:isolate}
body.in-lesson .lesson-topbar{background:#fff;border-bottom:1px solid #eceef0;color:#24262b;padding:15px 26px;gap:20px}
body.in-lesson .lesson-identity{font-size:12px;line-height:1.4;color:#6b7078}
body.in-lesson .lesson-identity>.eyebrow{font-size:10px;letter-spacing:1.1px;color:#315fcb;font-weight:750}
body.in-lesson .lesson-actions button{color:#4f5560;border:1px solid #e0e2e5;padding:7px 11px;border-radius:6px;font-size:11px;line-height:1.3}
body.in-lesson .lesson-actions button:hover{background:#f4f6f9;color:#24262b}
body.in-lesson .slide-progress{background:#eef0f3}
body.in-lesson .slide-progress span{background:#315fcb}
body.in-lesson .slide{background:#fff;padding:36px 46px 40px;scrollbar-color:#b9bec8 #f3f4f6}
body.in-lesson .slide:focus-visible{outline:2px solid #315fcb;outline-offset:-2px}
body.in-lesson .slide-heading{max-width:1100px;margin-bottom:27px}
body.in-lesson .slide-heading>.eyebrow{font:700 10px/1.5 "Segoe UI",Arial,sans-serif;letter-spacing:1.45px;color:#315fcb;margin:0 0 14px}
body.in-lesson .slide h1{color:#24262b;font-family:"Segoe UI",Arial,sans-serif;font-weight:700;font-size:clamp(32px,3vw,44px);letter-spacing:-1.45px;line-height:1.12;margin:0;max-width:1080px;text-wrap:balance}
body.in-lesson .slide-content{font-family:"Segoe UI",Arial,sans-serif;font-size:18px;line-height:1.58;color:#43474f}
body.in-lesson .slide-content p{margin:0 0 15px}
body.in-lesson .slide-content strong{color:#24262b;font-weight:650}
body.in-lesson .slide-content h3{font-size:22px;line-height:1.22;letter-spacing:-.45px;color:#24262b;margin:19px 0 11px;font-weight:650}
body.in-lesson .slide-content h4{font-size:18px;color:#24262b}
body.in-lesson .slide-content a{color:#315fcb;text-decoration-color:#b5c4e6;text-decoration-thickness:1px;text-underline-offset:4px}
body.in-lesson .slide-content a:hover{text-decoration-color:currentColor}
body.in-lesson .slide-content ul,body.in-lesson .slide-content ol{margin:12px 0 20px;padding-left:1.35em}
body.in-lesson .slide-content li{padding-left:.25em;margin:8px 0}
body.in-lesson .slide-content li::marker{color:#315fcb;font-weight:650}
body.in-lesson .slide-content>ol{list-style:none;counter-reset:lesson-step;padding-left:0}
body.in-lesson .slide-content>ol>li{counter-increment:lesson-step;position:relative;padding-left:39px;min-height:28px;margin:13px 0}
body.in-lesson .slide-content>ol>li:before{content:counter(lesson-step,decimal-leading-zero);position:absolute;left:0;top:4px;color:#315fcb;font:600 12px/1.5 ui-monospace,Consolas,monospace}
body.in-lesson .slide-content .cards{gap:22px;margin:22px 0;align-items:start}
body.in-lesson .slide-content .card,body.in-lesson .slide-content .card:nth-child(3n+2),body.in-lesson .slide-content .card:nth-child(3n+3){border:0;border-top:2px solid #dce3f0;border-radius:0;background:transparent;padding:19px 4px 4px;box-shadow:none;color:#43474f}
body.in-lesson .slide-content .card>h3:first-child{margin-top:0}
body.in-lesson .slide-content .card>strong{font-size:1.06em;line-height:1.25;margin:0 0 10px}
body.in-lesson .slide-content .card .card{border-top:1px solid #e0e2e5;padding:13px 0;background:transparent}
body.in-lesson .slide-content .callout{border:0;border-left:3px solid #315fcb;border-radius:0;padding:17px 22px;margin:21px 0;background:#f3f5f9;color:#43474f}
body.in-lesson .slide-content .callout>h3:first-child{margin:0 0 9px;font-size:20px}
body.in-lesson .slide-content .callout p:last-child{margin-bottom:0}
body.in-lesson .slide-content blockquote{background:transparent;border-left:3px solid #315fcb;border-radius:0;font-family:Georgia,serif;font-size:1.08em;line-height:1.65;color:#363b45;padding:7px 24px;margin:22px 0}
body.in-lesson .slide-content .split{gap:32px;margin:20px 0}
body.in-lesson .slide-content .split>div{min-width:0}
body.in-lesson .slide-content code{color:#354667;background:#f0f2f6;border-radius:3px;font-size:.85em;padding:.12em .3em;overflow-wrap:anywhere;word-break:normal}
body.in-lesson .slide-content pre{background:#272b33;color:#eef0f5;border:1px solid #363c47;padding:22px 24px;border-radius:8px;box-shadow:none;font-size:13px;line-height:1.68;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;max-width:100%;min-width:0;margin:18px 0}
body.in-lesson .slide-content pre code{color:inherit;background:transparent;padding:0;border:0;font-size:inherit}
body.in-lesson .slide-content figure{background:transparent;border:0;border-radius:0;padding:0;margin:22px 0;min-width:0}
body.in-lesson .slide-content figure img{border-radius:5px;max-width:100%;object-fit:contain}
body.in-lesson .slide-content figcaption{font-size:11px;line-height:1.55;color:#6b7078;text-align:left;margin-top:11px}
body.in-lesson .slide-content .figure-open{display:inline-block;margin:6px 0 0;color:#315fcb;font-size:11px;font-weight:600;text-decoration:underline;text-decoration-color:#b5c4e6}
body.in-lesson .slide-content figure:has(img[src^="/assets/current/"][src$=".svg"]){padding:4px}
body.in-lesson .slide-content .table-scroll{border-color:#e0e2e5;border-radius:7px}
body.in-lesson .slide-content th{background:#f1f3f6;color:#24262b;font-size:.95em}
body.in-lesson .slide-content td{background:#fff}
body.in-lesson .slide-content tr:nth-child(even) td{background:#f8f9fb}
body.in-lesson .slide-controls{background:#fff;border-top:1px solid #e6e8ec;padding:13px 26px;min-height:70px}
body.in-lesson .slide-controls button{border:1px solid #d8dce3;background:#fff;border-radius:7px;color:#4f5560;font-weight:600;min-height:42px;padding:9px 19px;font-size:12px}
body.in-lesson .slide-controls #next{background:#315fcb;border-color:#315fcb;color:#fff;box-shadow:none}
body.in-lesson .slide-controls #next:hover:not(:disabled){background:#254fad}
body.in-lesson .slide-controls button:disabled{opacity:.35}
body.in-lesson .slide-counter{color:#858b95;font-family:ui-monospace,Consolas,monospace;font-size:11px}
body.in-lesson .slide-counter b{font-size:18px;font-weight:650;color:#24262b}
body.in-lesson .scroll-cue{color:#315fcb;font-size:9px;font-weight:600}
/* A restrained opening page gives each lecture a clear beginning. */
body.in-lesson .lesson-shell:has(#previous:disabled) .slide .slide-heading{margin-top:18px;margin-bottom:31px}
body.in-lesson .lesson-shell:has(#previous:disabled) .slide h1{font-size:clamp(38px,4.2vw,60px);max-width:1000px;letter-spacing:-2px;line-height:1.08}
body.in-lesson .lesson-shell:has(#previous:disabled) .slide .slide-content>p{max-width:820px;color:#626873}
body.in-lesson .lesson-below{margin-top:22px}
body.in-lesson .outline{border:1px solid #e0e2e5;background:#fff;border-radius:8px;max-width:800px}
body.in-lesson .outline summary{padding:17px 20px;font-size:14px}
body.in-lesson .outline nav a[aria-current]{background:#f1f4fa;color:#315fcb}
body.in-lesson .practice-section{padding:45px 0;border-top:1px solid #d8dce3}
body.in-lesson .practice-section h2{font-size:32px;letter-spacing:-1px;color:#24262b}
body.in-lesson .practice-section .eyebrow{color:#315fcb}
body.in-lesson .task-grid{gap:22px}
body.in-lesson .task-card{border:1px solid #e0e2e5;border-radius:10px;box-shadow:none;padding:28px;background:#fff}
body.in-lesson .task-number{background:transparent;color:#315fcb;border-radius:0;padding:0;font:650 11px/1.5 ui-monospace,Consolas,monospace;letter-spacing:1px;margin-bottom:17px}
body.in-lesson .task-card h3{font-size:25px;line-height:1.18;color:#24262b}
body.in-lesson .task-step{background:transparent;border:0;border-bottom:1px solid #eceef1;border-radius:0;padding:13px 0;font-size:14px;line-height:1.65;color:#43474f}
body.in-lesson .task-step:hover{background:#f8f9fb}
body.in-lesson .task-step input{accent-color:#315fcb;min-width:18px;min-height:18px}
body.in-lesson .task-step:has(input:checked){background:#f1f4fa;border-color:#e0e2e5}
body.in-lesson .task-step input:checked+span{color:#52627e}
body.in-lesson .deliverable{background:#f3f5f9;border-radius:5px;border:0;padding:17px 19px;color:#43474f}
body.in-lesson .deliverable strong{color:#315fcb;font-size:10px}
body.in-lesson .resources a{border-color:#e0e2e5;border-radius:7px;background:#fff;color:#43474f}
body.in-lesson .resources a:hover{border-color:#315fcb;background:#f8f9fc}
@media(min-width:1400px){body.in-lesson .slide{padding:42px 58px 46px}body.in-lesson .slide-content{font-size:20px}body.in-lesson .slide-content pre{font-size:14px}}
@media(max-width:899px){body.in-lesson .slide{padding:30px 26px}body.in-lesson .slide h1{font-size:35px}body.in-lesson .slide-content{font-size:17px}body.in-lesson .lesson-topbar{padding:13px 20px}}
@media(max-width:680px){body.in-lesson .lesson-shell{border-radius:9px}body.in-lesson .lesson-topbar{padding:12px 15px;gap:10px}body.in-lesson .lesson-identity{font-size:10px;gap:5px}body.in-lesson .lesson-identity>.eyebrow{font-size:9px;justify-self:start}body.in-lesson .lesson-actions{gap:5px}body.in-lesson .lesson-actions button{font-size:9px;padding:6px 7px}body.in-lesson .slide{padding:26px 20px 32px}body.in-lesson .slide-heading{margin-bottom:24px}body.in-lesson .slide-heading>.eyebrow{font-size:9px;letter-spacing:1px;margin-bottom:14px}body.in-lesson .slide h1{font-size:30px;letter-spacing:-1px;line-height:1.14;text-wrap:wrap}body.in-lesson .slide-content{font-size:16px;line-height:1.65}body.in-lesson .slide-content h3{font-size:21px}body.in-lesson .slide-content>ol>li{padding-left:32px;margin:14px 0}body.in-lesson .slide-content>ol>li:before{font-size:11px}body.in-lesson .slide-content .cards{grid-template-columns:1fr;gap:22px}body.in-lesson .slide-content .card{padding:17px 0 0}body.in-lesson .slide-content .split{grid-template-columns:1fr;gap:19px;margin:18px 0}body.in-lesson .slide-content .callout{padding:17px 18px;margin:19px 0}body.in-lesson .slide-content pre{font-size:12px;padding:18px 16px;line-height:1.65}body.in-lesson .slide-content figcaption{font-size:10px}body.in-lesson .slide-controls{padding:11px 15px;min-height:66px;gap:8px}body.in-lesson .slide-controls button{min-width:72px;padding:9px 12px;font-size:11px;gap:8px}body.in-lesson .slide-counter b{font-size:17px}body.in-lesson .slide-position{min-width:84px}body.in-lesson .lesson-shell:has(#previous:disabled) .slide .slide-heading{margin-top:6px}body.in-lesson .lesson-shell:has(#previous:disabled) .slide h1{font-size:37px;letter-spacing:-1.4px}body.in-lesson .task-grid{grid-template-columns:1fr;gap:18px}body.in-lesson .task-card{padding:23px}body.in-lesson .practice-section{padding:32px 0}body.in-lesson .practice-section h2{font-size:29px}body.in-lesson .task-card h3{font-size:23px}}
@media(max-width:360px){body.in-lesson .slide{padding-left:16px;padding-right:16px}body.in-lesson .slide h1{font-size:28px}body.in-lesson .lesson-shell:has(#previous:disabled) .slide h1{font-size:33px}body.in-lesson .slide-controls{padding-left:11px;padding-right:11px}body.in-lesson .slide-controls button{min-width:65px}}
@media print{body.in-lesson .slide{background:#fff;color:#000}body.in-lesson .lesson-shell{box-shadow:none}body.in-lesson .slide-content pre{background:#eee;color:#000}}
/* Dense teaching figures remain readable; inline and split figures keep their existing scale. */
@media(min-width:681px){body.in-lesson .layout-figure .slide-content>figure:only-child>img,body.in-lesson .layout-figure .slide-content>figure:only-child>a>img{max-height:420px}}
/* Logo collections remain a compact toolkit on phones. */
@media(max-width:680px){body.in-lesson .slide-content .cards:has(>figure img[src^="/assets/current/"]){grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px}body.in-lesson .slide-content .cards:has(>figure img[src^="/assets/current/"])>figure{margin:5px 0;padding:4px;min-width:0}body.in-lesson .slide-content .cards:has(>figure img[src^="/assets/current/"])>figure img{height:40px;max-width:64px}body.in-lesson .slide-content .cards:has(>figure img[src^="/assets/current/"])>figure figcaption{margin-top:7px;overflow-wrap:anywhere}}
@media(max-width:360px){body.in-lesson .slide-content .cards:has(>figure img[src^="/assets/current/"]){grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Energy compares time horizons across the full slide before its documentary photo. */
body.in-lesson .layout-energy .slide-content .media-layout{display:block}
body.in-lesson .layout-energy .slide-content .media-figures{max-width:520px;margin:24px auto 0}
/* Long Hungarian comparison headings need a full measure on narrow phones. */
@media(max-width:420px){body.in-lesson .slide-content .cards.two,body.in-lesson .slide-content .cards:has(>.card:nth-child(2):last-child),body.in-lesson .slide-content .cards:has(>.card:nth-child(4):last-child){grid-template-columns:1fr}}
/* Long supplementary-lesson labels wrap within the mobile header instead of covering its actions. */
@media(max-width:680px){body.in-lesson .lesson-identity{min-width:0;flex:1 1 0}body.in-lesson .lesson-identity>.eyebrow{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}body.in-lesson .lesson-identity>span{min-width:0;overflow-wrap:anywhere}body.in-lesson .lesson-actions{flex:0 0 auto}}
/* Reader controls retain their own rows and fit even a 320px viewport. */
@media(max-width:680px){
 body.in-lesson:not(.presentation-mode) .lesson-topbar{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0}
 body.in-lesson:not(.presentation-mode) .lesson-identity{flex:none;width:100%;font-size:12px;line-height:1.45}
 body.in-lesson:not(.presentation-mode) .lesson-identity>span{overflow-wrap:break-word}
 body.in-lesson:not(.presentation-mode) .lesson-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:0;width:100%}
 body.in-lesson:not(.presentation-mode) .lesson-actions button{flex:0 1 auto;max-width:100%;white-space:normal;font-size:10px;padding:8px 9px;line-height:1.35}
 body.in-lesson:not(.presentation-mode) .slide-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(60px,1fr) minmax(0,1fr);gap:6px;padding:10px;min-width:0}
 body.in-lesson:not(.presentation-mode) .slide-controls button{min-width:0;max-width:100%;width:100%;padding:9px 4px;gap:4px;font-size:10px;justify-content:center;white-space:normal}
 body.in-lesson:not(.presentation-mode) .slide-position{min-width:0;max-width:100%;text-align:center}
 body.in-lesson:not(.presentation-mode) .scroll-cue{white-space:normal;font-size:9px;line-height:1.3;overflow-wrap:break-word}
}
