/* Shared, scoped lesson layouts. The existing WordPress theme owns the header. */
.rivet-demo { margin:24px 0 32px; padding:22px; border:1px solid #dce4d6; border-radius:12px; background:#f7f9f5; }
.rivet-demo-title { margin:0 0 16px; color:#244c2b; font-size:20px; font-weight:700; }
.rivet-demo-controls { display:flex; flex-wrap:wrap; gap:8px; }
.rivet-demo [hidden] { display:none !important; }
.rivet-demo-controls button { min-height:44px; padding:8px 16px; border:1px solid #b5c5a8; border-radius:6px; background:white; color:#244c2b; font:inherit; font-size:14px; cursor:pointer; }
.rivet-demo-controls button[aria-pressed="true"] { background:#244c2b; color:white; border-color:#244c2b; }
.rivet-demo-controls button:focus-visible { outline:3px solid #507d2a; outline-offset:3px; }
.rivet-demo svg { display:block; width:100%; max-width:650px; height:auto; margin:12px auto; }
.rivet-leader { fill:none; stroke:#7d8d7c; stroke-width:1.5; }
.rivet-legs-open,.rivet-release-arrow,.rivet-expand-arrows,.rivet-pin-leader-locked { display:none; }
[data-rivet-state="lock"] .rivet-pin { transform:translateY(102px); }
[data-rivet-state="lock"] .rivet-legs-closed,[data-rivet-state="lock"] .rivet-insert-arrow { display:none; }
[data-rivet-state="lock"] .rivet-legs-open,[data-rivet-state="lock"] .rivet-expand-arrows { display:inline; }
[data-rivet-state="lock"] .rivet-pin-leader-raised { display:none; }
[data-rivet-state="lock"] .rivet-pin-leader-locked { display:inline; }
[data-rivet-state="release"] .rivet-insert-arrow { display:none; }
[data-rivet-state="release"] .rivet-release-arrow { display:inline; }
.rivet-demo-result { min-height:4.5em; margin:0; color:#244c2b; font-size:16px; line-height:1.65; }
.rivet-demo-note { margin:12px 0 0; color:#687663; font-size:12px; line-height:1.5; }
.rivet-demo-key { display:none; }
[data-lesson-page="rivets"] .lesson-point-visual img { max-height:250px; }
@media(max-width:600px) { .rivet-demo { padding:14px; } .rivet-demo-controls { gap:6px; } .rivet-demo-controls button { padding:8px 10px; } .rivet-demo-key { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:0; margin:0 0 18px; list-style:none; font-size:13px; line-height:1.5; } .rivet-demo-key li { display:flex; align-items:center; gap:7px; } .rivet-demo-key i { width:12px; height:12px; flex:none; border-radius:2px; } }
.lesson-visually-hidden,
.lesson-plain-sections .lesson-section>h2 { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0); white-space:nowrap; border:0 !important; }
.lesson-component-guide.lesson-plain-sections .lesson-section { padding:0; margin:0 0 28px; }
.lesson-component-guide.lesson-plain-sections .lesson-point-row { padding:0; margin:0 0 26px; }
.lesson-component-guide.lesson-plain-sections .lesson-point-copy p { margin:0 0 1.3em; }
.lesson-component-guide.lesson-plain-sections .lesson-point-copy p:last-child { margin-bottom:0; }
.lesson-component-guide.lesson-plain-sections .lesson-reading-sidebar { padding-top:0; }
.lesson-slides { margin:24px 0 10px; border:1px solid #dce4d6; border-radius:10px; background:#fff; overflow:hidden; }
.lesson-slides:focus-visible { outline:3px solid #507d2a; outline-offset:4px; }
.lesson-slides .lesson-slide { margin:0; }
.lesson-slides [hidden] { display:none !important; }
.lesson-slide>a { display:block; }
.lesson-slide img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; }
.lesson-slide figcaption { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; padding:14px 18px; color:#596b56; font-size:13px; line-height:1.5; }
.lesson-slides-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 18px; border-top:1px solid #e1e8dc; background:#f6f8f3; }
.lesson-slides-controls button { min-width:94px; min-height:44px; border:1px solid #b5c5a8; border-radius:6px; padding:8px 14px; background:#fff; color:#244c2b; font:inherit; font-size:14px; cursor:pointer; }
.lesson-slides-controls button:disabled { opacity:.4; cursor:default; }
.lesson-slides-controls button:focus-visible { outline:3px solid #507d2a; outline-offset:2px; }
.lesson-slides-controls p { margin:0; font-size:13px; color:#596b56; font-variant-numeric:tabular-nums; }
@media(max-width:600px) {
 .lesson-component-guide.lesson-plain-sections .lesson-reading-layout { grid-template-columns:minmax(0,1fr); }
 .lesson-plain-sections .lesson-reading-sidebar { display:none; }
 .lesson-slide figcaption { padding:10px 12px; font-size:12px; }
 .lesson-slides-controls { padding:10px 12px; gap:8px; }
 .lesson-slides-controls button { min-width:80px; padding:8px 10px; }
}
.lesson-stability-layout { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); align-items:start; gap:38px; }
.lesson-stability-layout>*,.lesson-stability-row>* { min-width:0; }
.lesson-stability-sidebar { padding-top:4px; }
.lesson-stability-sidebar .lesson-widget { margin:0; }
.lesson-stability-layout .stability-copy-hero { display:block; padding-top:28px; }
.lesson-stability-layout .lesson-sections { display:block; }
.lesson-stability-layout .lesson-idea-grid { grid-template-columns:1fr; }
.lesson-stability-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:30px; align-items:start; }
.lesson-widget[data-lesson-widget="stability"] { padding:20px; border:1px solid #d7e1d8; background:#f3f6ef; border-radius:16px; }
.stability-heading { display:flex; justify-content:space-between; align-items:start; gap:14px; }
.stability-summary { text-align:right; }
.stability-eyebrow { display:block; margin-bottom:10px; color:#507d2a; font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.stability-points { display:flex; flex-direction:column; align-items:end; gap:5px; color:#173f2a; font-size:11px; font-variant-numeric:tabular-nums; }
.stability-points span { display:flex; align-items:center; gap:6px; }
.stability-points img { width:15px; height:15px; }
.stability-points output { min-width:50px; color:#677466; }
.stability-margin { display:flex; flex-direction:column; text-align:left; line-height:1.1; }
.stability-margin output { color:#173f2a; font-size:36px; font-weight:800; letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
.stability-margin span { color:#5c6f60; font-size:11px; margin-top:3px; }
[data-stability-state="unstable"] .stability-margin output { color:#a43a2a; }
[data-stability-state="neutral"] .stability-margin output { color:#775615; }
.stability-stage { display:block; width:calc(100% + 40px); max-width:none; height:auto; margin:5px -20px -14px; overflow:hidden; touch-action:pan-y; user-select:none; }
.stability-air-label { fill:#5c8473; font:700 19px sans-serif; letter-spacing:3px; }
.stability-drag-label { fill:#5c6f60; font:21px sans-serif; }
.stability-pivot-ring { fill:none; stroke:#507d2a; stroke-width:1.5; stroke-dasharray:4 6; opacity:.35; pointer-events:none; }
.stability-rocket-hit { fill:transparent; cursor:grab; touch-action:none; }
.is-dragging .stability-rocket-hit { cursor:grabbing; }
.stability-rocket-hit:focus-visible { outline:none; stroke:#507d2a; stroke-width:3; stroke-dasharray:8 5; }
.stability-weight { cursor:ew-resize; touch-action:none; }
.stability-weight-hit,.stability-fin-hit { fill:transparent; stroke:none; }
.stability-fin { cursor:ns-resize; touch-action:none; }
.stability-fin:focus-visible,.stability-weight:focus-visible { outline:none; }
.stability-fin:focus-visible .stability-fin-hit,.stability-weight:focus-visible .stability-weight-hit { stroke:#507d2a; stroke-width:3; stroke-dasharray:5 4; }
.stability-hint { pointer-events:none; }
.stability-hint[hidden] { display:none!important; }
.stability-hint path { fill:none; stroke:#507d2a; stroke-width:2; stroke-dasharray:4 4; }
.stability-hint text { fill:#315f28; stroke:none; text-anchor:middle; font:700 24px sans-serif; }
.stability-hint text.stability-hint-hand { font:40px 'Segoe UI Symbol',sans-serif; }
[data-stability-cg],[data-stability-cp] { pointer-events:none; }
.stability-marker-stem { stroke:#173f2a; stroke-width:2; }
.stability-marker-label { fill:#173f2a; font:800 23px sans-serif; text-anchor:middle; paint-order:stroke; stroke:#f3f6ef; stroke-width:8px; stroke-linejoin:round; }
.stability-marker-label.stability-cp-label { text-anchor:end; }
.stability-force { fill:none; stroke:#236789; stroke-width:4; pointer-events:none; }
.stability-force[hidden] { display:none!important; }
.stability-force-label { fill:#236789; font:700 21px sans-serif; text-anchor:middle; paint-order:stroke; stroke:#f3f6ef; stroke-width:6px; stroke-linejoin:round; pointer-events:none; }
.stability-lab>[data-stability-response] { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.stability-model { margin-top:14px; padding-top:12px; border-top:1px solid #d7e1d8; color:#677466; font-size:11px; line-height:1.65; }
.stability-model summary { color:#315f28; cursor:pointer; font-weight:700; }
.stability-model p { margin:10px 0 0; }
@media(max-width:900px) { .lesson-stability-layout { gap:24px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); } .lesson-stability-sidebar { position:static; } }
@media(max-width:760px) { .lesson-stability-layout,.lesson-stability-row { grid-template-columns:1fr; } .lesson-stability-copy { display:contents; } .lesson-stability-layout .stability-copy-hero { grid-row:1; } .lesson-stability-sidebar { grid-row:2; } .lesson-stability-sidebar .lesson-widget { max-width:540px; margin-inline:auto; } }
body.l4c-lesson-page .entry-header { display:none; }
body.l4c-lesson-page .entry-content { margin-top:0; }
.l4c-lessons { font-size:16px; line-height:1.7; color:#173f2a; background:#fff; }
.l4c-lessons *, .l4c-lessons *::before, .l4c-lessons *::after { box-sizing:border-box; }
.l4c-lessons [hidden] { display:none!important; }
.lesson-shell { width:min(1120px,100%); margin-inline:auto; padding:20px 24px 64px; }
.l4c-lessons :is(h1,h2,h3,p,figure,ul,ol) { margin-top:0; text-transform:none; }
.l4c-lessons h1 { margin-bottom:20px; color:#173f2a; font-size:clamp(38px,4.5vw,62px); line-height:1.08; letter-spacing:-.035em; }
.l4c-lessons h2 { margin-bottom:18px; color:#173f2a; font-size:clamp(25px,2.7vw,34px); line-height:1.2; letter-spacing:-.015em; }
.l4c-lessons h3 { margin-bottom:8px; color:#173f2a; font-size:20px; line-height:1.3; }
.l4c-lessons p { margin-bottom:16px; }
.l4c-lessons a { color:#315f28; text-underline-offset:3px; }
.l4c-lessons a:hover { color:#173f2a; }
.l4c-lessons :is(a,button,input,summary):focus-visible { outline:3px solid #507d2a; outline-offset:4px; }
.lesson-library-nav { display:flex; flex-wrap:wrap; gap:6px 22px; padding:12px 0 18px; border-bottom:1px solid #dce3d8; font-size:14px; font-weight:700; }
.lesson-library-nav a { text-decoration:none; padding:4px 0; border-bottom:2px solid transparent; }
.lesson-library-nav a[aria-current] { border-color:#507d2a; }
.l4c-lessons .lesson-library-nav a,.l4c-lessons .lesson-catalog-card,.l4c-lessons .lesson-pagination a,.l4c-lessons .lesson-feature-link,.l4c-lessons .lesson-figure a { text-decoration:none!important; }
.l4c-lessons .lesson-figure a.lesson-enlarge { text-decoration:underline!important; }
.lesson-breadcrumb { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; font-size:13px; color:#677466; }
.lesson-hero { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; padding:42px 0; }
.lesson-hero>div { max-width:560px; }
.l4c-lessons .lesson-eyebrow { margin-bottom:14px; color:#507d2a; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.l4c-lessons .lesson-lead { margin:0; color:#4d5e50; font-size:19px; line-height:1.6; }
.lesson-figure { max-width:760px; margin:24px auto; text-align:center; }
.lesson-figure img { display:block; width:100%; height:auto; max-height:360px; object-fit:contain; }
.lesson-figure figcaption { max-width:62ch; margin:12px auto 0; color:#677466; font-size:13px; line-height:1.5; }
.lesson-figure a { display:block; text-decoration:none; border-radius:8px; }
.lesson-figure a:hover { background:#f2f6ed; }
.lesson-image-zoom { cursor:zoom-in; }
.lesson-enlarge { display:block; margin-top:8px; font-size:12px; color:#507d2a; text-decoration:underline; text-underline-offset:3px; }
.lesson-hero-art { width:100%; margin:0; padding:24px; background:#f5f6ef; border-radius:18px; }
.lesson-hero-art img { height:240px; max-height:280px; mix-blend-mode:multiply; }
.lesson-hero-art figcaption { margin-top:16px; }
.lesson-jump-nav { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; padding:18px 0; border-top:1px solid #dce3d8; border-bottom:1px solid #dce3d8; font-size:13px; }
.lesson-jump-nav>span { color:#677466; margin-right:4px; }
.lesson-jump-nav a { font-weight:650; }
.lesson-component-guide .lesson-hero { grid-template-columns:1fr; padding:32px 0 28px; }
.l4c-lessons[data-lesson-page="parts"] .lesson-hero { grid-template-columns:1fr; padding:32px 0 20px; }
.lesson-component-guide .lesson-hero>div { max-width:820px; }
.lesson-component-guide .lesson-jump-nav { gap:8px; padding:14px 0; }
.lesson-component-guide .lesson-jump-nav>span { flex-basis:100%; margin:0 0 4px; }
.lesson-component-guide .lesson-jump-nav a { display:block; min-height:44px; padding:10px 16px; border:1px solid #dce3d8; border-radius:24px; background:#fff; text-decoration:none!important; line-height:1.4; }
.lesson-component-guide .lesson-jump-nav a[aria-selected="true"] { color:#fff; background:#173f2a; border-color:#173f2a; }
.lesson-component-guide .lesson-sections { display:block; }
.lesson-component-guide .lesson-section { margin-bottom:24px; }
.lesson-component-guide .lesson-section>p { max-width:82ch; }
.lesson-media-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:26px 0; align-items:stretch; }
.lesson-media-gallery[data-media-count="3"] { grid-template-columns:repeat(3,minmax(0,1fr)); }
.lesson-media-gallery .lesson-figure { width:100%; margin:0; padding:20px; border:1px solid #e2e7df; border-radius:14px; background:#f8faf5; }
.lesson-media-gallery .lesson-figure img { height:225px; max-height:225px; }
.lesson-media-placeholder { display:flex; min-width:0; margin:0; padding:26px 22px; min-height:225px; border:1px dashed #9eaf90; border-radius:14px; background:linear-gradient(145deg,#f6f8f1,#eef3e8); text-align:left; }
.lesson-media-brief { align-self:center; }
.lesson-media-badge { display:block; margin-bottom:18px; color:#507d2a; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
.lesson-media-brief strong { display:block; margin-bottom:10px; color:#173f2a; font-size:18px; line-height:1.3; }
.lesson-media-brief p { margin:0; color:#65745f; font-size:14px; line-height:1.65; }
.lesson-component-guide :is(.lesson-section,.lesson-disclosure) { scroll-margin-top:140px; }
@media(max-width:800px) { .lesson-media-gallery[data-media-count="3"] { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) {
 .lesson-media-gallery,.lesson-media-gallery[data-media-count="3"] { grid-template-columns:1fr; gap:16px; }
 .lesson-component-guide .lesson-jump-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .lesson-component-guide .lesson-jump-nav>span { grid-column:1/-1; }
 .lesson-component-guide .lesson-jump-nav a { text-align:center; padding:10px 8px; font-size:13px; }
 .lesson-media-placeholder { min-height:190px; }
}
.lesson-sections { display:grid; gap:0; }
.lesson-section { padding:36px 0; border-bottom:1px solid #e5eadd; scroll-margin-top:130px; min-width:0; }
.lesson-section>p, .lesson-section>ul, .lesson-section>ol { max-width:76ch; }
.lesson-part-sections { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 42px; }
.lesson-section-wide { grid-column:1/-1; }
.lesson-bullets,.lesson-steps { padding-left:22px; margin-bottom:18px; }
.lesson-bullets li,.lesson-steps li { padding-left:6px; margin-bottom:12px; }
.lesson-bullets li::marker,.lesson-steps li::marker { color:#507d2a; font-weight:700; }
.lesson-idea-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 32px; margin:28px 0; }
.lesson-idea-grid>div { padding:18px 0 0 18px; border-left:3px solid #9cb57b; }
.lesson-idea-grid p { margin:0; color:#4d5e50; }
.lesson-links { display:flex; flex-wrap:wrap; gap:10px 22px; margin:22px 0 0; }
.lesson-links a { font-weight:700; }
.lesson-source-links { padding-left:20px; margin:14px 0; }
.lesson-source-links li { margin:8px 0; }
.lesson-note { color:#677466; font-size:13px; line-height:1.6; }
.l4c-lessons .lesson-warning { margin:26px 0; padding:20px 24px; border-left:4px solid #b5352e; border-radius:0 10px 10px 0; background:#fff0ee; color:#782a25; }
.lesson-warning p { margin:5px 0 0; }
.lesson-ukroc { margin:36px 0; padding:28px 32px; background:#e8f5e6; border-left:4px solid #507d2a; border-radius:0 12px 12px 0; }
.lesson-ukroc h2 { font-size:24px; }
.lesson-ukroc p:last-child { margin:0; }
.lesson-disclosure { margin:20px 0; border-block:1px solid #dce3d8; }
.lesson-disclosure summary { padding:16px 8px 16px 0; font-weight:700; cursor:pointer; color:#315f28; }
.lesson-disclosure>div,.lesson-disclosure>p,.lesson-disclosure>ul { padding:4px 0 20px; }
.lesson-disclosure summary::marker { color:#507d2a; }
.lesson-quick { margin-top:36px; padding:30px 32px; background:#f5f6ef; border-radius:14px; }
.lesson-quick h2 { font-size:25px; max-width:34ch; }
.lesson-quick .lesson-disclosure { margin-bottom:0; }
.lesson-related { margin:38px 0; }
.lesson-related h2 { font-size:25px; }
.lesson-pagination { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:40px; padding-top:28px; border-top:2px solid #173f2a; }
.lesson-pagination a { text-decoration:none; }
.lesson-pagination a:last-child { text-align:right; }
.lesson-pagination span,.lesson-pagination strong { display:block; }
.lesson-pagination span { margin-bottom:5px; color:#677466; font-size:13px; }
.lesson-pagination strong { font-size:20px; line-height:1.35; }
.lesson-catalog { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; }
.l4c-lessons .lesson-catalog-card { display:flex; flex-direction:column; position:relative; padding-bottom:20px; border-bottom:2px solid #dce3d8; color:inherit; text-decoration:none; transition:border-color .15s,transform .15s; }
.lesson-catalog-card:hover { border-color:#507d2a; transform:translateY(-3px); }
.lesson-catalog-image { display:grid; place-items:center; height:160px; margin-bottom:20px; padding:18px; border-radius:12px; background:#f5f6ef; }
.lesson-catalog-image img { max-width:100%; width:100%; height:124px; object-fit:contain; mix-blend-mode:multiply; }
.lesson-card-number { margin-bottom:8px; color:#507d2a; font-size:12px; font-weight:800; letter-spacing:.1em; }
.lesson-catalog-card h3 { margin-bottom:8px; }
.lesson-catalog-card p { margin-bottom:16px; font-size:14px; line-height:1.6; color:#677466; }
.lesson-card-action { margin-top:auto; font-size:14px; font-weight:700; color:#315f28; }
.lesson-catalog-title { padding-top:32px; }
.lesson-feature-link { display:block; margin:10px 0 30px; padding:22px 26px; border-left:4px solid #507d2a; border-radius:0 12px 12px 0; background:#e8f5e6; text-decoration:none; }
.lesson-feature-link span,.lesson-feature-link strong { display:block; }
.lesson-feature-link>span { color:#677466; font-size:13px; }
.lesson-feature-link strong { margin-top:4px; font-size:20px; }
.lesson-feature-link strong span { display:inline; }
.lesson-table-wrap { width:100%; overflow:auto; margin:22px 0; }
.l4c-lessons table { width:100%; border-collapse:collapse; font-size:14px; text-align:left; }
.l4c-lessons th,.l4c-lessons td { padding:13px 16px; border:0; border-bottom:1px solid #dce3d8; vertical-align:top; }
.l4c-lessons thead { background:#eef3e8; }
.l4c-lessons tbody th { width:36%; font-weight:650; }
.lesson-checklist { margin:24px 0; padding:20px 24px; border:1px solid #dce3d8; border-radius:12px; }
.lesson-checklist legend { padding:0 8px; font-weight:700; }
.lesson-checklist label { display:flex; gap:12px; margin:0 0 14px; cursor:pointer; }
.lesson-checklist input { flex:0 0 20px; width:20px; height:20px; margin-top:5px; accent-color:#507d2a; }
.lesson-checklist input:checked+span { color:#677466; }
.lesson-checklist [data-check-count] { font-size:14px; margin:15px 0 8px; }
.lesson-term { position:relative; display:inline; }
.l4c-lessons .lesson-term>button { display:inline; min-height:0; padding:0; border:0; border-bottom:1px dotted #507d2a; border-radius:0; background:transparent; color:#315f28; font:inherit; line-height:inherit; text-align:inherit; cursor:help; }
.lesson-definition { display:none; position:absolute; z-index:50; top:calc(100% + 6px); left:0; width:min(280px,calc(100vw - 48px)); padding:14px 16px; background:#173f2a; border-radius:8px; color:#fff; font-size:14px; font-weight:400; line-height:1.55; box-shadow:0 6px 22px #173f2a26; }
.lesson-term:not(.is-dismissed):is(:hover,:focus-within,.is-open)>.lesson-definition { display:block; }
.lesson-widget { margin:28px 0; padding:26px; background:#f5f6ef; border-radius:14px; }
.l4c-lessons .lesson-widget button,.l4c-lessons [data-check-reset] { min-height:44px; padding:10px 16px; border:1px solid #9eb48a; border-radius:8px; background:white; color:#315f28; font:inherit; font-size:14px; font-weight:700; line-height:1.35; cursor:pointer; }
.lesson-widget button:hover { background:#e8f5e6; color:#173f2a; }
.lesson-widget button[aria-pressed="true"] { background:#173f2a; color:white; border-color:#173f2a; }
.lesson-widget-buttons { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.lesson-widget .lesson-widget-result { margin:18px 0 8px; font-weight:650; color:#173f2a; min-height:1.7em; }
.lesson-widget .lesson-note { margin-bottom:0; }
.lesson-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin:24px 0; }
.lesson-controls label { display:block; color:#173f2a; font-size:14px; font-weight:650; }
.lesson-controls output { display:block; margin:4px 0; color:#677466; font-size:13px; font-weight:400; }
.lesson-controls input[type="range"] { display:block; width:100%; height:28px; margin:6px 0; accent-color:#507d2a; cursor:pointer; }
.lesson-stability-board { position:relative; height:220px; overflow:hidden; }
.lesson-stability-board>img { position:absolute; inset:20px 0 auto; width:100%; height:180px; object-fit:fill; transform-origin:45% 50%; }
.lesson-cg,.lesson-cp { position:absolute; top:32%; display:grid; place-items:center; width:34px; height:34px; transform:translateX(-50%); border:2px solid white; border-radius:50%; background:#315f28; color:white; font-size:12px; font-weight:800; }
.lesson-cp { top:60%; background:#ac4432; }
.lesson-cg::after,.lesson-cp::before { position:absolute; content:""; width:1px; height:29px; background:currentColor; }
.lesson-cg::after { top:100%; background:#315f28; }
.lesson-cp::before { bottom:100%; background:#ac4432; }
.lesson-airflow { position:absolute; top:0; right:0; font-size:13px; color:#677466; }
.lesson-stability-board.is-gusting>img { animation:lesson-stable-gust 1.4s ease-out; }
.lesson-stability-board.is-unstable.is-gusting>img { animation:lesson-unstable-gust 1.4s ease-out; }
@keyframes lesson-stable-gust { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-9deg)} 60%{transform:rotate(4deg)} }
@keyframes lesson-unstable-gust { 0%{transform:rotate(0)} 100%{transform:rotate(-40deg)} }
.lesson-pressure-board { display:flex; justify-content:space-around; position:relative; height:290px; padding:20px 0; border-bottom:2px solid #9eb48a; background:linear-gradient(#edf5f4,#f5f6ef); border-radius:10px; }
.lesson-pressure-rocket { position:relative; width:30%; height:100%; }
.lesson-pressure-rocket img { position:absolute; bottom:var(--rocket-level,0%); left:20%; width:65%; height:140px; object-fit:contain; transition:bottom .5s; }
.lesson-pressure-column { display:flex; align-items:center; flex-direction:column; gap:8px; font-size:13px; max-width:42%; text-align:center; }
.lesson-pressure-column>div { display:flex; align-items:flex-end; width:48px; height:160px; border:1px solid #a8b6a7; border-radius:8px; background:white; overflow:hidden; }
.lesson-pressure-column i { display:block; width:100%; height:90%; background:#507d2a; transition:height .5s; }
.lesson-ground { position:absolute; bottom:5px; left:12px; font-size:12px; color:#677466; }
.lesson-recovery-board { height:320px; position:relative; overflow:hidden; }
.lesson-recovery-model { position:absolute; inset:0; }
.lesson-recovery-body,.lesson-recovery-nose { position:absolute; top:120px; left:calc(50% - 30px); width:60px; height:160px; object-fit:contain; transition:transform .6s; }
.lesson-recovery-body { z-index:1; }
.lesson-recovery-nose { transform-origin:50% 13%; }
.lesson-recovery-chute { position:absolute; top:0; left:calc(50% - 72px); width:144px; height:165px; object-fit:contain; opacity:0; transform:scale(.1); transition:opacity .4s,transform .6s; }
.lesson-recovery-cord { position:absolute; top:165px; left:50%; width:78px; height:50px; border:1px solid #7f7051; border-top:0; border-left:0; border-radius:0 0 50% 0; opacity:0; }
.lesson-gas-arrows { position:absolute; top:165px; left:calc(50% - 15px); color:#b5352e; font-size:20px; font-weight:800; opacity:0; }
[data-step="1"] .lesson-gas-arrows { opacity:1; }
:is([data-step="2"],[data-step="3"]) .lesson-recovery-nose { z-index:2; transform:translate(74px,40px) rotate(100deg); }
:is([data-step="2"],[data-step="3"]) .lesson-recovery-cord { opacity:1; }
[data-step="3"] .lesson-recovery-chute { opacity:1; transform:scale(1); }
.lesson-canopy-board { display:grid; place-items:center; height:260px; }
.lesson-canopy-board img { width:100%; max-width:340px; height:250px; object-fit:contain; mix-blend-mode:multiply; }
.lesson-drop-grid { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:28px; }
.lesson-drop-grid label { font-weight:650; }
.l4c-lessons input[type="number"] { display:block; width:100%; max-width:170px; min-height:46px; margin-top:10px; padding:10px 12px; border:1px solid #9eb48a; border-radius:7px; background:#fff; color:#173f2a; font:inherit; }
.lesson-drop-result { padding:20px; border-left:3px solid #507d2a; }
.lesson-drop-result span { display:block; font-size:13px; color:#677466; }
.lesson-drop-result output { display:block; margin:6px 0; color:#173f2a; font-size:32px; font-weight:800; }
.lesson-egg-board { position:relative; width:160px; height:250px; margin:0 auto 20px; border:2px solid #6d7869; border-radius:4px; }
.lesson-egg-padding { position:absolute; inset:15px; background:repeating-linear-gradient(45deg,#cfd5c6 0 3px,#edf0e8 3px 6px); }
.lesson-egg-board img { position:absolute; top:55px; left:40px; width:80px; height:125px; object-fit:contain; }
.lesson-egg-cover { position:absolute; inset:0; display:grid; place-items:center; background:#e1e4dc; color:#677466; transition:opacity .2s; }
.lesson-egg-board.is-revealed .lesson-egg-cover { opacity:0; pointer-events:none; }
.lesson-mass-budget { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.lesson-mass-budget label { font-size:14px; font-weight:650; }
.lesson-mass-budget label span { display:flex; align-items:center; gap:8px; font-weight:400; }
.lesson-mass-budget input[type="number"] { margin-top:5px; max-width:120px; }
.lesson-mass-total { grid-column:1/-1; display:flex; justify-content:space-between; align-items:baseline; gap:20px; padding-top:18px; border-top:1px solid #c8d3bf; }
.lesson-mass-total output { font-size:28px; font-weight:800; }
.lesson-design-layout { display:grid; grid-template-columns:1fr 1fr; gap:32px; align-items:center; }
.lesson-design-drawing { width:100%; height:auto; max-height:360px; }
.lesson-design-drawing text { fill:#677466; font-size:13px; }
.lesson-design-layout .lesson-controls { grid-template-columns:1fr; gap:12px; margin:0; }
.lesson-feature-diagram { display:block; width:100%; max-height:250px; }
.lesson-feature-diagram [data-feature-region] { cursor:pointer; }
.lesson-feature-diagram .is-active { stroke:#507d2a; stroke-width:6px; }
.lesson-load-arrow { stroke-dasharray:12 6; }
.lesson-widget:has([data-feature="rings"][aria-pressed="true"]) .lesson-load-arrow { animation:lesson-load 1s linear infinite; }
@keyframes lesson-load { to {stroke-dashoffset:-18} }
@media(max-width:800px) {
 .lesson-hero { gap:24px; }
 .lesson-catalog { grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px; }
 .lesson-part-sections { gap:0 28px; }
}
@media(max-width:600px) {
 .lesson-shell { padding:12px 8px 42px; }
 .lesson-library-nav { gap:4px 15px; font-size:13px; }
 .lesson-library-nav a { padding-block:7px; }
 .lesson-breadcrumb { margin-top:20px; }
 .lesson-hero { grid-template-columns:1fr; gap:24px; padding:30px 0; }
 .l4c-lessons h1 { font-size:36px; }
 .l4c-lessons .lesson-lead { font-size:18px; }
 .lesson-hero-art { padding:18px; }
 .lesson-hero-art img { height:190px; }
 .lesson-jump-nav { gap:8px 16px; }
 .lesson-jump-nav>span { flex-basis:100%; }
 .lesson-section { padding:28px 0; scroll-margin-top:110px; }
 .lesson-part-sections { grid-template-columns:1fr; }
 .lesson-section-wide { grid-column:auto; }
 .lesson-idea-grid { gap:22px; grid-template-columns:1fr; }
 .lesson-ukroc,.lesson-quick { padding:24px 20px; }
 .lesson-catalog { grid-template-columns:1fr; gap:28px; }
 .lesson-catalog-image { height:170px; }
 .lesson-widget { padding:18px 14px; }
 .lesson-controls { grid-template-columns:1fr; gap:14px; }
 .lesson-stability-board { height:170px; }
 .lesson-stability-board>img { height:130px; }
 .lesson-cg { top:27%; }
 .lesson-cp { top:66%; }
 .lesson-drop-grid { grid-template-columns:1fr; gap:20px; }
 .lesson-drop-result { padding:10px 16px; }
 .lesson-mass-budget { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
 .lesson-mass-total { flex-wrap:wrap; gap:6px; }
 .lesson-design-layout { grid-template-columns:1fr; gap:22px; }
 .lesson-design-drawing { max-height:260px; }
 .lesson-widget-buttons button { flex:1 1 auto; }
 .lesson-checklist { padding:18px 14px; }
 .lesson-pagination { gap:20px; }
 .lesson-pagination strong { font-size:17px; }
 .l4c-lessons th,.l4c-lessons td { padding:10px 8px; font-size:13px; overflow-wrap:anywhere; }
}
@media(prefers-reduced-motion:reduce) { .l4c-lessons *, .l4c-lessons *::before, .l4c-lessons *::after { animation:none!important; transition:none!important; } }

/* The model-rocketry landing page is five large image links. */
.teaching-hub-heading { padding:36px 0 38px; }
.teaching-hub-heading h1 { margin-bottom:16px; }
.teaching-hub-heading>p:last-child { margin:0; color:#677466; font-size:19px; }
.teaching-topic-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:32px 26px; }
.l4c-lessons .teaching-topic-card { grid-column:span 2; display:block; overflow:hidden; border:1px solid #dce3d8; border-radius:16px; background:white; color:#173f2a; text-decoration:none!important; transition:box-shadow .2s,border-color .2s; }
.l4c-lessons .teaching-topic-main { grid-column:span 3; }
.teaching-topic-image { display:block; overflow:hidden; background:#f3f6ee; aspect-ratio:5/3; }
.teaching-topic-image img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .25s; }
.teaching-topic-card:hover { border-color:#83a46a; box-shadow:0 10px 30px #173f2a12; }
.teaching-topic-card:hover .teaching-topic-image img { transform:scale(1.025); }
.teaching-topic-copy { position:relative; display:block; padding:22px 24px 24px; }
.teaching-topic-number { display:block; margin-bottom:10px; color:#507d2a; font-size:12px; font-weight:800; letter-spacing:.1em; }
.teaching-topic-copy h2 { margin:0 0 18px; font-size:22px; line-height:1.25; letter-spacing:-.01em; }
.teaching-topic-main h2 { font-size:28px; }
.teaching-topic-action { display:flex; justify-content:space-between; gap:16px; color:#507d2a; font-size:13px; font-weight:700; }
.teaching-topic-placeholder .lesson-shell { padding-top:32px; }
.teaching-back-link { display:inline-block; margin-bottom:12px; font-size:14px; }
.teaching-placeholder-note { margin:24px 0; color:#677466; }
@media(min-width:601px) and (max-width:900px) {
 .teaching-topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
 .l4c-lessons .teaching-topic-card { grid-column:span 1; }
 .l4c-lessons .teaching-topic-card:last-child { grid-column:1/-1; width:calc(50% - 12px); justify-self:center; }
 .teaching-topic-main h2 { font-size:24px; }
}
@media(max-width:600px) {
 .teaching-hub-heading { padding:28px 0; }
 .teaching-topic-grid { grid-template-columns:1fr; gap:26px; }
 .l4c-lessons .teaching-topic-card { grid-column:auto; }
 .teaching-topic-copy { padding:20px; }
 .teaching-topic-copy h2,.teaching-topic-main h2 { font-size:24px; }
}

/* Classic component guides: one explained point and its visual per row. */
.lesson-point-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:center}
.lesson-point-gallery[data-image-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.lesson-point-visual .lesson-point-gallery .lesson-figure img{height:150px;max-height:180px}
.lesson-point-visual .lesson-figure[data-image-format="diagram"] img{height:auto;max-height:480px;width:100%;object-fit:contain}
.lesson-simulator .lesson-shell{max-width:1440px;width:calc(100% - 32px);padding-top:24px}
.simulator-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0 20px}
.simulator-heading h1{margin:0 0 8px;font-size:clamp(32px,4vw,46px)}
.simulator-heading p{margin:0;color:#677466;font-size:15px;max-width:72ch}
.simulator-open{flex-shrink:0;font-size:13px;font-weight:600;color:#315f28}
.rocket-lab-frame{width:100%;border:1px solid #dce3d8;border-radius:8px;overflow:hidden;background:#fff}
.rocket-lab-frame iframe{display:block;width:100%;height:1150px;border:0;background:#fff}
@media(max-width:650px){.simulator-heading{display:block}.simulator-open{display:inline-block;margin-top:12px}.lesson-simulator .lesson-shell{width:calc(100% - 16px)}.lesson-point-gallery{gap:12px}.lesson-point-gallery[data-image-count="3"]{grid-template-columns:1fr}.lesson-point-visual .lesson-point-gallery[data-image-count="3"] .lesson-figure img{height:180px}}
.lesson-component-guide .lesson-hero { padding:28px 0 24px; }
.lesson-component-guide h1 { font-size:clamp(34px,4vw,48px); margin-bottom:12px; letter-spacing:-.02em; }
.lesson-component-guide .lesson-lead { font-size:18px; }
.lesson-component-guide .lesson-jump-nav { display:flex; flex-wrap:wrap; gap:0 24px; margin:0; padding:0; border-top:0; border-bottom:1px solid #dce3d8; }
.lesson-component-guide .lesson-jump-nav a { min-height:48px; margin:0; padding:12px 0; border:0; border-bottom:2px solid transparent; border-radius:0; background:none; font-size:14px; font-weight:600; }
.lesson-component-guide .lesson-jump-nav a[aria-selected="true"] { color:#173f2a; border-color:#507d2a; background:none; }
.lesson-component-guide .lesson-section { padding:28px 0 0; border:0; }
.lesson-component-guide .lesson-section>h2 { font-size:25px; margin-bottom:20px; }
.lesson-point-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:48px; padding:24px 0 34px; border-bottom:1px solid #edf0e9; }
.lesson-point-row:first-of-type { padding-top:0; }
.lesson-point-row:last-of-type { border-bottom:0; }
.lesson-point-copy { max-width:58ch; }
.lesson-point-copy p:last-child { margin-bottom:0; }
.lesson-component-guide .lesson-step-label { margin-bottom:10px; font-size:13px; font-weight:600; color:#677466; }
.lesson-point-visual { min-width:0; }
.lesson-point-visual .lesson-figure { width:100%; margin:0; padding:0; border:0; border-radius:0; background:none; }
.lesson-point-visual .lesson-figure img { height:220px; max-height:260px; }
.lesson-point-visual .lesson-enlarge { display:none; }
.lesson-point-visual .lesson-figure figcaption { font-size:12px; margin-top:10px; }
.lesson-point-visual .lesson-widget { margin:0; padding:0; border:0; border-radius:0; background:none; }
.lesson-point-visual .lesson-media-placeholder { min-height:185px; margin:0; padding:20px 24px; border:1px dashed #c4cdc0; border-radius:0; background:#fafbf8; }
.lesson-point-visual .lesson-media-badge { margin-bottom:12px; font-size:10px; color:#77816e; }
.lesson-point-visual .lesson-media-brief strong { font-size:16px; font-weight:600; }
.lesson-point-visual .lesson-media-brief p { font-size:13px; }
.lesson-component-guide .lesson-pagination { margin-top:22px; padding-top:18px; border-top:1px solid #dce3d8; }
.lesson-component-guide .lesson-pagination strong { font-size:16px; }
.lesson-component-guide .lesson-pagination span { font-size:12px; }
.lesson-scene { max-width:760px; margin:20px auto; }
.lesson-scene-stage { position:relative; width:100%; aspect-ratio:4/3; overflow:hidden; background:#fff; }
.lesson-scene-coupler-fit .lesson-scene-stage { aspect-ratio:16/6; }
.lesson-scene-motor-ejection .lesson-scene-stage,.lesson-scene-pressure-vents .lesson-scene-stage { aspect-ratio:16/9; }
.lesson-scene-zoom { display:block; width:100%; height:100%; cursor:zoom-in; }
.lesson-scene-stage [data-scene-image] { display:block; width:100%; height:100%; max-height:none; object-fit:contain; }
.lesson-scene .lesson-scene-modes,.lesson-scene .lesson-scene-controls { display:flex; justify-content:center; gap:12px; margin-top:12px; }
.lesson-scene .lesson-scene-modes button,.lesson-scene .lesson-scene-controls button { min-height:40px; min-width:44px; padding:8px 12px; border:0; border-bottom:1px solid #aab99e; border-radius:0; background:none; color:#315f28; font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.lesson-scene .lesson-scene-modes button[aria-pressed="true"] { color:#173f2a; border-bottom:2px solid #315f28; }
.lesson-scene .lesson-scene-controls button:disabled { color:#a5ada0; border-color:transparent; cursor:default; }
.lesson-scene-caption { margin:14px 0 0!important; font-size:13px; line-height:1.6; color:#677466; }
.lesson-scene-caption strong { display:block; margin-bottom:4px; color:#315f28; font-weight:600; }
.lesson-scene-caption span { display:block; }
.lesson-scene .lesson-note { font-size:11px; margin:8px 0 0; }
.lesson-scene [hidden] { display:none!important; }
.lesson-scene:not([data-scene-ready]) :is(.lesson-scene-controls,.lesson-scene-modes) { display:none; }
.lesson-vent-flow { position:absolute; inset:0; pointer-events:none; opacity:0; }
[data-effect="airflow"] .lesson-vent-flow { opacity:1; }
.lesson-vent-flow img { position:absolute; top:52%; left:52%; width:14px; height:20px; opacity:0; transform:rotate(90deg); }
.lesson-vent-flow img:nth-child(2) { top:64%; animation-delay:.3s; }
.lesson-vent-flow img:nth-child(3) { top:74%; animation-delay:.6s; }
[data-effect="airflow"][data-animating="true"] .lesson-vent-flow img { animation:lesson-vent-particle 1.2s linear 3; }
@keyframes lesson-vent-particle { 0% { opacity:0; transform:translateX(0) rotate(90deg); } 20% { opacity:1; } 100% { opacity:0; transform:translateX(65px) rotate(90deg); } }
.lesson-drift-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,340px); align-items:start; gap:40px; }
.lesson-drift-comparison { width:100%; max-width:340px; margin:0 0 0 auto; padding:0; background:none; }
.drift-size-list { list-style:none; margin:0!important; padding:0!important; }
.drift-size { --drift-x:20px; padding:8px 0 4px; border-bottom:1px solid #e6ebe1; }
.drift-size:last-child { border-bottom:0; }
.drift-size-label { display:flex; align-items:baseline; gap:12px; line-height:1.3; }
.drift-size-label strong { min-width:52px; color:#173f2a; font-size:13px; }
.drift-size-label span { color:#677466; font-size:11px; }
.drift-lane { position:relative; height:108px; overflow:hidden; background:#fff; }
.drift-fixed-wind { position:absolute; left:6px; top:34px; width:32px; height:25px; object-fit:contain; }
.drift-moving { position:absolute; top:0; left:58px; display:block; width:75px; height:90px; transform:translate(var(--drift-x),15px); }
.drift-moving img { display:block; width:100%; height:100%; object-fit:contain; }
.drift-fixed-arrow { position:absolute; right:25px; bottom:8px; width:19px; height:56px; object-fit:contain; }
.drift-size-medium { --drift-x:35px; }
.drift-size-large { --drift-x:50px; }
.drift-size-medium .drift-fixed-arrow { width:34px; }
.drift-size-large .drift-fixed-arrow { width:70px; height:30px; }
.drift-lane-ground { position:absolute; left:48px; right:8px; bottom:1px; border-bottom:1px solid #edf0e9; }
.lesson-drift-comparison figcaption { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin-top:10px; color:#677466; font-size:10px; line-height:1.4; }
.lesson-drift-comparison [data-drift-toggle] { min-height:36px; padding:5px 0; border:0; border-bottom:1px solid #aab99e; border-radius:0; color:#315f28; background:none; font:inherit; font-size:11px; cursor:pointer; }
.lesson-drift-comparison [data-drift-toggle]:focus-visible { outline:3px solid #682a78; outline-offset:3px; }
[data-drift-ready] .drift-moving { animation:drift-small-loop 6s linear infinite; }
[data-drift-ready] .drift-size-medium .drift-moving { animation-name:drift-medium-loop; }
[data-drift-ready] .drift-size-large .drift-moving { animation-name:drift-large-loop; }
[data-drift-state="paused"] .drift-moving { animation-play-state:paused; opacity:1!important; }
[data-drift-reduced="true"] .drift-moving { animation:none; }
@keyframes drift-small-loop { 0% { transform:translate(0,0); opacity:0; } 5% { opacity:1; } 35%,90% { transform:translate(20px,15px); opacity:1; } 100% { transform:translate(20px,15px); opacity:0; } }
@keyframes drift-medium-loop { 0% { transform:translate(0,0); opacity:0; } 5% { opacity:1; } 55%,90% { transform:translate(35px,15px); opacity:1; } 100% { transform:translate(35px,15px); opacity:0; } }
@keyframes drift-large-loop { 0% { transform:translate(0,0); opacity:0; } 5% { opacity:1; } 75%,90% { transform:translate(50px,15px); opacity:1; } 100% { transform:translate(50px,15px); opacity:0; } }
@media(max-width:760px) { .lesson-drift-row { grid-template-columns:1fr; gap:24px; } .lesson-drift-comparison { margin-inline:auto; } }
@media(max-width:700px) {
 .lesson-point-row { grid-template-columns:1fr; gap:20px; padding:22px 0 30px; }
 .lesson-point-copy { max-width:none; }
 .lesson-point-visual .lesson-figure img { height:210px; }
 .lesson-component-guide .lesson-jump-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 8px; }
 .lesson-component-guide .lesson-jump-nav a { padding:10px 2px; text-align:center; font-size:12px; line-height:1.4; }
 .lesson-component-guide .lesson-section { padding-top:22px; }
}
@media(prefers-reduced-motion:reduce) { .lesson-vent-flow img,.drift-moving { animation:none!important; } }

/* Continuous component articles, with a quiet contents rail on the right. */
.lesson-component-guide .lesson-reading-layout { display:grid; grid-template-columns:minmax(0,1fr) 170px; gap:44px; align-items:start; }
.lesson-reading-content,.lesson-reading-sidebar { min-width:0; }
.lesson-component-guide .lesson-part-sections { display:block; }
.lesson-component-guide .lesson-section { padding:30px 0 10px; scroll-margin-top:110px; }
.lesson-component-guide .lesson-section>h2 { display:table; margin:0 0 24px; padding-bottom:5px; border-bottom:2px solid #a7bc92; font-size:22px; line-height:1.35; }
.lesson-component-guide .lesson-part-detail { margin:24px 0; scroll-margin-top:110px; }
.lesson-component-guide .lesson-part-detail>h3 { margin:0 0 16px; font-size:18px; line-height:1.4; }
.lesson-component-guide .lesson-point-row { grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:30px; padding:10px 0 28px; margin-bottom:18px; align-items:center; }
.lesson-component-guide .lesson-point-row.lesson-point-visual-left { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); }
.lesson-component-guide .lesson-point-row.lesson-point-visual-left>.lesson-point-visual { grid-column:1; grid-row:1; }
.lesson-component-guide .lesson-point-row.lesson-point-visual-left>.lesson-point-copy { grid-column:2; grid-row:1; }
.lesson-component-guide .lesson-point-text-only { display:block; }
.lesson-component-guide .lesson-point-copy { max-width:66ch; }
/* Rail-guide paragraphs and illustrated rows share the same centred article bounds. */
[data-lesson-page="rail-guides"] .lesson-reading-content { width:100%; margin-inline:auto; }
[data-lesson-page="rail-guides"] .lesson-point-row { width:100%; }
[data-lesson-page="rail-guides"] .lesson-point-copy { width:100%; max-width:none; }
[data-lesson-page="rail-guides"] .lesson-point-visual .lesson-slides { width:100%; margin:0; }
[data-lesson-page="rail-guides"] .lesson-point-visual .lesson-figure figcaption .lesson-enlarge { display:block; margin-top:4px; }
/* Keep the altimeter article and its alternating figures within the same margins. */
[data-lesson-page="flight-computer"] .lesson-point-copy { width:100%; max-width:none; }
[data-lesson-page="vent-holes"] .lesson-point-copy { width:100%; max-width:none; }
[data-lesson-page="shock-cords"] .lesson-point-copy { width:100%; max-width:none; }
[data-lesson-page="shock-cords"] .lesson-point-visual .lesson-figure figcaption .lesson-enlarge { display:block; margin-top:4px; }
[data-lesson-page="shock-cords"] #what-is-it .lesson-point-gallery { grid-template-columns:1fr; gap:14px; }
.lesson-component-guide[data-lesson-page="shock-cords"] #what-is-it .lesson-point-gallery .lesson-figure img { max-height:250px; }
[data-lesson-page="shock-cords"] .lesson-scene-recovery-sequence .lesson-scene-stage { aspect-ratio:4/3; }
[data-lesson-page="shock-cords"] .lesson-scene-stage [data-scene-image] { transform-origin:left center; }
[data-lesson-page="shock-cords"] .lesson-scene-stage:is([data-frame="0"],[data-frame="1"]) [data-scene-image] { transform:scale(1.8); }
[data-lesson-page="shock-cords"] .lesson-scene-stage[data-frame="4"] [data-scene-image] { transform:translateX(22%); }
[data-lesson-page="shock-cords"] .lesson-scene-caption { margin-top:8px!important; }
[data-lesson-page="shock-cords"] .lesson-scene-caption strong { display:none; }
.lesson-component-guide[data-lesson-page="shock-cords"] #requirements .lesson-figure img { max-height:430px; }
.lesson-component-guide[data-lesson-page="shock-cords"] #common-problems .lesson-figure img { max-height:300px; }
.lesson-component-guide[data-lesson-page="shock-cords"] #openrocket .lesson-figure img { max-height:370px; }
[data-lesson-page="eye-hook"] .lesson-point-copy { width:100%; max-width:none; }
[data-lesson-page="eye-hook"] .lesson-point-visual .lesson-figure figcaption .lesson-enlarge { display:block; margin-top:4px; }
.lesson-component-guide[data-lesson-page="eye-hook"] #attaching-cord .lesson-point-row:first-of-type .lesson-figure img { max-height:350px; }
.lesson-component-guide[data-lesson-page="eye-hook"] #attaching-cord .lesson-point-row:last-of-type .lesson-figure img { max-height:190px; }
[data-lesson-page="motor-mount"] .lesson-point-copy { width:100%; max-width:none; }
[data-lesson-page="motor-mount"] .lesson-point-visual .lesson-slides { width:100%; margin:0; }
[data-lesson-page="motor-mount"] .lesson-point-visual .lesson-figure figcaption .lesson-enlarge { display:block; margin-top:4px; }
.lesson-component-guide[data-lesson-page="motor-mount"] #what-is-it .lesson-point-row:first-of-type .lesson-figure img { max-height:270px; }
/* Bulkhead and wadding articles use the same continuous reading width. */
:is([data-lesson-page="bulkheads-and-rings"],[data-lesson-page="wadding"]) .lesson-point-copy { width:100%; max-width:none; }
:is([data-lesson-page="bulkheads-and-rings"],[data-lesson-page="wadding"]) .lesson-point-visual .lesson-slides { width:100%; margin:0; }
:is([data-lesson-page="bulkheads-and-rings"],[data-lesson-page="wadding"]) .lesson-point-visual .lesson-figure figcaption .lesson-enlarge { display:block; margin-top:4px; }
[data-lesson-page="wadding"] .lesson-point-visual .lesson-point-gallery { gap:4px; }
[data-lesson-page="wadding"] .lesson-point-visual .lesson-point-gallery .lesson-figure img { display:block; width:180px; height:180px; max-height:180px; margin-inline:auto; object-fit:contain; }
[data-lesson-page="wadding"] .lesson-point-gallery .lesson-figure:last-child img { clip-path:inset(0 24% 0 23%); }
[data-lesson-page="wadding"] .lesson-point-gallery .lesson-figure figcaption { margin-top:4px; }
.lesson-scene-recovery-wadding .lesson-scene-canvas { position:absolute; inset:0; transform-origin:left center; }
.lesson-scene-recovery-wadding .lesson-scene-stage:is([data-frame="0"],[data-frame="1"]) .lesson-scene-canvas { transform:scale(1.8); }
.lesson-scene-recovery-wadding .lesson-scene-stage[data-frame="4"] .lesson-scene-canvas { transform:translateX(22%); }
.lesson-wadding-callout { position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none; }
.lesson-wadding-callout [data-wadding-frame] { display:none; }
.lesson-scene-stage[data-frame="0"] [data-wadding-frame="0"],.lesson-scene-stage[data-frame="1"] [data-wadding-frame="1"],.lesson-scene-stage[data-frame="2"] [data-wadding-frame="2"] { display:block; }
.lesson-scene-recovery-wadding .lesson-scene-caption strong { display:none; }
[data-lesson-page="flight-computer"] .lesson-point-visual .lesson-slides { width:100%; margin:0; }
[data-lesson-page="flight-computer"] .lesson-point-visual .lesson-figure figcaption .lesson-enlarge { display:block; margin-top:4px; }
/* The two egg articles share the same article bounds and keep the pupil prompts visible. */
:is([data-lesson-page="egg-payload"],[data-lesson-page="egg-protection"]) .lesson-point-copy { width:100%; max-width:none; }
.lesson-component-guide:is([data-lesson-page="egg-payload"],[data-lesson-page="egg-protection"]) .lesson-point-visual .lesson-figure img { max-height:240px; }
:is([data-lesson-page="egg-payload"],[data-lesson-page="egg-protection"]) .lesson-point-visual .lesson-figure figcaption .lesson-enlarge { display:block; margin-top:4px; }
:is([data-lesson-page="egg-payload"],[data-lesson-page="egg-protection"]) .lesson-ukroc { margin:18px 0 28px; }
:is([data-lesson-page="egg-payload"],[data-lesson-page="egg-protection"]) .lesson-ukroc h3 { margin:0 0 12px; font-size:17px; }
:is([data-lesson-page="egg-payload"],[data-lesson-page="egg-protection"]) .lesson-ukroc blockquote { margin:0 0 14px; padding:0; border:0; color:inherit; font:inherit; }
.lesson-component-guide .lesson-equations { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:18px; }
.lesson-component-guide .lesson-equations p { margin:0!important; padding:14px 18px; border-left:2px solid #a7bc92; background:#f7f9f5; }
.lesson-equations span { display:block; margin-bottom:5px; color:#596b56; font-size:13px; }
.lesson-equations strong { display:block; font-size:20px; font-weight:600; }
@media(max-width:600px) { .lesson-component-guide .lesson-equations { grid-template-columns:1fr; gap:12px; } }
.lesson-component-guide .lesson-point-copy p { font-size:16px; line-height:1.75; }
.lesson-component-guide .lesson-point-visual .lesson-figure img,
.lesson-component-guide .lesson-point-visual .lesson-figure[data-image-format="diagram"] img { width:100%; height:auto; max-height:320px; object-fit:contain; }
.lesson-component-guide .lesson-point-visual .lesson-figure a { display:block; }
.lesson-component-guide .lesson-point-visual .lesson-figure figcaption { color:#596b56; line-height:1.5; }
.lesson-component-guide .lesson-point-visual .lesson-figure figcaption a { display:inline; }
.lesson-component-guide .lesson-point-visual .lesson-scene { margin:0; }
.lesson-component-guide .lesson-point-visual .lesson-feature-diagram { height:auto; max-height:160px; }
.lesson-component-guide .lesson-point-visual .lesson-widget-buttons { gap:6px; margin:10px 0; }
.lesson-component-guide .lesson-point-visual .lesson-widget-buttons button { min-height:40px; padding:6px 10px; font-size:12px; }
.lesson-component-guide .lesson-point-visual .lesson-widget-result { font-size:13px; margin:10px 0; }
.lesson-component-guide .lesson-point-gallery { grid-template-columns:1fr; gap:18px; }
.lesson-component-guide .lesson-point-visual .lesson-point-gallery .lesson-figure img { height:auto; max-height:230px; }
.lesson-reading-sidebar { position:sticky; top:110px; padding-top:30px; }
.lesson-reading-nav { max-height:calc(100vh - 140px); overflow-y:auto; scrollbar-width:thin; }
.lesson-reading-nav>p { margin:0 0 14px 16px; color:#677466; font-size:12px; font-weight:600; }
.lesson-reading-track { position:relative; padding:0 0 0 16px; border-left:2px solid #e1e8dc; }
.lesson-reading-progress { position:absolute; left:-2px; top:0; width:2px; height:100%; background:#507d2a; transform:scaleY(var(--reading-progress,0)); transform-origin:top; }
.l4c-lessons .lesson-reading-nav a { display:block; position:relative; padding:8px 0; color:#677466; font-size:13px; line-height:1.45; font-weight:500; text-decoration:none; }
.l4c-lessons .lesson-reading-nav a:hover,.l4c-lessons .lesson-reading-nav a[aria-current="location"] { color:#244c2b; }
.l4c-lessons .lesson-reading-nav a[aria-current="location"] { font-weight:700; }
.lesson-reading-nav a[aria-current="location"]::before { content:""; position:absolute; left:-21px; top:14px; width:8px; height:8px; border-radius:50%; background:#507d2a; }
.lesson-component-guide .lesson-sources .lesson-source-links { font-size:14px; line-height:1.65; }
.lesson-component-guide .lesson-sources .lesson-ukroc { margin:24px 0; padding:18px 22px; }
.lesson-component-guide .lesson-sources .lesson-ukroc h3 { font-size:17px; }
@media(min-width:761px) and (max-width:1050px) {
 .lesson-component-guide .lesson-reading-layout { grid-template-columns:minmax(0,1fr) 135px; gap:24px; }
 .lesson-component-guide .lesson-point-row { gap:22px; }
 .l4c-lessons .lesson-reading-nav a { font-size:12px; }
}
@media(max-width:760px) {
 .lesson-component-guide .lesson-reading-layout { grid-template-columns:minmax(0,1fr) 92px; gap:14px; }
 .lesson-reading-sidebar { top:100px; padding-top:30px; }
 .lesson-reading-nav>p { margin-left:10px; font-size:10px; }
 .lesson-reading-track { padding-left:10px; }
 .l4c-lessons .lesson-reading-nav a { padding-block:9px; font-size:11px; line-height:1.45; overflow-wrap:normal; }
 .lesson-reading-nav a[aria-current="location"]::before { left:-15px; }
 .lesson-component-guide .lesson-point-row,.lesson-component-guide .lesson-point-row.lesson-point-visual-left { grid-template-columns:1fr; gap:18px; margin-bottom:8px; }
 .lesson-component-guide .lesson-point-row.lesson-point-visual-left>.lesson-point-copy,.lesson-component-guide .lesson-point-row.lesson-point-visual-left>.lesson-point-visual { grid-column:auto; grid-row:auto; }
 .lesson-component-guide .lesson-point-visual { max-width:480px; width:100%; }
 .lesson-component-guide .lesson-point-visual .lesson-figure img { max-height:280px; }
 .lesson-component-guide .lesson-section>h2 { font-size:21px; }
 .lesson-component-guide .lesson-point-copy p { font-size:15px; }
}

/* Small image-left examples below the nose cone introduction. */
.lesson-component-guide .lesson-point-row.lesson-point-compact { grid-template-columns:minmax(0,180px) minmax(0,1fr); gap:24px; min-height:145px; }
.lesson-component-guide .lesson-point-row.lesson-point-compact>.lesson-point-visual { grid-column:1; grid-row:1; }
.lesson-component-guide .lesson-point-row.lesson-point-compact>.lesson-point-copy { grid-column:2; grid-row:1; }
.lesson-component-guide .lesson-point-compact .lesson-figure { margin:0; }
.lesson-component-guide .lesson-point-compact .lesson-figure img { display:block; width:100%; max-width:170px; max-height:145px; height:auto; object-fit:contain; }
.lesson-point-compact .lesson-figure figcaption { display:none; }
@media(max-width:600px) {
 .lesson-component-guide .lesson-point-row.lesson-point-compact { grid-template-columns:110px minmax(0,1fr); gap:16px; min-height:105px; }
 .lesson-component-guide .lesson-point-compact .lesson-figure img { max-width:110px; max-height:105px; }
 .lesson-component-guide .lesson-point-compact .lesson-point-copy p { font-size:14px; line-height:1.6; }
}

/* Let existing article paragraphs flow beside and beneath small illustrations. */
.lesson-component-guide .lesson-point-row.lesson-point-wrap { display:flow-root; min-height:0; }
.lesson-component-guide .lesson-point-wrap>.lesson-point-visual { float:left; width:170px; margin:0 24px 12px 0; }
.lesson-component-guide .lesson-point-wrap>.lesson-point-copy { max-width:none; }
.lesson-component-guide .lesson-point-wrap .lesson-point-copy p { font-size:16px; line-height:1.75; }
@media(max-width:600px) {
 .lesson-component-guide .lesson-point-wrap>.lesson-point-visual { width:110px; margin:0 16px 10px 0; }
 .lesson-component-guide .lesson-point-wrap .lesson-point-copy p { font-size:15px; }
}

/* A shared small caption style for the two stacked nose cone shapes. */
.lesson-component-guide .lesson-point-wrap .lesson-media-stack { display:grid; grid-template-columns:1fr; gap:14px; }
.lesson-component-guide .lesson-media-stack .lesson-figure { margin:0; }
.lesson-component-guide .lesson-point-visual .lesson-media-stack .lesson-figure img { display:block; width:100%; max-height:125px; object-fit:contain; }
.lesson-component-guide .lesson-media-stack .lesson-figure figcaption { margin:6px 0 0; color:#596b56; font-size:12px; line-height:1.4; text-align:center; }
/* A single fin, with its dimensions always visible beside the drawing. */
[data-lesson-widget="fin-labels"] { padding:0; background:none; border:0; }
.lesson-fin-dimensions { width:min(100%,640px); margin:0 auto 28px; }
.lesson-fin-dimensions a,.lesson-fin-dimensions img { display:block; width:100%; }
.lesson-fin-dimensions img { height:auto; }
.lesson-fin-dimensions figcaption { margin-top:8px; color:#596b56; font-size:13px; line-height:1.5; text-align:center; }
/* The pressure artwork sits beside the explanation, with no slide controls. */
.lesson-pressure-row { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); align-items:center; gap:30px; }
.lesson-pressure-row>* { min-width:0; }
.lesson-pressure-row .lesson-figure { margin:0; }
.lesson-pressure-row .lesson-figure img { display:block; width:100%; max-height:320px; height:auto; object-fit:contain; }
@media(max-width:600px) {
 .lesson-component-guide .lesson-point-visual .lesson-media-stack .lesson-figure img { max-height:100px; }
 .lesson-media-stack .lesson-figure figcaption { font-size:11px; }
 .lesson-pressure-row { grid-template-columns:1fr; gap:18px; }
 .lesson-pressure-row>div:last-child { width:min(100%,340px); justify-self:end; }
}

/* Rocket motor lesson */
[data-lesson-page="motor"] .lesson-point-copy { width:100%; max-width:none; }
[data-lesson-page="motor"] .lesson-point-visual .lesson-figure figcaption .lesson-enlarge { display:block; margin-top:4px; }
.lesson-motor-curve { display:grid; grid-template-columns:minmax(0,1.48fr) minmax(0,1fr); gap:24px; align-items:center; margin:0 0 34px; }
.lesson-motor-chart { min-width:0; margin:0; }
.lesson-motor-chart svg { display:block; width:100%; height:auto; background:white; }
.lesson-motor-chart figcaption { margin-top:10px; font-size:12px; line-height:1.55; color:#596b56; }
.lesson-motor-chart figcaption a { display:block; margin-top:4px; }
.lesson-slides.lesson-motor-stages { margin:0; padding:14px; background:#f8faf5; border:1px solid #dfe8d9; border-radius:14px; }
.lesson-motor-step { min-height:196px; }
.lesson-motor-step-title { display:flex; align-items:center; gap:9px; margin:0 0 8px; font-weight:700; color:#244c2b; }
.lesson-motor-step-title span { display:grid; place-items:center; width:28px; height:28px; flex:none; border-radius:50%; color:white; background:#417341; }
.lesson-motor-step-detail { display:grid; grid-template-columns:65px minmax(0,1fr); gap:12px; align-items:center; }
.lesson-motor-step-detail p { margin:0; font-size:14px; line-height:1.6; }
.lesson-motor-sketch { display:block; width:65px; height:144px; }
.lesson-motor-stages .lesson-slides-controls { gap:8px; margin:10px 0 0; }
[data-lesson-page="motor"] #motor-codes .lesson-table-wrap { min-width:0; margin:0; }
[data-lesson-page="motor"] #motor-codes table { width:100%; min-width:0; font-size:14px; }
[data-lesson-page="motor"] #motor-codes th,
[data-lesson-page="motor"] #motor-codes td { padding:7px 9px; }
[data-lesson-page="motor"] #motor-codes .lesson-note { margin:8px 0 4px; font-size:13px; }
[data-lesson-page="motor"] #openrocket .lesson-slides { width:100%; margin:12px 0 24px; }
@media (min-width:761px) {
 [data-lesson-page="motor"] #motor-codes { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); gap:10px 25px; align-items:start; }
 [data-lesson-page="motor"] #motor-codes .lesson-point-row { grid-column:1; grid-row:1; }
 [data-lesson-page="motor"] #motor-codes .lesson-table-wrap { grid-column:2; grid-row:1; }
 [data-lesson-page="motor"] #motor-codes .lesson-note { grid-column:1 / -1; }
}
@media (max-width:760px) {
 .lesson-motor-curve { grid-template-columns:1fr; gap:14px; }
 [data-lesson-page="motor"] #motor-codes .lesson-table-wrap { margin:14px 0 8px; }
}

/* Continuous flight lessons share the component guides' contents rail and media rows. */
.lesson-flight-guide .lesson-point-copy { max-width:none; }
.lesson-flight-guide .lesson-point-visual .lesson-widget { margin:0; }
.lesson-flight-guide .lesson-point-visual .lesson-figure figcaption .lesson-enlarge { display:block; margin-top:4px; }
.lesson-flight-guide .lesson-section { margin-bottom:12px; }
.lesson-flight-guide .lesson-point-row:last-child { margin-bottom:0; }
.lesson-flight-guide .lesson-equations { grid-template-columns:minmax(0,1fr); }
.lesson-flight-guide .lesson-equations strong { font-size:17px; }
.lesson-flight-guide .lesson-related,.lesson-flight-guide .lesson-sources { margin-top:0; }
.flight-reading-guide>.section-wrap { padding-block:0 52px; }
.flight-reading-chapter { scroll-margin-top:110px; }
.flight-reading-guide .flight-reading-chapter[hidden] { display:none; }
.lesson-flight-guide :is(.flight-reading-chapter,.lesson-section):focus { outline:none; }
.flight-reading-chapter:focus-visible .flight-chapter-header h2,
.lesson-flight-guide .lesson-section:focus-visible>:is(h2,h3) { outline:2px solid #507d2a; outline-offset:4px; }
.flight-reading-chapter:not([hidden])+.flight-reading-chapter:not([hidden]) { margin-top:38px; padding-top:32px; border-top:1px solid #dce4d6; }
.flight-chapter-header { padding:14px 0 2px; }
.flight-chapter-header h2 { width:fit-content; margin:0 0 10px; font-size:clamp(26px,3vw,34px); line-height:1.2; }
.flight-chapter-header .lesson-lead { margin:0 0 10px; }
.flight-chapter-number { margin:0 0 6px; color:#596b56; font-size:12px; font-weight:700; }
.flight-chapter-link { display:inline-block; padding-block:4px; font-size:14px; }
.lesson-flight-guide .lesson-section>h3:first-child { display:table; margin:0 0 24px; padding-bottom:5px; border-bottom:2px solid #a7bc92; font-size:22px; line-height:1.35; }
@media(min-width:761px) {
 .lesson-component-guide.lesson-flight-guide .lesson-point-visual .lesson-figure img { max-height:245px; }
 .lesson-flight-guide [data-flight-section="try-the-wind-tunnel"] .lesson-point-row { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); }
}
@media(max-width:760px) {
 .lesson-flight-guide .lesson-reading-layout { grid-template-columns:minmax(0,1fr); }
 .lesson-flight-guide .lesson-reading-sidebar { display:none; }
 .lesson-flight-guide .lesson-section>h3:first-child { font-size:21px; }
 .flight-reading-chapter:not([hidden])+.flight-reading-chapter:not([hidden]) { margin-top:24px; padding-top:20px; }
}
.lesson-flight-guide [data-flight-section="weathercocking"] .lesson-figure { width:min(100%,260px); margin-inline:auto; }
.lesson-flight-guide [data-flight-section="weathercocking"] .lesson-point-visual .lesson-figure img { max-height:none; }
