.hm-page{margin:0;background:#f8f2e7;color:#513c26;font:15px/1.6 'Noto Sans',Arial,sans-serif}.hm-page *,.hm-app *{box-sizing:border-box}.hm-page a{color:inherit}.hm-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 4vw;border-bottom:1px solid #d7c7aa;background:#fffaf0}.hm-brand{display:flex;align-items:center;gap:10px;font:25px Georgia,serif;text-decoration:none;white-space:nowrap}.hm-header nav{display:flex;gap:22px;align-items:center;flex-wrap:wrap}.hm-header nav a{text-decoration:none;font-size:13px}.hm-header nav [aria-current]{border-bottom:2px solid #997039}.hm-language select{background:transparent;color:#513c26;border:1px solid #c9b48e;padding:7px}.hm-page main{max-width:1680px;margin:auto;padding:24px 4vw 60px}.hm-breadcrumb{display:flex;gap:12px;font-size:12px}.hm-breadcrumb a{text-decoration:none}.hm-heading{display:flex;justify-content:space-between;gap:20px;align-items:end;margin:30px 0}.hm-heading h1{font:clamp(32px,4vw,54px)/1.15 Georgia,serif;margin:6px 0 14px}.hm-heading p{margin:0;max-width:620px;color:#78654c}.hm-eyebrow{font-size:10px;letter-spacing:.17em}.hm-edition{font-size:11px;white-space:nowrap;color:#8d724c}.hm-app{--hm-gold:#d5b47c;--hm-paper:#f8f2e7;--hm-border:#cbb99a;color:#513c26;font:14px/1.6 'Noto Sans',Arial,sans-serif;text-align:left}.hm-app button,.hm-app select,.hm-app input,.hm-app a.hm-button{font:inherit}.hm-app button,.hm-app select,.hm-app input:not([type=range]){min-height:38px;border:1px solid var(--hm-border);border-radius:3px;background:#fffaf1;color:#513c26;padding:7px 11px}.hm-app button,.hm-app select,.hm-app input[type=range]{cursor:pointer}.hm-app button:hover,.hm-app a.hm-button:hover{background:#e9dcc4}.hm-app button:disabled{opacity:.5;cursor:default}.hm-app :focus-visible,.hm-header :focus-visible{outline:2px solid #94682d;outline-offset:3px}.hm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.hm-controls{display:flex;flex-wrap:wrap;align-items:end;gap:14px;padding:18px;background:#f0e6d4;border:1px solid var(--hm-border)}.hm-field{display:flex;flex-direction:column;gap:5px;font-size:11px}.hm-field select{max-width:240px}.hm-compare{display:flex;gap:12px;flex-wrap:wrap;border:0;margin:0;padding:0;flex:1;min-width:200px}.hm-compare legend{font-size:11px;margin-bottom:4px}.hm-compare label{display:flex;align-items:center;gap:6px;font-size:12px}.hm-compare input{accent-color:#94682d}.hm-timeline{background:#30261c;color:#ead7b5;border:1px solid #55442f;padding:18px;position:relative}.hm-time-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.hm-time-toolbar output{font:28px Georgia,serif}.hm-time-buttons{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.hm-timeline button,.hm-timeline select{border-color:#776043;background:#433422;color:#f5e9d1}.hm-timeline button:hover{background:#655035}.hm-time-scroll{overflow:auto;max-width:100%;margin:16px 0;scrollbar-color:#ac8a52 #30261c}.hm-time-chart{position:relative;min-width:600px}.hm-axis{display:flex;justify-content:space-between;margin-left:158px;border-bottom:1px solid #ffffff26;padding-bottom:6px;font-size:10px}.hm-time-row{display:grid;grid-template-columns:140px 1fr;gap:18px;align-items:center;min-height:42px;font-size:12px}.hm-time-row>span:first-child{position:sticky;left:0;background:#30261c;z-index:1}.hm-track{position:relative;height:25px;background:repeating-linear-gradient(90deg,#ffffff12 0,#ffffff12 1px,transparent 1px,transparent 10%)}.hm-bar{position:absolute;top:7px;height:10px;border-radius:2px;opacity:.8}.hm-dot{position:absolute;width:7px;height:20px;top:2px;background:#fff6db;border:1px solid #30261c;transform:translateX(-50%)}.hm-time-chart input{display:block;margin:12px 0 0 158px;width:calc(100% - 158px);accent-color:#d5b47c}.hm-year-entry{display:flex;gap:5px;align-items:center}.hm-year-entry input{width:86px}.hm-year-entry select{max-width:86px}.hm-time-caption{font-size:11px;margin:10px 0 0;color:#c6b696}.hm-workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;border:1px solid var(--hm-border);border-top:0;align-items:start}.hm-map-column{min-width:0;background:#e4e6da}.hm-map-stage{position:relative;overflow:hidden}.hm-map-stage svg{display:block;width:100%;height:560px;background:#dce4df;touch-action:none;cursor:grab}.hm-map-stage svg:active{cursor:grabbing}.hm-map-tools{position:absolute;right:14px;top:14px;display:flex;gap:5px}.hm-map-tools button{width:38px;background:#fffaf1ed;box-shadow:0 2px 9px #30261c16}.hm-map-stage svg path.hm-territory{stroke-width:.15;vector-effect:non-scaling-stroke;stroke:#53432d;fill-opacity:.65;cursor:pointer}.hm-map-stage svg .hm-land{fill:#f2eedf;stroke:#b9bea9;stroke-width:.15}.hm-map-stage svg .hm-graticule{stroke:#9baaa0;stroke-width:.15;fill:none;opacity:.4}.hm-map-stage svg .hm-place{cursor:pointer}.hm-map-stage svg text{font:2.7px Arial,sans-serif;paint-order:stroke;stroke:#fff9e9;stroke-width:.6px;stroke-linejoin:round;fill:#453b2b}.hm-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;padding:12px 16px;background:#eef0e5;border-top:1px solid #c9cebc}.hm-swatch{display:inline-block;width:12px;height:9px;margin-right:5px}.hm-panel{background:#fffaf0;align-self:stretch;padding:22px;border-left:1px solid var(--hm-border);overflow-wrap:anywhere}.hm-panel h2{font:28px/1.2 Georgia,serif;margin:0 0 10px}.hm-panel h3{font-size:12px;margin:22px 0 8px;letter-spacing:.04em}.hm-panel p{font-size:12px;line-height:1.75}.hm-panel a{color:#825b2e}.hm-panel .hm-tag{display:inline-block;font-size:10px;padding:3px 8px;border:1px solid #cbb99a;margin-bottom:14px}.hm-missing{padding:12px;border-left:3px solid #a37c42;background:#eee2ca}.hm-panel ul{padding-left:18px;font-size:12px}.hm-panel li{margin:6px 0}.hm-status{padding:10px 16px;background:#fff9ec;font-size:12px;border-top:1px solid #d7c7aa}.hm-bottom{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:20px 0}.hm-bottom h3{font:21px Georgia,serif}.hm-bottom p,.hm-bottom a{font-size:12px}.hm-bottom details{margin:12px 0;font-size:12px}.hm-footer{border-top:1px solid #d7c7aa;padding:20px 4vw;display:flex;gap:14px;font-size:12px}.hm-attribution{padding:8px 16px;background:#f6f0e4;font-size:10px;color:#78654c}.hm-app a.hm-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 14px;background:#e2c58f;border:1px solid #bd9a60;border-radius:3px;color:#3c2d1e;text-decoration:none}.hm-mini .hm-controls{justify-content:space-between}.hm-mini .hm-timeline{padding:14px 18px}.hm-mini .hm-workspace{display:block}.hm-mini .hm-map-stage svg{height:340px}.hm-mini .hm-timeline input[type=range]{width:100%;accent-color:#d5b47c}.hm-mini .hm-time-caption{max-width:100%}.hm-mini .hm-bottom{display:block}.hm-mini .hm-bottom p{color:#d6c4a6}.hm-home-legacy{display:none!important}html body.archive-home #home .home-time:has(.hm-mini){padding:42px clamp(16px,3vw,52px)!important}html body.archive-home #home .home-time>.hm-app{max-width:1380px;margin:auto}.hm-page [hidden],.hm-app [hidden]{display:none!important}
@media(max-width:1000px){.hm-header{flex-wrap:wrap;gap:14px}.hm-header nav{order:3;width:100%;gap:18px}.hm-workspace{grid-template-columns:minmax(0,1fr) 260px}.hm-heading{align-items:start}.hm-edition{display:none}}
@media(max-width:700px){.hm-page main{padding:18px 14px 32px}.hm-header{padding:14px}.hm-header nav{flex-wrap:nowrap;overflow:auto;padding-bottom:5px;gap:18px}.hm-header nav a{white-space:nowrap;font-size:12px}.hm-heading{margin:24px 0}.hm-controls{padding:12px;gap:12px}.hm-field{flex:1;min-width:130px}.hm-field select{width:100%;max-width:none}.hm-compare{flex-basis:100%}.hm-workspace{grid-template-columns:1fr}.hm-map-stage svg{height:360px}.hm-panel{border-left:0;border-top:1px solid var(--hm-border);padding:18px}.hm-time-toolbar{align-items:start}.hm-time-toolbar output{font-size:23px}.hm-bottom{grid-template-columns:1fr;gap:0}.hm-mini .hm-map-stage svg{height:280px}.hm-mini .hm-controls .hm-field{min-width:120px}.hm-map-tools{right:8px;top:8px}.hm-panel h2{font-size:25px}}
.hm-embed-title{font:400 clamp(26px,3vw,42px)/1.3 Georgia,serif;color:#f5e9d1;text-align:center;margin:0 0 26px}.hm-year-entry input{background:#fffaf1!important;color:#513c26!important}
@media(prefers-reduced-motion:reduce){.hm-app *{scroll-behavior:auto!important;transition:none!important}}

/* Keep geographic labels in screen pixels and place them without collisions. */
.hm-map-stage svg .hm-place text{font:12px Arial,sans-serif;stroke:#fffaf0;stroke-width:3px;stroke-linejoin:round;paint-order:stroke;pointer-events:none}
.hm-map-stage svg .hm-place:focus-visible circle{stroke:#94682d;stroke-width:3px}
.hm-compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:8px 16px;min-width:230px}
.hm-compare label{min-width:0;align-items:flex-start;line-height:1.5;overflow-wrap:anywhere}
.hm-compare input[type=checkbox],.hm-legend input[type=checkbox]{width:15px;height:15px;min-height:0;padding:0;flex:0 0 15px;margin:3px 0 0}
.hm-controls .hm-field{min-width:0}.hm-controls .hm-field select{max-width:250px;text-overflow:ellipsis}
.hm-time-chart{--hm-name-width:190px;--hm-track-start:208px;min-width:760px}
.hm-time-scroll{max-height:510px;overscroll-behavior:contain}
.hm-axis{position:relative;display:block;height:36px;margin-left:var(--hm-track-start);padding:0;border-color:#b99c6755}
.hm-axis>span{position:absolute;bottom:9px;white-space:nowrap;font-size:11px;line-height:1.4}
.hm-axis>span:after{content:'';position:absolute;top:calc(100% + 3px);left:50%;height:6px;border-left:1px solid #b99c67}
.hm-time-row{grid-template-columns:var(--hm-name-width) minmax(0,1fr);gap:18px;min-height:52px;align-items:center}
.hm-row-name{display:flex;flex-direction:column;gap:2px;padding:8px 10px 8px 0;line-height:1.4;overflow-wrap:anywhere;min-width:0}
.hm-row-name strong{font-size:12px;font-weight:500}.hm-row-name small{font-size:10px;color:#c6b696}
.hm-track{min-width:0;height:32px;border-bottom:1px solid #ffffff12}
.hm-app .hm-track .hm-segment{position:absolute;top:10px;height:13px;min-height:0;min-width:0;padding:0;border:0;border-radius:2px;opacity:.85;cursor:pointer}
.hm-dot{top:3px;width:2px;height:27px;border:0;background:#fff1c9;pointer-events:none;z-index:2}
.hm-app .hm-snapshot{position:absolute;width:76px;min-height:26px;height:26px;padding:3px 4px;font-size:10px;line-height:1.3;white-space:nowrap;background:#51402c;color:#f5e9d1;border:1px solid #927850}
.hm-app .hm-snapshot[aria-pressed=true]{background:#d5b47c;color:#30261c;border-color:#eddaae}
.hm-snapshot-track{display:block;min-height:34px;background:none;border:0;margin:8px 0}
.hm-snapshots{align-items:start}.hm-time-group{position:sticky;left:0;width:max-content;max-width:100%;padding:12px 0 4px;color:#d5b47c;letter-spacing:.04em;font-size:10px}
.hm-timeline-details{border-top:1px solid #ffffff26;margin-top:10px}.hm-timeline-details>summary{position:sticky;left:0;width:max-content;max-width:100%;font-size:12px;padding:12px 0;cursor:pointer}
.hm-time-chart input[data-time]{margin-left:var(--hm-track-start);width:calc(100% - var(--hm-track-start));margin-bottom:8px}
.hm-scale-tools{margin-top:10px}
@media(max-width:700px){.hm-compare{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;gap:10px}.hm-controls .hm-field select{max-width:100%}.hm-time-scroll{max-height:440px}.hm-time-chart{--hm-name-width:160px;--hm-track-start:178px;min-width:760px}.hm-timeline{padding:14px}.hm-year-entry{flex-wrap:wrap;max-width:100%}.hm-time-toolbar>.hm-time-buttons{max-width:100%}.hm-year-entry input{max-width:88px}}
.hm-catalogue{padding:18px;background:#fffaf0;border:1px solid var(--hm-border);border-bottom:0}.hm-catalogue-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.hm-catalogue-heading strong{font:23px Georgia,serif}.hm-catalogue-heading span,.hm-catalogue p{font-size:12px;color:#79674e}.hm-catalogue-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:16px}.hm-catalogue-filters input{width:min(100%,280px)}.hm-catalogue .hm-field{flex:1;min-width:150px}.hm-field select{width:100%;max-width:360px}.hm-compare{flex-basis:100%;min-width:0;align-items:center}.hm-compare label{max-width:100%;overflow-wrap:anywhere}.hm-controls>.hm-field:first-child{flex:2;min-width:180px}.hm-panel .hm-tag{white-space:normal}.hm-compare select{max-width:330px}.hm-app [hidden]{display:none!important}@media(max-width:600px){.hm-catalogue-filters{align-items:stretch}.hm-catalogue .hm-field{min-width:100%;width:100%}.hm-catalogue-heading span{width:100%}.hm-controls>.hm-field{min-width:100%;width:100%}.hm-compare{display:grid;grid-template-columns:minmax(0,1fr)}.hm-compare select{max-width:100%}}
.hm-event-list{padding:0;list-style:none}.hm-event-list li{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;align-items:start;margin:12px 0;font-size:12px}.hm-event-list button{font-size:11px;padding:5px;min-height:32px}.hm-historical-events .hm-snapshot{border-style:dashed}.hm-panel .hm-time-buttons button{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:12px}.hm-historical-events{margin:10px 0}.hm-mini .hm-historical-events{display:none}

.hm-discovery-toolbar{padding:16px 18px;background:#fff9ed;border:1px solid var(--hm-border);border-top:0}.hm-discovery-tabs,.hm-discovery-options{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.hm-discovery-tabs{margin-bottom:12px}.hm-discovery-tabs button[aria-pressed=true]{background:#513c26;color:#fff4dc}.hm-discovery-options>label{display:flex;gap:7px;align-items:center;font-size:12px}.hm-discovery-toolbar p{margin:10px 0 0;font-size:12px;color:#78654c}.hm-discovery-panel{padding:24px;background:#fffaf0;border:1px solid var(--hm-border);border-top:0;scroll-margin-top:12px}.hm-discovery-panel h2{font:24px Georgia,serif;margin:0 0 12px}.hm-discovery-panel h3{font-size:15px}.hm-location-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}.hm-discovery-panel p,.hm-discovery-panel small{font-size:12px;line-height:1.75}.hm-reference-note{color:#78654c}.hm-coordinate-form{display:flex;gap:8px;flex-wrap:wrap;align-items:end;margin:16px 0}.hm-coordinate-form input{width:145px;max-width:100%}.hm-discovery-panel .hm-field select{max-width:100%;width:100%}.hm-point-summary{padding:12px 16px;background:#f0e6d4;border-left:3px solid #997039}.hm-point-summary p{margin:6px 0}.hm-point-history{margin-top:24px;border-top:1px solid var(--hm-border);padding-top:12px}.hm-table-scroll{max-width:100%;overflow:auto;margin:14px 0}.hm-discovery-panel table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.hm-discovery-panel th,.hm-discovery-panel td{padding:12px;border:1px solid #d7c7aa;vertical-align:top}.hm-discovery-panel th{background:#f0e6d4}.hm-discovery-panel td button{font-size:11px;min-height:32px;margin:2px}.hm-discovery-panel td:first-child{min-width:120px}.hm-data-gap{color:#78654c;font-style:italic}.hm-map-pair{display:grid;grid-template-columns:minmax(0,1fr)}.hm-map-pair.hm-two-dates{grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--hm-border)}.hm-view{min-width:0;background:#e4e6da}.hm-view-title{padding:10px 14px;margin:0;background:#f0e6d4;font-size:13px;font-weight:600}.hm-second-status,.hm-second-source{display:block;padding:10px 14px;font-size:12px}.hm-modern-reference path{fill:none;stroke:#244e6a;stroke-width:1;stroke-dasharray:5 3;vector-effect:non-scaling-stroke;opacity:.85}.hm-point-pin{fill:#fff5d6;stroke:#174e70;stroke-width:2}.hm-point-pin path{fill:none}.hm-picking .hm-map-stage svg{cursor:crosshair}.hm-has-second .hm-workspace{grid-template-columns:minmax(0,1fr)}.hm-has-second .hm-panel{border-left:0;border-top:1px solid var(--hm-border)}.hm-has-second .hm-map-stage svg{height:440px}.hm-relations{list-style:none;padding:0!important}.hm-relations li{padding:8px 0;border-bottom:1px solid #e4d8c2}.hm-relations span{display:block;margin-top:5px}.hm-relations button{width:100%;text-align:left;font-size:12px}.hm-journey{margin-top:18px;max-width:780px}.hm-journey .hm-time-buttons{margin-top:15px}.hm-app .hm-discovery-panel a,.hm-app .hm-second-source{color:#825b2e}.hm-discovery-options input[type=checkbox]{min-height:auto!important}
@media(max-width:800px){.hm-location-grid{grid-template-columns:minmax(0,1fr);gap:24px}.hm-map-pair.hm-two-dates{grid-template-columns:minmax(0,1fr)}.hm-has-second .hm-map-stage svg{height:320px}.hm-discovery-panel{padding:18px}.hm-discovery-tabs{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.hm-discovery-tabs button{text-align:left}.hm-discovery-options{gap:14px}.hm-coordinate-form .hm-field{flex:1;min-width:100px}.hm-coordinate-form input{width:100%}.hm-discovery-panel td{padding:8px}.hm-discovery-panel table{min-width:530px}.hm-discovery-panel .hm-point-summary{padding:10px}.hm-discovery-panel .hm-table-scroll{max-height:520px}}
/* Full Map follows Earth Data's paper, warm gold and Noto Sans identity.
   Scope the larger workspace to this route; the compact Home embed is unchanged. */
.hm-page{background:#faf5eb;background-image:linear-gradient(#fcf8f0ed,#faf4e9ed),url('/assets/nenav-background.png');background-size:cover;background-attachment:fixed;color:#634923;font:16px/1.65 'Noto Sans',Arial,sans-serif;min-width:320px}
.hm-page .hm-header{min-height:92px;padding:16px clamp(18px,2.2vw,48px);gap:28px;background:linear-gradient(#fffbf1d9,#fffbf1d9),url('/assets/nenav-background.png') center 38%/cover;border-bottom:1px solid #b28b4b88;box-shadow:0 4px 14px #70512b12;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.hm-page .hm-brand{font:700 clamp(25px,1.8vw,34px)/1.2 'Noto Sans',Arial,sans-serif;gap:12px;color:#171714;letter-spacing:-.02em}.hm-page .hm-brand img{width:48px;height:48px;object-fit:contain}.hm-page .hm-brand b{font-weight:700}.hm-page .hm-brand .hm-brand-gold{color:#d2a327}.hm-page .hm-header nav{justify-content:center;gap:clamp(18px,2.2vw,44px);width:auto;order:initial}.hm-page .hm-header nav a{font-size:14px;letter-spacing:.025em;text-transform:uppercase;padding:10px 0;border-bottom:2px solid transparent;white-space:nowrap}.hm-page .hm-header nav a[aria-current]{border-bottom-color:#bd8e42;color:#8b5d23}.hm-page .hm-language select{min-height:44px;padding:8px 12px;background:#fffaf1;border-color:#d7be94;border-radius:6px;font:14px 'Noto Sans',Arial,sans-serif}
.hm-page main#historical-map{width:100%;max-width:none;margin:0;padding:22px clamp(16px,2.1vw,48px) 64px}.hm-page .hm-breadcrumb{font-size:14px;gap:12px;color:#886338}.hm-page .hm-heading{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:16px;margin:32px 0 34px}.hm-page .hm-heading-mark{display:block;color:#b9853b;font:42px/1 Arial,sans-serif;margin-bottom:14px}.hm-page .hm-heading h1{font:500 clamp(32px,2.6vw,46px)/1.25 'Noto Sans',Arial,sans-serif;color:#8b5c24;margin:10px 0 16px}.hm-page .hm-heading p{max-width:920px;margin:0 auto;font-size:16px;color:#86643d}.hm-page .hm-heading .hm-eyebrow{font-size:12px;letter-spacing:.13em}.hm-page .hm-heading:after{content:'◇';display:block;color:#bf945a;font-size:16px;letter-spacing:10px;width:130px;background:linear-gradient(#d9be95,#d9be95) left center/43px 1px no-repeat,linear-gradient(#d9be95,#d9be95) right center/43px 1px no-repeat}.hm-page .hm-edition{display:block;font-size:13px;white-space:normal;color:#98764c}
.hm-page .hm-app{font:16px/1.65 'Noto Sans',Arial,sans-serif;--hm-border:#d6b78b;--hm-paper:#fffbf3;--hm-gold:#c79850;width:100%;min-width:0}.hm-page .hm-app button,.hm-page .hm-app select,.hm-page .hm-app input:not([type=range]){min-height:48px;border-color:#d6b78b;border-radius:6px;padding:10px 14px;font-size:16px;line-height:1.45;background:#fffdf7;color:#694b28}.hm-page .hm-app button:hover{background:#f2e3cb;border-color:#b98a46}.hm-page .hm-app input[type=checkbox]{width:19px;height:19px;min-height:19px;padding:0;accent-color:#a47639;flex:0 0 19px}.hm-page .hm-field{font-size:14px;gap:8px;min-width:0}.hm-page .hm-field input,.hm-page .hm-field select{width:100%;max-width:none}.hm-page .hm-catalogue{padding:24px 28px;background:#fffbf3e8;border-radius:10px 10px 0 0}.hm-page .hm-catalogue-heading{align-items:center;gap:12px 28px}.hm-page .hm-catalogue-heading strong{font:500 25px/1.4 'Noto Sans',Arial,sans-serif;color:#8b5c24}.hm-page .hm-catalogue-heading span,.hm-page .hm-catalogue p{font-size:14px;color:#886a45}.hm-page .hm-catalogue-filters{display:grid;grid-template-columns:minmax(240px,1.6fr) repeat(3,minmax(150px,1fr)) auto;gap:16px;margin-top:22px}.hm-page .hm-catalogue .hm-field{min-width:0}.hm-page .hm-catalogue-filters input{width:100%}
.hm-page .hm-controls{display:grid;grid-template-columns:minmax(260px,2fr) repeat(2,minmax(180px,1fr));gap:20px 24px;padding:24px 28px;background:#f3e8d5;border-color:#d6b78b}.hm-page .hm-controls>.hm-field{min-width:0;width:100%;font-size:14px}.hm-page .hm-controls>.hm-field select{max-width:none}.hm-page .hm-compare{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;padding-top:16px;border-top:1px solid #d6b78b77}.hm-page .hm-compare legend{font-size:14px;margin:0 0 10px}.hm-page .hm-compare label{font-size:15px;align-items:center;gap:10px;max-width:100%}.hm-page .hm-compare .hm-field{margin-left:auto;width:min(420px,100%)}.hm-page .hm-compare select{max-width:none}
.hm-page .hm-discovery-toolbar{padding:22px 28px;background:#fffbf3;border-color:#d6b78b}.hm-page .hm-discovery-tabs{gap:12px;margin-bottom:18px}.hm-page .hm-discovery-tabs button{padding:12px 20px;font-size:16px;background:#fffdf7}.hm-page .hm-discovery-tabs button[aria-pressed=true]{background:#a7793d;color:#fffdf7;border-color:#a7793d}.hm-page .hm-discovery-options{gap:16px 28px;align-items:center}.hm-page .hm-discovery-options>label{font-size:15px;gap:10px}.hm-page .hm-discovery-options .hm-field{flex-direction:row;align-items:center}.hm-page .hm-discovery-options .hm-field select{width:150px}.hm-page .hm-discovery-toolbar p{font-size:14px;line-height:1.6;color:#886a45;margin-top:16px}
.hm-page .hm-timeline{background:#f1e4cf;color:#61472a;border-color:#d6b78b;padding:24px 28px}.hm-page .hm-time-toolbar{gap:18px}.hm-page .hm-time-toolbar output{font:500 32px/1.2 'Noto Sans',Arial,sans-serif;color:#8b5c24}.hm-page .hm-timeline button,.hm-page .hm-timeline select{color:#694b28;background:#fffaf1;border-color:#cfad7e}.hm-page .hm-time-buttons{gap:10px}.hm-page .hm-time-buttons>button{min-width:46px}.hm-page .hm-time-scroll{max-height:500px;margin:22px 0;scrollbar-color:#b08b54 #ede0ca}.hm-page .hm-time-chart{--hm-name-width:222px;--hm-track-start:240px;min-width:960px}.hm-page .hm-axis{height:40px;border-color:#c6aa80}.hm-page .hm-axis>span{font-size:13px;color:#775734}.hm-page .hm-time-row{min-height:62px}.hm-page .hm-time-row>span:first-child{background:#f1e4cf}.hm-page .hm-row-name{padding:10px 14px 10px 0;gap:5px}.hm-page .hm-row-name strong{font-size:14px;font-weight:600}.hm-page .hm-row-name small{font-size:12px;color:#8a6b47}.hm-page .hm-track{background:repeating-linear-gradient(90deg,#b3956926 0,#b3956926 1px,transparent 1px,transparent 10%);border-color:#b3956926}.hm-page .hm-dot{background:#79572d}.hm-page .hm-app .hm-snapshot{width:104px;height:34px;min-height:34px;font-size:13px;padding:6px;line-height:1.4;color:#77552c;background:#fff9ee;border-color:#c8a36b}.hm-page .hm-app .hm-snapshot[aria-pressed=true]{background:#a7793d;border-color:#a7793d;color:#fffaf1}.hm-page .hm-snapshot-track{background:none;border:0}.hm-page .hm-time-group{color:#946a31;font-size:13px}.hm-page .hm-timeline-details{border-color:#c9ae8580}.hm-page .hm-timeline-details>summary{font-size:15px;padding:16px 0}.hm-page .hm-time-caption{font-size:14px;color:#866742;margin-top:16px}.hm-page .hm-year-entry{gap:8px}.hm-page .hm-year-entry input{width:108px}.hm-page .hm-year-entry select{max-width:96px}.hm-page .hm-scale-tools{font-size:14px;margin-top:16px}
.hm-page .hm-workspace{grid-template-columns:minmax(0,1fr) clamp(340px,24vw,440px);border-color:#d6b78b;background:#fbf5e9}.hm-page .hm-map-column{background:#e6e7dc}.hm-page .hm-map-stage svg{height:clamp(640px,78vh,1100px);min-height:640px;background:#dee6e2}.hm-page .hm-map-tools{right:20px;top:20px;gap:8px}.hm-page .hm-map-tools button{width:50px;height:50px;min-height:50px;padding:0;font-size:24px;background:#fffcf4f5;border-color:#c7ab80;box-shadow:0 4px 14px #60431e18}.hm-page .hm-map-stage svg .hm-land{fill:#f8f2e4;stroke:#bdb99f}.hm-page .hm-legend{font-size:14px;gap:14px 24px;padding:18px 24px;background:#f4f1e5;border-color:#d3c7ae}.hm-page .hm-swatch{width:15px;height:11px;margin-right:7px}.hm-page .hm-status{font-size:15px;padding:16px 24px;background:#fff9ed;border-color:#d6b78b}.hm-page .hm-attribution{font-size:12px;padding:12px 24px;color:#8c7353;background:#f8f0e2}.hm-page .hm-panel{padding:28px;border-color:#d6b78b;background:#fffbf3}.hm-page .hm-panel h2{font:500 30px/1.3 'Noto Sans',Arial,sans-serif;color:#8b5c24}.hm-page .hm-panel h3{font:600 17px/1.5 'Noto Sans',Arial,sans-serif;color:#8b5c24;margin-top:26px}.hm-page .hm-panel p,.hm-page .hm-panel ul{font-size:15px;line-height:1.8}.hm-page .hm-panel .hm-tag{font-size:12px;padding:6px 10px;border-color:#d6b78b;background:#faf0df;margin-bottom:18px}.hm-page .hm-panel .hm-time-buttons button{font-size:14px;min-height:42px;padding:8px 11px}.hm-page .hm-event-list li{grid-template-columns:112px minmax(0,1fr);gap:12px;font-size:14px;margin:16px 0}.hm-page .hm-relations button{font-size:14px}.hm-page .hm-missing{padding:16px;font-size:15px;border-color:#a7793d;background:#f5e8d2}.hm-page .hm-has-second .hm-workspace{grid-template-columns:minmax(0,1fr)}.hm-page .hm-has-second .hm-map-stage svg{height:clamp(640px,78vh,1000px);min-height:640px}.hm-page .hm-has-second .hm-panel{border-left:0;border-top:1px solid #d6b78b}.hm-page .hm-has-second .hm-panel p{max-width:110ch}.hm-page .hm-view-title{font-size:17px;padding:16px 24px;background:#f5ead8}.hm-page .hm-second-status,.hm-page .hm-second-source{font-size:14px;padding:12px 24px}
.hm-page .hm-discovery-panel{padding:30px;background:#fffbf3;border-color:#d6b78b;scroll-margin-top:24px;border-radius:0 0 10px 10px}.hm-page .hm-discovery-panel h2{font:500 27px/1.4 'Noto Sans',Arial,sans-serif;color:#8b5c24;margin-bottom:18px}.hm-page .hm-discovery-panel h3{font-size:20px;color:#8b5c24}.hm-page .hm-location-grid{gap:36px;grid-template-columns:1fr 1fr}.hm-page .hm-discovery-panel p,.hm-page .hm-discovery-panel small{font-size:15px;line-height:1.8}.hm-page .hm-discovery-panel .hm-field{margin:14px 0}.hm-page .hm-coordinate-form{gap:12px;margin:20px 0}.hm-page .hm-coordinate-form .hm-field{flex:1;min-width:140px;margin:0}.hm-page .hm-coordinate-form input{width:100%}.hm-page .hm-point-summary{padding:20px 22px;background:#f3e8d3;border-left:3px solid #ad803e;border-radius:0 6px 6px 0}.hm-page .hm-point-summary p{font-size:15px;line-height:1.8;margin:10px 0}.hm-page .hm-discovery-panel table{font-size:15px}.hm-page .hm-discovery-panel th,.hm-page .hm-discovery-panel td{padding:16px;line-height:1.7}.hm-page .hm-discovery-panel th{font-weight:600;background:#f3e8d5}.hm-page .hm-discovery-panel td button{font-size:14px;min-height:40px;padding:8px 11px}.hm-page .hm-discovery-panel .hm-table-scroll{max-height:760px}.hm-page .hm-point-history{margin-top:32px;padding-top:24px}.hm-page .hm-journey{max-width:1100px}.hm-page .hm-bottom{gap:48px;padding:32px 8px}.hm-page .hm-bottom h3{font:500 24px/1.5 'Noto Sans',Arial,sans-serif;color:#8b5c24}.hm-page .hm-bottom p,.hm-page .hm-bottom a{font-size:15px}.hm-page .hm-footer{font-size:14px;padding:24px clamp(16px,2.1vw,48px);background:#f2e7d5;border-color:#d1b58a}
@media(max-width:1200px){.hm-page .hm-header{gap:20px}.hm-page .hm-header nav{gap:18px}.hm-page .hm-header nav a{font-size:12px}.hm-page .hm-catalogue-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-page .hm-catalogue-filters>button{justify-self:start}.hm-page .hm-workspace{grid-template-columns:minmax(0,1fr)}.hm-page .hm-panel{border-left:0;border-top:1px solid #d6b78b}.hm-page .hm-panel p{max-width:100ch}.hm-page .hm-controls{grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.hm-page .hm-header{grid-template-columns:1fr auto;min-height:80px;padding:14px 20px;gap:10px 20px}.hm-page .hm-header nav{grid-column:1/-1;grid-row:2;display:flex;justify-content:flex-start;flex-wrap:nowrap;overflow:auto;gap:26px;padding:4px 0 0;width:100%}.hm-page .hm-header nav a{font-size:13px}.hm-page .hm-brand{font-size:26px}.hm-page .hm-brand img{width:42px;height:42px}.hm-page .hm-heading{margin:28px 0}.hm-page .hm-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-page .hm-controls>.hm-field:first-child{grid-column:1/-1}.hm-page .hm-location-grid{grid-template-columns:minmax(0,1fr);gap:28px}.hm-page .hm-discovery-tabs{display:flex}.hm-page .hm-map-pair.hm-two-dates{grid-template-columns:minmax(0,1fr)}.hm-page .hm-map-stage svg,.hm-page .hm-has-second .hm-map-stage svg{height:70vh;min-height:560px}}
@media(max-width:600px){.hm-page main#historical-map{padding:18px 12px 36px}.hm-page .hm-header{padding:12px 16px}.hm-page .hm-brand{font-size:24px;gap:9px}.hm-page .hm-brand img{width:38px;height:38px}.hm-page .hm-language select{font-size:13px;max-width:116px}.hm-page .hm-heading h1{font-size:30px}.hm-page .hm-heading p{font-size:15px}.hm-page .hm-heading .hm-eyebrow{font-size:10px}.hm-page .hm-heading-mark{font-size:36px}.hm-page .hm-edition{font-size:12px}.hm-page .hm-catalogue,.hm-page .hm-controls,.hm-page .hm-discovery-toolbar,.hm-page .hm-timeline,.hm-page .hm-discovery-panel{padding:20px 16px}.hm-page .hm-catalogue-heading strong{font-size:23px}.hm-page .hm-catalogue-heading span{font-size:13px}.hm-page .hm-catalogue-filters{grid-template-columns:minmax(0,1fr);gap:14px}.hm-page .hm-catalogue .hm-field{min-width:0;width:100%}.hm-page .hm-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.hm-page .hm-controls>.hm-field{min-width:0;width:100%}.hm-page .hm-controls>.hm-field:first-child{grid-column:1/-1}.hm-page .hm-compare{gap:14px}.hm-page .hm-compare .hm-field{width:100%;margin-left:0}.hm-page .hm-compare label{font-size:14px}.hm-page .hm-discovery-tabs{display:grid;grid-template-columns:minmax(0,1fr)}.hm-page .hm-discovery-tabs button{font-size:15px;text-align:left}.hm-page .hm-discovery-options{align-items:flex-start;flex-direction:column;gap:16px}.hm-page .hm-discovery-options>label{font-size:14px}.hm-page .hm-discovery-options>button{width:100%;text-align:left}.hm-page .hm-time-toolbar output{font-size:28px}.hm-page .hm-time-toolbar>.hm-time-buttons{width:100%}.hm-page .hm-year-entry{width:100%;flex-wrap:nowrap}.hm-page .hm-year-entry input{width:100%;max-width:130px;flex:1;min-width:60px}.hm-page .hm-year-entry select{width:86px}.hm-page .hm-timeline .hm-time-buttons{gap:8px}.hm-page .hm-time-scroll{max-height:400px}.hm-page .hm-time-chart{--hm-name-width:162px;--hm-track-start:180px}.hm-page .hm-row-name strong{font-size:13px}.hm-page .hm-row-name small{font-size:11px}.hm-page .hm-map-stage svg,.hm-page .hm-has-second .hm-map-stage svg{height:68svh;min-height:460px}.hm-page .hm-map-tools{right:12px;top:12px;gap:6px}.hm-page .hm-map-tools button{width:44px;height:44px;min-height:44px;font-size:22px}.hm-page .hm-panel{padding:24px 20px}.hm-page .hm-panel h2{font-size:28px}.hm-page .hm-status,.hm-page .hm-legend{padding:16px;font-size:14px}.hm-page .hm-attribution{padding:12px 16px;font-size:12px}.hm-page .hm-discovery-panel h2{font-size:25px}.hm-page .hm-coordinate-form .hm-field{min-width:105px}.hm-page .hm-coordinate-form>button{width:100%}.hm-page .hm-point-summary{padding:16px}.hm-page .hm-point-summary p{font-size:14px}.hm-page .hm-discovery-panel th,.hm-page .hm-discovery-panel td{padding:12px}.hm-page .hm-bottom{grid-template-columns:minmax(0,1fr);gap:12px;padding:24px 4px}}

/* Secondary filters are expandable; the selected entity and timeline stay visible. */
.hm-page .hm-catalogue-drawer{border:1px solid #d6b78b;background:#fffbf3e8;border-radius:10px 10px 0 0}.hm-page .hm-catalogue-drawer>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;cursor:pointer;padding:18px 28px;list-style:none;color:#8b5c24}.hm-page .hm-catalogue-drawer>summary:after{content:'+';font-size:26px;line-height:1}.hm-page .hm-catalogue-drawer[open]>summary:after{content:'−'}.hm-page .hm-catalogue-drawer>summary strong{font-size:21px;font-weight:500}.hm-page .hm-catalogue-drawer>summary span{font-size:14px;color:#886a45;margin-left:auto}.hm-page .hm-catalogue-drawer .hm-catalogue{border:0;border-top:1px solid #e3ceb0;border-radius:0;padding-top:8px}.hm-page .hm-catalogue-drawer .hm-catalogue-heading{display:none}.hm-page .hm-comparison-drawer{grid-column:1/-1;border-top:1px solid #d6b78b88;padding-top:12px}.hm-page .hm-comparison-drawer>summary{cursor:pointer;font-size:15px;color:#886338;padding:4px 0}.hm-page .hm-comparison-drawer .hm-compare{padding-top:16px;border:0}.hm-page .hm-comparison-drawer .hm-compare legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:600px){.hm-page .hm-catalogue-drawer>summary{padding:18px 16px;gap:12px;flex-wrap:wrap}.hm-page .hm-catalogue-drawer>summary strong{font-size:20px}.hm-page .hm-catalogue-drawer>summary span{order:3;width:100%;margin:0;font-size:13px}.hm-page .hm-catalogue-drawer>summary:after{margin-left:auto}.hm-page .hm-catalogue-drawer .hm-catalogue{padding-top:0}}

/* The full Map lives inside the SAME site shell as every archive section. */
body.historical-map-view #content{width:100%!important;max-width:none!important;margin-left:0!important;padding-bottom:0!important}
body.historical-map-view #historical-map[hidden]{display:none!important}
body.historical-map-view #historical-map{display:block;width:100%;max-width:none;margin:0;padding:8px clamp(16px,2.2vw,48px) 48px;background:transparent;color:#513c26}
body.historical-map-view #historical-map .sites-editorial-heading{margin:8px 0 36px}
body.historical-map-view #historicalMapTitle{font-size:var(--archive-size-title,clamp(40px,4.5vw,78px))!important;font-weight:400!important;line-height:1.2!important;color:#936a31!important;margin:0!important;text-shadow:none!important;filter:none!important}
body.historical-map-view #historical-map .hm-app{width:100%;max-width:none}
body.historical-map-view #historical-map .hm-app [hidden]{display:none!important}
body.historical-map-view #historical-map .hm-app button,body.historical-map-view #historical-map .hm-app input,body.historical-map-view #historical-map .hm-app select{text-transform:none;letter-spacing:normal}
@media(max-width:600px){body.historical-map-view #historical-map{padding:8px 12px 32px}body.historical-map-view #historicalMapTitle{font-size:32px!important}}

/* Map experience: shared site shell and existing section order are unchanged. */
.hm-site-atlas .hm-unified-search{grid-column:1/-1;position:relative;min-width:0;width:100%}
.hm-site-atlas .hm-unified-search .hm-field{max-width:none;width:100%}
.hm-site-atlas .hm-unified-search input{width:100%;min-width:0}
.hm-site-atlas .hm-search-help{font-size:13px!important;line-height:1.5!important;margin:8px 0 0!important;color:#796346}
.hm-site-atlas .hm-search-results{position:absolute;top:100%;left:0;right:0;z-index:60;list-style:none;margin:8px 0 0;padding:6px;max-height:360px;overflow:auto;overscroll-behavior:contain;border:1px solid #bd9b67;border-radius:8px;background:#fffaf0;box-shadow:0 12px 28px #49351c24}
.hm-site-atlas .hm-search-results li{margin:0;padding:0;list-style:none}
.hm-site-atlas .hm-search-results button{display:grid;grid-template-columns:180px minmax(0,1fr);gap:3px 18px;width:100%;border:0;border-bottom:1px solid #d7c4a7;border-radius:0;background:transparent;text-align:left;padding:14px;min-height:70px}
.hm-site-atlas .hm-search-results button:hover,.hm-site-atlas .hm-search-results button:focus-visible{background:#f0e3cb}
.hm-site-atlas .hm-result-type{grid-row:1/3;align-self:center;color:#8c632e;font-size:12px}
.hm-site-atlas .hm-search-results strong{font-size:16px;font-weight:600}
.hm-site-atlas .hm-search-results small{font-size:13px;color:#756044}
.hm-site-atlas .hm-catalogue-filters{grid-template-columns:repeat(3,minmax(0,1fr)) auto}
.hm-site-atlas .hm-info-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:18px 0;border-bottom:1px solid #d6b78b;padding-bottom:8px}
.hm-site-atlas .hm-info-tabs button{padding:9px 5px;min-width:0;font-size:13px;line-height:1.4;white-space:normal}
.hm-site-atlas .hm-info-tabs [aria-selected="true"]{background:#9d743b;color:#fffaf0;border-color:#9d743b}
.hm-site-atlas .hm-panel-heading{display:flex;align-items:center;gap:14px;justify-content:space-between}
.hm-site-atlas .hm-panel-heading h2{margin:0;min-width:0}
.hm-site-atlas .hm-sheet-toggle{display:none}
.hm-site-atlas .hm-panel{position:sticky;top:104px;max-height:calc(100svh - 124px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.hm-site-atlas .hm-panel [role="tabpanel"]{scroll-margin-top:20px}
.hm-site-atlas .hm-panel .hm-event-list{padding-left:0;list-style:none}
.hm-site-atlas .hm-panel .hm-event-list li{display:flex;flex-direction:column;align-items:flex-start;gap:8px;border-bottom:1px solid #d7c4a7;padding:12px 0}
.hm-site-atlas .hm-map-available,.hm-site-atlas .hm-date-availability{padding:12px 14px;border-left:3px solid #9c783e;background:#f2e7d2;font-size:14px!important;line-height:1.6!important}
.hm-site-atlas .hm-timeline-key{display:flex;flex-wrap:wrap;gap:12px 22px;margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid #d6bd94;font-size:12px}
.hm-site-atlas .hm-timeline-key span{display:inline-flex;align-items:center;gap:8px}
.hm-site-atlas .hm-timeline-key span:before{content:"";display:inline-block;width:22px;height:8px;background:#a7804d}
.hm-site-atlas .hm-timeline-key .hm-key-reign:before{background:#7c6f9d;height:5px}
.hm-site-atlas .hm-timeline-key .hm-key-event:before{background:transparent;border:1px dashed #997039;height:12px}
.hm-site-atlas .hm-timeline-key .hm-key-snapshot:before{background:#fffaf0;border:1px solid #997039;border-radius:3px;height:16px}
.hm-site-atlas .hm-historical-events .hm-snapshot{border-style:dashed;background:#f4e9d4}
.hm-site-atlas .hm-selected-reign .hm-bar{outline:2px solid #7c6f9d;outline-offset:2px}
.hm-site-atlas .hm-map-viewbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 16px;background:#fff8eb;border-bottom:1px solid #cbb99a}
.hm-site-atlas .hm-map-viewbar strong{font-size:15px;color:#77552c}
.hm-site-atlas .hm-map-viewbar button{font-size:13px;min-height:40px}
.hm-site-atlas .hm-map-column{scroll-margin-top:110px}
.hm-site-atlas .hm-map-stage svg .hm-land{cursor:crosshair}
.hm-site-atlas .hm-app:fullscreen{width:100vw;height:100dvh;overflow:hidden;background:#f8f2e7}
.hm-site-atlas .hm-app.hm-fullscreen .hm-workspace{position:fixed;inset:0;z-index:1500;width:100vw;height:100dvh;margin:0;overflow:hidden;grid-template-columns:minmax(0,1fr) 360px;align-items:stretch;background:#f8f2e7;border:0}
.hm-site-atlas .hm-fullscreen .hm-map-column{display:flex;flex-direction:column;min-height:0}
.hm-site-atlas .hm-fullscreen .hm-map-pair{flex:1;min-height:0}
.hm-site-atlas .hm-fullscreen .hm-view{display:flex;flex-direction:column;min-height:0}
.hm-site-atlas .hm-fullscreen .hm-map-stage{flex:1;min-height:0}
.hm-site-atlas .hm-fullscreen .hm-map-stage svg{height:100%;min-height:0}
.hm-site-atlas .hm-fullscreen .hm-panel{position:static;max-height:100dvh;overflow:auto}
.hm-site-atlas .hm-fullscreen .hm-attribution{font-size:11px;padding:5px 12px}
.hm-site-atlas .hm-fullscreen .hm-legend,.hm-site-atlas .hm-fullscreen .hm-status{padding:8px 12px;font-size:12px}
@media(max-width:1200px){.hm-site-atlas .hm-panel{position:static;max-height:none}.hm-site-atlas .hm-catalogue-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-site-atlas .hm-app.hm-fullscreen .hm-workspace{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:720px){
 body.historical-map-view #historical-map{padding-bottom:110px}
 .hm-site-atlas .hm-search-results button{grid-template-columns:minmax(0,1fr);gap:5px;padding:14px}
 .hm-site-atlas .hm-result-type{grid-row:auto;font-size:11px}
 .hm-site-atlas .hm-search-results{max-height:48svh}
 .hm-site-atlas .hm-map-viewbar{padding:12px;gap:10px}
 .hm-site-atlas .hm-map-viewbar .hm-time-buttons{width:100%;display:grid;grid-template-columns:1fr 1fr}
 .hm-site-atlas .hm-map-viewbar button{font-size:12px}
 .hm-site-atlas .hm-panel,.hm-site-atlas .hm-fullscreen .hm-panel{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:40;border:1px solid #cbb99a;border-bottom:0;border-radius:18px 18px 0 0;background:#fffaf0;box-shadow:0 -8px 28px #49351c22;padding:14px 18px max(14px,env(safe-area-inset-bottom));max-height:76svh;overflow:auto}
 .hm-site-atlas .hm-map-offscreen:not(.hm-fullscreen) .hm-panel{visibility:hidden;pointer-events:none}
 .hm-site-atlas .hm-panel:not(.hm-sheet-open) #hm-panel-content{display:none}
 .hm-site-atlas .hm-panel-heading{position:sticky;top:-14px;z-index:2;background:#fffaf0;padding:10px 0;border-bottom:1px solid #d7c4a7}
 .hm-site-atlas .hm-panel-heading h2{font-size:20px!important;line-height:1.35!important;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .hm-site-atlas .hm-sheet-toggle{display:block;flex:0 0 auto;max-width:128px;font-size:12px;padding:8px;min-height:44px}
 .hm-site-atlas .hm-info-tabs{margin:12px 0}
 .hm-site-atlas .hm-timeline-key{gap:10px 16px}
 .hm-site-atlas .hm-catalogue-filters{grid-template-columns:minmax(0,1fr)}
 .hm-site-atlas .hm-app.hm-fullscreen .hm-workspace{grid-template-columns:minmax(0,1fr);padding-bottom:76px}
 .hm-site-atlas .hm-fullscreen .hm-two-dates{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr))}
 .hm-site-atlas .hm-fullscreen .hm-panel{z-index:1510}
 .hm-site-atlas .hm-fullscreen .hm-map-viewbar{padding:8px 12px}
 .hm-site-atlas .hm-fullscreen .hm-map-viewbar strong{font-size:13px}
 .hm-site-atlas .hm-fullscreen .hm-map-viewbar .hm-time-buttons{display:flex;width:auto}
 .hm-site-atlas .hm-fullscreen .hm-map-viewbar button{min-height:36px}
}

.hm-site-atlas .hm-map-viewbar>.hm-field{flex:1;min-width:170px;max-width:260px;font-size:13px}.hm-site-atlas .hm-map-viewbar>.hm-field select{width:100%;max-width:none;font-size:14px}
@media(max-width:720px){.hm-site-atlas .hm-map-viewbar>.hm-field{min-width:120px;max-width:none;flex:1}.hm-site-atlas .hm-fullscreen .hm-map-viewbar>.hm-field select{min-height:36px;font-size:12px}}

/* Progressive disclosure: primary actions stay visible; secondary tools open on demand. */
.hm-site-atlas .hm-compact-controls{position:relative;display:grid;grid-template-columns:minmax(260px,1fr) minmax(220px,.45fr) auto;align-items:end;gap:18px;padding:22px 26px;background:#fffaf0;border-radius:10px 10px 0 0}
.hm-site-atlas .hm-compact-controls .hm-unified-search{grid-column:auto}
.hm-site-atlas .hm-compact-controls>.hm-field{grid-column:auto!important;min-width:0;width:100%}
.hm-site-atlas .hm-options,.hm-site-atlas .hm-tools-menu,.hm-site-atlas .hm-time-settings{position:static;border:0;background:none}
.hm-site-atlas .hm-options>summary,.hm-site-atlas .hm-tools-menu>summary,.hm-site-atlas .hm-time-settings>summary,.hm-site-atlas .hm-key-drawer>summary{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 14px;border:1px solid #d6be99;border-radius:6px;background:transparent;color:#75522c;font-size:14px;list-style:none;cursor:pointer}
.hm-site-atlas .hm-options>summary::-webkit-details-marker,.hm-site-atlas .hm-tools-menu>summary::-webkit-details-marker,.hm-site-atlas .hm-time-settings>summary::-webkit-details-marker,.hm-site-atlas .hm-key-drawer>summary::-webkit-details-marker{display:none}
.hm-site-atlas .hm-options>summary:after,.hm-site-atlas .hm-tools-menu>summary:after,.hm-site-atlas .hm-time-settings>summary:after,.hm-site-atlas .hm-key-drawer>summary:after{content:"⌄";font-size:14px;margin:0}
.hm-site-atlas .hm-options[open]>summary,.hm-site-atlas .hm-tools-menu[open]>summary,.hm-site-atlas .hm-time-settings[open]>summary{background:#f0e4d0}
.hm-site-atlas .hm-options-content{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:65;max-height:65svh;overflow:auto;padding:24px;background:#fffaf0;border:1px solid #d0b48d;border-radius:8px;box-shadow:0 10px 25px #49351c20}
.hm-site-atlas .hm-active-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:50%;background:#987039;color:#fffaf0;font-size:11px}
.hm-site-atlas .hm-advanced-profile{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}
.hm-site-atlas .hm-options-content .hm-field select{max-width:none;width:100%}
.hm-site-atlas .hm-options-content .hm-catalogue{padding:0;border:0;background:transparent}
.hm-site-atlas .hm-options-content .hm-compare{margin-top:18px;padding-top:18px;border-top:1px solid #ddceb5;min-width:0}
.hm-site-atlas .hm-map-viewbar{position:relative;padding:10px 16px;gap:12px}
.hm-site-atlas .hm-map-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.hm-site-atlas .hm-tools-menu{position:relative}
.hm-site-atlas .hm-tools-content{position:absolute;top:calc(100% + 7px);right:0;z-index:65;display:grid;gap:0;min-width:250px;max-width:min(340px,calc(100vw - 32px));padding:6px;background:#fffaf0;border:1px solid #d0b48d;border-radius:8px;box-shadow:0 10px 25px #49351c20}
.hm-site-atlas .hm-tools-content>button{border:0;border-radius:4px;text-align:left;background:none;min-height:44px;padding:10px 12px;font-size:14px}
.hm-site-atlas .hm-tools-content>button:hover{background:#f0e4d0}
.hm-site-atlas .hm-tools-content>label{display:flex;align-items:center;gap:9px;padding:12px;border-top:1px solid #ddceb5;font-size:13px}
.hm-site-atlas .hm-map-actions .hm-fullscreen-button{width:44px;height:44px;min-height:44px;padding:0;font-size:25px;background:transparent;border:0}
.hm-site-atlas .hm-timeline{position:relative;padding:20px 26px}
.hm-site-atlas .hm-time-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:14px}
.hm-site-atlas .hm-time-toolbar>output{margin-right:auto}
.hm-site-atlas .hm-playback{display:flex;align-items:center;gap:4px}
.hm-site-atlas .hm-playback button{width:40px;height:40px;min-height:40px;padding:0;border:0;background:transparent;font-size:18px}
.hm-site-atlas .hm-playback button:disabled{opacity:.3}
.hm-site-atlas .hm-key-drawer>summary{border:0;font-size:12px;padding:8px;min-height:40px}
.hm-site-atlas .hm-key-drawer .hm-timeline-key{margin:0;padding:12px 0;border:0}
.hm-site-atlas .hm-key-drawer[open] .hm-timeline-key{position:absolute;top:70px;right:20px;z-index:55;max-width:min(430px,calc(100vw - 40px));padding:18px;background:#fffaf0;border:1px solid #d0b48d;border-radius:8px;box-shadow:0 8px 20px #49351c18}
.hm-site-atlas .hm-time-settings-content{position:absolute;top:70px;right:20px;z-index:60;display:grid;gap:18px;max-width:min(440px,calc(100vw - 40px));padding:20px;background:#fffaf0;border:1px solid #d0b48d;border-radius:8px;box-shadow:0 10px 25px #49351c20}
.hm-site-atlas .hm-time-settings-content .hm-scale-tools{margin:0}
.hm-site-atlas .hm-time-settings-content .hm-year-entry{display:flex;align-items:center;gap:8px;min-width:0}
.hm-site-atlas .hm-time-settings-content .hm-year-entry input{min-width:60px;width:100px}
.hm-site-atlas .hm-snapshots .hm-snapshot{border:0;background:transparent;box-shadow:none;font-size:13px;padding-top:14px;min-height:34px;color:#78562c}
.hm-site-atlas .hm-snapshots .hm-snapshot:before{content:"";position:absolute;left:calc(50% - 3px);top:3px;width:6px;height:6px;border-radius:50%;background:#b79664}
.hm-site-atlas .hm-snapshots .hm-snapshot[aria-pressed="true"]{background:transparent;color:#684216;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.hm-site-atlas .hm-snapshots .hm-snapshot[aria-pressed="true"]:before{background:#8c6128;outline:3px solid #d5bd95}
.hm-site-atlas .hm-timeline-details>summary{font-size:12px;padding:6px 0}
.hm-site-atlas .hm-time-caption{font-size:12px!important}
.hm-site-atlas .hm-date-gap{color:#865a27}
.hm-site-atlas .hm-info-tabs{gap:12px;border-bottom:1px solid #d6bd94;padding-bottom:0}
.hm-site-atlas .hm-info-tabs button{border:0;border-radius:0;background:transparent;color:#806744;padding:10px 0;min-height:40px}
.hm-site-atlas .hm-info-tabs [aria-selected="true"]{background:transparent;color:#684216;border:0;border-bottom:2px solid #9d743b}
.hm-site-atlas .hm-panel [data-locate-place],.hm-site-atlas .hm-panel [data-entity]{border:0;border-radius:0;background:transparent;padding:5px 0;min-height:32px;text-align:left;text-decoration:underline;text-underline-offset:4px}
.hm-site-atlas .hm-discovery-panel{position:relative;scroll-margin-top:110px;padding-top:50px}
.hm-site-atlas .hm-close-panel{position:absolute;top:10px;right:12px;width:36px;height:36px;min-height:36px!important;padding:0!important;border:0!important;background:none!important;font-size:24px!important}
.hm-site-atlas .hm-fullscreen .hm-map-viewbar{overflow:visible}
@media(max-width:900px){.hm-site-atlas .hm-compact-controls{grid-template-columns:minmax(0,1fr) auto;gap:14px}.hm-site-atlas .hm-compact-controls .hm-unified-search{grid-column:1/-1}.hm-site-atlas .hm-compact-controls .hm-primary-entity{grid-column:1!important}.hm-site-atlas .hm-options{grid-column:2}.hm-site-atlas .hm-time-toolbar{gap:8px;flex-wrap:wrap}}
@media(max-width:600px){.hm-site-atlas .hm-compact-controls,.hm-site-atlas .hm-timeline{padding:16px}.hm-site-atlas .hm-advanced-profile{grid-template-columns:minmax(0,1fr)}.hm-site-atlas .hm-options-content{padding:18px;max-height:70svh}.hm-site-atlas .hm-time-toolbar>output{font-size:24px}.hm-site-atlas .hm-playback{gap:0}.hm-site-atlas .hm-playback button{width:36px}.hm-site-atlas .hm-time-settings>summary{padding:8px;font-size:12px;min-height:40px}.hm-site-atlas .hm-map-viewbar .hm-map-actions{width:auto;margin-left:auto}.hm-site-atlas .hm-key-drawer{margin-left:auto}.hm-site-atlas .hm-time-settings-content,.hm-site-atlas .hm-key-drawer[open] .hm-timeline-key{top:100%;right:0}.hm-site-atlas .hm-map-viewbar .hm-map-actions .hm-fullscreen-button{width:40px;min-height:40px;height:40px}.hm-site-atlas .hm-tools-menu>summary{font-size:13px;min-height:40px;padding:8px 10px}}

.hm-site-atlas .hm-options:not([open])>.hm-options-content,.hm-site-atlas .hm-tools-menu:not([open])>.hm-tools-content,.hm-site-atlas .hm-time-settings:not([open])>.hm-time-settings-content,.hm-site-atlas .hm-key-drawer:not([open])>.hm-timeline-key{display:none!important}
.hm-site-atlas .hm-options>summary .hm-active-count{margin:0;color:#fffaf0;font-size:11px}

.hm-site-atlas .hm-time-settings,.hm-site-atlas .hm-key-drawer{position:relative}
.hm-site-atlas .hm-time-settings-content{top:calc(100% + 6px);right:0;width:min(360px,calc(100vw - 40px))}
.hm-site-atlas .hm-key-drawer[open] .hm-timeline-key{top:calc(100% + 6px);right:0;width:min(400px,calc(100vw - 40px))}

.hm-site-atlas .hm-tools-content{max-height:min(65svh,520px);overflow:auto;overscroll-behavior:contain}

/* Street basemap is scoped to Map; the compact home atlas keeps its SVG. */
.hm-site-atlas .hm-map-stage{isolation:isolate}
.hm-site-atlas .hm-street-map{position:relative;z-index:0;width:100%;height:78svh;min-height:640px;max-height:1100px;background:#e5e8e5;font-family:'Noto Sans',Arial,sans-serif;touch-action:none;overscroll-behavior:contain}
.hm-site-atlas .hm-map-tools{z-index:5}
.hm-site-atlas .hm-street-map svg,.hm-site-atlas .hm-has-second .hm-street-map svg,.hm-site-atlas .hm-fullscreen .hm-street-map svg{height:auto;min-height:0;max-height:none;width:auto;display:block;background:transparent;touch-action:auto}
.hm-site-atlas .hm-street-map .leaflet-pane svg{overflow:visible}
.hm-site-atlas .hm-street-map .leaflet-control-attribution{font:11px/1.5 Arial,sans-serif;background:#fffffff0;color:#263a45;padding:3px 7px;max-width:100%}
.hm-site-atlas .hm-street-map .leaflet-control-attribution a{color:#1c536e;text-decoration:underline}
.hm-site-atlas .hm-street-place{border:0;background:transparent;padding:0;min-height:0}
.hm-site-atlas .hm-street-place span{display:block;width:12px;height:12px;margin:3px;background:#38291b;border:2px solid #fff;border-radius:50%;box-shadow:0 1px 4px #0006}
.hm-site-atlas .hm-street-map .leaflet-tooltip{font:13px/1.5 'Noto Sans',Arial,sans-serif;white-space:nowrap;max-width:280px;overflow:hidden;text-overflow:ellipsis;color:#30261c;background:#fffaf0;border-color:#cbb99a}
.hm-site-atlas .hm-street-map .hm-street-changes{position:absolute;pointer-events:none;opacity:.65}
.hm-site-atlas .hm-street-notice{position:absolute;left:12px;right:12px;bottom:32px;z-index:800;margin:0;padding:10px 12px;border:1px solid #bca67b;background:#fffaf0f5;color:#513c26;font-size:13px;pointer-events:none}
.hm-site-atlas .hm-street-source{margin:0 0 7px;font-size:12px;line-height:1.6}
.hm-site-atlas .hm-fullscreen .hm-street-map{height:100%;min-height:0;max-height:none}
@media(max-width:900px){.hm-site-atlas .hm-street-map{height:68svh;min-height:460px}.hm-site-atlas .hm-fullscreen .hm-street-map{height:100%;min-height:0}}

/* Modern administrative geography is a cool, quiet reference to the warmer
   historical territory. Flat low-zoom land avoids baked-in street/region names. */
.hm-site-atlas .hm-street-map.hm-country-overview{background:#b9d9e5!important}
.hm-site-atlas .hm-map-label{background:transparent!important;border:0!important;box-shadow:none!important;width:0!important;height:0!important;pointer-events:none!important}
.hm-site-atlas .hm-map-label>span{display:block;width:max-content;max-width:230px;transform:translate(-50%,-50%);white-space:normal;text-align:center;line-height:1.2;pointer-events:none;text-shadow:0 1px 2px #fffdf9,1px 0 2px #fffdf9,-1px 0 2px #fffdf9,0 -1px 2px #fffdf9}
.hm-site-atlas .hm-modern-country-label>span{font:600 12px/1.2 'Noto Sans',Arial,sans-serif;color:#506a7a;letter-spacing:.015em}
.hm-site-atlas .hm-historical-region-label>span{font:700 13px/1.2 'Noto Sans',Arial,sans-serif;color:#913e2e;background:#fff4dfd9;border:1px solid #bd9171a6;border-radius:4px;padding:3px 6px}
.hm-site-atlas .hm-historical-place-label>span{font:600 12px/1.2 'Noto Sans',Arial,sans-serif;color:#963d2e;background:#fff4dfd9;border-radius:3px;padding:2px 4px}
.hm-site-atlas .hm-label-key{display:inline-flex;align-items:center;gap:7px;font:12px/1.4 'Noto Sans',Arial,sans-serif}
.hm-site-atlas .hm-label-key:before{content:'';display:inline-block;width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#506a7a}
.hm-site-atlas .hm-key-historical:before{background:#963d2e}
@media(max-width:600px){.hm-site-atlas .hm-modern-country-label>span{font-size:11px}.hm-site-atlas .hm-historical-region-label>span{font-size:12px}.hm-site-atlas .hm-label-key{font-size:11px}}

/* Sub-regional historical names never impersonate modern administrative borders. */
.hm-site-atlas .hm-historical-province-label>span{
 font:600 11px/1.25 'Noto Sans',Arial,sans-serif;
 color:#994638;background:#fff6e6e8;border:1px solid #ba947880;
 border-radius:4px;padding:3px 5px;max-width:185px;
 letter-spacing:.01em
}
.hm-site-atlas .hm-province-note{
 flex:1 0 100%;margin:3px 0 0;color:#796a59;
 font:12px/1.5 'Noto Sans',Arial,sans-serif;text-align:left
}
.hm-site-atlas .hm-province-note a{color:#705630;text-decoration:underline;text-underline-offset:2px}
@media(max-width:600px){
 .hm-site-atlas .hm-historical-province-label>span{font-size:10px;max-width:132px}
 .hm-site-atlas .hm-province-note{font-size:11px}
}

/* Three-state historical name switch: visible beside Tools on phones and desktop. */
.hm-site-atlas .hm-history-mode-button{
 min-height:38px!important;min-width:0!important;max-width:164px;
 padding:7px 12px!important;border:1px solid #b9996c!important;
 border-radius:8px!important;background:#fff9ef!important;
 color:#785332!important;font:600 12px/1.3 'Noto Sans',Arial,sans-serif!important;
 white-space:normal!important;cursor:pointer!important;
}
.hm-site-atlas .hm-history-mode-button:focus-visible{outline:2px solid #a77539;outline-offset:2px}
.hm-site-atlas .hm-history-mode-button[aria-pressed="false"]{color:#77736d;background:#f3f0eb!important}
.hm-site-atlas .hm-map-viewbar .hm-map-actions{min-width:0;flex-wrap:wrap;justify-content:flex-end}
.hm-site-atlas .hm-historical-state-label>span{
 color:#853e32;background:#fff0d9f0;border:1px solid #9d604c;
 border-radius:5px;padding:4px 6px;max-width:180px;
 font:700 12px/1.25 'Noto Sans',Arial,sans-serif;
}
.hm-site-atlas .hm-city-state-svg-outline{fill:none;stroke:#964632;stroke-width:1.2;stroke-dasharray:3 2;pointer-events:none}
.hm-site-atlas .hm-city-state-svg-label{fill:#884336;stroke:#fff7e7;stroke-width:.9;paint-order:stroke;font:600 4px/1 Arial,sans-serif;text-anchor:middle;pointer-events:none}
@media(max-width:600px){
 .hm-site-atlas .hm-map-viewbar .hm-map-actions{gap:6px!important}
 .hm-site-atlas .hm-history-mode-button{font-size:11px!important;max-width:114px;padding:6px 8px!important;min-height:38px!important}
 .hm-site-atlas .hm-historical-state-label>span{font-size:11px}
}

/* Map first, nearby controls, then the complete profile in normal page flow. */
.hm-site-atlas .hm-workspace{display:flex;flex-direction:column}
.hm-site-atlas .hm-workspace>.hm-map-column,.hm-site-atlas .hm-workspace>.hm-panel{width:100%;min-width:0}
.hm-site-atlas .hm-workspace>.hm-panel{position:static;inset:auto;max-height:none;overflow:visible;border:0;border-top:1px solid var(--hm-border);border-radius:0;box-shadow:none;visibility:visible;pointer-events:auto}
.hm-site-atlas .hm-interaction-dock{position:relative;z-index:10;background:#fffaf0;border-top:1px solid var(--hm-border)}
.hm-site-atlas .hm-interaction-dock .hm-compact-controls{border-radius:0;padding:16px 20px;gap:12px}
.hm-site-atlas .hm-interaction-dock .hm-map-viewbar{border-top:0}
.hm-site-atlas .hm-interaction-dock .hm-timeline{padding:16px 20px}
.hm-site-atlas .hm-workspace>.hm-panel .hm-panel-heading{position:static;top:auto}
.hm-site-atlas .hm-workspace>.hm-panel .hm-sheet-toggle{display:block}
.hm-site-atlas .hm-workspace>.hm-panel:not(.hm-sheet-open) #hm-panel-content{display:none}
.hm-site-atlas .hm-workspace>.hm-panel .hm-info-tabs{max-width:720px}
.hm-site-atlas .hm-app.hm-fullscreen .hm-workspace{display:flex;overflow:auto;overscroll-behavior:contain;padding-bottom:0}
.hm-site-atlas .hm-fullscreen .hm-map-column{flex:none;overflow:visible}
.hm-site-atlas .hm-fullscreen .hm-map-pair{flex:none;min-height:0}
.hm-site-atlas .hm-fullscreen .hm-map-stage{flex:none}
.hm-site-atlas .hm-fullscreen .hm-street-map,.hm-site-atlas .hm-fullscreen .hm-map-stage>svg{height:65dvh;min-height:320px;max-height:none}
.hm-site-atlas .hm-fullscreen .hm-workspace>.hm-panel{max-height:none}
@media(max-width:720px){
 .hm-site-atlas .hm-interaction-dock .hm-compact-controls,.hm-site-atlas .hm-interaction-dock .hm-timeline{padding:14px 12px}
 .hm-site-atlas .hm-interaction-dock .hm-map-viewbar{padding:10px 12px}
 .hm-site-atlas .hm-workspace>.hm-panel{padding:18px 14px}
 .hm-site-atlas .hm-workspace>.hm-panel .hm-panel-heading{padding-top:0}
 .hm-site-atlas .hm-street-map{height:58svh;min-height:340px}
 .hm-site-atlas .hm-fullscreen .hm-street-map,.hm-site-atlas .hm-fullscreen .hm-map-stage>svg{height:58dvh;min-height:280px}
}

/* Compact controls take the former profile sidebar; profile follows both columns. */
.hm-site-atlas .hm-workspace{display:grid;grid-template-columns:minmax(0,1fr) 340px;align-items:start}
.hm-site-atlas .hm-workspace>.hm-panel{grid-column:1/-1}
.hm-site-atlas .hm-workspace>.hm-interaction-dock{min-width:0;border-top:0;border-left:1px solid var(--hm-border);align-self:stretch}
.hm-site-atlas .hm-interaction-dock .hm-compact-controls{display:flex;flex-direction:column;align-items:stretch;padding:14px;gap:12px}
.hm-site-atlas .hm-interaction-dock .hm-options{align-self:stretch}
.hm-site-atlas .hm-interaction-dock .hm-options-content{left:0;right:0;max-height:60svh;padding:14px}
.hm-site-atlas .hm-interaction-dock .hm-advanced-profile,.hm-site-atlas .hm-interaction-dock .hm-catalogue-filters{grid-template-columns:minmax(0,1fr)}
.hm-site-atlas .hm-interaction-dock .hm-search-help{font-size:11px!important;margin:4px 0 0!important}
.hm-site-atlas .hm-interaction-dock .hm-map-viewbar{padding:12px 14px;gap:10px}
.hm-site-atlas .hm-interaction-dock .hm-map-viewbar>strong{width:100%;font-size:13px}
.hm-site-atlas .hm-interaction-dock .hm-map-actions{width:100%;margin:0;justify-content:flex-start}
.hm-site-atlas .hm-interaction-dock .hm-map-tools{position:static;display:flex;flex-wrap:wrap;padding:12px 14px;gap:8px}
.hm-site-atlas .hm-interaction-dock .hm-timeline{padding:14px}
.hm-site-atlas .hm-interaction-dock .hm-time-toolbar{gap:6px}
.hm-site-atlas .hm-interaction-dock .hm-time-toolbar>output{font-size:24px}
.hm-site-atlas .hm-interaction-dock .hm-key-drawer{margin-left:auto}
.hm-site-atlas .hm-interaction-dock .hm-time-settings>summary{padding:7px;font-size:12px}
.hm-site-atlas .hm-interaction-dock .hm-time-caption{font-size:11px!important;line-height:1.5!important}
.hm-site-atlas .hm-quick-year{display:block;margin:14px 0 8px}
.hm-site-atlas .hm-quick-year input{display:block;width:100%;margin:0;accent-color:#a77c40}
.hm-site-atlas .hm-timeline-chart-details>summary{cursor:pointer;font-size:12px;padding:6px 0}
.hm-site-atlas .hm-timeline-chart-details:not([open])>.hm-time-scroll{display:none}
.hm-site-atlas .hm-app.hm-fullscreen .hm-workspace{display:grid;grid-template-columns:minmax(0,1fr) 340px}
.hm-site-atlas .hm-fullscreen .hm-workspace>.hm-panel{grid-column:1/-1}
@media(max-width:900px){
 .hm-site-atlas .hm-workspace,.hm-site-atlas .hm-app.hm-fullscreen .hm-workspace{grid-template-columns:minmax(0,1fr)}
 .hm-site-atlas .hm-workspace>.hm-interaction-dock{border-left:0;border-top:1px solid var(--hm-border)}
 .hm-site-atlas .hm-interaction-dock .hm-compact-controls{display:grid;grid-template-columns:minmax(0,1fr) auto}
 .hm-site-atlas .hm-interaction-dock .hm-unified-search{grid-column:1/-1}
}

/* Replace the former legend/status/credit strips with more map canvas. */
.hm-site-atlas .hm-map-column .hm-street-map{height:calc(78svh + 150px);min-height:790px;max-height:1250px}
.hm-site-atlas .hm-map-column .hm-map-stage>svg{height:calc(78svh + 150px);min-height:790px;max-height:1250px}
.hm-site-atlas .hm-interaction-dock>.hm-legend{padding:12px 14px;gap:10px;font-size:12px}
.hm-site-atlas .hm-interaction-dock>.hm-status{padding:12px 14px;font-size:12px;line-height:1.5}
.hm-site-atlas .hm-interaction-dock .hm-province-note{font-size:11px}
.hm-site-atlas .hm-fullscreen .hm-map-column .hm-street-map,.hm-site-atlas .hm-fullscreen .hm-map-column .hm-map-stage>svg{height:100dvh;min-height:480px;max-height:none}
@media(max-width:900px){
 .hm-site-atlas .hm-map-column .hm-street-map,.hm-site-atlas .hm-map-column .hm-map-stage>svg{height:calc(58svh + 130px);min-height:470px;max-height:none}
 .hm-site-atlas .hm-fullscreen .hm-map-column .hm-street-map,.hm-site-atlas .hm-fullscreen .hm-map-column .hm-map-stage>svg{height:80dvh;min-height:400px}
}

/* All map action buttons occupy one compact row at the very top of the sidebar. */
.hm-site-atlas .hm-interaction-dock>.hm-map-tools.hm-sidebar-topbar{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:5px;padding:10px;position:relative;top:auto;right:auto;border-bottom:1px solid var(--hm-border);min-width:0}
.hm-site-atlas .hm-sidebar-topbar>button{flex:0 0 32px;width:32px!important;height:34px!important;min-height:34px!important;padding:0!important;font-size:19px!important;box-shadow:none}
.hm-site-atlas .hm-sidebar-topbar .hm-history-mode-button{flex:1 1 auto;min-width:48px!important;max-width:90px!important;width:auto!important;font-size:10px!important;line-height:1.2!important;padding:4px!important}
.hm-site-atlas .hm-sidebar-topbar .hm-tools-menu{flex:0 0 auto}
.hm-site-atlas .hm-sidebar-topbar .hm-tools-menu>summary{min-height:34px;padding:6px 7px;gap:4px;font-size:11px;white-space:nowrap}
.hm-site-atlas .hm-sidebar-topbar .hm-tools-content{left:0;right:auto;max-width:calc(100vw - 48px)}
.hm-site-atlas .hm-sidebar-topbar>button[data-action="fullscreen"]{font-size:22px!important}
@media(max-width:600px){.hm-site-atlas .hm-interaction-dock>.hm-map-tools.hm-sidebar-topbar{gap:4px;padding:8px}}

.hm-site-atlas .hm-sidebar-topbar .hm-tools-content>button{width:100%;height:auto;min-height:40px;box-shadow:none;text-align:left}

/* Recover failed tiles in place, including touch and keyboard access. */
.hm-site-atlas .hm-street-notice{pointer-events:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hm-site-atlas .hm-street-notice>span{flex:1 1 180px}
.hm-site-atlas .hm-street-notice>button{min-height:40px;flex:0 0 auto;font-size:12px}
.hm-site-atlas .hm-street-recovery{padding:12px 16px;border-top:1px solid var(--hm-border);background:#fff9ec;font-size:12px}
.hm-site-atlas .hm-street-recovery p{margin:0 0 8px}

/* Sourced thematic articles inside the existing scrollable profile sheet. */
.hm-profile-article{margin-block:1.3rem;border-top:1px solid var(--hm-line,#c7bca7);padding-top:.8rem}
.hm-profile-section{margin-block:1.15rem}
.hm-profile-section h4{font-size:1rem;line-height:1.45;margin:0 0 .45rem}
.hm-profile-section p{line-height:1.7;overflow-wrap:anywhere}
.hm-profile-section .hm-profile-citations{font-size:.78rem;line-height:1.55;margin-top:.5rem;opacity:.85}
.hm-profile-citations a{overflow-wrap:anywhere;text-underline-offset:3px}

.hm-extended-reading{border-top:1px solid #b8ac96;margin-top:1.5rem;padding-top:1rem}.hm-reading-section{margin-block:1rem}.hm-reading-section h4{font-size:1rem;line-height:1.45;margin:0 0 .55rem}.hm-reading-section p{line-height:1.75;overflow-wrap:anywhere}.hm-reading-credit{font-size:.75rem;line-height:1.65;overflow-wrap:anywhere}.hm-reading-credit a{text-underline-offset:3px}

/* All dated territories remain visible; the open profile is emphasized. */
.hm-territory-active{stroke-width:2;fill-opacity:.32}
.hm-legend button[data-entity]{display:inline-flex;align-items:center;gap:6px;border:1px solid transparent;border-radius:6px;padding:5px 7px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.hm-legend button[data-entity][aria-pressed="true"]{border-color:currentColor;font-weight:700}
.hm-legend button[data-entity]:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.hm-legend{max-height:180px;overflow:auto}



.hm-archaeology-marker span{display:block;width:16px;height:16px;border:3px dashed #9c7446;border-radius:50%;background:#fff8e8;box-shadow:0 1px 4px #0005}
.hm-archaeology-note{border-left:3px dashed #9c7446;padding:8px 12px;background:#fff8e8}

/* Every visible label occupies a measured single-line screen-space box. */
.hm-site-atlas .hm-map-label>span{box-sizing:border-box;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-site-atlas .hm-historical-region-label>span{font:600 12px/1.3 'Noto Sans',Arial,sans-serif;color:#774f24;background:#fff7e8eb;padding:3px 5px;border-radius:4px}

/* A focused profile remains legible against its contemporaries. */
.hm-app svg path.hm-territory-active{stroke:#5e3e19;stroke-width:3;fill-opacity:.55}
.hm-app svg path.hm-territory-muted{fill-opacity:.10;stroke-opacity:.5}
.hm-app .hm-world-profiles{display:flex;flex-wrap:wrap;gap:7px}
.hm-app .hm-world-profiles button{text-align:left;font-size:12px;min-height:34px}
.hm-app .hm-coverage-note{padding:10px 12px;border-left:3px solid #aa8450;background:#f1e7d4}
.hm-app .hm-focused-label{font-weight:800;background:#fff0bd;border-color:#6b481f;box-shadow:0 1px 5px #3e2b2360}

.hm-app .hm-regional-context{padding:12px;background:#f7edd9;border:1px solid #b18a52;border-radius:8px;margin:12px 0}.hm-app .hm-regional-context h3{margin-top:0}.hm-app .hm-context-marker span{transform:rotate(45deg);border-style:solid;background:#aa704a}
