/* One reusable lesson view. The supplied example is a guest state: media and
   guide access are deliberately not simulated by client-side controls. */
.lesson-page { background:#fff; color:#272130; --lp-ink:#272130; --lp-muted:#827788; --lp-line:#e7e1ec; --lp-violet:#8126df; }
.lesson-page main { font-weight:300; }
.lesson-page main :is(h1,h2,h3,p,figure,ol) { margin:0; }
.lesson-page main :is(h1,h2,h3) { font-weight:300; letter-spacing:-.035em; }
.lesson-page main :is(a,button,summary):focus-visible { outline:2px solid #9146e4; outline-offset:5px; }
.lesson-page main [id] { scroll-margin-top:115px; }
.lp-skip { position:fixed; z-index:200; top:10px; left:20px; padding:12px 20px; background:#fff; color:#221a2a; transform:translateY(-160%); }
.lp-skip:focus { transform:none; }
.lp-main { padding-top:46px; padding-bottom:92px; }
.lp-breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:11px; line-height:1.5; color:#8a7d95; margin-bottom:40px; }
.lp-breadcrumbs a { color:inherit; }
.lp-breadcrumbs a:hover { color:var(--lp-violet); text-decoration:underline; text-underline-offset:4px; }
.lp-heading { margin-bottom:38px; }
.lp-course-name { display:inline-flex; align-items:center; gap:11px; color:#825396; padding-bottom:17px; }
.lp-course-name img { width:70px; height:25px; object-fit:contain; }
.lp-course-name>span { border-left:1px solid #ddcee5; padding-left:12px; font-size:11px; letter-spacing:.1em; font-weight:400; }
.lp-kicker { font-size:10px; line-height:1.6; letter-spacing:.13em; font-weight:400; color:#96819f; }
.lp-heading h1 { max-width:880px; margin-top:13px; font-size:clamp(36px,3.9vw,54px); line-height:1.1; letter-spacing:-.045em; color:#251e2e; }
.lp-heading-meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px 24px; margin-top:26px; color:#8a7a97; font-size:11px; line-height:1.5; }
.lp-heading-meta>span+span { border-left:1px solid #ded5e5; padding-left:24px; }
.lp-heading-meta a { display:flex; align-items:center; gap:9px; margin-left:auto; color:#9980ac; }
.lp-heading-meta svg { width:24px; height:17px; transition:transform .25s; }
.lp-heading-meta a:hover { color:var(--lp-violet); }
.lp-heading-meta a:hover svg { transform:translateX(4px); }
.lp-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:42px; align-items:stretch; }
.lp-content { min-width:0; }
.lp-section-label { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:17px; }
.lp-section-label h2 { font-size:23px; line-height:1.25; letter-spacing:-.03em; }
.lp-section-label>span { display:flex; align-items:center; gap:7px; color:#9b8aa7; font-size:10px; line-height:1.5; }
.lp-section-label svg { width:13px; height:13px; }
.lp-video-poster { background:#211a2a; border-radius:4px; overflow:hidden; }
.lp-video-poster>img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; }
.lp-video-poster figcaption { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:23px 24px; border-top:1px solid #ffffff13; }
.lp-video-caption { display:flex; align-items:center; gap:15px; }
.lp-lock-circle { display:grid; place-items:center; width:38px; height:38px; flex:0 0 38px; color:#be8bf2; border:1px solid #ad76dd40; border-radius:50%; }
.lp-lock-circle svg { width:20px; height:20px; }
.lp-video-caption strong { font-size:13px; line-height:1.45; font-weight:300; color:#f0e9f6; }
.lp-video-caption p { font-size:11px; line-height:1.5; color:#a398ae; margin-top:4px!important; }
.lp-access-link { display:flex; align-items:center; gap:14px; flex-shrink:0; font-size:12px; color:#e1c7f7; padding:8px 0; }
.lp-access-link svg { width:26px; height:18px; transition:transform .25s; }
.lp-access-link:hover { color:#fff; }
.lp-access-link:hover svg { transform:translateX(4px); }
.lp-description { padding:40px 0; border-bottom:1px solid var(--lp-line); }
.lp-description h2 { font-size:31px; line-height:1.2; margin:12px 0 20px!important; }
.lp-description>p:not(.lp-kicker) { font-size:16px; line-height:1.85; color:#6b6074; }
.lp-materials { padding:37px 0 40px; }
.lp-guide { display:grid; grid-template-columns:210px minmax(0,1fr); gap:26px; padding:23px; background:#f8f6fa; border:1px solid #ebe5f0; border-radius:4px; align-items:center; }
.lp-guide-cover { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; border-radius:2px; }
.lp-guide-body { min-width:0; }
.lp-file-type { display:flex; align-items:center; gap:7px; font-size:9px; letter-spacing:.08em; font-weight:400; color:#a24c9c; }
.lp-file-type svg { width:14px; height:17px; }
.lp-guide h3 { font-size:21px; line-height:1.3; letter-spacing:-.025em; margin:10px 0 11px!important; }
.lp-guide p { display:flex; align-items:center; gap:6px; font-size:10px; color:#98899f; }
.lp-guide p svg { width:12px; height:12px; }
.lp-guide-link { display:flex; align-items:center; gap:12px; font-size:11px; color:#9754c5; padding-top:19px; }
.lp-guide-link svg { width:24px; height:18px; transition:transform .25s; }
.lp-guide-link:hover { color:#7120bb; }
.lp-guide-link:hover svg { transform:translateX(4px); }
.lp-neighbours { display:grid; grid-template-columns:1fr 1.2fr; border-top:1px solid var(--lp-line); border-bottom:1px solid var(--lp-line); padding:25px 0; gap:25px; }
.lp-neighbours a { display:flex; align-items:center; gap:20px; color:#625168; font-size:15px; line-height:1.5; transition:color .2s; }
.lp-neighbours small { display:block; color:#a38bae; font-size:9px; letter-spacing:.08em; margin-bottom:7px; }
.lp-neighbours svg { width:28px; height:20px; flex:0 0 28px; transition:transform .25s; }
.lp-back-course svg { transform:rotate(180deg); }
.lp-next-lesson { padding-left:25px; border-left:1px solid var(--lp-line); justify-content:space-between; }
.lp-neighbours a:hover { color:var(--lp-violet); }
.lp-back-course:hover svg { transform:rotate(180deg) translateX(4px); }
.lp-next-lesson:hover svg { transform:translateX(4px); }
.lp-sidebar { min-width:0; }
.lp-sidebar-inner { position:sticky; top:var(--lp-sidebar-top,115px); }
.lp-module { border:1px solid var(--lp-line); border-radius:4px; background:#fcfbfd; overflow:hidden; }
.lp-module>summary { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:21px; border-bottom:1px solid transparent; }
.lp-module>summary::-webkit-details-marker { display:none; }
.lp-module[open]>summary { border-bottom-color:#e9e2ee; }
.lp-module summary small { display:block; font-size:9px; line-height:1.5; letter-spacing:.1em; color:#9b80ac; margin-bottom:7px; }
.lp-module summary strong { font-size:19px; line-height:1.25; font-weight:300; letter-spacing:-.035em; color:#3b2d43; }
.lp-module summary>svg { width:17px; height:17px; color:#9c79b8; flex:none; transition:transform .23s; }
.lp-module[open] summary>svg { transform:rotate(180deg); }
.lp-module nav { max-height:calc(100dvh - 470px); min-height:220px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#d3c3df transparent; }
.lp-module ol { list-style:none; padding:6px; }
.lp-module li { margin:0; }
.lp-module li a { display:grid; grid-template-columns:20px minmax(0,1fr) 6px; gap:12px; align-items:baseline; padding:12px 12px 12px 9px; color:#81718c; font-size:11px; line-height:1.55; border-radius:2px; transition:color .22s,background .22s; }
.lp-module li a[aria-current] { color:#812bd1; background:#f0e8f8; }
.lp-lesson-number { font-size:9px; font-weight:400; color:#b299c2; }
.lp-current-dot { display:block; width:4px; height:4px; border-radius:50%; background:#a23ae4; align-self:center; }
.lp-module li a:hover { background:#f5eef9; color:#812bd1; }
.lp-full-program { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border-top:1px solid var(--lp-line); color:#9b69bc; font-size:11px; }
.lp-full-program svg { width:24px; height:17px; }
.lp-full-program:hover { color:#7a20c4; }
.lp-course-access { padding:25px 7px 0; }
.lp-course-access .lp-kicker { font-size:9px; color:#a38ba9; }
.lp-course-access h2 { font-size:24px; line-height:1.2; margin:12px 0 11px!important; }
.lp-course-access p:not(.lp-kicker) { font-size:12px; line-height:1.65; color:#96879d; }
.lesson-page .lp-primary { position:relative; display:flex; width:100%; justify-content:center; padding:15px 34px 15px 18px; min-height:48px; font-size:12px; font-weight:300; line-height:1.4; margin-top:24px; border-radius:4px; }
.lp-primary>svg { position:absolute; right:14px; width:25px; height:18px; }
@media(max-width:1100px) {
 .lp-layout { grid-template-columns:minmax(0,1fr) 270px; gap:27px; }
 .lp-video-poster figcaption { flex-direction:column; align-items:stretch; gap:12px; padding:22px; }
 .lp-access-link { padding-left:53px; }
 .lp-guide { grid-template-columns:160px minmax(0,1fr); padding:19px; gap:20px; }
 .lp-guide h3 { font-size:19px; }
 .lp-module summary { padding:19px; }
 .lp-neighbours { gap:20px; }
 .lp-neighbours a { font-size:13px; gap:12px; }
 .lp-next-lesson { padding-left:20px; }
}
@media(max-width:800px) {
 .lp-main { padding-top:35px; padding-bottom:65px; }
 .lp-breadcrumbs { font-size:10px; margin-bottom:32px; }
 .lp-heading h1 { font-size:38px; }
 .lp-heading-meta { font-size:10px; gap:10px 15px; }
 .lp-heading-meta>span+span { padding-left:15px; }
 .lp-heading-meta a { margin-left:0; }
 .lp-layout { display:flex; flex-direction:column; gap:29px; }
 .lp-sidebar { order:-1; }
 .lp-sidebar-inner { position:static; }
 .lp-module summary { padding:17px 20px; }
 .lp-module summary small { font-size:9px; margin-bottom:5px; }
 .lp-module summary strong { font-size:19px; }
 .lp-module nav { min-height:0; max-height:390px; }
 .lp-module li a { font-size:12px; padding:12px 16px; }
 .lp-course-access { display:none; }
 .lp-video-poster figcaption { flex-direction:row; align-items:center; }
 .lp-access-link { padding-left:0; }
 .lp-guide { grid-template-columns:220px minmax(0,1fr); padding:23px; gap:25px; }
}
@media(max-width:520px) {
 .lp-main { padding-top:29px; }
 .lp-breadcrumbs { gap:5px; font-size:9px; margin-bottom:26px; }
 .lp-course-name { padding-bottom:16px; }
 .lp-course-name img { width:63px; height:23px; }
 .lp-kicker { font-size:9px; }
 .lp-heading h1 { font-size:33px; line-height:1.1; }
 .lp-heading { margin-bottom:25px; }
 .lp-heading-meta { margin-top:20px; font-size:10px; gap:9px 14px; }
 .lp-heading-meta>span+span { border-left:0; padding-left:0; }
 .lp-heading-meta a { width:100%; font-size:10px; }
 .lp-section-label { margin-bottom:13px; }
 .lp-section-label h2 { font-size:21px; }
 .lp-section-label>span { font-size:9px; gap:5px; }
 .lp-video-poster figcaption { flex-direction:column; align-items:stretch; padding:20px; gap:12px; }
 .lp-video-caption { gap:12px; }
 .lp-lock-circle { width:32px; height:32px; flex-basis:32px; }
 .lp-lock-circle svg { width:17px; height:17px; }
 .lp-video-caption strong { font-size:12px; }
 .lp-video-caption p { font-size:10px; line-height:1.65; }
 .lp-access-link { justify-content:space-between; margin-left:44px; font-size:11px; }
 .lp-description { padding:31px 0; }
 .lp-description h2 { font-size:28px; margin-bottom:17px!important; }
 .lp-description>p:not(.lp-kicker) { font-size:15px; line-height:1.8; }
 .lp-materials { padding:31px 0; }
 .lp-materials .lp-section-label { align-items:flex-start; }
 .lp-materials .lp-section-label>span { flex-shrink:0; padding-top:5px; }
 .lp-guide { grid-template-columns:1fr; padding:18px; gap:19px; }
 .lp-guide-cover { width:100%; }
 .lp-guide h3 { font-size:22px; }
 .lp-guide-link { font-size:12px; justify-content:space-between; }
 .lp-guide p { font-size:10px; }
 .lp-neighbours { grid-template-columns:1fr; padding:21px 0; gap:23px; }
 .lp-neighbours a { font-size:14px; }
 .lp-next-lesson { border-left:0; padding:22px 0 0; border-top:1px solid var(--lp-line); }
}
@media(prefers-reduced-motion:reduce) { .lesson-page *, .lesson-page *::before, .lesson-page *::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }
@media(min-width:801px) and (max-height:700px) { .lp-sidebar-inner { position:static; } }
