/* Every layout change is scoped to Current VI. No archival texture is fabricated. */
[data-current="scaling-wars"]{--sw-bronze:#966b31;--sw-ink:#102b38;--sw-muted:#665c49;--sw-rule:#baa47e}
[data-current="scaling-wars"] .hero{background:linear-gradient(125deg,#081b25,#183742);position:relative;overflow:hidden;border-bottom:2px solid #ad8750}
[data-current="scaling-wars"] .hero h1{font-size:clamp(3rem,6vw,5.5rem);line-height:1.02;max-width:12ch;letter-spacing:-.025em}
[data-current="scaling-wars"] .hero .subtitle{max-width:28ch;font-size:clamp(1.2rem,2vw,1.65rem)}
[data-current="scaling-wars"] .orientation{border-left:1px solid #ad8750;padding-left:1.5rem;align-self:center}
[data-current="scaling-wars"] .orientation span{letter-spacing:.03em}
[data-current="scaling-wars"] .narrative-section>header,[data-current="scaling-wars"] .narrative-section>.reader{margin-inline:0}
[data-current="scaling-wars"] .narrative-section>header .scanner{font-size:1.1rem;line-height:1.55;max-width:54ch;color:#4f5c54}
[data-current="scaling-wars"] .movement-marker{font-size:.7rem;padding-block:.65rem;border-top:1px solid var(--sw-rule);margin-bottom:1rem}
[data-current="scaling-wars"] .sw-movement-intro{max-width:40rem;margin:0 0 1.5rem;padding:.8rem 0;border-top:1px solid var(--sw-rule)}
[data-current="scaling-wars"] .sw-movement-intro>.eyebrow{font-size:.63rem;line-height:1.45;margin:0}
[data-current="scaling-wars"] .sw-movement-intro>p:last-child{font-size:.95rem;line-height:1.5;margin:.4rem 0 0;max-width:60ch}
[data-current="scaling-wars"] .chapter-number{min-width:2ch;width:auto;font-size:.66rem}
[data-current="scaling-wars"] .index-movement:first-child li:first-child .chapter-number,[data-current="scaling-wars"] .index-movement:last-child li:last-child .chapter-number{font-size:.56rem}
[data-current="scaling-wars"] .narrative-section:focus-visible{outline:2px solid #b58a45;outline-offset:6px}
[data-current="scaling-wars"][data-chapter-input="pointer"] .narrative-section:focus{outline:none}
[data-current="scaling-wars"] .sw-document{max-width:40rem;margin:1.6rem 0;padding:.8rem 0 .5rem 1rem;border-left:2px solid var(--sw-bronze);overflow-wrap:anywhere}
[data-current="scaling-wars"] .sw-document>.eyebrow{font-size:.66rem;margin:0 0 .3rem}
[data-current="scaling-wars"] .sw-document h3{font-size:1.12rem;line-height:1.3;margin:.25rem 0 .5rem}
[data-current="scaling-wars"] .sw-document>p:not(.eyebrow):not(.sw-refs){font-size:.9rem;line-height:1.55;margin:.5rem 0;max-width:65ch}
[data-current="scaling-wars"] .sw-document-link{display:inline-flex;align-items:center;min-height:44px;font-size:.83rem;text-underline-offset:3px}
[data-current="scaling-wars"] .sw-refs{font-size:.75rem;margin:.4rem 0 .2rem;line-height:1.5}
[data-current="scaling-wars"] :is(.sw-document,.sw-photo) details{border:0;padding:0;font-size:.78rem}
[data-current="scaling-wars"] :is(.sw-document,.sw-photo) summary{font-size:.76rem;cursor:pointer;font-weight:normal;min-height:44px;padding:10px 0;box-sizing:border-box;color:var(--sw-muted)}
[data-current="scaling-wars"] .sw-document-preview pre{max-height:300px;overflow:auto;padding:1rem;background:#fcfaf4;border:1px solid var(--sw-rule);font:.72rem/1.55 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
[data-current="scaling-wars"] .sw-photo{display:grid;grid-template-columns:190px minmax(0,1fr);max-width:40rem;align-items:start;gap:22px;margin:2rem 0;padding:1rem 0;border-block:1px solid var(--sw-rule)}
[data-current="scaling-wars"] .sw-photo>img{display:block;width:190px;max-width:100%;height:auto;object-fit:contain}
[data-current="scaling-wars"] .sw-photo h3{font-size:1.15rem;margin:.4rem 0}
[data-current="scaling-wars"] .sw-photo figcaption>p{font-size:.87rem;line-height:1.55;margin:.5rem 0}
[data-current="scaling-wars"] .sw-photo .eyebrow{font-size:.65rem}
[data-current="scaling-wars"] .sw-photo .sw-credit{font-size:.73rem}
[data-current="scaling-wars"] .sw-checksum{font-size:.65rem;word-break:break-all}
[data-current="scaling-wars"] .sw-exhibit{margin:2rem 0;padding:22px;border-block:2px solid var(--sw-bronze);background:#ede5d5;overflow-wrap:anywhere;max-width:60rem}
[data-current="scaling-wars"] .sw-exhibit header{max-width:65ch}
[data-current="scaling-wars"] .sw-exhibit header>.eyebrow{font-size:.63rem;line-height:1.5;letter-spacing:.08em}
[data-current="scaling-wars"] .sw-exhibit h3{font-size:clamp(1.5rem,2.6vw,2rem);line-height:1.18;margin:.4rem 0 .7rem}
[data-current="scaling-wars"] .sw-exhibit h4{font-size:1.25rem;line-height:1.3;margin:.6rem 0}
[data-current="scaling-wars"] .sw-exhibit p{font-size:.93rem;line-height:1.6;max-width:66ch;margin:.7rem 0}
[data-current="scaling-wars"] .sw-exhibit [hidden]{display:none!important}
[data-current="scaling-wars"] .sw-controls{display:flex;flex-wrap:wrap;gap:6px;margin:1rem 0}
[data-current="scaling-wars"] .sw-exhibit :is(button,select){min-height:44px;padding:9px 12px;background:#faf6ec;border:1px solid #9e865e;color:var(--sw-ink);font:inherit;font-size:.82rem;cursor:pointer;max-width:100%;box-sizing:border-box}
[data-current="scaling-wars"] .sw-exhibit button[aria-pressed="true"]{background:var(--sw-ink);color:#ffe5b4;box-shadow:inset 0 -3px #b99051}
[data-current="scaling-wars"] .sw-exhibit .sw-mobile-select{display:none}
[data-current="scaling-wars"] .sw-panel{padding:.5rem 0}
[data-current="scaling-wars"] :is(a,button,select,summary):focus-visible{outline:3px solid #b38642;outline-offset:3px}
[data-current="scaling-wars"] .sw-fork-drawing{padding:14px 0;margin:.7rem 0;border-block:1px solid #b8a281}
[data-current="scaling-wars"] .sw-chain{display:flex;align-items:center;gap:10px;margin:12px 0;min-width:0}
[data-current="scaling-wars"] .sw-chain-label{font-size:.79rem;line-height:1.4;flex:1;max-width:22ch}
[data-current="scaling-wars"] .sw-block{display:block;flex:none;width:38px;height:34px;position:relative;background:#1b3b49;border:1px solid #0c202a;box-shadow:3px -3px 0 #aab5b7}
[data-current="scaling-wars"] .sw-block+.sw-block::before{content:'';position:absolute;width:10px;border-top:1px solid #8e744b;left:-11px;top:50%}
[data-current="scaling-wars"] .sw-bronze .sw-block{background:#b28a4e;border-color:#745321;box-shadow:3px -3px 0 #d5bd96}
[data-current="scaling-wars"] .sw-chain-end{font-size:1.3rem}
[data-current="scaling-wars"] .sw-branches{border-left:2px solid var(--sw-bronze);padding-left:14px}
[data-current="scaling-wars"] .sw-cancelled-path{border-left:2px dashed var(--sw-bronze);padding:8px 14px;color:var(--sw-muted)}
[data-current="scaling-wars"] .sw-boundaries{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:1rem 0}
[data-current="scaling-wars"] :is(.sw-boundaries,.sw-power-record) dt{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:#75532a;margin:.6rem 0}
[data-current="scaling-wars"] :is(.sw-boundaries,.sw-power-record) dd{font-size:.88rem;line-height:1.55;margin:0}
[data-current="scaling-wars"] .sw-result{padding:10px 14px;border-left:3px solid #697b60;background:#f8f5eb}
[data-current="scaling-wars"] .sw-result.sw-rejected{border-color:#9b4c36;background:#f3dfd1}
[data-current="scaling-wars"] .sw-activation-layout{display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,1.65fr);gap:24px;align-items:start}
[data-current="scaling-wars"] .sw-activation-layout>.sw-controls{display:grid;gap:0;border-left:1px solid var(--sw-bronze)}
[data-current="scaling-wars"] .sw-activation-layout>.sw-controls button{text-align:left;border:0;border-bottom:1px solid #b8a281;background:transparent;line-height:1.4}
[data-current="scaling-wars"] .sw-activation-layout>.sw-controls button[aria-pressed="true"]{background:#193845;color:#ffe5b4}
[data-current="scaling-wars"] .sw-activation-panels{padding-top:.7rem}
[data-current="scaling-wars"] .sw-note{font-size:.76rem!important;color:var(--sw-muted);border-top:1px solid var(--sw-rule);padding-top:10px;margin-top:1rem!important}
[data-current="scaling-wars"] #sw-authority{background:#102b38;color:#f4ecdb}
[data-current="scaling-wars"] #sw-authority :is(h3,h4,a,.eyebrow,dt){color:#ebc88c}
[data-current="scaling-wars"] #sw-authority .sw-note{color:#d2c4ab}
[data-current="scaling-wars"] #sw-authority button{background:transparent;color:#f4ecdb;border-color:#7f8c83}
[data-current="scaling-wars"] #sw-authority button[aria-pressed="true"]{background:#d8b77e;color:#102b38}
[data-current="scaling-wars"] .sw-power-record{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}
[data-current="scaling-wars"] .sw-power-record>div:last-child{grid-column:1/-1;border-top:1px solid #779085;padding-top:.5rem}
[data-current="scaling-wars"] .sw-exhibit .sw-refs{font-size:.75rem}
[data-current="scaling-wars"] .chapter-footer .footer-context{display:none}
[data-current="scaling-wars"] .chapter-footer a{min-height:44px}
[data-current="scaling-wars"] .exhibition-body{padding-bottom:calc(var(--chapter-footer-height,80px) + 24px)}
html:has(body[data-current="scaling-wars"]){scroll-padding-bottom:calc(var(--chapter-footer-height,80px) + 16px)}
@media(max-width:899px){
 [data-current="scaling-wars"] .exhibition-layout{display:block;padding-inline:clamp(1.25rem,6vw,5rem)}
 [data-current="scaling-wars"] .exhibition-body{padding-inline:0}
 [data-current="scaling-wars"] .exhibition-body>.current-position{margin-inline:calc(-1 * clamp(1.25rem,6vw,5rem));padding-inline:6vw}
 [data-current="scaling-wars"] .chapter-rail{position:static;max-height:none;overflow:visible;margin-inline:calc(-1 * clamp(1.25rem,6vw,5rem));padding:0 6vw}
 [data-current="scaling-wars"] .index-disclosure>summary{pointer-events:auto;min-height:44px;margin:0}
 [data-current="scaling-wars"] .index-disclosure>summary::after{display:block}
 [data-current="scaling-wars"] .index-disclosure:not([open])>nav{display:none}
 [data-current="scaling-wars"] .chapter-rail nav{padding:1rem 0;max-height:65dvh;overflow:auto}
 [data-current="scaling-wars"] .chapter-rail nav::before,[data-current="scaling-wars"] .chapter-rail a::before{display:none}
 [data-current="scaling-wars"] .chapter-rail a{min-height:44px;align-items:center;font-size:.85rem;padding-right:34px}
}
@media(max-width:600px){
 [data-current="scaling-wars"] .sw-exhibit{padding:16px;margin-block:1.6rem}
 [data-current="scaling-wars"] .sw-exhibit p{font-size:.88rem;line-height:1.5}
 [data-current="scaling-wars"] .sw-exhibit .sw-controls:not([hidden]){display:none}
 [data-current="scaling-wars"] .sw-exhibit .sw-mobile-select:not([hidden]){display:grid;gap:8px;font-size:.8rem;margin:1rem 0}
 [data-current="scaling-wars"] .sw-mobile-select select{width:100%;font-size:.85rem}
 [data-current="scaling-wars"] :is(.sw-activation-layout,.sw-boundaries,.sw-power-record){grid-template-columns:1fr;gap:12px}
 [data-current="scaling-wars"] .sw-activation-panels{padding-top:0}
 [data-current="scaling-wars"] .sw-chain{gap:8px}
 [data-current="scaling-wars"] .sw-block{width:26px;height:26px;box-shadow:2px -2px 0 #aab5b7}
 [data-current="scaling-wars"] .sw-chain-label{font-size:.76rem}
 [data-current="scaling-wars"] .sw-photo{grid-template-columns:125px minmax(0,1fr);gap:14px}
 [data-current="scaling-wars"] .sw-photo>img{width:125px}
 [data-current="scaling-wars"] .sw-photo figcaption>p{font-size:.8rem}
 [data-current="scaling-wars"] .sw-photo .sw-credit{font-size:.69rem}
 [data-current="scaling-wars"] .sw-photo h3{font-size:1.05rem}
 [data-current="scaling-wars"] .chapter-footer{gap:.6rem;padding:6px 12px calc(6px + env(safe-area-inset-bottom))}
 [data-current="scaling-wars"] .chapter-footer a{flex:1;max-width:50%;min-width:0;min-height:48px;padding:4px;gap:4px}
 [data-current="scaling-wars"] .chapter-footer .footer-title{font-size:.8rem;line-height:1.25}
 [data-current="scaling-wars"] .chapter-footer .footer-direction{font-size:.72rem}
}
@media(prefers-reduced-motion:reduce){[data-current="scaling-wars"] *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Second pass: a modestly wider manuscript, with separately sized exhibits. */
@media(min-width:1100px){
 [data-current="scaling-wars"] .narrative-section>.reader,[data-current="scaling-wars"] .narrative-section>header{max-width:40rem}
 [data-current="scaling-wars"] .reader p{font-size:1.02rem;line-height:1.72}
}
[data-current="scaling-wars"] .index-movement{padding-top:12px;margin-bottom:19px;border-top:1px solid #9d977a55}
[data-current="scaling-wars"] .index-movement h3{font-size:.67rem;line-height:1.45;color:#dfc38f;letter-spacing:.08em;margin-bottom:9px}
[data-current="scaling-wars"] .index-movement:has(a[aria-current]) h3{color:#fff1cb}
[data-current="scaling-wars"] .chapter-rail a[aria-current]{background:#e9c58616;box-shadow:inset 2px 0 #dab270;padding-left:5px}
[data-current="scaling-wars"] .chapter-rail a{min-height:32px}
[data-current="scaling-wars"] .sw-archive{max-width:43rem;margin:1.8rem 0;padding:1.1rem 0;border-block:1px solid var(--sw-rule)}
[data-current="scaling-wars"] .sw-archive-records{display:grid;gap:1.2rem}
[data-current="scaling-wars"] .sw-archive h3{font-size:1.2rem;line-height:1.3;margin:.4rem 0 .7rem}
[data-current="scaling-wars"] .sw-archive p{font-size:.86rem;line-height:1.55;margin:.6rem 0}
[data-current="scaling-wars"] .sw-archive .eyebrow{font-size:.64rem;letter-spacing:.07em}
[data-current="scaling-wars"] .sw-archive blockquote{border-left:2px solid var(--sw-bronze);padding:.35rem 0 .35rem 1rem;margin:1rem 0}
[data-current="scaling-wars"] .sw-archive blockquote p{font-size:1.08rem;line-height:1.5;margin:0 0 .5rem}
[data-current="scaling-wars"] .sw-archive cite{display:block;font-size:.7rem;line-height:1.4;font-style:normal;color:var(--sw-muted)}
[data-current="scaling-wars"] .sw-archive-significance{color:#465549}
[data-current="scaling-wars"] .sw-archive details{border:0;padding:0;font-size:.75rem}
[data-current="scaling-wars"] .sw-archive summary{min-height:44px;padding:10px 0;font-size:.75rem;color:var(--sw-muted)}
[data-current="scaling-wars"] .sw-archive-comparison{max-width:52rem}
@media(min-width:1100px){[data-current="scaling-wars"] .sw-archive-comparison .sw-archive-records{grid-template-columns:1fr 1fr;gap:1.5rem}[data-current="scaling-wars"] .sw-archive-comparison .sw-archive-record+article{border-left:1px solid var(--sw-rule);padding-left:1.5rem}}

[data-current="scaling-wars"] #sw-activation{padding:18px 20px}
[data-current="scaling-wars"] .sw-diagram-disclosure{display:none;border:0;padding:0;margin:1rem 0}
[data-current="scaling-wars"] .sw-diagram-enhanced .sw-diagram-disclosure{display:block}
[data-current="scaling-wars"] .sw-diagram-disclosure>summary{font-size:.78rem;min-height:44px;padding:12px 0;color:#735129}
[data-current="scaling-wars"] .sw-branch-diagram{position:relative;isolation:isolate;padding:0;--sw-path-color:#74613d}
[data-current="scaling-wars"] .sw-connections{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible;pointer-events:none}
[data-current="scaling-wars"] .sw-connections path{fill:none;stroke:#8b8b7c;stroke-width:1.5}
[data-current="scaling-wars"] .sw-connections .sw-edge-planned{stroke-dasharray:4 4}
[data-current="scaling-wars"] .sw-connections .sw-edge-related{stroke:#815c25;stroke-width:2.5}
[data-current="scaling-wars"] .sw-months{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-left:142px;border-bottom:1px solid #b5a387;padding:0 0 8px;font-size:.57rem;text-transform:uppercase;letter-spacing:.04em;color:#655943}
[data-current="scaling-wars"] .sw-path{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid #b5a38766;position:relative}
[data-current="scaling-wars"] .sw-path h4{font-size:.75rem;line-height:1.3;margin:.3rem 0;color:var(--sw-path-color)}
[data-current="scaling-wars"] .sw-path h4>span{display:block;font-size:.56rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.25rem}
[data-current="scaling-wars"] .sw-path h4>small{display:block;font-size:.61rem;line-height:1.4;font-weight:normal;margin-top:.3rem;color:#645c4e}
[data-current="scaling-wars"] .sw-path-events{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 9px;align-items:center;min-height:53px}
[data-current="scaling-wars"] .sw-path-events .sw-milestone{grid-column:var(--sw-slot);grid-row:1;position:relative;min-height:54px;padding:5px 4px;font-size:.7rem;line-height:1.25;border:1px solid #a39478;border-left:3px solid var(--sw-path-color);background:#f8f3e8;text-align:left;width:100%}
[data-current="scaling-wars"] .sw-milestone time{display:block;font-size:.58rem;line-height:1.25;color:#655b49;margin-bottom:3px}
[data-current="scaling-wars"] .sw-milestone:is([data-sw-node="nya"],[data-sw-node="active91"],[data-sw-node="active141"]){grid-row:2}
[data-current="scaling-wars"] .sw-path-events .sw-milestone[aria-pressed="true"]{background:#102b38;color:#ffebc3}
[data-current="scaling-wars"] .sw-milestone[aria-pressed="true"] time{color:#e6d1a9}
[data-current="scaling-wars"] .sw-path-related h4{font-weight:bold}
[data-current="scaling-wars"] .sw-connected-event{outline:1px solid var(--sw-path-color);outline-offset:2px}
[data-current="scaling-wars"] [data-sw-path="a"]{--sw-path-color:#826637}
[data-current="scaling-wars"] [data-sw-path="b"]{--sw-path-color:#365b68}
[data-current="scaling-wars"] [data-sw-path="c"]{--sw-path-color:#4a674c}
[data-current="scaling-wars"] [data-sw-path="d"]{--sw-path-color:#97563d}
[data-current="scaling-wars"] [data-sw-path="e"]{--sw-path-color:#62566f}
[data-current="scaling-wars"] .sw-path-events .sw-proposal{grid-column:2 / span 2;grid-row:1;max-width:145px;font-size:.63rem;line-height:1.3;padding:6px;background:#ede5d5;border:1px dashed #80728b;margin:0}
[data-current="scaling-wars"] .sw-path-events .sw-chain-continuation{grid-column:5 / span 2;font-size:.65rem;line-height:1.4;color:#87513e;margin:0}
[data-current="scaling-wars"] #sw-activation .sw-diagram-key{font-size:.68rem;line-height:1.5;color:#665c49;margin:.6rem 0}
[data-current="scaling-wars"] #sw-activation .sw-selection{font-size:.68rem;line-height:1.4;color:#6f552c;margin:.7rem 0 .3rem}
[data-current="scaling-wars"] #sw-activation .sw-activation-panels{padding:0;border-top:1px solid #b5a387}
[data-current="scaling-wars"] #sw-activation .sw-panel{padding:.5rem 0}
[data-current="scaling-wars"] #sw-activation .sw-path-label{font-size:.7rem;line-height:1.5;color:#655633}
[data-current="scaling-wars"] #sw-activation .sw-panel>p{max-width:78ch;font-size:.86rem;line-height:1.5}
[data-current="scaling-wars"] #sw-activation .sw-panel>.eyebrow{font-size:.63rem}
[data-current="scaling-wars"] .sw-chapter-link{display:inline-flex;min-height:44px;align-items:center;font-size:.74rem}
[data-current="scaling-wars"] #sw-activation>header{max-width:80ch}
[data-current="scaling-wars"] .sw-path h4>small{display:none}
[data-current="scaling-wars"] .sw-mobile-key{display:none}
[data-current="scaling-wars"] #sw-activation .sw-selection{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:601px) and (max-width:1199px){
 [data-current="scaling-wars"] .sw-months{margin-left:110px;gap:6px}
 [data-current="scaling-wars"] .sw-path{grid-template-columns:100px minmax(0,1fr);gap:10px}
 [data-current="scaling-wars"] .sw-path-events{gap:8px 6px}
 [data-current="scaling-wars"] .sw-path-events .sw-milestone{font-size:.61rem;padding:5px 3px}
}
@media(max-width:600px){
 [data-current="scaling-wars"] #sw-activation{padding:16px}
 [data-current="scaling-wars"] .sw-connections,[data-current="scaling-wars"] .sw-months{display:none}
 [data-current="scaling-wars"] .sw-desktop-key{display:none}
 [data-current="scaling-wars"] .sw-mobile-key{display:inline}
 [data-current="scaling-wars"] .sw-path{display:block;padding:10px 0 12px;border-left:2px solid var(--sw-path-color);padding-left:12px;margin:10px 0}
 [data-current="scaling-wars"] .sw-path h4{font-size:.85rem;margin:0 0 8px}
 [data-current="scaling-wars"] .sw-path h4>span{display:inline;margin-right:7px}
 [data-current="scaling-wars"] .sw-path h4>small{display:none}
 [data-current="scaling-wars"] .sw-path-events{grid-template-columns:1fr 1fr;gap:8px}
 [data-current="scaling-wars"] .sw-path-events .sw-milestone{grid-column:auto;grid-row:auto;font-size:.75rem;min-height:52px;padding:6px}
 [data-current="scaling-wars"] .sw-milestone time{font-size:.62rem}
 [data-current="scaling-wars"] .sw-path-events .sw-proposal,[data-current="scaling-wars"] .sw-path-events .sw-chain-continuation{grid-column:auto;grid-row:auto;font-size:.7rem}
 [data-current="scaling-wars"] .sw-path-events .sw-proposal{max-width:none}
 [data-current="scaling-wars"] .chapter-rail a{min-height:44px}
}
