@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root{--paper:#f6f3eb;--ink:#283c36;--muted:#78817a;--line:#dcded2;--accent:#4f6956}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:13px}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #b56b46;outline-offset:3px}header{height:79px;margin:0 40px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-weight:700;letter-spacing:2px;font-size:16px;text-decoration:none;color:inherit;display:flex;align-items:center;gap:9px}.brand-icon{font-size:35px;line-height:1;margin-right:5px;font-weight:400}.brand-light{font-weight:400}.edition{font-size:9px;letter-spacing:1.8px;color:var(--muted)}.edition span{margin-left:30px;color:var(--ink)}.text-button{background:none;border:0;padding:0;font-size:11px;color:var(--muted)}.text-button:hover{color:var(--ink);text-decoration:underline}.intro{padding:35px 40px 38px;display:flex;align-items:center;gap:70px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:2px;color:var(--accent);margin-bottom:16px}h1{font-family:'Libre Caslon Display',Georgia,serif;font-size:56px;letter-spacing:-1.7px;font-weight:400;line-height:.98;margin:0}h1 em{font-weight:400;color:#69806a}.intro p{color:#69756c;line-height:1.8;margin-top:46px;font-size:13px}.intro-stat{margin-left:auto;display:flex;align-items:center;gap:18px}.intro-stat strong{font-family:Georgia,serif;font-size:48px;font-weight:400}.intro-stat span{color:var(--muted);font-size:10px;line-height:1.6}main{display:grid;grid-template-columns:306px 1fr;border-block:1px solid var(--line);height:620px;margin:0 24px}.explorer{padding:24px 22px;background:#faf8f1;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.section-label{font-size:10px;letter-spacing:1.7px;font-weight:600;display:flex;justify-content:space-between;margin-bottom:20px}.section-label span{font-size:15px}.search{display:flex;align-items:center;gap:8px;border:1px solid #d8ddcf;background:#fffdf7;padding:9px 10px;border-radius:4px}.search span{font-size:22px;line-height:1}.search input{border:0;background:none;min-width:0;width:100%;font-size:11px;outline:none;color:var(--ink)}.filter-label{font-size:8px;letter-spacing:1.1px;font-weight:600;margin:21px 0 10px}.segments{display:flex;background:#edeee5;border-radius:4px;padding:3px}.segments button{background:transparent;border:0;border-radius:3px;flex:1;font-size:10px;padding:8px 2px}.segments button.active{background:#fffdf7;box-shadow:0 1px 3px #263a3320}.translated{font-size:9px;color:#737e74;display:flex;align-items:center;gap:6px;margin-top:10px}.translated input{margin:0;accent-color:var(--accent)}.legend-title{display:flex;justify-content:space-between;align-items:center}.legend-title button{font-size:9px}.legend{display:grid;grid-template-columns:1fr 1fr;gap:7px 6px}.legend button{display:flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:3px;padding:6px 4px;font-size:10px;background:transparent;text-align:left;white-space:nowrap}.legend button.off{opacity:.34}.legend button:hover{border-color:var(--line)}.swatch{width:7px;height:7px;border-radius:50%;flex-shrink:0}.line-setting{display:flex;align-items:center;justify-content:space-between;margin-top:17px;border-block:1px solid var(--line);padding:15px 0}.line-setting strong{font-size:11px;font-weight:500}.line-setting small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.switch{position:relative;width:31px;height:18px}.switch input{opacity:0;width:100%;height:100%;position:absolute;margin:0;z-index:1;cursor:pointer}.switch span{display:block;width:31px;height:18px;border-radius:14px;background:#c3c9bc}.switch span:before{content:'';display:block;position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:white;transition:transform .2s}.switch input:checked+span{background:#4b6552}.switch input:checked+span:before{transform:translateX(13px)}.switch input:focus-visible+span{outline:2px solid #b56b46}.results-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 0 10px;font-size:10px}.results-heading b{font-weight:600}.results-heading button{font-size:9px}.results{overflow-y:auto;min-height:60px;scrollbar-width:thin}.result{display:block;text-align:left;width:100%;background:none;border:0;border-top:1px solid #e9e9df;padding:11px 5px}.result:hover,.result.selected{background:#ebeee2}.result strong{font-size:11px;display:flex;align-items:center;gap:8px;font-weight:600}.result small{display:block;color:#7c837b;font-size:9px;margin:4px 0 0 15px}.result .arrow{float:right;color:#89947f;font-size:12px}.map-panel{position:relative;overflow:hidden;background:#e9eee6;min-width:0}.map-top{position:absolute;top:23px;left:25px;right:25px;display:flex;justify-content:space-between;z-index:1;pointer-events:none;font-size:8px;letter-spacing:1.3px}.map-top i{display:inline-block;width:5px;height:5px;background:#819780;border-radius:50%;margin-right:6px}.map-hint{color:#8d988b;letter-spacing:0;font-size:10px}#map{width:100%;height:100%;cursor:grab;touch-action:none}#map:active{cursor:grabbing}.land{fill:#f7f7eb;stroke:#c6d1bf;stroke-width:.5;vector-effect:non-scaling-stroke}.graticule{fill:none;stroke:#cbd6c9;stroke-opacity:.55;stroke-width:.5;vector-effect:non-scaling-stroke}.route{fill:none;stroke-width:1.2;stroke-opacity:.32;vector-effect:non-scaling-stroke;pointer-events:none}.route.highlight{stroke-width:2.1;stroke-opacity:.9}.dot{cursor:pointer;stroke:#fffef2;stroke-width:1.5;vector-effect:non-scaling-stroke}.origin-dot{fill:#fffdf6;stroke-width:1.5;vector-effect:non-scaling-stroke;cursor:pointer;pointer-events:all}.map-label{font-family:Georgia,serif;font-size:14px;fill:#9ba996;letter-spacing:3px;pointer-events:none;font-style:italic;opacity:.7}.zoom-controls{position:absolute;right:22px;top:65px;display:flex;flex-direction:column;border:1px solid #cdd6c6;border-radius:4px;overflow:hidden;box-shadow:0 3px 12px #546a4a0a}.zoom-controls button{background:#f9faf0;border:0;border-bottom:1px solid #d9dfd0;font-size:20px;width:32px;height:32px}.zoom-controls button:last-child{border-bottom:0}.zoom-controls button:hover{background:#e0e8d9}.map-bottom{position:absolute;bottom:20px;left:25px;right:25px;display:flex;justify-content:space-between;align-items:center;font-size:8px;color:#7c8c77;letter-spacing:.7px;pointer-events:none}.symbol{font-size:14px;vertical-align:-1px;margin-right:4px}.destination{margin-left:12px;font-size:10px}.detail{position:absolute;left:24px;bottom:54px;width:320px;max-width:calc(100% - 48px);padding:23px;background:#fffdf6;border:1px solid #d4dccb;border-radius:5px;box-shadow:0 7px 30px #36482d15}.detail .close,.close{position:absolute;right:12px;top:10px;background:none;border:0;font-size:22px;color:#8c9588}.detail .eyebrow{font-size:8px;margin-bottom:13px}.journey{font-size:12px;color:#7b8773;margin-bottom:6px}.detail h2{font:30px/1.1 'Libre Caslon Display',Georgia,serif;margin:0 0 5px}.detail .country{font-size:10px;color:#808777}.detail p{font-size:11px;line-height:1.65;color:#63705e;margin:15px 0}.source{font-size:10px;color:#48634e;text-decoration:underline;text-underline-offset:3px}.tag{display:inline-block;font-size:8px;padding:4px 6px;border:1px solid #d8dfce;border-radius:2px;margin-top:10px;color:#7c8b70}.tooltip{position:absolute;pointer-events:none;background:#2c4436;color:#fffdf3;padding:8px 12px;border-radius:3px;z-index:5;font-size:11px;box-shadow:0 2px 8px #0002}footer{display:flex;justify-content:space-between;padding:20px 40px 30px;color:#8d9387;font-size:10px}footer>span:first-child{font-family:Georgia,serif;font-style:italic;font-size:13px}footer button{font-size:10px}dialog{position:fixed;width:540px;max-width:calc(100% - 32px);max-height:85vh;overflow:auto;border:1px solid #ced6c5;border-radius:6px;background:var(--paper);color:var(--ink);padding:40px;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#253d3655;backdrop-filter:blur(3px)}dialog h2{font:42px/1.05 Georgia,serif;font-weight:400;margin:0 0 25px}dialog h3{font-size:12px;margin:23px 0 7px}dialog p{font-size:12px;line-height:1.8;color:#657260}dialog .fine{font-size:10px}.empty{padding:20px 4px;color:#7b8674;font-size:11px;line-height:1.7}
@media(min-width:1500px){main{height:calc(100vh - 335px);min-height:600px}.intro{gap:110px}}@media(max-width:1000px){.edition{display:none}.intro{gap:30px}.intro-stat{display:none}.intro p{font-size:12px}main{grid-template-columns:275px 1fr}.explorer{padding-inline:17px}.map-hint{display:none}.map-bottom>span:last-child{display:none}h1{font-size:49px}}@media(max-width:650px){header{height:64px;margin:0 20px}.brand{font-size:13px;letter-spacing:1px;gap:5px}.brand-icon{font-size:29px}header .text-button{font-size:9px}.intro{padding:28px 22px 27px;display:block}.eyebrow{font-size:8px;margin-bottom:13px}h1{font-size:44px;line-height:1}.intro p{margin:17px 0 0;font-size:11px;line-height:1.6}.desktop{display:none}main{display:flex;flex-direction:column;margin:0;height:auto}.map-panel{order:-1;height:470px;flex-shrink:0;border-bottom:1px solid var(--line)}.explorer{padding:22px;border-right:0}.section-label{margin-bottom:15px}.legend{grid-template-columns:repeat(3,1fr)}.legend button{font-size:9px}.filter-label{margin-top:17px}.line-setting{margin-top:13px}.results{height:260px}.results-heading{padding-top:17px}.detail{bottom:45px;left:18px;width:280px;padding:18px}.detail h2{font-size:27px}.detail p{font-size:10px;margin-block:10px}.map-top{top:18px;left:18px}.map-bottom{left:18px;bottom:15px}.zoom-controls{right:15px;top:52px}footer{padding:22px;display:block;line-height:2}footer>span{display:block}dialog{padding:30px}}

.mobile-filters{display:none}@media(max-width:650px){.mobile-filters{display:block;color:#48634e;pointer-events:auto;text-decoration:none;font-size:10px;letter-spacing:0;border:1px solid #cbd4c3;background:#f8faf0;padding:7px 10px;margin-top:-6px;border-radius:3px}html{scroll-behavior:smooth}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Expanded collection controls */
main{height:780px}.population-range{display:grid;grid-template-columns:1fr 1fr;gap:8px}.population-range label{font-size:9px;color:#63705e}.population-range input{display:block;width:100%;min-width:0;margin-top:5px;border:1px solid #d8ddcf;background:#fffdf7;border-radius:3px;padding:8px 7px;font-size:10px;color:var(--ink)}.population-filter>small{display:block;font-size:9px;line-height:1.5;color:#78817a;margin-top:8px}.population-filter>small[hidden]{display:none}.population-filter #populationError{color:#a44832}.population-detail{margin-top:14px;border-block:1px solid #e4e7da;padding:10px 0}.population-detail strong{font-size:12px;font-weight:500}.population-detail small{display:block;font-size:9px;color:#78817a;line-height:1.5;margin:4px 0}.population-detail .source{font-size:9px}.detail{max-height:calc(100% - 110px);overflow-y:auto}.result .result-population{font-size:8px;color:#64775f}.explorer> *:not(.results){flex-shrink:0}.results{flex:1}.population-filter .filter-label{margin-top:17px}.legend-title{margin-top:17px}.line-setting{padding-block:10px;margin-top:10px}@media(min-width:1500px){main{height:calc(100vh - 335px);min-height:780px}}@media(max-width:650px){main{height:auto}.results{flex:none;height:300px}.map-panel{height:520px}.population-range input{font-size:16px;padding:10px}.detail{max-height:400px}.population-filter>small,.translated{font-size:10px}}

.place-type{width:100%;font:inherit;font-size:12px;color:var(--ink,#292d28);padding:9px 10px;background:#f9f7f0;border:1px solid #d7d4c9;border-radius:5px;margin:5px 0 13px}.tag{text-transform:capitalize}

.coordinate-note{font-size:11px!important;color:#6b716b;line-height:1.5}

/* Rotatable globe: all controls remain comfortably tappable on mobile. */
.map-panel{background:radial-gradient(ellipse at 45% 45%,#f0f2e9,#dfe7dc)}
.globe-ocean{fill:url(#ocean-shade);stroke:#98aea0;stroke-width:1;pointer-events:none}
.globe-shading{fill:url(#globe-shade);pointer-events:none}
.globe-controls{position:absolute;z-index:2;top:49px;left:18px;display:flex;align-items:center;gap:3px;padding:4px;border:1px solid #cad4c3;border-radius:6px;background:#fafbf2ed}
.rotate-label{padding:8px 9px;font-size:11px;color:#526e5a}

#zoomLevel{min-width:43px;text-align:center;font-size:10px;color:#677b69;font-variant-numeric:tabular-nums}
.gesture-hint{position:absolute;top:107px;left:23px;z-index:1;pointer-events:none;font-size:10px;color:#687e6c}
.zoom-controls{z-index:2;top:52px;right:15px}.zoom-controls button{width:44px;height:44px}.zoom-controls button:disabled{opacity:.4;cursor:default}
#map:focus-visible{outline:2px solid #b56b46;outline-offset:-3px}.dot:focus{stroke:#263e30;stroke-width:3}
@media(max-width:650px){.globe-controls{left:15px;top:49px}.gesture-hint{left:19px;top:108px}.detail{bottom:46px;max-height:325px}.map-panel{height:560px}}

.supporting-source{display:block;margin-top:7px;overflow-wrap:anywhere}

.detail{box-sizing:border-box;overscroll-behavior:contain}

/* Marker touch targets are separate from the small, precise location symbols. */
.marker-hit{fill:transparent;stroke:none;pointer-events:all;cursor:pointer}
.origin-dot:focus{stroke:#263e30;stroke-width:3}
.origin-related{display:grid;gap:5px}
.related-place{width:100%;min-height:44px;text-align:left;padding:9px 10px;background:#f1f4e9;border:1px solid #dce3d1;border-radius:4px}
.related-place:hover{background:#e4eadb}
.related-place strong{display:block;font-size:11px;font-weight:600}
.related-place strong span{float:right}
.related-place small{display:block;color:#6b7967;font-size:10px;margin-top:4px}

.origin-location{display:grid;gap:7px;margin:15px 0;padding:11px 0;border-block:1px solid #e4e7da}
.origin-location div{display:grid;grid-template-columns:90px 1fr;gap:8px}
.origin-location dt{font-size:9px;color:#78817a;line-height:1.5}
.origin-location dd{margin:0;font-size:10px;line-height:1.5;color:#40563e;overflow-wrap:anywhere}
.origin-location + .source{display:block;margin-bottom:4px}
