
/* Editorial layers share the existing viewer and never create another WebGL scene. */
.family-nav:has(button){display:none!important}
.story-tools{position:fixed;z-index:92;top:140px;left:5%;right:5%;display:flex;justify-content:space-between;pointer-events:none;color:#fff}
.story-tools button{min-height:44px;pointer-events:auto;border:1px solid #ffffff35;background:#161819de;color:#fff;padding:12px 18px;font:12px monospace;cursor:pointer;backdrop-filter:blur(12px)}
.story-tools button:hover{border-color:#ff6600}.story-tools button:focus-visible,.story-family button:focus-visible,.story-bottom button:focus-visible{outline:2px solid #ff6600;outline-offset:4px}
.story-tools[hidden],.story-family[hidden],.story-bottom[hidden],.story-feature[hidden],.story-ending[hidden],.story-intelligence[hidden]{display:none!important}
.story-family{position:fixed;z-index:110;inset:190px 5% auto;background:#111619f5;border:1px solid #ffffff30;padding:24px;color:#fff;box-shadow:0 20px 80px #0009;backdrop-filter:blur(24px)}
.story-family header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.story-family header p{font-size:12px;color:#bbb}.story-family header button{background:none;border:0;color:#fff;font-size:26px;cursor:pointer}
.story-family-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.story-family-grid button{padding:16px;text-align:left;background:#ffffff06;border:1px solid #ffffff18;color:#fff;cursor:pointer}.story-family-grid button:hover,.story-family-grid button[aria-pressed=true]{border-color:#ff6600;background:#ff66000c}.story-family-grid svg{width:100%;height:80px;fill:#bcc4c6;stroke:#fff;stroke-width:.5}.story-family-grid strong{display:block;font-size:19px;margin:14px 0 7px}.story-family-grid small{display:block;color:#a6afb1;font-size:12px;line-height:1.5}
.story-bottom{position:fixed;bottom:24px;left:5%;right:5%;z-index:91;display:flex;justify-content:space-between;align-items:center;color:#fff;pointer-events:none}.story-bottom button{pointer-events:auto;color:inherit;border:0;background:#131618e8;padding:13px 16px;font:11px monospace;cursor:pointer}.story-chapters{display:flex;gap:6px;pointer-events:auto}.story-chapters button{padding:12px 8px;color:#959d9e}.story-chapters button[aria-current=step]{color:#ff6600}.story-chapters span{display:none}.story-chapters button[aria-current=step] span{display:inline;margin-left:8px}
.story-feature{position:absolute;top:27%;left:0;bottom:16%;width:37%;padding:clamp(24px,4vw,65px);background:#f4f3ed;color:#132323;border-radius:0 28px 60px 0;z-index:5;display:flex;flex-direction:column;justify-content:center;box-shadow:20px 0 80px #0001;pointer-events:none}.story-feature .feature-index{font:11px monospace;color:#696e68;margin-bottom:28px}.story-feature h2{font-weight:400;font-size:clamp(26px,3.3vw,52px);line-height:1.08;letter-spacing:-.035em;margin:0 0 24px}.story-feature p{font-size:clamp(15px,1.6vw,23px);line-height:1.35;margin:0;max-width:26ch}.story-feature p span{color:#b1b5b0}.story-feature p span.done{color:#263b39}.story-feature p span.active{color:#ff6600}.story-feature .feature-detail{font:10px monospace;margin-top:30px;color:#64716b;letter-spacing:.04em}
.story-intelligence{position:absolute;inset:0;z-index:6;background:#05090b;color:white;pointer-events:none}.story-intelligence canvas{width:100%;height:100%;display:block}.intelligence-copy{position:absolute;left:10%;right:10%;bottom:17%;text-align:center}.intelligence-copy small{font:10px monospace;color:#adb5b7}.intelligence-copy h2{font-size:clamp(34px,5.6vw,80px);font-weight:400;line-height:1.05;letter-spacing:-.04em;margin:18px auto;max-width:16ch}.intelligence-copy em{font-style:normal;color:#ff6600}.intelligence-copy p{font-size:14px;color:#adb5b7}.story-ending{position:absolute;z-index:7;left:7%;top:30%;color:#fff;max-width:500px;text-shadow:0 2px 30px #0008}.story-ending small{font:11px monospace}.story-ending h2{font-weight:400;font-size:clamp(36px,5vw,70px);line-height:1.03;letter-spacing:-.035em;margin:24px 0}.story-ending p{font-size:16px;max-width:29ch;line-height:1.5}.story-ending .ending-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.story-ending a,.story-ending button{background:#f5f4ed;border:0;color:#122222;padding:14px 19px;font:12px sans-serif;text-decoration:none;cursor:pointer;text-shadow:none}.story-ending a{background:#ff6600;color:#151515}
@media(max-width:700px){.story-tools{top:124px;left:16px;right:16px}.story-tools button{font-size:10px;padding:11px}.story-family{inset:160px 16px auto;max-height:calc(100svh - 185px);overflow:auto;padding:18px}.story-family-grid{grid-template-columns:repeat(2,1fr)}.story-family-grid svg{height:55px}.story-family-grid strong{font-size:16px}.story-family header p{max-width:22ch}.story-feature{top:auto;bottom:85px;width:calc(100% - 32px);left:16px;padding:20px 24px;border-radius:3px;min-height:185px}.story-feature .feature-index{margin-bottom:12px}.story-feature h2{font-size:28px;margin-bottom:12px}.story-feature p{font-size:15px;max-width:35ch}.story-feature .feature-detail{display:none}.story-bottom{left:16px;right:16px;bottom:18px}.story-bottom>button{display:none}.story-chapters{width:100%;justify-content:space-between}.story-chapters button{flex:1;min-width:0;min-height:44px;font-size:10px;padding:12px 4px}.story-chapters button[aria-current=step] span{display:none}.intelligence-copy{bottom:18%;left:8%;right:8%}.intelligence-copy h2{font-size:42px}.story-ending{left:24px;right:24px;top:auto;bottom:110px}.story-ending h2{font-size:44px}.story-ending p{font-size:14px}.story-ending .ending-actions{margin-top:18px}}
@media(max-height:550px) and (min-width:701px){.story-tools{top:128px}.story-feature{top:145px;bottom:65px;padding:20px;width:39%}.story-feature h2{font-size:25px;margin-bottom:10px}.story-feature .feature-index{margin-bottom:10px}.story-feature p{font-size:14px}.story-feature .feature-detail{display:none}.story-ending{top:145px}.story-ending h2{font-size:35px;margin:10px 0}.story-ending p{display:none}.story-ending .ending-actions{margin-top:12px}.story-bottom{bottom:10px}}

.story-feature h2,.intelligence-copy h2{letter-spacing:-.02em}
body.xq-story-active #nav{background:#111619dd!important;color:#fff!important;backdrop-filter:blur(16px)}body.xq-story-active #nav a{color:#fff}body.xq-story-active #nav .ghost{color:#111!important}

.story-ending{color:#162624;text-shadow:none}.story-family header #story-motion{font:11px monospace;border:1px solid #ffffff40;padding:12px;margin-left:auto;margin-right:20px;min-height:44px}body.xq-story-active #nav .burger span{background:#fff!important}

.intelligence-copy a{display:inline-block;pointer-events:auto;color:#fff;border-bottom:1px solid #ff6600;padding:12px 0;text-decoration:none;font:12px monospace;min-height:44px}.intelligence-copy a:focus-visible{outline:2px solid #ff6600;outline-offset:5px}

.intelligence-copy a{position:fixed;left:50%;bottom:17vh;transform:translateX(-50%);white-space:nowrap}.intelligence-copy{padding-bottom:48px}

.story-family-backdrop{position:fixed;inset:0;z-index:109;background:#030709a6;backdrop-filter:blur(3px)}.story-family-backdrop[hidden]{display:none}.story-family{max-height:calc(100svh - 215px);overflow:auto;overscroll-behavior:contain}.story-family header>button:last-child{min-width:44px;min-height:44px}@media(max-width:700px){.story-family{max-height:calc(100svh - 185px)}}

@media(max-height:600px){.story-family{inset:16px 3% auto;max-height:calc(100svh - 32px);padding:16px;box-sizing:border-box}.story-family header{margin-bottom:12px}.story-family-grid{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px}.story-family-grid button{padding:12px}.story-family-grid svg{height:48px}.story-family-grid strong{font-size:16px;margin:8px 0}.story-family-grid small{font-size:11px}.story-family header p{margin:0}.story-family header #story-motion{margin-right:8px;white-space:nowrap;padding:10px}}

@media(max-height:550px) and (min-width:701px){
 .story-feature{top:175px;bottom:65px;padding:16px 20px}
 .story-feature .feature-index{display:none}
 .intelligence-copy{bottom:70px;padding-bottom:40px}
 .intelligence-copy small{display:none}
 .intelligence-copy h2{font-size:30px;margin:8px auto}
 .intelligence-copy p{font-size:12px;margin:8px 0}
 .intelligence-copy a{bottom:60px;padding:10px 0;min-height:40px}
}

/* Keep dismissal and motion settings reachable throughout the scrollable chooser. */
.story-family{--chooser-padding:24px}
.story-family header{position:sticky;top:calc(-1 * var(--chooser-padding));z-index:2;background:#111619;margin:calc(-1 * var(--chooser-padding)) calc(-1 * var(--chooser-padding)) 12px;padding:var(--chooser-padding);border-bottom:1px solid #ffffff18}
.story-family-grid button{scroll-margin-top:116px;scroll-margin-bottom:12px}
@media(max-width:700px){.story-family{--chooser-padding:18px}}
@media(max-height:600px){.story-family{--chooser-padding:16px}}

.story-finish{display:flex;align-items:center;gap:12px;margin-top:16px;font:11px monospace;color:inherit}.story-finish select{min-height:44px;max-width:170px;padding:8px 12px;border:1px solid #777;background:#15191b;color:#fff;border-radius:0}.story-finish select:focus-visible{outline:2px solid #ff6600;outline-offset:3px}

.story-feature.is-livery{top:auto;bottom:22%;left:6%;width:auto;max-width:300px;min-height:0;padding:20px 24px;border-radius:2px;background:#15191bf0;color:#fff;box-shadow:none}.story-feature.is-livery .feature-index{margin:0 0 12px;color:#bbb}.story-feature.is-livery h2{font-size:32px;margin:0}.story-feature.is-livery p,.story-feature.is-livery .feature-detail{display:none}@media(max-width:700px){.story-feature.is-livery{left:24px;bottom:100px;max-width:calc(100% - 48px)}.story-feature.is-livery h2{font-size:28px}.story-feature.is-livery .feature-index{display:block;font-size:10px}}

.story-tools #story-skip{margin-left:auto;margin-right:8px}@media(max-width:700px){.story-tools #story-skip{position:absolute;top:52px;right:0;font-size:9px;min-height:36px;padding:8px 10px}}

.story-finish{flex-wrap:wrap}.story-finish .story-compare{min-height:44px;padding:10px 12px;background:transparent;border:1px solid #5b6263;color:inherit;font:11px monospace}.story-compare[aria-pressed=true]{background:#15191b;color:#fff}.story-compare:disabled{opacity:.45;cursor:default}.story-compare:focus-visible{outline:2px solid #ff6600;outline-offset:3px}@media(max-width:700px){.story-tools #story-skip{min-height:44px}.story-finish{gap:8px 12px}.story-finish .story-compare{flex-basis:100%;text-align:left}.story-ending h2{margin:16px 0}.story-ending .ending-actions{gap:8px}}

/* Keep the two primary ending actions together, followed by chapter navigation. */
.story-ending .ending-actions{display:grid;grid-template-columns:1fr 1fr;max-width:420px;gap:10px}.story-ending .ending-actions>button{grid-column:1;grid-row:1}.story-ending .ending-briefing{grid-column:2;grid-row:1}.story-ending .ending-actions>a[href="#xq-hero"]{grid-column:1/-1;background:transparent;padding:8px 0;color:inherit;min-height:44px;display:flex;align-items:center;box-sizing:border-box;text-decoration:underline;text-underline-offset:4px}.story-ending .ending-actions>button,.story-ending .ending-briefing{min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box}.story-ending .ending-actions>:focus-visible{outline:2px solid #ff6600;outline-offset:3px}
@media(max-width:700px){.story-ending .ending-actions{gap:6px}.story-ending .ending-actions>button,.story-ending .ending-briefing{padding:12px 10px;font-size:11px}}
@media(max-width:700px) and (max-height:740px){.story-ending{bottom:88px}.story-ending h2{font-size:32px;margin:10px 0}.story-ending>p{display:none}.story-ending .ending-actions{margin-top:12px}.story-finish{margin-top:6px}.story-finish .story-compare{font-size:10px}.story-ending small{font-size:10px}}

@media(max-width:700px){.story-tools.is-opening #story-skip{top:142px}}

/* Short landscape screens use two compact columns above chapter navigation. */
@media(min-width:701px) and (max-height:550px){
 .story-ending{top:176px;left:5%;right:5%;max-width:none;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:8px 24px;align-items:start}
 .story-ending[hidden]{display:none}.story-ending>small,.story-ending>p{display:none}
 .story-ending h2{grid-column:1;grid-row:1;font-size:28px;margin:0}
 .story-ending .ending-actions{grid-column:1;grid-row:2;margin:0;gap:4px;max-width:none}
 .story-ending .ending-actions>button,.story-ending .ending-briefing{font-size:10px;padding:8px}
 .story-ending .ending-actions>a[href="#xq-hero"]{font-size:10px;padding:4px 0}
 .story-ending .story-finish{grid-column:2;grid-row:1 / span 2;margin:0;gap:8px;align-content:start;background:#eeeeecf2;padding:8px;box-sizing:border-box}
 .story-ending .story-compare{flex-basis:100%;text-align:left;font-size:10px}
 .story-ending .story-finish select{flex:1;max-width:none;min-width:0}
 .story-bottom>button{display:none}.story-bottom{left:5%;right:5%}.story-chapters{margin-left:auto}
}

.story-tools #story-skip[hidden]{display:none}

.story-family .story-motion-note{margin:-8px 0 18px;padding-left:12px;border-left:2px solid #ff6600;color:#b9c0c2;font-size:12px;line-height:1.5;max-width:58ch}.story-motion-note[hidden]{display:none}.story-family header #story-motion:disabled{color:#aeb6b9;border-color:#ffffff25;cursor:default}

/* The loading cover provides its own escape link; viewer controls wait for readiness. */
body:has(#startup-cover:not([hidden])) .story-tools #story-skip,body:has(#startup-cover:not([hidden])) .story-tools #story-inspect,body:has(#startup-cover:not([hidden])) .story-bottom{visibility:hidden}

/* Small landscape phones need the side card rather than the portrait panel. */
@media(max-width:700px) and (max-height:550px) and (orientation:landscape){.story-feature{top:174px;bottom:64px;left:0;width:42%;min-height:0;padding:12px 16px;border-radius:0 18px 28px 0}.story-feature .feature-index{display:none}.story-feature h2{font-size:21px;margin-bottom:8px}.story-feature p{font-size:12px;line-height:1.35}.story-tools #story-skip,.story-tools.is-opening #story-skip{position:static;margin-left:auto;margin-right:6px;font-size:9px;padding:8px;min-height:44px}.story-tools button{font-size:9px;padding:8px}.story-bottom{bottom:12px}}

@media(max-width:700px) and (max-height:550px) and (orientation:landscape){.story-ending{top:174px;bottom:64px;left:16px;right:16px;max-width:none;overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 14px;align-content:start;padding:0 4px 4px 0}.story-ending[hidden]{display:none}.story-ending>small,.story-ending>p{display:none}.story-ending h2{grid-column:1;grid-row:1;font-size:22px;margin:0}.story-ending .ending-actions{grid-column:1;grid-row:2;margin:0;gap:4px}.story-ending .ending-actions>button,.story-ending .ending-briefing{font-size:10px;padding:8px 6px}.story-ending .ending-actions>a[href="#xq-hero"]{font-size:10px;padding:4px 0}.story-ending .story-finish{grid-column:2;grid-row:1 / span 2;margin:0;gap:6px;font-size:9px;align-content:start;background:#eeeeecf2;padding:6px;box-sizing:border-box}.story-ending .story-finish select{flex:1;min-width:0;max-width:none;padding:6px;font-size:11px}.story-ending .story-compare{flex-basis:100%;font-size:10px;padding:8px;text-align:left}}
@media(max-width:370px){.story-tools.is-opening #story-skip{top:158px}}

/* The landscape drawer supplies its own close button beside its tabs. */
@media(max-height:550px) and (orientation:landscape){
 .story-tools[data-aircraft="xq770"].is-inspecting #story-inspect{visibility:hidden}
}

/* A compact ending keeps the full-size controls above the chapter strip.
   On exceptionally short views, overflow continues into ordinary page scrolling. */
@media(max-width:700px) and (max-height:360px) and (orientation:landscape){.story-feature{width:50%;bottom:60px;padding:8px 12px}}
@media(max-height:360px) and (orientation:landscape){
 .story-ending{top:174px;bottom:54px;display:flex;flex-direction:column;align-items:stretch;gap:2px;overflow:auto;overscroll-behavior:auto;padding:0;scroll-padding-block:4px}
 .story-ending>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
 .story-ending .ending-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0;max-width:none;flex:none}
 .story-ending .ending-actions>*{grid-column:auto;grid-row:auto;min-width:0}
 .story-ending .ending-actions>a[href="#xq-hero"]{grid-column:auto;padding:6px;justify-content:center;text-align:center}
 .story-ending .story-finish{display:flex;flex-wrap:nowrap;gap:8px;margin:0;padding:0;background:none;font-size:9px;flex:none}
 .story-ending .story-finish select{flex:1;min-width:0;max-width:170px}
 .story-ending .story-compare{flex:1;flex-basis:auto;min-width:0;text-align:center;padding:6px;font-size:10px}
 .story-ending :is(button,select,a){scroll-margin-block:4px}
 .story-bottom{bottom:8px}
 .story-chapters button{min-height:44px}
}

/* Match the embedded model readiness without shifting the toolbar. */
.story-tools button:disabled{color:#aeb6b9;border-color:#ffffff25;cursor:default}

/* Keep the compact portrait ending between the toolbar and chapter controls. */
@media(max-width:700px) and (max-height:560px) and (orientation:portrait){
 .story-ending{top:180px;bottom:72px;overflow:auto;overscroll-behavior:auto;scroll-padding-block:4px}
 .story-ending>small{display:none}
 .story-ending h2{font-size:22px;margin:0}
 .story-ending .ending-actions{margin-top:8px;gap:4px}
 .story-ending .ending-actions>button,.story-ending .ending-briefing{font-size:10px;padding:8px 6px}
 .story-ending .story-finish{margin-top:6px;gap:6px;font-size:9px}
 .story-ending .story-finish select{flex:1;min-width:0;max-width:none}
 .story-ending :is(button,select,a){scroll-margin-block:4px}
 .story-ending .ending-actions>:focus-visible,.story-ending .story-finish :focus-visible{outline-offset:-3px}
}

/* Keep chapter names visible on narrow layouts without shrinking touch targets. */
.story-current-chapter{display:none}
@media(max-width:700px){.story-current-chapter{display:block;position:absolute;right:0;bottom:calc(100% + 7px);padding:5px 8px;background:#131618eb;color:#f3f4f2;font:10px monospace;pointer-events:none}.story-chapters{gap:4px}.story-chapters button{padding-inline:2px}}
@media(max-width:370px){.story-chapters{gap:2px}}

/* Compact payload cards leave room to see the underwing artwork. */
@media(max-width:700px) and (max-height:560px) and (orientation:portrait){
 .story-feature.is-payload{min-height:0;padding:12px 16px}
 .story-feature.is-payload .feature-index{display:none}
 .story-feature.is-payload h2{font-size:22px;margin-bottom:8px}
 .story-feature.is-payload p{font-size:12px;line-height:1.35}
}

/* The closing view gives the aircraft and finish controls separate columns. */
@media(max-height:550px) and (orientation:landscape){
 .story-ending{left:50%;right:16px;top:174px;bottom:64px;display:flex;flex-direction:column;gap:6px;overflow:auto;overscroll-behavior:auto;padding:0 4px 4px;scroll-padding-block:4px}
 .story-ending>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
 .story-ending .story-finish{order:-1;display:flex;flex-wrap:nowrap;gap:6px;padding:0;background:none;font-size:0;flex:none}
 .story-ending .story-finish select{flex:1 1 0;min-width:0;max-width:none;font-size:11px}
 .story-ending .story-compare{flex:1 1 0;min-width:0;padding:6px;font-size:10px;text-align:center}
 .story-ending .ending-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px;flex:none}
 .story-ending .ending-actions>button{grid-column:1;grid-row:1}
 .story-ending .ending-briefing{grid-column:2;grid-row:1}
 .story-ending .ending-actions>a[href="#xq-hero"]{grid-column:1/-1;grid-row:2;padding:4px 0;justify-content:flex-start}
}
@media(max-height:360px) and (orientation:landscape){
 .story-ending{bottom:54px}
 body:has(.story-ending:not([hidden])) .story-current-chapter{left:0;right:auto}
}

/* Lightweight livery camera controls share the existing viewer. */
.story-views{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap;grid-column:1/-1;flex:none}
.story-views button{min-height:44px;padding:10px 12px;border:1px solid #6b7575;background:#eeeeeccf;color:#162624;font:11px sans-serif}
.story-views button[aria-pressed=true]{background:#162624;color:#fff;border-color:#162624}
.story-views button:focus-visible{outline:2px solid #ff6600;outline-offset:-3px}
@media(max-width:700px){.story-views{gap:4px;margin-top:6px;flex-wrap:nowrap}.story-views button{flex:1;min-width:0;padding:8px 5px;font-size:10px}.story-ending>p{display:none}}
@media(max-height:550px){.story-views{margin-top:4px}.story-views button{padding:8px;font-size:10px}}
@media(max-width:700px) and (max-height:650px) and (orientation:portrait){
 .story-ending{top:auto;bottom:86px;max-height:calc(100svh - 280px);display:flex;flex-direction:column;gap:4px;overflow:auto;overscroll-behavior:auto;scroll-padding-block:4px}
 .story-ending>small{display:none}.story-ending>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
 .story-ending .story-finish{order:-2;display:flex;flex-wrap:nowrap;margin:0;gap:6px;font-size:0;flex:none}
 .story-ending .story-finish select{flex:1;min-width:0;max-width:none;font-size:11px;padding:6px}
 .story-ending .story-compare{flex:1;flex-basis:auto;min-width:0;font-size:10px;padding:6px;text-align:center}
 .story-ending .story-views{order:-1;margin:0}
 .story-ending .ending-actions{margin:0;gap:4px;flex:none}
 .story-ending .ending-actions>button,.story-ending .ending-briefing{padding:8px 6px;font-size:10px}
}
/* Keep the closing actions above the chapter rail with the longer headline. */
@media(min-width:701px) and (min-height:551px){
 .story-ending{top:max(196px,28%);bottom:80px;overflow:auto;overscroll-behavior:auto;scroll-padding-block:4px}
 .story-ending h2{font-size:clamp(36px,4.2vw,56px);margin:16px 0}
 .story-ending .ending-actions{margin-top:18px}
 .story-ending .story-finish{margin-top:12px}
 .story-ending .story-views{margin-top:8px}
}

/* More room for the model after the opening, without dismissing the saved notice. */
body.xq-scroll-compact #newsbar{visibility:hidden;pointer-events:none}
body.xq-scroll-compact #nav{top:0;padding-block:8px;min-height:60px;box-sizing:border-box}
body.xq-scroll-compact .story-tools{top:76px}
body.xq-scroll-compact .story-family{top:128px;max-height:calc(100svh - 152px)}
body.xq-scroll-compact #nav .brand{min-height:44px}
body.xq-scroll-compact #nav .burger{width:44px;height:44px}
body.xq-scroll-compact #nav .burger span{left:10px;right:10px}
body.xq-scroll-compact #nav .burger span:nth-child(1){top:13px}
body.xq-scroll-compact #nav .burger span:nth-child(2){top:21px}
body.xq-scroll-compact #nav .burger span:nth-child(3){top:29px}

/* Named chapters remain readable; only this rail scrolls horizontally. */
.story-bottom{display:block}
.story-bottom>#story-next,.story-bottom>.story-current-chapter{display:none}
.story-bottom .story-chapters{width:100%;display:flex;justify-content:flex-start;gap:4px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-padding-inline:4px;padding:4px 0}
.story-bottom .story-chapters button{flex:1 0 auto;min-height:44px;min-width:76px;padding:10px 11px;display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.story-bottom .story-chapters small{font:9px monospace;opacity:.65}
.story-bottom .story-chapters span,.story-bottom .story-chapters button[aria-current=step] span{display:inline;margin:0;font:11px sans-serif}
.story-bottom .story-chapters button:focus-visible{outline-offset:-3px}
@media(max-width:700px){
 .story-bottom .story-chapters button{flex:0 0 auto;min-width:96px}
 .story-bottom .story-chapters small{display:none}
}
@media(max-height:600px){body.xq-scroll-compact .story-family{top:12px;max-height:calc(100svh - 24px)}}
@media(max-height:550px){
 body.xq-scroll-compact .story-ending{top:130px}
 body.xq-scroll-compact .story-feature{top:136px}
}

/* Flag tiles keep the selected finish legible without opening a menu. */
.story-ending .story-finish{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:7px;font-size:11px;max-width:420px}
.story-ending .story-finish select[hidden]{display:none!important}
.story-ending .story-finish .story-compare{flex:none;min-height:44px;padding:7px 10px;font-size:10px;text-align:center}
@media(min-width:701px) and (min-height:551px){.story-ending:has(.livery-picker){top:max(160px,20%)}.story-ending:has(.livery-picker) h2{font-size:clamp(32px,3.5vw,48px);margin:10px 0}.story-ending:has(.livery-picker) .ending-actions{margin-top:12px}}
@media(max-width:700px){.story-ending .story-finish{max-width:none;padding:0;background:none}.story-ending .livery-picker{font-size:10px}.story-ending:has(.livery-picker) h2{font-size:28px;margin:8px 0}.story-ending:has(.livery-picker){max-height:calc(100svh - 280px);overflow:auto;overscroll-behavior:auto}}
@media(max-height:550px) and (orientation:landscape){.story-ending:has(.livery-picker){top:132px;max-height:none}.story-ending .story-finish{gap:5px}.story-ending .livery-picker-heading{margin-bottom:4px}}

/* Content-sized chapter notes leave the aircraft visible around the copy. */
@media(min-width:701px) and (min-height:551px){
 .story-feature:not(.is-livery){top:auto;bottom:17%;left:5%;width:min(370px,33%);min-height:0;padding:28px 30px;border-radius:2px;box-shadow:none}
 .story-feature:not(.is-livery) .feature-index{font-size:10px;margin-bottom:20px}
 .story-feature:not(.is-livery) h2{font-size:clamp(28px,2.6vw,38px);line-height:1.1;margin-bottom:16px}
 .story-feature:not(.is-livery) p{font-size:17px;line-height:1.45;max-width:30ch}
 .story-feature:not(.is-livery) .feature-detail{font-size:9px;margin-top:22px}
}
@media(min-width:701px) and (max-width:1000px) and (min-height:551px){
 .story-feature:not(.is-livery){padding:22px 24px}
 .story-feature:not(.is-livery) .feature-index{margin-bottom:16px}
 .story-feature:not(.is-livery) p{font-size:16px}
 .story-feature:not(.is-livery) .feature-detail{margin-top:18px}
}

/* Reserve a clear aircraft view between the toolbar and short portrait controls. */
@media(max-width:700px) and (min-height:551px) and (max-height:650px) and (orientation:portrait) and (max-aspect-ratio:4/5){
 .story-ending:has(.livery-picker){max-height:calc(100svh - 340px)}
}

@media(min-width:701px) and (min-height:551px){.story-ending:has(.livery-picker[data-columns="3"]){top:max(132px,17%)}}
