

:root{--bg:#07121b;--nav:#0b1923;--panel:#0d202c;--line:#29414c;--muted:#8da4aa;--text:#eef5f3;--assyria:#45d6cf;--kaldu:#f083c5;--babylon:#f6bb5e;--soft:#132b38}
*{box-sizing:border-box}html,body{height:100%;margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:2px solid #f1c980;outline-offset:3px}
.app{height:100dvh;min-height:670px;display:grid;grid-template-columns:350px minmax(0,1fr);grid-template-rows:68px minmax(0,1fr)}
.topbar{grid-column:1/-1;background:#07141d;border-bottom:1px solid #283c46;display:flex;align-items:center;gap:18px;padding:0 24px;z-index:5}
.logo-mark{display:grid;place-items:center;width:36px;height:36px;border:1px solid #b89c67;border-radius:10px;color:#f6c87c;font-size:21px;box-shadow:0 0 20px #e6ae4420}
.logotxt{font-weight:850;letter-spacing:.20em;font-size:14px}.logosub{font-size:9px;letter-spacing:.22em;color:#9da8a6;margin-top:3px}.topline{height:22px;width:1px;background:#344752}
.topbar .strap{color:#96aeb2;font-size:12px;letter-spacing:.04em}.topright{margin-left:auto;display:flex;align-items:center;gap:10px}.live-pill{color:#f9d8a3;background:#65482640;border:1px solid #97734470;padding:7px 11px;font-size:10px;font-weight:800;letter-spacing:.14em;border-radius:20px}
.ghostbtn{background:#132633;color:#d6e3e4;border:1px solid #335363;border-radius:8px;padding:9px 12px;font-size:11px;font-weight:750;transition:.15s}.ghostbtn:hover{background:#1b3c4b}.ghostbtn:active{transform:scale(.98)}
.sidebar{background:linear-gradient(155deg,#0e2530,#0a1c27 50%,#071922);border-right:1px solid #314651;overflow-y:auto;scrollbar-color:#49606b #0b1a23;padding:25px 22px 26px}
.kicker{font-size:10px;letter-spacing:.28em;font-weight:850;color:#f6ba73}.hero-title{font-family:Georgia,'Times New Roman',serif;font-weight:500;font-size:40px;letter-spacing:-.04em;line-height:1.06;margin:10px 0 10px;color:#f4eee2}.hero-title i{font-weight:400;color:#edc98f}.hero-copy{font-size:12.5px;line-height:1.65;color:#9db6ba;max-width:290px;margin:0 0 22px}
.section-header{border-top:1px solid #37505a;padding-top:19px;display:flex;justify-content:space-between;align-items:center;margin:22px 0 12px}.section-header span{font-size:10px;font-weight:850;letter-spacing:.19em;color:#c2d7d4}.section-header small{color:#79929d;font-size:10px}
.era-list{display:flex;flex-direction:column;gap:6px}.era{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:10px;border-radius:10px;background:transparent;border:1px solid transparent;color:#b6c4cb;transition:background .15s,border .15s}.era:hover{background:#193540}.era.selected{border-color:#9d7454;background:linear-gradient(90deg,#644a343b,#1a323c)}.era-dot{width:10px;height:10px;border-radius:50%;border:2px solid #607a84;flex-shrink:0}.era.selected .era-dot{border-color:#f7c273;background:#f7c273;box-shadow:0 0 13px #e6b67199}.era-info{min-width:0}.era-year{font-size:13px;font-weight:760;display:block;color:#e7eded}.era-name{display:block;margin-top:2px;color:#87a1a9;font-size:10.5px}.era-key{margin-left:auto;font-size:10px;color:#7e989e}.era.selected .era-key{color:#f6c273}
.overlay-controls{display:grid;gap:8px}.switch-row{display:flex;align-items:center;gap:10px;justify-content:space-between;cursor:pointer;min-height:32px;font-size:12px;color:#d2e2e2}.labelwrap{display:flex;align-items:center;gap:9px}.swatch{width:10px;height:10px;border-radius:3px;box-shadow:0 0 10px currentColor}.switch-row input{accent-color:#eeb96c;width:15px;height:15px;cursor:pointer}.hint{font-size:10.5px;line-height:1.65;color:#8ca5ae;margin-top:13px;padding:10px 11px;background:#132a36;border:1px solid #2b4a58;border-radius:8px}.tiny{font-size:10px;color:#708f9d}
.mapwrap{position:relative;background:#071b29;min-width:0;overflow:hidden;isolation:isolate}.mapwrap:before{position:absolute;z-index:0;inset:0;content:'';pointer-events:none;background:radial-gradient(ellipse at 67% 47%,#1a3e4540,transparent 65%)}
#map{height:100%;width:100%;display:block;touch-action:none;cursor:grab}#map.dragging{cursor:grabbing}.map-water{fill:#071c2a}.landpath{fill:#17313b;stroke:#49717b;stroke-width:.68;vector-effect:non-scaling-stroke}.landpath.alt0{fill:#17333d}.landpath.alt1{fill:#18333b}.landpath.alt2{fill:#1c353c}.landpath.alt3{fill:#1b353e}.landpath.alt4{fill:#18353c}.tile-image{opacity:.72;pointer-events:none}.shape{stroke-width:2.1;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill-opacity .25s}.shape:hover{stroke-width:3.4;fill-opacity:.48}.shape.ass-core{fill:#1fd9d3;fill-opacity:.13;stroke:#55efe8;stroke-dasharray:5 3}.shape.ass-empire{fill:#28c7cf;fill-opacity:.27;stroke:#47f2e5}.shape.kaldu{fill:#f283cc;fill-opacity:.32;stroke:#f3a1da;stroke-dasharray:6 5}.shape.babylon{fill:#f7ad49;fill-opacity:.32;stroke:#ffd07f}.shape.rise{fill:#f7ad49;fill-opacity:.32;stroke:#ffd07f;stroke-dasharray:5 4}.shape.campaign{fill:#56cdd6;fill-opacity:.14;stroke:#59bec5;stroke-dasharray:4 6}.river{fill:none;stroke:#68bac5;stroke-width:2.3;opacity:.76;vector-effect:non-scaling-stroke}.river-outline{fill:none;stroke:#154756;stroke-width:5;opacity:.9;vector-effect:non-scaling-stroke}
.countrylabel{font-size:14px;fill:#91aeb2;opacity:.79;letter-spacing:3.2px;text-anchor:middle;font-weight:750;paint-order:stroke;stroke:#0b222b;stroke-width:4px}.countrylabel.small{font-size:10.5px;letter-spacing:1.7px}.city-dot{fill:#ffe0ab;stroke:#152731;stroke-width:2;vector-effect:non-scaling-stroke}.city-dot.modern{fill:#d7e8eb}.citylabel{fill:#eff8f3;font-size:11.2px;font-weight:650;paint-order:stroke;stroke:#10202a;stroke-width:3.6;stroke-linejoin:round}.city-group{cursor:pointer}.city-group:hover .city-dot{fill:white;filter:drop-shadow(0 0 4px #fff)}.city-group.active .city-dot{stroke:#ffe0a7;stroke-width:3;filter:drop-shadow(0 0 5px #ffc86f)}.modern-site .city-dot{fill:#d98ddd}.modern-site .citylabel{fill:#f6c1e7}.mapbadge{position:absolute;z-index:2;top:22px;left:24px;pointer-events:none}.mapbadge b{font-size:10px;letter-spacing:.18em;color:#edc589;background:#091820dd;border:1px solid #a2825266;border-radius:6px;padding:8px 11px}.mapbadge p{margin:15px 0 0;font:normal 29px Georgia,serif;text-shadow:0 2px 15px #001725}.mapbadge small{font-size:11px;color:#b1c1bd;background:#0a1b24cf;padding:6px 9px;border-radius:6px;display:block;max-width:380px;line-height:1.6}
.map-controls{position:absolute;right:22px;top:24px;z-index:3;display:grid;gap:7px}.ctrl{background:#0b1a23eb;color:#d7e5e3;border:1px solid #547079b8;border-radius:9px;width:40px;height:40px;font-size:22px;display:grid;place-items:center;box-shadow:0 6px 24px #00131a6b}.ctrl:hover{background:#1b3645}.ctrl.text{font-size:15px}.bottom-legend{position:absolute;left:24px;bottom:24px;z-index:2;background:#081b24e8;backdrop-filter:blur(8px);border:1px solid #46616d;border-radius:11px;padding:12px 14px;display:flex;gap:15px;align-items:center;flex-wrap:wrap;max-width:calc(100% - 70px)}.legitem{font-size:10.5px;color:#becfd1;display:flex;align-items:center;gap:7px}.legendbullet{height:9px;width:9px;border-radius:3px}
.map-foot{position:absolute;right:22px;bottom:17px;z-index:3;color:#c1c9c4;font-size:9px;background:#071b26bd;border-radius:5px;padding:6px}
.placecard{position:absolute;z-index:4;right:24px;bottom:71px;width:290px;max-height:55%;overflow:auto;background:#0b202aeE;backdrop-filter:blur(17px);border:1px solid #79918b8c;border-radius:14px;padding:19px 19px 17px;box-shadow:0 22px 65px #030b1199}.placecard.hidden{display:none}.card-kicker{font-size:9px;font-weight:900;letter-spacing:.2em;color:#f2c38c}.placecard h3{font:normal 28px Georgia,serif;margin:7px 0 3px}.card-modern{font-size:12px;color:#a4c4c2;line-height:1.4}.placecard p{color:#c0d1d0;line-height:1.6;font-size:12px}.cardcoords{font-family:ui-monospace,monospace;font-size:10px;color:#a0b9bd}.close-card{position:absolute;top:11px;right:12px;border:0;border-radius:7px;background:#1d3843;color:#e6f2f1;padding:6px 9px}.btnfit{background:#a87c4a;border:0;border-radius:7px;color:#1b170f;font-size:11px;font-weight:850;padding:9px 12px}
.drawer-note{display:block;margin-top:16px;font-size:10.5px;color:#acc0c0;line-height:1.7}.search{width:100%;background:#102c38;color:#e3f0ed;border:1px solid #42606a;border-radius:9px;padding:10px 12px;font-size:12px;outline:none}.search::placeholder{color:#8298a2}.places{display:flex;flex-direction:column;gap:5px;max-height:158px;overflow-y:auto;margin-top:8px}.placepick{width:100%;text-align:left;display:flex;justify-content:space-between;gap:10px;border:0;border-radius:7px;background:#15303b9d;padding:9px 11px;color:#e6edeb;font-size:11px}.placepick:hover{background:#24515b}.placepick span{color:#819ba0;font-size:10px}
.source-link{color:#f0c187;font-size:11px;text-decoration:none}.source-link:hover{text-decoration:underline}.sources{line-height:1.8;margin:10px 0 0;padding-left:15px}
.name-card{margin:0 0 21px;border:1px solid #45616a;border-radius:12px;background:linear-gradient(145deg,#162f39,#10232e);overflow:hidden;box-shadow:0 10px 26px #020c1250}
.name-card summary{list-style:none;cursor:pointer;padding:14px 15px 13px;position:relative}.name-card summary::-webkit-details-marker{display:none}.name-card summary:after{content:'+';position:absolute;right:15px;top:16px;color:#f0c187;font-size:18px;font-weight:500}.name-card[open] summary:after{content:'−'}.name-eyebrow{font-size:9px;letter-spacing:.2em;color:#f0c187;font-weight:850}.name-card summary strong{display:block;margin:6px 22px 4px 0;font:normal 19px Georgia,serif;color:#f3eee1}.name-card summary span:last-child{display:block;color:#9fb6b8;font-size:10.5px;line-height:1.55}.name-body{border-top:1px solid #38525b;padding:13px 15px 15px}.name-intro,.name-body p{font-size:11px;line-height:1.7;color:#bfd0d0;margin:0 0 10px}.word-track{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:12px 0}.word-stop{padding:9px 10px;border:1px solid #38535c;background:#0b2029;border-radius:8px;min-width:0}.word-stop small{display:block;font-size:8px;letter-spacing:.13em;color:#8da6ad;text-transform:uppercase}.word-stop b{display:block;margin:3px 0 2px;color:#f5d49f;font:600 14px Georgia,serif}.word-stop span{font-size:9px;color:#9bb2b6}.name-body h3{font-size:9px;letter-spacing:.17em;color:#e2c394;text-transform:uppercase;margin:14px 0 6px}.name-caveat{padding:10px 11px;background:#0b1d25;border-left:2px solid #e8ad69;border-radius:0 7px 7px 0}.name-caveat p:last-child{margin-bottom:0}.name-use{color:#a9c0c2;font-size:10.5px;line-height:1.65;padding:10px 0 2px}.name-sources{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.name-sources a{font-size:9px;color:#f0c187;text-decoration:none;border:1px solid #82644066;border-radius:20px;padding:5px 8px}.name-sources a:hover{background:#523d2544;text-decoration:underline}
@media(max-width:980px){.app{grid-template-columns:290px minmax(0,1fr)}.sidebar{padding:20px 16px}.hero-title{font-size:35px}.topbar{padding:0 16px}.placecard{width:245px}.mapbadge small{max-width:240px}}
@media(max-width:690px){.app{grid-template-columns:1fr;grid-template-rows:57px minmax(320px,65dvh) auto;height:auto;min-height:100dvh}.topbar{grid-column:1;grid-row:1}.topbar .strap,.topline{display:none}.topbar .ghostbtn{padding:7px 8px}.logotxt{font-size:11px}.logosub{font-size:8px}.sidebar{grid-row:3;border-right:0;border-top:1px solid #35525b;overflow:visible}.hero-title{font-size:33px}.mapwrap{grid-column:1;grid-row:2;min-height:360px}.mapbadge{top:13px;left:12px}.mapbadge p{font-size:23px;margin:11px 0 0}.mapbadge small{font-size:10px;max-width:210px}.map-controls{right:11px;top:13px}.ctrl{width:32px;height:32px;font-size:19px}.bottom-legend{bottom:13px;left:11px;padding:9px;gap:9px;max-width:calc(100% - 25px)}.legitem{font-size:9px}.map-foot{display:none}.placecard{bottom:56px;right:11px;width:min(270px,calc(100% - 20px));padding:14px}.placecard h3{font-size:23px}.places{max-height:200px}.era-list{display:grid;grid-template-columns:1fr 1fr}.topright{gap:6px}.live-pill,.topbar #tour{display:none}.topbar{gap:9px;padding:0 10px}.logo-mark{width:31px;height:31px;flex-shrink:0}.logotxt{font-size:10px;letter-spacing:.12em}.logosub{letter-spacing:.11em}.topbar #play{font-size:10px;padding:7px 9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.era-list{position:relative;max-height:290px;overflow-y:auto;scrollbar-color:#526773 #10222e}.timeline-nav{display:flex;align-items:center;justify-content:space-between;gap:5px}.timeline-nav span{font-size:10px;color:#b7cccc}.timeline-nav button{padding:7px 8px}.timeline-nav button:disabled{opacity:.35;cursor:default}#timeScrubber{width:100%;accent-color:#efbf76;margin:14px 0}.chapter-story{background:#122d38;border:1px solid #3e5c65;border-radius:10px;padding:13px;margin:14px 0}.chapter-story b{font:18px Georgia,serif;color:#f4d2a1}.chapter-story p{font-size:12px;line-height:1.7;color:#d2dfdf}.chapter-story a{font-size:11px;color:#f3c98f;line-height:1.6}.chapter-story small{display:block;font-size:10px;line-height:1.6;color:#94b0b7;margin-top:9px}.chapter-marker{fill:#f7bd76;stroke:#09212b;stroke-width:2;vector-effect:non-scaling-stroke}.mapbadge small{max-width:340px}.mapbadge{max-width:calc(100% - 85px)}a:focus-visible,summary:focus-visible{outline:2px solid #f1c980;outline-offset:3px}

.app{min-height:560px;grid-template-columns:360px minmax(0,1fr)}.sidebar{padding:20px}.hero-title{font-size:33px;margin:9px 0}.hero-copy{font-size:12px;margin-bottom:15px}.topbar{padding:0 18px}.topbar .strap{font-size:11px}.logosub{letter-spacing:.15em}.map-water{fill:var(--bg)}.mapwrap{background:var(--bg)}.mapwrap:before{display:none}.landpath{fill:#18343e;stroke:#496571;stroke-width:.6;fill-rule:evenodd}.hide-borders .landpath{stroke:#18343e;stroke-width:.2}.graticule{stroke:#739ba0;stroke-width:.5;opacity:.15;fill:none;vector-effect:non-scaling-stroke;pointer-events:none}.atlas-marker{cursor:pointer}.atlas-marker:focus{outline:none}.atlas-marker:focus-visible>circle:first-child{stroke:#fff;stroke-width:2}.atlas-area{cursor:pointer}.atlas-area:hover{fill-opacity:.28}.connection-line{cursor:pointer;pointer-events:stroke}.connection-line:hover{stroke-width:4}.marker-label{fill:var(--text);font-weight:650;paint-order:stroke;stroke:var(--bg);stroke-width:3.5px;stroke-linejoin:round;pointer-events:none}.region-label{font-size:10px;font-weight:800;letter-spacing:1.6px;paint-order:stroke;stroke:var(--bg);stroke-width:3;pointer-events:none}.continent-label{fill:var(--muted);font-size:10px;letter-spacing:2.6px;opacity:.6;pointer-events:none}.mapbadge{top:20px;left:23px;max-width:min(570px,calc(100% - 90px));padding:14px 17px;background:linear-gradient(110deg,#081b26f2,#081b2699);border-left:2px solid #d9b078;border-radius:0 10px 10px 0}.mapbadge b{background:none;border:0;padding:0;font-size:10px}.mapbadge p{font-size:27px;margin:7px 0 6px}.mapbadge small{background:none;padding:0;max-width:520px;color:#aac1c4;font-size:10.5px}.mapbadge .era-group{display:block;color:#739caa;font-size:9px;letter-spacing:.19em;text-transform:uppercase;margin-bottom:7px}.map-controls{top:22px;right:20px}.ctrl{width:37px;height:37px}.ctrl.world{font-size:17px}.map-presets{position:absolute;top:160px;left:24px;z-index:2;display:flex;flex-wrap:wrap;gap:5px;max-width:calc(100% - 90px)}.map-presets button{background:#0c2732eb;border:1px solid #40606a;border-radius:20px;padding:6px 10px;color:#c5d9d9;font-size:10px}.map-presets button:hover{background:#274c56}.map-footer{position:absolute;left:23px;bottom:20px;z-index:2;pointer-events:none;color:var(--muted);font-size:9px;display:flex;align-items:flex-end;gap:15px}.scale-bar{min-width:110px}#scaleLine{display:block;height:6px;border:1px solid var(--muted);border-top:0;margin-top:4px}.bottom-legend{left:23px;bottom:65px;gap:12px;max-width:calc(100% - 45px);padding:10px 12px;pointer-events:none}.bottom-legend span{display:flex;align-items:center;gap:5px;font-size:10px}.bottom-legend i{display:inline-block;width:8px;height:8px;border-radius:50%}.bottom-legend small{display:block;flex-basis:100%;color:#88a7b1;font-size:9px}.placecard{bottom:155px;right:20px;width:330px;max-height:calc(100% - 190px);border-color:#5c7f87;background:#0d2531f5}.placecard h3{font-size:24px}.placecard small{display:block;color:var(--muted);font-size:10px;line-height:1.7;margin:7px 0}.placecard a,dialog a{color:#e8bd7d;font-size:11px}.placecard h4{font-size:13px}.evidence-box{background:#112f3b;border:1px solid #3d5d68;padding:12px;border-radius:8px;margin:13px 0}.evidence-box p{margin:7px 0}.evidence-box strong{font-size:19px;color:#f2ca91}.affiliation{color:#dfc290!important;font-size:11px!important}.era-list{max-height:220px;gap:3px}.era{padding:8px}.era-year{font-size:12px}.chapter-story{padding:12px}.chapter-story p{font-size:12px;line-height:1.65}.chapter-story .identity-note{border-top:1px solid #34515b;padding-top:10px;font-size:10.5px;color:#a8bcc2}.chapter-story #chapterSource a{font-size:10px}.chapter-story #chapterStats{font-size:10px;color:#e5bd7e;display:block;margin:10px 0}.chapter-source-list{line-height:1.65}.section-header{margin:18px 0 10px;padding-top:16px}.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.control-grid label{font-size:11px;padding:7px;background:#122d38;border-radius:6px;display:flex;gap:7px;align-items:center;cursor:pointer}.control-grid input{accent-color:#efc47f}.control-grid .wide{grid-column:1/-1}.filters{display:grid;gap:7px;margin-top:10px}.filters select{width:100%;min-width:0;background:#102c38;color:#dceae8;border:1px solid #42606a;border-radius:7px;padding:8px;font-size:11px}.lock-option{display:flex;align-items:center;gap:7px;font-size:11px;color:#a9c5c7;margin-top:8px}.utility-buttons{display:flex;flex-wrap:wrap;gap:6px}.utility-buttons button{font-size:10px;padding:8px 10px}.nearby-place{display:block;width:100%;padding:10px;text-align:left;background:var(--soft);color:var(--text);border:1px solid var(--line);margin:4px 0;border-radius:6px}.places{max-height:240px}.placepick{align-items:center}.placepick b{font-weight:600}.placepick span{flex-shrink:0}.name-card{margin-top:14px}.help-line{font-size:10px;color:var(--muted);line-height:1.6;margin-top:13px}.research-dialog{width:min(860px,94vw);max-height:88vh;border:1px solid #6b8b91;border-radius:15px;background:var(--nav);color:var(--text);padding:25px;box-shadow:0 30px 100px #0009}.research-dialog::backdrop{background:#0009;backdrop-filter:blur(5px)}.research-dialog h2{font:28px Georgia,serif;padding-right:90px}.research-dialog h3{color:#e6bc7e;font:21px Georgia,serif;margin-top:25px}.research-dialog p,.research-dialog li{font-size:13px;line-height:1.8;color:#c4d6d7}.research-dialog small{display:block;font-size:10px;color:var(--muted);margin:3px 0 8px}.research-dialog table{border-collapse:collapse;width:100%;font-size:12px;line-height:1.7}.research-dialog td,.research-dialog th{padding:12px;border:1px solid var(--line);text-align:left;vertical-align:top}.research-dialog th{color:#e7bf7f}.dialog-close{position:sticky;top:0;float:right;z-index:1}.identity-timeline{display:grid;grid-template-columns:100px 1fr;gap:0;margin:20px 0}.identity-timeline b,.identity-timeline p{padding:12px;border-bottom:1px solid var(--line);margin:0}.identity-timeline b{color:#efc382;font-size:12px}.light{--bg:#e5e6d9;--nav:#f4f0e5;--panel:#eee9dc;--line:#a4aaa1;--muted:#536b6e;--text:#18383e;--soft:#d8e2de}.light .sidebar{background:#f0eee3}.light .topbar{background:#f5f0e4}.light .hero-title,.light .era-year{color:#23434a}.light .hero-title i,.light .kicker{color:#8d612a}.light .hero-copy,.light .hero-copy,.light .era-name{color:#587079}.light .landpath{fill:#c8d3c7;stroke:#899c94}.light .hide-borders .landpath{stroke:#c8d3c7}.light .mapbadge{background:#f5f0e7eb}.light .mapbadge p,.light .mapbadge small{color:#2b5158}.light .mapbadge b{color:#855b2c}.light .chapter-story,.light .control-grid label,.light .evidence-box{background:#e0e7de;border-color:#9daea5}.light .chapter-story b,.light .research-dialog h3,.light .research-dialog th{color:#855b2c}.light .chapter-story p,.light .chapter-story small,.light .research-dialog p,.light .research-dialog li{color:#35565a}.light .chapter-story a,.light .placecard a,.light .research-dialog a{color:#6d4d1f}.light .placecard,.light .bottom-legend,.light .map-presets button,.light .ctrl{background:#f3f0e7f5;color:#294b50}.light .placecard p{color:#35565a}.light .evidence-box strong{color:#775126}.light .placepick,.light .filters select,.light .search{background:#dce6dd;color:#284b50}.light .marker-label{stroke:#dce4dc}.light .region-label{stroke:#dce4dc}.light .ghostbtn{background:#dce5de;color:#31545a}.light .chapter-story .identity-note{color:#35565a}
@media(max-width:1100px){.app{grid-template-columns:310px minmax(0,1fr)}.sidebar{padding:16px}.topbar .strap{display:none}.mapbadge p{font-size:23px}.mapbadge{max-width:calc(100% - 90px)}.map-presets{top:175px}.placecard{width:280px}.bottom-legend{gap:7px}.topright{gap:5px}}
@media(max-width:690px){.app{grid-template-columns:1fr;grid-template-rows:58px minmax(480px,75dvh) auto;height:auto}.sidebar{grid-row:3}.mapwrap{grid-row:2}.topbar{padding:0 10px}.topbar #themeButton{display:none}.mapbadge{left:12px;top:12px;padding:10px;max-width:calc(100% - 60px)}.mapbadge p{font-size:20px}.mapbadge small{font-size:10px}.map-controls{right:10px;top:12px}.ctrl{width:31px;height:31px}.map-presets{left:12px;top:162px;gap:4px}.map-presets button{font-size:9px;padding:5px 8px}.bottom-legend{left:12px;bottom:55px;max-width:calc(100% - 24px);padding:8px}.bottom-legend span{font-size:9px}.map-footer{left:12px;bottom:14px;font-size:8px;gap:8px}.placecard{right:12px;bottom:120px;width:calc(100% - 24px);max-height:calc(100% - 170px)}.era-list{grid-template-columns:1fr 1fr;max-height:250px}.research-dialog{padding:17px}.research-dialog table{font-size:10px}.research-dialog td,.research-dialog th{padding:7px}.identity-timeline{grid-template-columns:75px 1fr}}
.era{flex-shrink:0}.mapbadge{max-width:min(570px,calc(100% - 90px))}.light .section-header span{color:#36565a}.light .era.selected{background:#d6dfce}.light .name-card{background:#e5e7d9}.light .name-card summary strong{color:#314b4a}.light .name-body p{color:#36565a}.light .name-caveat,.light .word-stop{background:#dce3d6}.light .word-stop b{color:#704f24}.research-dialog a:focus-visible{outline:2px solid #e8bd7d}.continent-label{paint-order:stroke;stroke:var(--bg);stroke-width:2px;stroke-linejoin:round}.continuity-lead{font:18px/1.7 Georgia,serif!important;color:var(--text)!important}.evidence-tag{display:inline-block;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;border:1px solid #668c8b;padding:2px 7px;border-radius:4px;margin-right:5px}.evidence-tag.documented{color:#8fddd0;border-color:#4c8980}.evidence-tag.debated{color:#e3bd85;border-color:#94794e}.evidence-tag.interpretation{color:#cab7eb;border-color:#8b73a9}.continuity-table{overflow-x:auto}.continuity-table th:first-child{min-width:120px}.continuity-table td{min-width:170px}.scholar-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.scholar-grid .evidence-box{margin:0}.scholar-grid h4{font:21px Georgia,serif;margin:10px 0;color:var(--text)}.continuity-map-links{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}.continuity-chapter-link{margin:0 0 12px;padding:7px;font-size:10px}.light .evidence-tag.documented{color:#1f6058}.light .evidence-tag.debated{color:#805715}.light .evidence-tag.interpretation{color:#704b8a}@media(max-width:690px){.scholar-grid{grid-template-columns:1fr}} 
.voice-deck{margin:14px 0;padding:11px;border:1px solid #41656b;border-radius:9px;background:linear-gradient(140deg,#102e38,#0b222d)}.voice-deck-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.voice-deck-head span{font-size:9px;font-weight:800;letter-spacing:.13em;color:#e6bc7e}.voice-deck-head b{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:600 11px/1.3 Georgia,serif;color:#dceae8}.voice-progress{height:2px;background:#45636a;margin:9px 0;overflow:hidden}.voice-progress i{display:block;width:0;height:100%;background:#e7bd7d;transition:width .2s linear}.voice-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.voice-actions .ghostbtn{font-size:10px;padding:7px 8px}.voice-actions label{margin-left:auto}.voice-actions select{background:#112f3b;color:var(--text);border:1px solid #496872;border-radius:4px;padding:5px;font-size:10px}.voice-deck small{display:block;margin-top:8px;color:#8eacb2;font-size:9px;line-height:1.4}.saved-place-list{display:grid;gap:5px;max-height:160px;overflow:auto}.saved-place{display:flex;align-items:center;gap:6px;padding:7px;background:#102b36;border:1px solid #36545e;border-radius:6px;color:var(--text);text-align:left;font-size:10px}.saved-place b{flex:1}.saved-place .unmark{border:0;background:none;color:#e5bd82;font-size:15px;cursor:pointer}.mapwrap{transition:filter .35s ease}.focus-atlas .sidebar,.focus-atlas .topbar{display:none}.focus-atlas .app{grid-template-columns:1fr;grid-template-rows:minmax(100vh,100dvh)}.focus-atlas .mapwrap{grid-row:1}.focus-atlas .mapbadge{top:28px;left:30px}.focus-atlas .map-controls{top:28px;right:30px}.focus-atlas .placecard{bottom:105px}.is-cinematic #map{filter:drop-shadow(0 0 12px #e3b77433)}.light .voice-deck{background:linear-gradient(140deg,#e8eee3,#d7e2da);border-color:#98aea2}.light .voice-deck-head b{color:#284b50}.light .voice-actions select,.light .saved-place{background:#e4ece2;color:#284b50;border-color:#9daf9f}.light .voice-deck small{color:#48646a}@media(max-width:1100px){.topright #narrationToggle,.topright #shareAtlas{display:none}}@media(max-width:690px){.voice-actions label{margin-left:0}.focus-atlas .mapbadge{left:12px;top:12px}.focus-atlas .map-controls{right:10px;top:12px}.focus-atlas .placecard{bottom:115px}.topright #focusMode{display:none}}
.saved-place-open{display:flex;align-items:center;gap:6px;flex:1;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}.saved-place-open span{color:var(--muted);font-size:9px}#saveSelectedPlace{width:100%;margin-top:6px;background:#163945;border-color:#5b7b80;color:#f2ca91}.light #saveSelectedPlace{background:#d5e0d5;color:#6f4d21}

.atlas-opening{position:fixed;inset:0;border:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;padding:0;background:#091b20;color:#f5f0e6;overflow:hidden;isolation:isolate}
.atlas-opening::backdrop{background:transparent}
.opening-art,.opening-shade{position:absolute;inset:0;z-index:-1;pointer-events:none}
.opening-art{background:var(--opening-art) center/cover no-repeat;transform:scale(1.18);transform-origin:68% 55%;will-change:transform,opacity}
.opening-shade{background:linear-gradient(90deg,#041419e8,#071b2190 38%,#071b2110 75%),linear-gradient(0deg,#06151bd9,transparent 35%)}
.opening-brand{position:absolute;top:36px;left:6vw;font-weight:700;letter-spacing:.16em;font-size:12px}
.opening-content{box-sizing:border-box;padding:125px 6vw 150px;min-height:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.opening-kicker{font-size:10px;letter-spacing:.19em;color:#c7d0ca}
.opening-content h1{font:400 clamp(64px,8.3vw,124px)/.94 Georgia,serif;letter-spacing:-.055em;margin:24px 0 28px}
.opening-content>p{max-width:320px;font-size:14px;line-height:1.75;color:#ced6d1;margin:0 0 34px}
.opening-enter{display:flex;align-items:center;gap:40px;border:1px solid #f0eee5a0;border-radius:0;background:#0a222746;color:#f5f0e6;padding:16px 20px;font-size:13px;cursor:pointer;transition:background .2s,border-color .2s}
.opening-enter:hover{background:#f5f0e618;border-color:#f5f0e6}.opening-enter:focus-visible{outline:2px solid #f5f0e6;outline-offset:6px}.opening-enter span{font-size:22px}
.opening-bottom{position:absolute;bottom:26px;left:6vw;right:6vw}.opening-time{display:flex;align-items:center;gap:18px;font-size:9px;letter-spacing:.12em;color:#c7d0ca;max-width:420px}.opening-time i{height:1px;flex:1;background:#c7d0ca66}.opening-bottom small{display:block;margin-top:15px;font-size:9px;color:#9dafad}
.opening-brand-button{background:none;border:0;text-align:left;color:inherit;padding:0;cursor:pointer}.opening-brand-button:hover{color:#e5bd82}
.atlas-opening.is-entering{background:transparent;pointer-events:none}.is-entering .opening-content,.is-entering .opening-brand,.is-entering .opening-bottom{opacity:0;transform:translateY(-12px);transition:opacity .4s ease,transform .6s ease}
body.atlas-arrival .sidebar,body.atlas-arrival .topbar,body.atlas-arrival .mapbadge,body.atlas-arrival .map-presets,body.atlas-arrival .map-controls,body.atlas-arrival .bottom-legend,body.atlas-arrival .map-footer{opacity:0;transition:opacity .7s ease}
body.atlas-arrival.arrival-reveal .sidebar,body.atlas-arrival.arrival-reveal .topbar,body.atlas-arrival.arrival-reveal .mapbadge,body.atlas-arrival.arrival-reveal .map-presets,body.atlas-arrival.arrival-reveal .map-controls,body.atlas-arrival.arrival-reveal .bottom-legend,body.atlas-arrival.arrival-reveal .map-footer{opacity:1}
@media(max-width:690px){.opening-brand{top:26px}.opening-content{padding-top:100px;padding-bottom:150px}.opening-content h1{font-size:clamp(65px,17vw,98px)}.opening-content>p{max-width:260px;font-size:13px}.opening-art{background-position:60% center}.opening-shade{background:linear-gradient(90deg,#041419df,#071b2160),linear-gradient(0deg,#06151be0,transparent 60%)}.opening-bottom small{max-width:270px;line-height:1.5}}
@media(prefers-reduced-motion:reduce){.opening-art{transform:none}.is-entering .opening-content,.is-entering .opening-brand,.is-entering .opening-bottom,body.atlas-arrival .sidebar,body.atlas-arrival .topbar{transition:none}}

/* Keep the painting edge-to-edge; never expose a shrinking rectangular image. */
body.atlas-arrival .mapwrap .mapbadge,body.atlas-arrival .mapwrap .map-presets,body.atlas-arrival .mapwrap .map-controls,body.atlas-arrival .mapwrap .bottom-legend,body.atlas-arrival .mapwrap .map-footer{visibility:hidden}
body.atlas-arrival.arrival-reveal .mapwrap .mapbadge,body.atlas-arrival.arrival-reveal .mapwrap .map-presets,body.atlas-arrival.arrival-reveal .mapwrap .map-controls,body.atlas-arrival.arrival-reveal .mapwrap .bottom-legend,body.atlas-arrival.arrival-reveal .mapwrap .map-footer{visibility:visible}
body.atlas-arrival .marker-label,body.atlas-arrival .continent-label{opacity:0}
body.atlas-arrival.arrival-reveal .marker-label,body.atlas-arrival.arrival-reveal .continent-label{opacity:1}

.opening-art{transform:none;transform-origin:center}
.opening-flight{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;opacity:0;pointer-events:none}
.atlas-opening.is-playing .opening-flight{opacity:1}
.atlas-opening.is-playing .opening-art{opacity:0}
.atlas-opening.is-playing .opening-shade{opacity:0;transition:opacity .4s}
body.atlas-flight #map>g:not(#modern){visibility:hidden}
body.atlas-flight .map-water{fill:#071b29}

.language-picker{display:flex;align-items:center;gap:9px;margin:12px 0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:11px}
.language-picker select{margin-left:auto;background:#102c38;color:var(--text);border:1px solid #42606a;border-radius:6px;padding:6px;font-size:11px}
.language-note{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin:-5px 0 14px}
.atlas-ui-rtl .sidebar,.atlas-ui-rtl .research-dialog{direction:rtl;text-align:right}
.chapter-history:empty{display:none}
.chapter-history{margin:14px 0;padding:12px 0;border-top:1px solid #65765b;border-bottom:1px solid #65765b}
.chapter-history h3{margin:0 0 12px;color:#e6c78d;font:500 16px/1.4 Georgia,serif}
.chapter-history h4{margin:12px 0 5px;color:#f1e6ce;font:600 12px/1.5 system-ui,sans-serif}
.chapter-history .history-sources{font-size:10.5px;line-height:1.7}
.chapter-story .chapter-history .history-note{font-size:10.5px;line-height:1.65}
.chapter-history .ghostbtn{margin-top:12px;min-height:40px}
.light .chapter-history{border-color:#a4af99}
.light .chapter-history h3,.light .chapter-history h4{color:#654c24}
.mapwrap,#map,.topbar{direction:ltr}
.journey-stop-list,.contribution-draft-list{display:grid;gap:8px;padding-left:22px}
.journey-stop{display:grid;grid-template-columns:minmax(120px,1fr) auto auto auto auto;gap:5px;align-items:center;background:var(--soft);border:1px solid var(--line);border-radius:7px;padding:8px}
.journey-stop-label{font-size:11px;line-height:1.5}
.journey-stop .ghostbtn,.journey-add-button,#placeEvidenceReview{font-size:10px;padding:7px 9px;margin:5px 5px 0 0}
.journey-stop-nav{display:flex;gap:6px;margin-top:9px}
.journey-stop-nav .ghostbtn{font-size:10px;padding:7px 9px}
.dialog-actions,.inline-create{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:10px 0}
.inline-create input,.research-dialog input[type=text],.research-dialog input[type=url],.research-dialog textarea,.research-dialog select{max-width:100%;background:#102c38;color:var(--text);border:1px solid #42606a;border-radius:6px;padding:8px;font:inherit}
.research-dialog form{display:grid;gap:7px;margin:12px 0}
.research-dialog textarea{resize:vertical;min-height:90px}
.research-dialog label{font-size:11px;color:var(--muted)}
.evidence-results{display:grid;gap:3px;margin-top:12px}
.evidence-results .evidence-box h3{font-size:16px;line-height:1.45}
.evidence-tag{display:inline-block}
.contribution-draft{margin:0;padding:12px}
.contribution-draft h4{margin:3px 0 6px}
.contribution-draft p{white-space:pre-wrap;overflow-wrap:anywhere}
.contribution-draft-list{padding:0;max-height:45vh;overflow:auto}
.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}
.light .language-picker select,.light .inline-create input,.light .research-dialog input[type=text],.light .research-dialog input[type=url],.light .research-dialog textarea,.light .research-dialog select{background:#e4ece2;color:#284b50;border-color:#9daf9f}
@media(max-width:690px){.journey-stop{grid-template-columns:1fr 1fr}.journey-stop-label{grid-column:1/-1}.language-picker{align-items:flex-start;flex-direction:column}.language-picker select{margin-left:0}.dialog-actions .ghostbtn{flex:1 1 42%}}

/* Visual refresh: a quieter cartographic palette, clearer reading hierarchy,
   and larger, more legible controls across the atlas. */
:root{
  color-scheme:dark;
  --bg:#081b1c;
  --nav:#0b2222;
  --panel:#102a29;
  --line:#35514c;
  --muted:#a6b6ab;
  --text:#f3efe4;
  --soft:#183330;
  --assyria:#6bc7bd;
  --kaldu:#df91b8;
  --babylon:#e4b76c;
  --atlas-gold:#d5b276;
  --atlas-cream:#f3ecdd;
  --atlas-shadow:0 20px 60px #020c0cb8;
}
body{background:var(--bg);color:var(--text)}
.app{height:100dvh;min-height:560px;grid-template-columns:minmax(350px,390px) minmax(0,1fr);grid-template-rows:74px minmax(0,1fr);background:var(--bg)}
.topbar{gap:16px;padding:0 26px;background:linear-gradient(95deg,#0a2020 0%,#0b1f21 58%,#0a1c20 100%);border-bottom:1px solid #52645866;box-shadow:0 8px 28px #0002}
.logo-mark{width:39px;height:39px;border-radius:50%;border-color:#c0a16c;color:#efd08f;background:#d5b2760c;box-shadow:inset 0 0 0 4px #d5b2760c,0 0 24px #d5b2761c}
.logotxt{font-size:13px;letter-spacing:.2em}.logosub{color:#aeb8aa;font-size:9px;letter-spacing:.19em}
.topline{height:26px;background:#71807666}.topbar .strap{font-size:12px;color:#b7c2b4;letter-spacing:.06em}.topright{gap:7px}
.ghostbtn{min-height:38px;border:1px solid #49645d;border-radius:10px;background:linear-gradient(180deg,#183330,#142c2b);color:#e9e8dc;padding:9px 12px;font-size:11px;font-weight:700;transition:background .18s,border-color .18s,transform .18s,box-shadow .18s}
.ghostbtn:hover{background:#24443e;border-color:#8e9c7d;box-shadow:0 5px 14px #0002}.ghostbtn:active{transform:translateY(1px) scale(.99)}
.topbar .ghostbtn{background:#132a28;border-color:#425c55}.topbar .ghostbtn:hover{background:#25423b;border-color:#b99b68}
.sidebar{padding:25px 23px 30px;background:radial-gradient(ellipse at 15% 0%,#c2a1690b,transparent 42%),linear-gradient(160deg,#102726 0%,#0c2021 54%,#091b1d 100%);border-right:1px solid #53675b66;scrollbar-color:#62776a #0b1e1f;scroll-padding-block:18px}
.kicker{font-size:10px;letter-spacing:.23em;color:#e0bd7e}
.hero-title{font-size:37px;line-height:1.02;letter-spacing:-.045em;margin:12px 0 12px;color:#f5f0e4}
.hero-title i{color:#dfc18b}.hero-copy{max-width:330px;font-size:13px;line-height:1.72;color:#b2c0b5;margin-bottom:20px}
.utility-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.utility-buttons .ghostbtn{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;padding:9px 11px;text-align:left;line-height:1.35;font-size:10.5px;background:#132b29;border-color:#35534c;color:#dce2d7}
.utility-buttons .ghostbtn:hover{background:#1b3934;border-color:#7d8d72}
.utility-buttons #continuityButton,.utility-buttons #identityButton{grid-column:1/-1}
.utility-buttons #continuityButton::after,.utility-buttons #identityButton::after{content:"↗";flex:0 0 auto;color:#dfbd80;font-size:14px}
.language-picker{margin:14px 0 10px;padding:10px 11px;border:1px solid #35534c;border-radius:12px;background:#132b297d;color:#c5d0c3;font-size:11px}
.language-picker select,.filters select,.search{min-height:40px;border-radius:10px;background:#102927;color:#f0eee3;border-color:#4b6459;font-size:12px}
.language-note{font-size:10.5px;line-height:1.6;color:#9fb0a3;margin:0 1px 15px}
.section-header{margin:21px 0 11px;padding-top:17px;border-top-color:#52675a66}
.section-header span{font-size:10px;letter-spacing:.18em;color:#d9dfd2}
.section-header small{font-size:10px;color:#a3b1a1}
.timeline-nav{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;margin:0 0 9px}
.timeline-nav #previousEra{justify-self:start}.timeline-nav #nextEra{justify-self:end}.timeline-nav span{font-size:10px;font-weight:700;letter-spacing:.04em;color:#c7cbb9;text-align:center}
.timeline-nav .ghostbtn{min-height:34px;padding:7px 10px;font-size:10px}
#timeScrubber{display:block;width:100%;height:18px;margin:4px 0 11px;accent-color:var(--atlas-gold);cursor:pointer}
.era-list{max-height:min(34vh,330px);gap:5px;padding:2px 5px 2px 0;scrollbar-color:#64766a #0b1f20}
.era{min-height:48px;padding:8px 10px;gap:10px;border:1px solid #38544d38;border-radius:11px;background:#10262456}
.era:hover{background:#1b3733;border-color:#71806b66}.era.selected{border-color:#c29a5e;background:linear-gradient(100deg,#9a744522,#19332f);box-shadow:inset 3px 0 #d2ae72,0 4px 14px #0002}
.era-dot{width:11px;height:11px}.era-year{font-size:12px;color:#f0eee2}.era-name{font-size:10.5px;color:#a7b6aa}.era-key{font-size:9px;color:#9dad9c}
.lock-option{font-size:11px;color:#b5c2b4;gap:8px;margin-top:11px}
.lock-option input,.control-grid input{accent-color:#d9b578}
.chapter-story{margin-top:15px;padding:15px 16px;border:1px solid #486157;border-radius:15px;background:linear-gradient(145deg,#152e2b,#102523 75%);box-shadow:0 10px 25px #0002}
.chapter-story>b{display:block;color:#f1e6ce;font:500 17px/1.3 Georgia,serif;letter-spacing:-.01em}
.chapter-story p{font-size:12.5px;line-height:1.75;color:#d2dbd0;margin:9px 0}
.chapter-story .identity-note{border-top-color:#496056;padding-top:11px;color:#b5c4b8;font-size:11px}
.chapter-story #chapterStats{font-size:10px;letter-spacing:.025em;color:#e0bd7e}
.chapter-source-list{font-size:10.5px;line-height:1.75}.chapter-story #chapterSource a{font-size:10.5px}
.continuity-chapter-link{width:100%;text-align:left;margin-top:5px}
.voice-deck{margin:14px 0 0;padding:14px;border-color:#4b665b;border-radius:14px;background:linear-gradient(145deg,#1a3732,#102522);box-shadow:inset 0 1px #ffffff08}
.voice-deck-head span{font-size:9px;color:#e4c383;letter-spacing:.15em}.voice-deck-head b{font-size:12px;color:#eee9da}
.voice-progress{height:3px;background:#52685b;margin:11px 0}.voice-progress i{background:#dfbd7e}
.voice-actions .ghostbtn{font-size:10px}.voice-deck small{font-size:10px;color:#aebbae;line-height:1.55}
.control-grid{gap:7px}.control-grid label{min-height:38px;padding:9px;border:1px solid #3b554e;border-radius:10px;background:#132c29;color:#e0e5d9;font-size:11px}
.control-grid label:hover{border-color:#899278;background:#1a3933}.filters{gap:8px}.search{padding:10px 12px}.search::placeholder{color:#9aab9e}
.mapwrap{background:radial-gradient(ellipse at 58% 44%,#25443d 0%,#102c2b 46%,#091b1d 100%)}
.mapwrap:after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(115deg,#06171912 20%,transparent 48%,#07191820 100%)}
.map-water{fill:var(--bg)}.landpath{fill:#263d38;stroke:#718274;stroke-width:.72}.hide-borders .landpath{stroke:#263d38}
.graticule{stroke:#b2c0a7;opacity:.18}
.marker-label{font-size:11px;font-weight:700}.region-label{fill:#d4d7c6;font-size:10px;letter-spacing:1.8px}.continent-label{fill:#b1bdad;opacity:.7}
.mapbadge{top:22px;left:23px;max-width:min(570px,calc(100% - 100px));padding:15px 18px;border:1px solid #b6a0744a;border-left:3px solid #d5b276;border-radius:0 15px 15px 0;background:linear-gradient(105deg,#091d1df2,#0b211fc4 72%,#0b211f85);box-shadow:0 14px 34px #020d0d55;backdrop-filter:blur(14px)}
.mapbadge b{color:#e2c48c;font-size:9px;letter-spacing:.17em}.mapbadge p{font-size:29px;line-height:1.08;margin:8px 0 7px;color:#f3ecdc;text-shadow:0 2px 20px #0008}
.mapbadge small{color:#c0c9b9;font-size:11px;line-height:1.55;max-width:500px}.mapbadge .era-group{color:#c0a873;font-size:9px;letter-spacing:.18em}
.map-presets{top:164px;left:24px;gap:7px;max-width:calc(100% - 110px)}
.map-presets button{padding:7px 11px;border-color:#738273a8;border-radius:999px;background:#102725e8;color:#e1e3d6;font-size:10px;box-shadow:0 4px 16px #0002;backdrop-filter:blur(8px);transition:background .18s,border-color .18s,transform .18s}
.map-presets button:hover{background:#2b473e;border-color:#dfc181;transform:translateY(-1px)}
.map-controls{top:22px;right:22px;gap:8px}.ctrl{width:40px;height:40px;border-radius:12px;border-color:#738273a8;background:#102421e8;color:#f0eddf;box-shadow:0 8px 22px #0003;backdrop-filter:blur(8px)}
.ctrl:hover{background:#264238;border-color:#d2b475}.ctrl:focus-visible,.map-presets button:focus-visible{outline:2px solid #e6c98d;outline-offset:3px}
.bottom-legend{left:23px;bottom:22px;gap:14px;padding:11px 14px;border-color:#7584759e;border-radius:13px;background:#0c211fe8;box-shadow:0 10px 28px #0003;backdrop-filter:blur(12px)}
.bottom-legend span{font-size:10.5px;color:#e2e4d8}.bottom-legend i{width:9px;height:9px;box-shadow:0 0 0 3px #ffffff0d}
.bottom-legend small{font-size:9.5px;color:#abb9aa}.map-footer{color:#c7cebd;background:#0b201ec9;border:1px solid #75847573;border-radius:8px;padding:8px 10px;backdrop-filter:blur(8px)}
.placecard{right:21px;bottom:143px;width:min(370px,calc(100% - 42px));max-height:calc(100% - 185px);padding:21px;border-color:#9c9c7d9c;border-radius:18px;background:#102522f2;box-shadow:var(--atlas-shadow);backdrop-filter:blur(18px)}
.placecard h3{font-size:27px;line-height:1.12;color:#f3ecdd}.placecard p{font-size:12.5px;line-height:1.72;color:#d1d9cc}.placecard small{font-size:10.5px;line-height:1.65}.placecard a,dialog a{color:#e6c487}.close-card{border:1px solid #53695d;background:#1b3530;color:#f0edde;border-radius:9px}.close-card:hover{background:#2d4a3d}
.evidence-box{border-color:#526a5d;background:#18342f;border-radius:12px}.evidence-box strong{color:#e8c27b}.affiliation{color:#e4c98e!important}
.research-dialog{border-color:#7a8874;border-radius:20px;background:linear-gradient(145deg,#102725,#0b1f20);box-shadow:0 32px 100px #000b;padding:30px}
.research-dialog h2{font-size:31px;line-height:1.15;color:#f3ecdd}.research-dialog h3{color:#e2bf7f}.research-dialog p,.research-dialog li{font-size:13.5px;line-height:1.8;color:#d1d9cf}.research-dialog td,.research-dialog th{border-color:#425c51}.research-dialog th{color:#e2c282}.research-dialog small{font-size:10.5px;color:#a8b6a8}
.dialog-close{box-shadow:0 4px 14px #0003}
.light{color-scheme:light;--bg:#e9e7d9;--nav:#f5f1e6;--panel:#efecdf;--line:#a6b0a0;--muted:#536b62;--text:#213d3b;--soft:#dce4d8;--atlas-shadow:0 18px 50px #33483b2a}
.light .topbar{background:linear-gradient(95deg,#f5f0e4,#ece9dc);border-bottom-color:#b7b6a3;box-shadow:0 8px 24px #51614a12}
.light .logo-mark{background:#d9bd8b22;border-color:#a7824f;color:#896738;box-shadow:inset 0 0 0 4px #d5b27615}
.light .logosub,.light .topbar .strap{color:#66756a}.light .topbar .ghostbtn{background:#e8e6d9;border-color:#abb3a3;color:#304a45}.light .topbar .ghostbtn:hover{background:#dce5d9;border-color:#9d825a}
.light .sidebar{background:radial-gradient(ellipse at 15% 0%,#b7945210,transparent 42%),linear-gradient(160deg,#f2efe3,#e9ecdf);border-right-color:#aeb8a8}
.light .hero-title{color:#233f3c}.light .hero-title i{color:#8f6937}.light .hero-copy{color:#536e68}.light .kicker{color:#926d39}
.light .utility-buttons .ghostbtn,.light .control-grid label{background:#e2e8dc;border-color:#b2bdae;color:#304d47}.light .utility-buttons .ghostbtn:hover,.light .control-grid label:hover{background:#d9e3d6;border-color:#8b9a83}
.light .language-picker{background:#e7ebe0;border-color:#b6c0b1;color:#385650}.light .language-note{color:#5d766b}
.light .section-header{border-top-color:#b1b8aa}.light .section-header span{color:#354e48}.light .section-header small,.light .timeline-nav span{color:#5d7469}
.light .era{background:#e2e8dc7a;border-color:#bdc6b8}.light .era-year{color:#2c4843}.light .era-name{color:#60786d}.light .era.selected{background:linear-gradient(100deg,#d8c69b77,#dfe8dc);border-color:#aa8958;box-shadow:inset 3px 0 #ad8956,0 4px 14px #52614a14}.light .era:hover{background:#d9e4d8}
.light .lock-option{color:#4c665e}.light .chapter-story{background:linear-gradient(145deg,#edf0e4,#e3e9dd);border-color:#b5c0b1;box-shadow:0 10px 25px #52614a12}.light .chapter-story>b{color:#29443f}.light .chapter-story p,.light .chapter-story .identity-note{color:#46635b}.light .chapter-story .identity-note{border-top-color:#bdc5b8}.light .chapter-story #chapterStats{color:#876335}
.light .voice-deck{background:linear-gradient(145deg,#e4ebdd,#d9e5da);border-color:#aebcad}.light .voice-deck-head b{color:#304d47}.light .voice-deck-head span{color:#8b6736}.light .voice-deck small{color:#59746a}.light .voice-progress{background:#aebcad}
.light .language-picker select,.light .filters select,.light .search{background:#f0f1e7;color:#2e4b45;border-color:#aebaaa}.light .search::placeholder{color:#6f8174}
.light .mapwrap{background:radial-gradient(ellipse at 58% 44%,#d4ddca 0%,#c5d4ca 48%,#aabfb8 100%)}.light .mapwrap:after{background:linear-gradient(115deg,#fff2 20%,transparent 48%,#4862550d 100%)}
.light .landpath{fill:#c1d0c4;stroke:#82978c}.light .hide-borders .landpath{stroke:#c1d0c4}.light .graticule{stroke:#526f69;opacity:.22}.light .marker-label{stroke:#cfdbce}.light .region-label{fill:#405c53;stroke:#d3ddcf}.light .continent-label{fill:#62796e}
.light .mapbadge{border-color:#8c8a6d88;border-left-color:#9b7946;background:linear-gradient(105deg,#f4f0e6f2,#eee9d9e0 72%,#eee9d9b8);box-shadow:0 14px 34px #354b3d21}.light .mapbadge b,.light .mapbadge .era-group{color:#87683a}.light .mapbadge p{color:#294641;text-shadow:none}.light .mapbadge small{color:#50685f}
.light .map-presets button,.light .ctrl{background:#f4f0e6eb;color:#304d47;border-color:#97a696;box-shadow:0 5px 16px #364c3f1c}.light .map-presets button:hover,.light .ctrl:hover{background:#e0e9dc;border-color:#9b7946}
.light .bottom-legend{background:#f3f0e5ed;border-color:#98a895;box-shadow:0 10px 28px #364c3f1c}.light .bottom-legend span{color:#334e47}.light .bottom-legend small{color:#5a7367}.light .map-footer{background:#f2efe5df;border-color:#9dac99;color:#435e54}
.light .placecard{background:#f3f0e6f4;border-color:#95a390;box-shadow:0 20px 60px #33483b35}.light .placecard h3{color:#294641}.light .placecard p{color:#415e55}.light .placecard small{color:#60766b}.light .placecard a,.light dialog a{color:#74572f}.light .close-card{background:#e1e7dc;border-color:#aab7a8;color:#304d47}.light .close-card:hover{background:#d4e0d3}.light .evidence-box{background:#e4eadf;border-color:#b4c0b1}.light .evidence-box strong{color:#765c32}
.light .research-dialog{background:linear-gradient(145deg,#f4f1e7,#e8ede1);border-color:#a4b09f}.light .research-dialog h2{color:#294641}.light .research-dialog h3,.light .research-dialog th{color:#805f31}.light .research-dialog p,.light .research-dialog li{color:#415e55}.light .research-dialog td,.light .research-dialog th{border-color:#c1c9bb}.light .research-dialog small{color:#60766b}
.atlas-opening{background:#071919;color:#f3ecdd}.opening-shade{background:linear-gradient(90deg,#031415ed 0%,#061c1dbb 35%,#071b2110 75%),linear-gradient(0deg,#061615df,transparent 38%)}
.opening-brand{font-size:10px;letter-spacing:.2em;color:#e4d7b7}.opening-content{padding-left:clamp(34px,8vw,130px);max-width:760px}
.opening-kicker{font-size:10px;letter-spacing:.23em;color:#dec994}.opening-content h1{font-size:clamp(70px,9vw,132px);line-height:.9;letter-spacing:-.065em;color:#f4eedf;text-shadow:0 8px 35px #0005}
.opening-content>p{max-width:360px;font-size:15px;line-height:1.8;color:#d3d9cc}.opening-enter{min-height:54px;gap:50px;border:1px solid #d8c397a8;border-radius:12px;background:linear-gradient(110deg,#112d2bd9,#15302b9c);color:#f4eedf;padding:15px 19px;font-weight:650;box-shadow:0 10px 28px #0002;backdrop-filter:blur(8px)}
.opening-enter:hover{background:#f5f0e622;border-color:#f1d89b}.opening-enter span{color:#e0bf7c}.opening-time{font-size:9px;letter-spacing:.15em;color:#ddd7c4}.opening-time i{background:#d9cda477}.opening-bottom small{font-size:9.5px;color:#b7c0b2}
@media(max-width:1280px) and (min-width:981px){.app{grid-template-columns:350px minmax(0,1fr)}.topbar{padding-inline:19px}.topbar .strap{display:none}.utility-buttons .ghostbtn{font-size:10px}}
@media(max-width:980px) and (min-width:691px){.app{grid-template-columns:320px minmax(0,1fr)}.sidebar{padding:20px 17px 25px}.hero-title{font-size:34px}.mapbadge{max-width:calc(100% - 85px)}.mapbadge p{font-size:25px}.map-presets{top:150px;max-width:calc(100% - 95px)}.placecard{width:min(320px,calc(100% - 35px))}.bottom-legend{gap:8px;padding:9px 11px}.topright{gap:5px}}
@media(max-height:760px) and (min-width:691px){.sidebar{padding-top:17px;padding-bottom:18px}.hero-title{font-size:33px;margin:8px 0}.hero-copy{font-size:12px;line-height:1.6;margin-bottom:13px}.section-header{margin:15px 0 8px;padding-top:13px}.era-list{max-height:28vh}.chapter-story{padding:12px;margin-top:10px}}
@media(max-width:690px){
  .app{height:auto;min-height:100dvh;grid-template-columns:minmax(0,1fr);grid-template-rows:60px minmax(440px,68dvh) auto}
  .topbar{gap:8px;padding:0 11px}.logo-mark{width:32px;height:32px}.logotxt{font-size:10px;letter-spacing:.14em}.logosub{font-size:8px;letter-spacing:.12em}.topright{gap:4px}.topbar .ghostbtn{min-height:32px;padding:6px 8px;font-size:9px}
  .sidebar{padding:23px 17px 30px;border-right:0;border-top:1px solid #53675b66;overflow:visible}.hero-title{font-size:35px}.hero-copy{font-size:13px;max-width:460px}
  .utility-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.utility-buttons .ghostbtn{min-height:42px;font-size:10px}.language-picker{align-items:center;flex-direction:row}.language-picker select{margin-left:auto}
  .era-list{max-height:300px;grid-template-columns:1fr 1fr}.era{min-height:48px}.chapter-story{padding:14px}.voice-deck{padding:13px}
  .mapbadge{top:12px;left:12px;max-width:min(390px,calc(100% - 62px));padding:11px 12px;border-radius:0 12px 12px 0}.mapbadge p{font-size:21px;margin:6px 0}.mapbadge small{font-size:10px;line-height:1.45}.mapbadge .era-group{font-size:8px;margin-bottom:5px}
  .map-controls{top:12px;right:11px;gap:5px}.ctrl{width:33px;height:33px;border-radius:10px;font-size:18px}.map-presets{top:139px;left:12px;max-width:calc(100% - 24px);gap:5px}.map-presets button{padding:6px 9px;font-size:9px}
  .bottom-legend{left:11px;bottom:11px;max-width:calc(100% - 22px);gap:7px;padding:8px 9px;border-radius:11px}.bottom-legend span{font-size:9px}.bottom-legend i{width:8px;height:8px}.bottom-legend small{font-size:8px}.map-footer{display:none}
  .placecard{right:11px;bottom:92px;width:calc(100% - 22px);max-height:calc(100% - 155px);padding:16px;border-radius:15px}.placecard h3{font-size:23px}.placecard p{font-size:12px}.research-dialog{width:calc(100vw - 20px);max-height:92dvh;padding:19px;border-radius:16px}.research-dialog h2{font-size:25px;padding-right:65px}.research-dialog p,.research-dialog li{font-size:12.5px}.research-dialog td,.research-dialog th{padding:8px}
  .opening-brand{top:25px;left:7vw}.opening-content{padding:90px 7vw 145px}.opening-content h1{font-size:clamp(68px,17vw,104px)}.opening-content>p{font-size:13px;max-width:285px}.opening-enter{min-height:50px;gap:24px;padding:13px 15px}.opening-bottom{left:7vw;right:7vw}
}
@media(prefers-reduced-motion:reduce){.ghostbtn,.map-presets button,.opening-enter{transition:none!important}}

/* Map notes stay visible, but their gold asterisk distinguishes them from narration. */
.atlas-annotation{display:block}
.atlas-annotation-star{display:inline-block;margin-right:.35em;color:#f1bd70;font-size:1.2em;font-weight:900;line-height:1;vertical-align:baseline}
.chapter-story #chapterMethod{display:block;margin:9px 0;line-height:1.65}
.atlas-annotation-context:empty{display:none}
.light .atlas-annotation-star{color:#8b520d}
.location-follow-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px}
.location-follow-controls label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px}
.location-follow-controls input{accent-color:#e0bf7c}
.location-follow-controls .ghostbtn{min-height:29px;padding:5px 9px;font-size:9px}
#followStatus{display:block;min-height:0;margin-top:4px;color:#e0bf7c}
#followStatus:empty{display:none}
#narrationSpotlight{pointer-events:none}
.narration-focus-halo{fill:#f1bd7020;stroke:#f4cc78;stroke-width:2.5;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 7px #f4cc78aa);animation:focusPulse 1.5s ease-in-out infinite}
.narration-focus-core{fill:#f4cc78;stroke:#0b201e;stroke-width:2;vector-effect:non-scaling-stroke}
.narration-focus-label{fill:#fff0c8;stroke:#102522;stroke-width:3px;paint-order:stroke;stroke-linejoin:round;font:700 10px system-ui,sans-serif;letter-spacing:.08em}
.narration-area-outline{fill:#f4cc7814;stroke:#f4cc78;stroke-width:3;stroke-dasharray:8 5;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 5px #f4cc78aa)}
.narration-river-outline{fill:none;stroke:#f4cc78;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:8 5;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 5px #f4cc78aa)}
.light .narration-focus-label{fill:#5b401a;stroke:#f3f0e6}
.light .narration-area-outline{fill:#8b520d16;stroke:#8b520d}
.light .narration-river-outline{stroke:#8b520d}
@keyframes focusPulse{50%{fill:#f1bd7050;filter:drop-shadow(0 0 12px #f4cc78e8)}}
@media(prefers-reduced-motion:reduce){.narration-focus-halo{animation:none}}

/* Release accessibility and responsive layout. */
a:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #e6c98d;outline-offset:3px}
.atlas-skip{position:fixed;top:8px;left:8px;z-index:1000;background:#f4eedf;color:#18383e;padding:12px;transform:translateY(-200%)}.atlas-skip:focus{transform:none}
.atlas-home,.atlas-guide{text-decoration:none;white-space:nowrap}.exit-focus{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:10;min-height:44px}.exit-focus[hidden]{display:none}
.atlas-nojs{padding:20px;background:#f4eedf;color:#18383e}.atlas-nojs a{color:#18383e}
@media(max-width:690px){.atlas-guide{display:none}.mapbadge{max-width:calc(100% - 74px);max-height:153px;overflow:auto}.map-presets{top:190px;max-width:calc(100% - 74px)}.map-presets button{min-height:36px}.ctrl{min-width:36px;min-height:36px}.placecard{z-index:6;top:12px;bottom:auto;max-height:calc(100% - 24px)}.placecard .close-card{min-width:40px;min-height:40px}.topbar .atlas-home{font-size:10px;min-height:36px;display:inline-flex;align-items:center}.focus-atlas .exit-focus{left:12px;transform:none;top:auto;bottom:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
:root{--opening-art:url("/atlas/opening-art.jpg");}