:root{--paper:#f4f3eb;--white:#fffef9;--ink:#263e36;--muted:#728071;--line:#dce0d3;--green:#315e4e;--red:#a94f3c;--blue:#3d8299;--gold:#a38239;--serif:'Songti SC','STSong',serif;--sans:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--paper);font:14px/1.7 var(--sans);color:var(--ink)}button,input,select{font:inherit;color:inherit}button{cursor:pointer}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,svg:focus-visible{outline:2px solid var(--green);outline-offset:3px}button:disabled{opacity:.35;cursor:default}[hidden]{display:none!important}.app-header{height:78px;display:flex;align-items:center;gap:36px;padding:0 26px;background:var(--white);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font:500 25px var(--serif);letter-spacing:3px;min-width:350px}.seal{font:15px/1.1 var(--serif);color:var(--red);padding:4px 5px;border:1px solid var(--red);letter-spacing:0;transform:rotate(-3deg)}.brand small{display:block;font:10px/1.6 var(--sans);letter-spacing:1px;color:var(--muted);margin-top:4px}.chapter{display:flex;align-items:center;gap:15px;flex:1}.chapter>span,.chapter small{font-size:10px;color:var(--muted);letter-spacing:1px}.chapter strong{font:500 19px var(--serif)}.text-button{border:0;background:none;color:var(--muted);font-size:11px;padding:6px 0}.text-button:hover{color:var(--green)}.workspace{display:grid;grid-template-columns:440px minmax(0,1fr);height:calc(100dvh - 240px);min-height:500px}.story-panel{background:var(--white);border-right:1px solid var(--line);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c4cebc transparent}.story-navigation{display:flex;align-items:center;justify-content:space-between;padding:12px 24px 8px;position:sticky;top:0;background:var(--white);z-index:5}.story-navigation #event-count{background:var(--paper);padding:2px 5px;font-size:10px;margin-left:4px}.stepper{display:flex;align-items:center;gap:9px;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.stepper button{border:1px solid var(--line);background:none;border-radius:50%;width:26px;height:26px;line-height:20px;font-size:21px;padding:0}#story{padding:10px 24px 30px}.eyebrow,.story-time{font-size:10px;color:var(--muted);letter-spacing:.5px}.story-time{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.kind{border:1px solid var(--line);padding:0 6px}.story-title{font:500 27px/1.4 var(--serif);letter-spacing:.5px;margin:11px 0 7px}.story-summary{font-size:12px;color:#65725f;margin:0 0 13px}.spatial-role{font-size:10px;line-height:1.6;color:var(--muted);padding:8px 10px;background:var(--paper);margin:10px 0}.story-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin-bottom:15px}.story-tabs button{border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font-size:12px;padding:9px 0}.story-tabs button[aria-selected=true]{border-bottom-color:var(--green);color:var(--green)}.reading-hint{font-size:10px;color:var(--muted);margin:0 0 10px}.causal-card{display:block;width:100%;border:1px solid var(--line);border-left:3px solid transparent;background:none;text-align:left;padding:12px 13px;margin-bottom:9px;border-radius:3px}.causal-card:hover{background:var(--paper)}.causal-card[aria-pressed=true]{background:#edf2e9;border-color:#bdcdb8;border-left-color:var(--green)}.step-top{display:flex;gap:9px;align-items:center}.step-number{font-size:10px;color:var(--muted);min-width:17px}.step-label{font-size:10px;color:var(--muted);white-space:nowrap}.step-title{font:500 15px/1.55 var(--serif);display:block;margin:3px 0 0 26px}.step-body{font-size:12px;line-height:1.85;display:none;margin:9px 0 0 26px;color:#415548}.causal-card[aria-pressed=true] .step-body{display:block}.step-badge{font-size:9px;border:1px solid #cad3c2;border-radius:2px;padding:0 4px;margin-left:auto;white-space:nowrap}.step-badge.analysis{color:#8c7036;border-color:#d6c99d}.anchor-section{margin:14px 0}.section-label{display:block;font-size:10px;color:var(--muted);margin-bottom:6px;letter-spacing:.8px}.anchor-chips{display:flex;gap:6px;flex-wrap:wrap}.anchor-chips button{border:1px solid #cbd6c2;background:var(--white);font-size:10px;padding:4px 8px;border-radius:4px}.anchor-chips button:hover{background:var(--paper)}.active-explanation{font-size:10px;color:var(--muted);margin:8px 0}.source-links{margin:13px 0 5px;padding-top:12px;border-top:1px solid var(--line)}.source-links a{display:block;text-decoration:none;font-size:10px;margin:5px 0}.evidence-card{padding:14px 0;border-bottom:1px solid var(--line)}.evidence-card h3{font-size:12px;font-weight:500;margin:0 0 8px}.evidence-card p{font-size:12px;line-height:1.95;margin:0 0 8px;color:#455648}.evidence-kind{font-size:9px;color:var(--muted);margin-bottom:5px}.evidence-card a{display:block;font-size:10px;margin:6px 0;text-decoration:none}.photo{margin:20px 0 12px}.photo img{width:100%;max-height:180px;object-fit:cover;display:block;border-radius:3px;filter:sepia(.15)}.photo figcaption{font-size:10px;line-height:1.6;color:var(--muted);margin-top:7px}.politics-copy{font-size:13px;line-height:1.95}.related-card{display:block;width:100%;border:1px solid var(--line);background:none;padding:11px 12px;text-align:left;margin:9px 0;border-radius:4px}.related-card:hover{background:var(--paper)}.related-card small{display:block;color:var(--muted);font-size:10px}.related-card strong{display:block;font-size:13px;font-weight:500;margin:3px 0}.related-card p{font-size:11px;line-height:1.65;color:var(--muted);margin:4px 0 0}.reflection-box{border-top:2px solid #bda66e;background:#f5f0e1;padding:15px;margin-top:23px}.reflection-box h3{font:500 17px var(--serif);margin:0 0 10px}.reflection-box h4{font-size:11px;margin:13px 0 4px;font-weight:500}.reflection-box p{font-size:12px;line-height:1.9;margin:0}.reflection-box .limit{font-size:11px;color:#7d7255}.thought{font:15px/1.8 var(--serif);padding:15px 0;margin:10px 0;border-bottom:1px solid var(--line)}
.map-panel{position:relative;background:#dce8e3;overflow:hidden;min-width:0;isolation:isolate}.map-toolbar{position:absolute;left:17px;top:17px;right:62px;display:flex;gap:7px;align-items:center;flex-wrap:wrap;z-index:6}.segmented{display:flex;padding:3px;background:var(--white);border:1px solid #d2ddce;border-radius:5px;box-shadow:0 2px 8px #264a3410}.segmented button{border:0;background:none;font-size:11px;color:var(--muted);padding:5px 10px;border-radius:3px}.segmented button[aria-pressed=true]{background:var(--green);color:var(--white)}.tool-button{border:1px solid #d2ddce;background:var(--white);font-size:11px;padding:7px 10px;border-radius:5px;white-space:nowrap}.place-search{display:flex;background:var(--white);border:1px solid #d2ddce;border-radius:5px;overflow:hidden}.place-search input{border:0;background:none;width:135px;font-size:11px;padding:8px 9px;min-width:0}.place-search button{border:0;background:none;font-size:20px;padding:0 9px}.map-status{position:absolute;top:77px;left:20px;z-index:3;max-width:calc(100% - 90px)}.map-status>div{display:flex;flex-direction:column;pointer-events:none}.map-status #map-phase{font-size:9px;color:#66806a;letter-spacing:2px}.map-status strong{font:500 25px/1.4 var(--serif);color:#355e4e}.map-status #map-event{font-size:11px;color:#5d765f;max-width:280px}.follow-toggle{display:flex;align-items:center;gap:5px;font-size:10px;color:#5d765f;margin-top:8px}.follow-toggle input,.layer-menu input{accent-color:var(--green)}#atlas-map{width:100%;height:100%;display:block;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}#atlas-map.dragging{cursor:grabbing}.zoom-tools{position:absolute;right:15px;top:17px;z-index:6;display:grid;border:1px solid #c5d3c5;border-radius:5px;overflow:hidden}.zoom-tools button{border:0;border-bottom:1px solid var(--line);width:32px;height:32px;background:var(--white);font-size:20px;line-height:25px}.zoom-tools button:last-child{border-bottom:0;font-size:17px}.layer-menu{position:absolute;left:150px;top:65px;z-index:12;background:var(--white);padding:15px 18px;border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 25px #203b3225}.layer-menu strong{font-size:11px}.layer-menu label{display:flex;align-items:center;gap:7px;margin-top:9px;font-size:11px}.lens-summary{position:absolute;left:18px;bottom:67px;z-index:4;max-width:330px;width:calc(100% - 250px);padding:13px 15px;background:#fffef9f0;border-left:3px solid var(--green);border-radius:3px;pointer-events:none;box-shadow:0 3px 15px #2547380b}.lens-summary .lens-kicker{font-size:9px;letter-spacing:1px;color:var(--green)}.lens-summary strong{display:block;font:500 16px/1.5 var(--serif);margin:2px 0 5px}.lens-summary p{font-size:10px;line-height:1.8;margin:0;color:#62725e}.lens-summary .evidence-note{margin-top:7px;padding-top:6px;border-top:1px solid #dce2d4;font-size:9px;color:#8b794c}.map-foot{position:absolute;bottom:16px;left:19px;right:190px;pointer-events:none;z-index:3}.legend{display:flex;align-items:center;gap:11px;flex-wrap:wrap;font-size:9px;color:#516e58;margin-bottom:4px}.legend>span{display:flex;align-items:center;gap:5px}.legend i{display:inline-block}.legend .dot{width:6px;height:6px;background:var(--green);border-radius:50%}.legend .line{width:17px;border-top:2px dashed var(--red)}.legend .supply{border-color:var(--blue)}.legend .policy{border-color:var(--gold)}.map-foot p{font-size:8px;line-height:1.5;margin:1px 0;color:#6b806c}.map-tip{position:absolute;right:16px;bottom:6px;font-size:9px;color:#728774;z-index:3}.army-roster{position:absolute;right:15px;bottom:52px;max-width:195px;padding:11px 13px;background:#fffef9f0;border:1px solid #cad4c1;border-radius:5px;z-index:4}.army-roster summary{cursor:pointer;font-size:10px;color:var(--muted)}.army-roster details[open] summary{margin-bottom:7px}.roster-force{display:flex;align-items:flex-start;gap:7px;border:0;background:none;width:100%;text-align:left;padding:5px 0;font-size:10px}.roster-force:hover{color:var(--red)}.roster-force small{display:block;font-size:9px;color:var(--muted)}.roster-symbol{color:var(--red)}.roster-symbol.qing{color:var(--green)}.roster-symbol.boxer{color:var(--gold)}.nations{display:flex;gap:4px;flex-wrap:wrap;margin:6px 0 0}.nations span{border:1px solid #d5c4af;padding:0 4px;font-size:9px;color:#92543d}.roster-note{font-size:9px;color:var(--muted);margin:6px 0 0}.map-selection{position:absolute;right:56px;top:64px;width:260px;max-height:65%;overflow:auto;z-index:11;padding:15px 17px;background:var(--white);border:1px solid var(--line);border-radius:6px;box-shadow:0 9px 28px #24483620}.map-selection>button{float:right;border:0;background:none;font-size:20px;padding:0 0 5px 9px}.map-selection h3{font:500 19px var(--serif);margin:0 0 7px}.map-selection p{font-size:11px;line-height:1.8;color:var(--muted);margin:5px 0 9px}.map-selection .selection-link{display:block;width:100%;border:0;border-top:1px solid var(--line);background:none;text-align:left;padding:8px 0;font-size:11px}.map-selection .selection-link small{display:block;font-size:9px;color:var(--muted)}.map-selection .primary-action{padding:6px 11px;background:var(--green);border:0;border-radius:3px;color:var(--white);font-size:11px}.map-selection .location-note{color:#8e7545;font-size:10px}
svg .country{fill:#e9e6cd;stroke:#a1b28e;stroke-width:.8;vector-effect:non-scaling-stroke;pointer-events:none}svg .qing-land{fill:#eae6c9;stroke:#8d9f7a;stroke-width:1.2}svg .country.neutral{fill:#e6e5d5;stroke:none}svg .graticule{fill:none;stroke:#a7c0ad;stroke-width:.45;opacity:.3;pointer-events:none;vector-effect:non-scaling-stroke}svg .river{fill:none;stroke:#9fbcc0;stroke-width:.8;opacity:.75;pointer-events:none;vector-effect:non-scaling-stroke}svg .river.highlight{stroke:#5f99ac;stroke-width:2;opacity:1}svg .route{fill:none;stroke:var(--red);stroke-width:2.4;stroke-dasharray:8 5;vector-effect:non-scaling-stroke;pointer-events:none}svg .route.supply{stroke:var(--blue);stroke-width:2.7;stroke-dasharray:4 4}svg .route.rail{stroke:#7c7763;stroke-width:2.5;stroke-dasharray:10 3 2 3}svg .route.policy{stroke:var(--gold);stroke-width:1.7;stroke-dasharray:3 7}svg text{font-family:var(--sans);fill:#647259;pointer-events:none}svg .region-label{font:17px var(--serif);letter-spacing:3px;fill:#8b977c;paint-order:stroke;stroke:#e9e7d7;stroke-width:2px}svg .place-dot{fill:#718065;stroke:#f8f6e8;stroke-width:1}svg .place-label{font-size:11px;paint-order:stroke;stroke:#e9e7d7;stroke-width:3px}svg .place-label.focus{fill:var(--green);font-weight:500}svg .city-hit{fill:transparent;stroke:none}svg .event-ring{fill:#fdfbee;stroke:#628160;stroke-width:1.2}svg .event-ring.current{fill:var(--green);stroke:#fffef5;stroke-width:2}svg .event-ring.impact{fill:var(--gold);stroke:#fffef5;stroke-width:1.5}svg .occupation{fill:#efd7c6;stroke:var(--red);stroke-width:1.4}svg .scene-halo{fill:#c4d5aa;fill-opacity:.38;stroke:#8aa476;stroke-width:1;stroke-dasharray:3 4}svg .anchor-number{fill:var(--green);stroke:var(--white);stroke-width:1.5}svg .anchor-text{font-size:9px;fill:var(--white);font-weight:500;text-anchor:middle}svg .focus-ring{fill:none;stroke:var(--gold);stroke-width:1.7;stroke-dasharray:4 3}svg .force-box{fill:#fffaf0;stroke:#c4967a;stroke-width:.8}svg .force-box.qing{stroke:#92a384}svg .force-box.boxer{stroke:#baa361}svg .force-label{font-size:10px;fill:var(--red)}svg .force-label.qing{fill:var(--green)}svg .force-label.boxer{fill:var(--gold)}svg .point-mark{stroke:var(--gold);stroke-width:1.5;fill:none}.map-pin{cursor:grab}.fatal{padding:30px;font-size:15px}
.timeline-panel{height:162px;background:var(--white);border-top:1px solid var(--line);padding:13px 25px 9px}.timeline-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.timeline-heading>div:first-child{display:flex;align-items:center;gap:13px}.timeline-label{font-size:10px;letter-spacing:2px;color:var(--muted)}#timeline-current{font:500 18px var(--serif)}#timeline-current-title{font-size:11px;color:var(--muted)}.timeline-actions{display:flex;align-items:center;gap:12px}.play-button{background:var(--green);border:0;color:var(--white);font-size:11px;min-width:73px;padding:7px 11px;border-radius:3px}.period-label,.speed-label{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px}.period-label select,.speed-label select{font-size:10px;padding:4px;border:1px solid var(--line);background:none;border-radius:3px}.time-slider{width:100%;height:18px;accent-color:var(--green);margin:11px 0 0;cursor:ew-resize}.timeline-marks{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:3px}.timeline-marks button{padding:3px 4px;border:0;background:none;text-align:left;color:var(--muted);font-size:10px;line-height:1.6;border-left:2px solid transparent}.timeline-marks button time{display:block;font-size:9px;font-variant-numeric:tabular-nums}.timeline-marks button[aria-current=true]{border-left-color:var(--green);color:var(--green);background:#f0f3e9}.timeline-caption{display:flex;justify-content:space-between;gap:10px;font-size:8px;color:#8b9687;margin-top:4px}
dialog{max-height:85dvh;overflow:auto;padding:26px;background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:8px;box-shadow:0 15px 70px #173f3538}dialog::backdrop{background:#183b3155;backdrop-filter:blur(3px)}.catalog-dialog{width:min(650px,94vw)}.sources-dialog{width:min(760px,94vw)}.dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}.dialog-head h2{font:500 25px var(--serif);margin:6px 0 0}.dialog-close{border:0;background:none;font-size:24px;color:var(--muted);padding:3px}.event-search{width:100%;padding:10px 12px;background:var(--paper);border:1px solid var(--line);border-radius:4px;font-size:12px}.catalog-item{display:flex;width:100%;gap:14px;align-items:center;background:none;border:0;border-bottom:1px solid var(--line);padding:12px 4px;text-align:left}.catalog-item:hover,.catalog-item.active{background:var(--paper)}.catalog-item time{font-size:10px;color:var(--muted);width:90px;flex-shrink:0}.catalog-item strong{font-size:13px;font-weight:500;flex:1}.catalog-item>span{font-size:10px;color:var(--muted)}.source-intro{font-size:12px;color:#52654e;line-height:1.9}.sources-dialog h3{font-size:13px;font-weight:500;margin:22px 0 8px}.source-item{padding:8px 0;border-bottom:1px solid var(--line);font-size:11px}.source-item span{font-size:9px;color:var(--muted);display:block}.credits{font-size:11px;line-height:1.9;color:var(--muted);padding-left:17px}.credits li{margin:8px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1600px){.workspace{grid-template-columns:470px minmax(0,1fr)}#story{padding:12px 30px 35px}.story-navigation{padding-left:30px;padding-right:30px}.step-body{font-size:13px}}
@media(max-width:1180px){.workspace{grid-template-columns:370px minmax(0,1fr)}.brand{min-width:290px}.chapter>span{display:none}.chapter{gap:10px}#story{padding:9px 20px 25px}.story-navigation{padding-left:20px;padding-right:20px}.story-title{font-size:25px}.lens-summary{max-width:280px;width:calc(100% - 215px);padding:10px 12px}.lens-summary strong{font-size:14px}.army-roster{max-width:170px;padding:10px}.roster-note{display:none}.place-search input{width:112px}.map-toolbar{gap:5px}.tool-button{padding:7px 8px}.timeline-label{display:none}#timeline-current-title{display:none}.map-status{top:113px}.map-selection{top:113px;right:53px}.layer-menu{top:100px}}
@media(max-width:600px){.app-header{height:69px;gap:15px;padding:0 16px}.brand{min-width:0;font-size:22px}.brand small{font-size:8px;letter-spacing:.5px}.chapter{justify-content:flex-end}.chapter strong{font-size:16px}.chapter small{display:none}#source-open{font-size:10px}.workspace{display:flex;flex-direction:column-reverse;height:auto;min-height:0}.map-panel{height:580px;flex-shrink:0;border-bottom:1px solid var(--line)}.story-panel{overflow:visible;border:0}.story-navigation{position:static;padding-top:17px}#story{padding:10px 22px 28px}.story-title{font-size:28px}.causal-card .step-body{font-size:13px}.story-tabs button{font-size:13px}.lens-summary{width:calc(100% - 200px);max-width:350px;bottom:73px}.army-roster{bottom:73px;max-width:170px}.map-status{top:111px}.map-foot{right:15px}.timeline-panel{height:auto;min-height:156px;position:sticky;bottom:0;z-index:15;padding:11px 16px 8px;box-shadow:0 -3px 12px #274b3510}.timeline-actions{gap:8px}.timeline-heading>div:first-child{display:block}#timeline-current{font-size:16px}.period-label{font-size:0}.period-label select{max-width:122px;font-size:10px}.speed-label{display:none}.timeline-marks{gap:3px}.timeline-marks button{font-size:9px}.timeline-marks button time{font-size:8px}.timeline-caption{font-size:8px}.story-tabs{gap:25px}.map-tip{display:none}}
@media(max-width:480px){.app-header{gap:10px}.brand small{max-width:173px}.chapter strong{font-size:14px}.chapter>span{display:none}#source-open{font-size:0}#source-open:after{content:'资料 ↗';font-size:10px}.map-panel{height:565px}.map-toolbar{left:12px;right:50px;top:12px;gap:5px}.place-search input{width:113px;font-size:11px}.place-search button{padding:0 6px}.segmented button{padding:5px 8px}.tool-button{font-size:10px;padding:6px 8px}.map-status{top:105px;left:15px}.map-status strong{font-size:22px}.map-status #map-event{max-width:210px;font-size:10px}.zoom-tools{top:12px;right:11px}.lens-summary{left:12px;bottom:78px;width:calc(100% - 24px);max-width:none;padding:9px 11px}.lens-summary strong{font-size:14px;display:inline;margin-left:7px}.lens-summary p{font-size:9px;line-height:1.7}.lens-summary .evidence-note{font-size:8px;margin-top:5px;padding-top:4px}.lens-summary .lens-kicker{font-size:8px}.army-roster{right:12px;bottom:220px;max-width:170px;padding:8px 10px}.army-roster summary{font-size:9px}.map-foot{bottom:14px;left:14px;right:14px}.legend{gap:9px;font-size:8px}.map-foot p{font-size:8px}.map-selection{top:142px;right:15px;max-height:55%;width:250px}.layer-menu{left:110px;top:96px}.timeline-actions .period-label{display:none}.timeline-marks{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:2px}.timeline-marks button:nth-child(n+5){display:none}.timeline-marks button{font-size:9px}.timeline-caption span:first-child{display:none}.timeline-heading #timeline-current-title{display:block;font-size:9px}.timeline-panel{min-height:142px}.event-search{font-size:14px}.catalog-item{gap:9px}.catalog-item time{width:75px;font-size:9px}.catalog-item strong{font-size:12px}.catalog-item>span{display:none}dialog{padding:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

@media(min-width:601px) and (max-width:1000px){.workspace{display:grid;grid-template-columns:290px minmax(0,1fr);height:calc(100dvh - 240px);min-height:580px}.app-header{padding:0 17px;gap:16px}.brand{min-width:255px;font-size:23px}.brand small{font-size:8px}.chapter strong{font-size:15px}.chapter small{display:none}#source-open{font-size:10px}#story{padding:8px 15px 25px}.story-navigation{padding-left:15px;padding-right:15px}.story-title{font-size:24px}.story-tabs{gap:16px}.story-tabs button{font-size:11px}.causal-card{padding:11px 10px}.step-body{margin-left:0;font-size:12px}.step-title{font-size:14px}.step-badge{font-size:8px}.map-toolbar{left:10px;right:49px;top:12px;gap:5px}.place-search input{width:113px}.segmented button{padding:5px 7px}.tool-button{font-size:10px;padding:6px 8px}.map-status{top:145px;left:13px}.map-status strong{font-size:21px}.map-status #map-event{font-size:10px;max-width:200px}.zoom-tools{right:10px;top:12px}.lens-summary{left:11px;bottom:84px;width:calc(100% - 22px);max-width:none;padding:10px 11px}.lens-summary strong{font-size:14px}.lens-summary p{font-size:9px}.lens-summary .evidence-note{font-size:8px}.army-roster{bottom:228px;right:11px;max-width:168px}.map-foot{left:12px;right:12px;bottom:15px}.map-foot p{font-size:8px}.legend{font-size:8px;gap:8px}.map-tip{display:none}.map-selection{top:142px;right:10px;width:min(260px,calc(100% - 20px));max-height:54%}.layer-menu{top:94px;left:70px}.timeline-heading>div:first-child{display:block}#timeline-current{font-size:16px}.period-label{font-size:0}.period-label select{font-size:10px;max-width:130px}.speed-label{display:none}.timeline-actions{gap:8px}.timeline-marks button{font-size:9px}.timeline-marks button time{font-size:8px}}

@media(min-width:601px) and (max-width:1000px){.map-status{top:58px;left:auto;right:55px;max-width:145px}.map-status>div{display:none}.follow-toggle{margin:0;font-size:9px}}
@media(min-width:601px) and (max-width:1000px){.army-roster:has(details:not([open])){top:100px;bottom:auto}}

/* Quiet physical labels: the historical overlay keeps visual priority. */
svg .terrain-labels{pointer-events:none;user-select:none}
svg .terrain-label{font:12px var(--serif);fill:#696950;paint-order:stroke;stroke:#edeadb;stroke-width:3px;stroke-linejoin:round}
svg .terrain-label.range{letter-spacing:2px}
svg .terrain-label.landform{font-size:11px;letter-spacing:1px;fill:#6b7056}
svg .terrain-label.water{font:italic 11px var(--serif);fill:#486f79;stroke:#e7eadd;stroke-width:3px;letter-spacing:1px}
svg .terrain-label.peak{font:11px var(--sans);fill:#68644c;stroke-width:3px}
svg .terrain-elevation{font:10px var(--sans);font-variant-numeric:tabular-nums;fill:#68644c;paint-order:stroke;stroke:#edeadb;stroke-width:3px}
svg .summit-symbol{fill:none;stroke:#7c795f;stroke-width:1.1;stroke-linejoin:round}

/* The physical surface uses actual elevation, with the atlas's mineral palette. */
svg .relief-surface,svg .relief-image{pointer-events:none}
svg .relief-border{fill:none;stroke:#89977b;stroke-width:.7;stroke-opacity:.66;vector-effect:non-scaling-stroke;pointer-events:none}
.elevation-key{display:flex;align-items:flex-start;gap:8px;max-width:290px;margin:0 0 7px;color:#53644f;font-size:8px;line-height:1.35}
.elevation-key>span{white-space:nowrap}.elevation-key>div{width:208px;max-width:calc(100% - 45px)}
.elevation-key i{display:block;height:6px;border-radius:1px;background:linear-gradient(90deg,#cfdcc0 0%,#dae0c0 2.67%,#e2dec0 6.67%,#dfd2ad 13.33%,#d5c197 26.67%,#c7ad8c 40%,#bfa286 53.33%,#d3c7b2 66.67%,#e7e1d4 80%,#f5f2e8 100%)}
.elevation-ticks{display:flex;justify-content:space-between;font-size:7px;margin-top:3px;font-variant-numeric:tabular-nums}
.map-foot:has(.elevation-key:not([hidden])){bottom:16px}
.lens-summary{bottom:98px}.army-roster{bottom:83px}
svg .place-label{fill:#425b47;stroke:#f0efdf;stroke-opacity:.94}
svg .region-label{fill:#586c51;stroke:#ede9d9;stroke-width:3px;stroke-opacity:.85}
svg .terrain-label,svg .terrain-elevation{stroke:#eee9d8;stroke-opacity:.9}
svg .river{stroke:#86aeb5;opacity:.85}svg .river.highlight{stroke:#497f95;opacity:1}
@media(min-width:601px) and (max-width:1000px){.lens-summary{bottom:112px}.army-roster{bottom:256px}.elevation-key>div{width:210px}}
@media(max-width:600px){.lens-summary{bottom:102px}.army-roster{bottom:102px}}
@media(max-width:480px){.lens-summary{bottom:108px}.army-roster{bottom:250px}.elevation-key{margin-bottom:6px}.elevation-key>div{width:215px}}

.elevation-ticks{position:relative;height:11px;display:block}.elevation-ticks span{position:absolute;transform:translateX(-50%)}.elevation-ticks span:nth-child(1){left:0;transform:none}.elevation-ticks span:nth-child(2){left:13.33%}.elevation-ticks span:nth-child(3){left:40%}.elevation-ticks span:nth-child(4){left:66.67%}.elevation-ticks span:nth-child(5){right:0;transform:none}

/* Reading and map retain their own place on phones. */
.mobile-reading-nav,.step-map-link,.timeline-more-open{display:none}
.stepper{gap:2px}.stepper button{position:relative;width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:0;line-height:44px;background:none}
.stepper button:before{content:'';position:absolute;inset:9px;border:1px solid var(--line);border-radius:50%;pointer-events:none}
.zoom-tools button{width:44px;height:44px;line-height:40px}.map-toolbar{right:75px}
.timeline-more{position:fixed;inset:auto 14px 164px auto;margin:0;width:min(310px,calc(100vw - 28px));max-height:calc(100dvh - 200px);overflow:auto;padding:15px 17px;background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:7px;box-shadow:0 9px 28px #24483624}
.timeline-more::backdrop{background:transparent}.more-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.more-head strong{font:500 18px var(--serif)}.more-head button{min-width:52px;min-height:44px;border:1px solid var(--line);border-radius:4px;background:var(--paper);font-size:12px}
#mobile-time-options{display:grid;gap:14px}#mobile-time-options label{display:grid;gap:6px;color:var(--ink);font-size:12px}#mobile-time-options select{width:100%;max-width:none;min-height:44px;font-size:13px;padding:7px 10px;background:var(--white);border:1px solid #bfcab8;border-radius:4px}
@media(min-width:601px) and (max-width:1000px){.map-toolbar{right:65px}.map-status{right:65px}}
@media(max-width:600px){
  .mobile-reading-nav{position:sticky;top:0;z-index:14;display:flex;gap:8px;padding:7px 16px;background:var(--white);border-bottom:1px solid var(--line);height:66px}
  .mobile-reading-nav button{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;gap:1px;min-width:0;min-height:50px;padding:4px 9px;border:1px solid var(--line);border-radius:4px;background:var(--white);color:var(--green);font-size:13px;line-height:1.5}
  .mobile-reading-nav button small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#64765e}
  .mobile-reading-nav button[aria-pressed=true]{background:#edf2e7;border-color:#a9bba1;color:var(--green)}
  .workspace{display:block;height:auto;min-height:0}.story-panel{border:0}.map-panel{display:none}
  body[data-mobile-view=map] .story-panel{display:none}body[data-mobile-view=map] .map-panel{display:block;height:calc(100dvh - 295px);min-height:430px}
  .story-navigation{padding:7px 16px 3px}.story-navigation .text-button{min-height:44px;font-size:11px}
  #story{padding-top:9px}.story-tabs button{min-height:44px}.anchor-chips button{min-height:44px;padding:7px 10px;font-size:11px}
  .causal-card{margin-bottom:9px}.causal-card[aria-pressed=true]{margin-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}
  .causal-card[aria-pressed=true]+.step-map-link{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:8px 13px;margin:0 0 9px;border:1px solid #bdcdb8;border-top:0;border-radius:0 0 3px 3px;background:#edf2e7;color:var(--green);font-size:12px;text-align:left}
  .causal-card[aria-pressed=true]+.step-map-link:hover{background:#e4ecd9}
  .map-toolbar{left:12px;right:67px;top:12px;gap:5px}.map-toolbar .segmented{flex-shrink:0}.map-toolbar .segmented button{min-width:44px;min-height:38px;padding:4px 7px}
  .map-toolbar .tool-button{min-height:44px;padding:7px 10px;font-size:11px}.place-search{flex:1;min-width:120px;max-width:170px}.place-search input{flex:1;min-width:0;width:70px;min-height:44px;padding:8px;font-size:11px}.place-search button{min-width:44px;min-height:44px;padding:0;font-size:20px}
  .zoom-tools{right:11px;top:12px}.map-status{top:118px;left:15px;max-width:calc(100% - 90px)}.map-status strong{font-size:21px}.follow-toggle{min-height:32px;margin-top:0}
  .layer-menu{top:107px;left:12px;max-width:calc(100% - 78px);max-height:calc(100% - 120px);overflow:auto;padding:10px 14px}.layer-menu label{min-height:38px;margin-top:2px;font-size:12px}
  .map-selection{top:155px;right:12px;max-height:50%}.map-selection>button,.dialog-close{min-width:44px;min-height:44px}
  .timeline-panel{min-height:160px;padding:8px 16px max(8px,env(safe-area-inset-bottom));position:sticky;bottom:0}.timeline-heading{gap:7px;min-height:44px}.timeline-heading>div:first-child{min-width:0;flex:1}.timeline-heading #timeline-current{font-size:15px;white-space:nowrap}.timeline-heading #timeline-current-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
  .timeline-actions{gap:7px}.play-button{min-height:44px;min-width:66px;padding:7px 9px}.timeline-more-open{display:block;min-width:44px;min-height:44px;padding:6px 7px;border:1px solid var(--line);border-radius:4px;background:var(--white);font-size:11px}
  #timeline-period-slot,#timeline-speed-slot{display:none}.time-slider{height:24px;margin-top:5px}.timeline-marks{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin-top:0}.timeline-marks button{min-height:44px;font-size:9px;padding:3px 4px}.timeline-marks button time{font-size:8px}.timeline-caption{margin-top:1px}.timeline-caption span:first-child{display:none}
  #mobile-time-options .period-label,#mobile-time-options .speed-label{display:grid;font-size:12px}
}

@media(max-width:1000px){#timeline-period-slot,#timeline-speed-slot{display:none}.timeline-more-open{display:block;min-width:44px;min-height:44px;padding:6px 7px;border:1px solid var(--line);border-radius:4px;background:var(--white);font-size:11px}}
@media(max-width:600px){.map-status{top:65px;left:auto;right:70px;max-width:190px}.map-status>div{display:none}.follow-toggle{font-size:10px}}

/* Nationwide chronology keeps the established atlas's reading hierarchy. */
.catalog-filters{display:grid;grid-template-columns:1.2fr .8fr 1fr;gap:10px;margin:13px 0 8px}.catalog-filters label{display:grid;gap:5px;font-size:10px;color:#586c51}.catalog-filters select{width:100%;min-height:38px;min-width:0;padding:6px 8px;border:1px solid #c4cfbc;background:var(--white);border-radius:4px;font-size:11px}.catalog-scope{font-size:10px;line-height:1.6;color:#63745c;margin:6px 0 10px}.catalog-item strong small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:2px}.catalog-item time{line-height:1.5}
.polity-availability{font-size:10px;line-height:1.65;color:#68765f;max-width:220px;margin:5px 0 10px}.layer-menu label:has(input:disabled){color:#8a9383}
svg .historical-polity{fill:#818d62;fill-opacity:.12;stroke:#62754d;stroke-width:1;stroke-opacity:.65;stroke-dasharray:5 4;vector-effect:non-scaling-stroke;pointer-events:none}
svg .lake{fill:#ccdedc;stroke:#8caeb0;stroke-width:.5;vector-effect:non-scaling-stroke;pointer-events:none}
.map-status strong{font-size:20px}.photo img{object-fit:contain;max-height:240px;background:#f0eee3;filter:none}.photo figcaption{line-height:1.75}.period-label select{max-width:170px}.timeline-heading>div:first-child{min-width:0}.timeline-heading #timeline-current{white-space:nowrap}#timeline-current-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:290px}
@media(max-width:600px){.catalog-filters{grid-template-columns:1fr 1fr}.catalog-filters label:first-child{grid-column:1/-1}.catalog-filters select{min-height:44px;font-size:12px}.catalog-item time{width:90px}.catalog-item strong small{font-size:10px}.map-toolbar .segmented button{font-size:10px;padding:4px 5px;min-width:40px}.map-toolbar .segmented button#view-event{min-width:64px}.place-search{min-width:108px}.place-search input{width:56px}.layer-menu{max-width:calc(100% - 75px)}.timeline-heading #timeline-current{font-size:13px}#timeline-current-title{max-width:175px}}
