@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--ink:#172e31;--muted:#718082;--line:#dce3df;--paper:#f6f7f3;--teal:#087e80;--orange:#dc794d}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Space Grotesk','Noto Sans JP',sans-serif;font-size:14px}button,a,textarea{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #d48c4c;outline-offset:3px}button{color:inherit}a{color:var(--teal)}.topbar{height:80px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--ink);font-size:16px;font-weight:700;letter-spacing:2px}.brand-icon{width:34px;height:34px;display:grid;place-items:center;background:var(--ink);color:white;border-radius:8px;font-size:23px;letter-spacing:-3px;padding-right:3px}.brand-sub{font-weight:400;font-size:10px;letter-spacing:2px;color:var(--muted);border-left:1px solid var(--line);padding-left:16px;margin-left:6px}.edition{font-size:10px;letter-spacing:1.5px;display:flex;align-items:center;gap:10px}.status-dot{height:6px;width:6px;border-radius:50%;background:var(--teal)}.version{border:1px solid var(--line);border-radius:5px;padding:4px 6px;margin-left:12px;color:var(--muted)}main{max-width:1500px;padding:0 4%;margin:auto}.heading{display:flex;align-items:center;justify-content:space-between;padding:31px 0 25px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:2px;color:var(--muted)}h1{font-size:27px;letter-spacing:.03em;font-weight:500;margin:7px 0 0}.period{text-align:right;display:flex;flex-direction:column;gap:6px}.period>span{color:var(--muted);font-size:10px}.period strong{font-size:16px;font-weight:500;letter-spacing:1px}.map-shell{position:relative;height:clamp(360px,49vh,570px);border:1px solid #d1ddd9;border-radius:12px;overflow:hidden;background:#e9efec}#map{width:100%;height:100%;background:#e9efec;z-index:1}.map-toolbar{position:absolute;z-index:500;left:20px;top:20px;display:flex;gap:8px}.map-pill{display:flex;align-items:center;gap:8px;background:#fcfdf9ed;box-shadow:0 2px 8px #17333309;padding:9px 12px;border:1px solid #d9e2dd;border-radius:7px;font-size:11px}.map-pill i{width:5px;height:5px;border-radius:50%;background:var(--teal)}.map-legend{position:absolute;bottom:15px;left:20px;z-index:500;display:flex;gap:17px;font-size:9px;color:#607575;background:#f9fbf7e8;padding:9px 12px;border-radius:5px}.map-legend span{display:flex;align-items:center;gap:7px}.legend-dot{width:7px;height:7px;border:1px solid var(--teal);background:#66afa9;border-radius:50%}.data-note{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:10px;padding:12px 1px}.data-note button{border:0;background:none;color:var(--muted);font-size:10px;white-space:nowrap}#method{font-size:11px;line-height:1.9;color:var(--muted);border-left:2px solid #a9bcb5;padding-left:12px}.chat-section{margin:15px 0 34px;max-width:1000px;margin-left:auto;margin-right:auto}.chat-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.chat-heading h2{font-size:14px;font-weight:500;display:flex;align-items:center;gap:10px;margin:0}.chat-symbol{font-size:24px;color:var(--teal)}.chat-badge{font-size:9px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:3px 7px}.welcome{font-size:12px;color:var(--muted);margin-bottom:17px}#chat-form{display:flex;align-items:flex-end;padding:12px 13px 12px 18px;background:#fff;border:1px solid #d3ded8;border-radius:11px;box-shadow:0 3px 12px #183c3504}textarea{flex:1;resize:none;font:13px 'Noto Sans JP',sans-serif;line-height:26px;border:0;background:transparent;color:var(--ink);min-height:32px;max-height:100px;padding:3px 10px 3px 0}textarea:focus{outline:none}textarea::placeholder{color:#9aa6a1}#send{background:var(--ink);color:#fff;border:none;border-radius:7px;width:34px;height:34px;font-size:22px}#send:disabled{opacity:.4}.chat-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:12px}.chat-footer>span{font-size:9px;color:#8a9892}#suggestions{display:flex;gap:7px}#suggestions button{border:1px solid var(--line);background:transparent;border-radius:5px;padding:5px 8px;font-size:9px;color:#617971}#suggestions button:hover{background:#e7eee8}footer{border-top:1px solid var(--line);margin:0 4%;padding:17px 0;display:flex;justify-content:space-between;font-size:9px;color:#8d9b94}footer>span:first-child{font-weight:600;letter-spacing:2px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#article-panel{position:absolute;z-index:600;right:68px;top:20px;bottom:50px;width:330px;background:#fcfdf9;border:1px solid #cfdcd6;border-radius:9px;box-shadow:0 8px 30px #17333320;padding:18px;display:flex;flex-direction:column}#article-panel[hidden]{display:none}.panel-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:13px}#place-name{margin:6px 0 0;font-size:18px}.panel-heading button{background:none;border:0;font-size:24px;color:var(--muted)}#article-list{overflow:auto;flex:1}.article{padding:14px 0;border-bottom:1px solid var(--line)}.article a{font-size:12px;line-height:1.7;text-decoration:none;display:block}.article a:hover{text-decoration:underline}.article-meta{font-size:9px;color:var(--muted);margin-top:6px}.location-note{font-size:9px;color:#8c795f;margin-top:8px}#ask-place{font-size:11px;padding:10px 0 0;background:none;border:0;color:var(--teal);text-align:left}.message{font-size:12px;line-height:1.9;margin:14px 0}.message.user{text-align:right}.message.user span{display:inline-block;background:#e7eeea;padding:8px 13px;border-radius:10px}.message.assistant{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px}.message p{margin:0 0 8px}.message .article:last-child{border:0}.message small{color:var(--muted)}#messages{max-height:370px;overflow-y:auto}.map-error{position:absolute;z-index:700;left:50%;top:50%;transform:translate(-50%,-50%);padding:20px;background:#fff;border-radius:10px;max-width:90%}#chat-form:focus-within{border-color:#6b9991}.country-label{background:transparent;border:0;box-shadow:none;font-size:9px;color:#7e918b;pointer-events:none}.country-label:before{display:none}
@media(min-width:1600px){main{padding:0 60px}}@media(max-width:700px){.topbar{height:62px}.brand{font-size:13px;gap:8px;letter-spacing:1.5px}.brand-sub,.edition .version{display:none}.edition{font-size:8px;letter-spacing:.5px}.heading{padding:23px 0 19px;align-items:flex-end}h1{font-size:21px}.eyebrow{font-size:8px}.period strong{font-size:11px;letter-spacing:0}.period>span{font-size:9px}.map-shell{height:410px}.map-toolbar{left:12px;top:12px;gap:5px}.map-pill{font-size:10px;padding:8px}.map-legend{left:10px;bottom:20px;gap:9px;font-size:8px;padding:7px}.chat-footer{flex-wrap:wrap}.chat-footer>span{width:100%;margin-top:4px}.data-note{align-items:flex-start;line-height:1.8;font-size:9px}.chat-section{margin-top:16px}.welcome{font-size:11px;line-height:1.9}#article-panel{right:12px;left:12px;width:auto;top:65px;bottom:54px}footer{font-size:8px}.chat-heading h2{font-size:13px}}

.atlas-svg{width:100%;height:100%;display:block;cursor:grab;touch-action:pan-y;user-select:none}
.atlas-svg.dragging{cursor:grabbing;touch-action:none}
.atlas-ocean{fill:#e4ede8}.atlas-graticule{fill:none;stroke:#c7d6ce;stroke-width:.5;pointer-events:none}
.atlas-country{stroke:#a6bbb0;stroke-width:.65;stroke-linejoin:round;vector-effect:non-scaling-stroke;cursor:inherit}
.atlas-country:hover{fill:#91b9a8}.atlas-outline{fill:none;stroke:#bacdc1;stroke-width:1;pointer-events:none}
.atlas-marker{fill:#258e8b;fill-opacity:.58;stroke:#087e80;stroke-width:1.2;cursor:pointer;outline:none}
.atlas-marker:hover,.atlas-marker:focus-visible{fill:#d78350;fill-opacity:.9;stroke:#9d5838;stroke-width:2}
.atlas-controls{position:absolute;z-index:500;top:20px;right:20px;display:flex;flex-direction:column;border:1px solid #d1ddd9;border-radius:7px;overflow:hidden;background:#fcfdf9}
.atlas-controls button{width:34px;height:33px;border:0;border-bottom:1px solid var(--line);background:transparent;font-size:22px;line-height:1}
.atlas-controls button:hover{background:#e7eee8}.atlas-controls button:disabled{opacity:.3;cursor:default}
.rotation-controls{display:flex}.rotation-controls button{width:27px;font-size:16px;border-bottom:0}.atlas-controls>button{width:54px}
.projection-info{position:absolute;z-index:400;top:66px;left:21px;display:flex;gap:10px;align-items:center;pointer-events:none;font-size:9px;color:#7b9187}
.projection-info span:first-child{font-size:8px;letter-spacing:1.5px}.projection-info span+span{border-left:1px solid #c7d6ce;padding-left:10px}
.atlas-tooltip{position:absolute;z-index:450;pointer-events:auto;overflow:auto;border:1px solid #cfdcd6;background:#fcfdf9;border-radius:5px;padding:7px 10px;font-size:11px;box-shadow:0 3px 14px #17333312}
.atlas-attribution{position:absolute;bottom:3px;right:6px;font-size:8px;color:#81928f;z-index:400;pointer-events:none}
@media(max-width:700px){.atlas-controls{top:12px;right:12px}.atlas-controls>button{width:34px}.rotation-controls{flex-direction:column}.rotation-controls button{width:34px;height:27px}.projection-info{top:58px;left:14px;gap:5px;flex-wrap:wrap;max-width:220px;font-size:8px}.projection-info span+span{padding-left:5px}.projection-info span:last-child{width:100%;border:0;padding:0;margin-top:2px}.map-legend{font-size:8px}}

.terrain-canvas{position:absolute;inset:0;width:100%;height:100%;transform-origin:0 0;pointer-events:none}.atlas-svg{position:relative}.terrain-on .atlas-ocean{fill:transparent}.terrain-on .atlas-country{fill-opacity:.04;stroke:#87998d;stroke-width:.5}.terrain-on .atlas-country:hover{fill-opacity:.25}.terrain-on .atlas-graticule{opacity:.12}.atlas-attribution{max-width:85%;font-size:7px;background:#ffffffd9;pointer-events:auto}.atlas-attribution a{color:inherit}.projection-info{background:#f6f7f3c9;padding:3px;border-radius:3px}

.terrain-on.detail-zoom .atlas-country{fill-opacity:0;stroke:none}.terrain-on.detail-zoom .atlas-country:hover{fill-opacity:.08}

/* Country paths are hit targets, never a second basemap or scaled focus ring. */
.atlas-country,.atlas-country:hover,.atlas-country:focus,.atlas-country:focus-visible{fill:transparent!important;fill-opacity:0!important;stroke:none!important;outline:none!important;pointer-events:fill}
.atlas-svg,.atlas-svg:focus{outline:none}
.atlas-svg:focus-visible{box-shadow:inset 0 0 0 2px #587e75}
.atlas-ocean,.atlas-graticule,.atlas-outline{fill:none!important;stroke:none!important;pointer-events:none}
.terrain-canvas{will-change:transform}

.atlas-labels{pointer-events:none}.atlas-labels text{text-anchor:middle;dominant-baseline:middle;paint-order:stroke;stroke:#fafbf8;stroke-width:4px;stroke-linejoin:round;fill:#34473e;font-family:'Noto Sans JP',sans-serif}.country-name{font-size:18px;font-weight:600}.city-label{font-size:16px;font-weight:500}.map-pill{font-size:13px}.projection-info{font-size:11px}.projection-info span:first-child{font-size:10px}.map-legend{font-size:11px}.data-note{font-size:12px}.welcome{font-size:14px}.chat-heading h2{font-size:17px}.article a{font-size:14px}.article-meta{font-size:12px}.atlas-tooltip{font-size:14px}.atlas-controls button{min-width:36px;min-height:36px}.chat-footer>span{font-size:11px}.terrain-canvas{transform:none!important}

.atlas-labels text{stroke-width:3px}.country-name{font-weight:500}

.atlas-labels text{font-weight:400;stroke-width:1.25px;fill:#344b47}.country-name{font-size:13px;font-weight:400;letter-spacing:.03em}.city-label{font-size:12px;font-weight:400}.atlas-boundary{fill:none;stroke:#839b92;stroke-width:.65px;vector-effect:non-scaling-stroke;pointer-events:none;outline:none}

/* Map and chat only. */
main{max-width:none;padding:12px;margin:0}
.map-shell{height:calc(100dvh - 110px);min-height:300px}
.chat-section{max-width:none;margin:12px 0 0}
.map-toolbar{top:12px;left:12px}
#messages:empty{display:none}
@media(max-width:700px){main{padding:8px}.map-shell{height:calc(100dvh - 102px)}.chat-section{margin-top:8px}}

/* Match the frame to the Equal Earth world extent; no vertical letterboxing. */
.map-shell{height:auto;min-height:0;aspect-ratio:1.942;width:100%;max-width:100%}
.map-shell .atlas-attribution{right:34px;max-width:calc(100% - 40px)}
#map-resize{position:absolute;z-index:650;right:2px;bottom:2px;width:30px;height:30px;padding:0;border:1px solid #b9cbc4;border-radius:6px;background:#fcfdf9;color:var(--ink);cursor:nwse-resize;touch-action:none;user-select:none}
#map-resize::before,#map-resize::after{content:"";position:absolute;right:7px;bottom:7px;width:12px;height:12px;border-right:2px solid;border-bottom:2px solid;border-radius:0 0 2px}
#map-resize::after{right:11px;bottom:11px}
#map-resize:focus-visible{outline-offset:-3px}

.atlas-svg{touch-action:none}

/* Keep the news list visible even when the map is shallow. */
#article-panel{top:var(--article-top,12px);bottom:var(--article-bottom,12px);right:64px;max-width:calc(100% - 88px);padding:12px;min-height:0}
#article-panel.viewport-pinned{position:fixed;right:calc(var(--article-right) + 64px);max-width:calc(var(--article-frame-width) - 88px);height:100px}
.panel-heading{flex-shrink:0;padding-bottom:8px}
#place-name{margin:0;font-size:17px}
#article-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
#article-list .article{padding:10px 0}
#article-list .article>a:first-child{font-size:13px;line-height:1.65}
@media(max-width:700px){
  #article-panel{left:12px;right:12px;max-width:none}
  #article-panel.viewport-pinned{left:calc(var(--article-left) + 12px);right:calc(var(--article-right) + 12px)}
}

/* Keep conversation lines readable on wide screens. */
.chat-section,.local-search{width:100%;max-width:760px;margin-inline:auto}
.chat-section{margin-block:12px 0}
#messages{max-height:min(420px,50dvh);overscroll-behavior:contain}
.chat-section .message{font-size:14px;line-height:1.65;margin:8px 0;overflow-wrap:anywhere}
.chat-section .message.user span{max-width:90%;padding:7px 11px;text-align:left}
.chat-section .message.assistant{padding:12px 14px;border-radius:8px}
.chat-section .message p{margin:0 0 6px}
.chat-section .message small{display:block;font-size:12px;line-height:1.5}
.chat-section .article{padding:10px 0}
.chat-section .article a{font-size:14px;line-height:1.6}
.chat-section .article-meta{font-size:11px;margin-top:4px}
.chat-section .article a.article-meta{font-size:12px}
.chat-section #chat-form{padding:8px 10px 8px 14px;margin-top:8px}
.chat-section textarea{min-width:0;font-size:14px}
.chat-section .chat-heading{margin-bottom:4px}
#chat-status{font-size:12px;color:var(--muted)}
.local-search{margin-block:12px 34px}
#search-form{display:flex;gap:6px;width:min(100%,320px)}
#search-query,#search-local{min-height:32px;padding:0 9px;border:1px solid var(--line);border-radius:7px;background:#fff;color:inherit;font:inherit}
#search-query{flex:1;min-width:0}
#search-local{white-space:nowrap}
#search-local:disabled{opacity:.4}
.search-map-result{display:block;text-align:left;padding:0;border:0;background:none;color:var(--teal);font-size:14px;line-height:1.65}
.search-map-result:hover{text-decoration:underline}
.search-other-place{margin-top:5px;font-size:12px}
.atlas-search-marker{fill:none;stroke:#172e31;stroke-width:2;pointer-events:none}
@media(max-width:700px){.chat-section{margin-top:8px}.chat-section .message.assistant{padding:10px 12px}}

.indicator-marker{fill:#c17b38;fill-opacity:.65;stroke:#8b5420;stroke-width:1.2px}
.indicator-marker:hover,.indicator-marker:focus{fill:#e49649;stroke:#6c3a10}
.atlas-marker.indicator-marker{stroke-width:.9px}
.dataset-key{display:flex;flex-wrap:wrap;gap:6px 14px;padding:7px 2px;color:var(--muted);font-size:11px;line-height:1.6}
.news-key{color:var(--teal)}.indicator-key{color:#9b5c24}
.indicator-values{margin-top:8px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.indicator-change{font-size:13px;font-weight:500;margin-top:4px}
.indicator-method{font-size:11px;color:var(--muted);line-height:1.6;margin-top:8px}
.indicator-method summary{cursor:pointer}.indicator-method p{margin-top:6px}
.more-results{border:1px solid var(--line);background:var(--paper);border-radius:5px;padding:6px 10px;color:var(--teal);margin-top:8px}
.more-results[hidden]{display:none}

.military-marker{fill:#d43d3d;fill-opacity:.78;stroke:#8c2020;stroke-width:1.5px}
.military-marker-tethers{stroke:#8c2020;stroke-opacity:.48;stroke-width:1px;pointer-events:none}
.military-marker:hover,.military-marker:focus-visible{fill:#ef5555;stroke:#701313}
.atlas-marker.military-marker{stroke-width:1.125px}
.news-marker{fill:#258e8b;fill-opacity:.95;stroke:#086c69;stroke-width:1.8px}
.news-marker:hover,.news-marker:focus-visible{fill:#1ba69a;stroke:#04554f}
.military-key{color:#b32e2e}
.news-card>a:first-child{color:#087e80}.military-card>a:first-child{color:#b32e2e}.indicator-card>a:first-child{color:#94581f}

.overlap-locations{font-size:11px;line-height:1.6;color:var(--muted);padding:8px 0;overflow-wrap:anywhere}
/* Important static assets sit below every news/indicator circle. */
.atlas-star{stroke:#fffdf4;stroke-width:1;stroke-linejoin:round;cursor:pointer;opacity:.88;pointer-events:visiblePainted}
.atlas-star:hover,.atlas-star:focus{opacity:1;stroke:#172e31;stroke-width:1}
.atlas-star.asset-military{fill:#c43e3e}.atlas-star.asset-resource{fill:#b99819}.atlas-star.asset-crime{fill:#40454b}.atlas-star.asset-other{fill:#477b9c}
.railway-route{fill:none;stroke:#477b9c;stroke-width:.65;stroke-opacity:.38;vector-effect:non-scaling-stroke;pointer-events:none}
.asset-military-key,.asset-card.asset-military>a:first-child{color:#b52e2e}.asset-resource-key,.asset-card.asset-resource>a:first-child{color:#96780e}.asset-crime-key,.asset-card.asset-crime>a:first-child{color:#40454b}.asset-other-key,.asset-card.asset-other>a:first-child{color:#477b9c}
.asset-description{font-size:12px;font-weight:400;line-height:1.7;margin:7px 0 0;color:#617275}

.pipeline-route{fill:none;stroke:#ad8724;stroke-width:.7;stroke-opacity:.42;stroke-dasharray:4 2;vector-effect:non-scaling-stroke;pointer-events:none}
.ownership-details{margin-top:8px;font-size:12px;line-height:1.6;color:#596e70}.ownership-details p{margin:3px 0}.ownership-details a{display:inline!important;font-size:inherit!important;font-weight:400!important}.ownership-details small{display:block;margin-top:5px;font-size:10px;color:#718285}

/* All event circles: 2.5s steady, then 1.5s fade out/in; fixed hit targets. */
@keyframes news-pulse{0%,62.5%,100%{opacity:1}81.25%{opacity:0}}
.atlas-marker{animation:news-pulse 4s ease-in-out infinite;animation-delay:var(--news-phase,0s)}
.atlas-marker:hover,.atlas-marker:focus-visible{animation:none;opacity:1}
@media(prefers-reduced-motion:reduce){.atlas-marker{animation:none;opacity:1}}

/* Opacity animation never removes circle hit areas. */
.atlas-marker{pointer-events:all}

.resource-icon{stroke-width:.65;opacity:.95}.resource-icon:hover,.resource-icon:focus{stroke-width:1}

.railway-route,.pipeline-route{pointer-events:stroke;cursor:pointer}

.country-flag{display:inline-flex;position:relative;align-items:center;justify-content:center;margin-left:.4em;font-size:1.1em;line-height:1;cursor:help;vertical-align:middle}.country-flag:hover::after,.country-flag:focus-visible::after{content:attr(data-tooltip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;background:#183235;color:white;font:13px/1.5 system-ui;padding:3px 7px;border-radius:4px;z-index:5}.atlas-star.asset-other.data-center-icon{fill:none;stroke:#326c92;stroke-width:.9;stroke-linecap:round;opacity:.65}.atlas-star.asset-other.data-center-icon:hover,.atlas-star.asset-other.data-center-icon:focus{stroke-width:.9;opacity:.85}
.chat-answer{white-space:pre-wrap}.chat-cancel{border:0;background:none;color:var(--teal);padding:4px 0;font-size:12px}
.chat-selection{font-size:11px;color:var(--muted);padding:0 2px 3px;overflow-wrap:anywhere}

/* Local vector basemap stays visible until a complete terrain texture is ready. */
.terrain-canvas{opacity:0}.terrain-on .terrain-canvas{opacity:1}
.atlas-ocean{fill:#bedee9!important;stroke:none!important}
.atlas-country,.atlas-country:hover,.atlas-country:focus,.atlas-country:focus-visible{fill:#c6d8ba!important;fill-opacity:1!important;stroke:none!important;pointer-events:none}
.terrain-on .atlas-ocean,.terrain-on .atlas-country,.terrain-on .atlas-country:hover{fill:transparent!important;fill-opacity:0!important;stroke:none!important}

.atlas-fallback-boundary{fill:none;stroke:#839b92;stroke-width:.65;vector-effect:non-scaling-stroke;pointer-events:none}.terrain-on .atlas-fallback-boundary{display:none}
/* Keep browser focus rectangles from scaling with map geometry. */
.atlas-svg [tabindex]:focus{outline:none}
.railway-route:focus-visible,.pipeline-route:focus-visible{stroke:#284f4b;stroke-width:2;stroke-opacity:1;vector-effect:non-scaling-stroke}
.resource-icon[data-resource-icon="pickaxe"],.resource-icon[data-resource-icon="mine"]{stroke:#172e31;stroke-width:1}
.atlas-star.power-power,.atlas-star.power-power:hover,.atlas-star.power-power:focus{fill:#e3b927;stroke:#69530b;stroke-width:.8;opacity:1}
.atlas-star.power-nuclear,.atlas-star.power-nuclear:hover,.atlas-star.power-nuclear:focus{fill:#26332b;stroke:#e8bf2c;stroke-width:.75;opacity:1}
.atlas-star.port-anchor{fill:#234a6d;stroke:#fcfdf9;stroke-width:.7;opacity:1}
.news-military{--news-color:#c53d37}
.news-economy{--news-color:#d7a91b}
.news-politics{--news-color:#288162}
.news-science{--news-color:#8153b1}
.news-crime{--news-color:#676f75}
.news-marker[class*="news-"]:is(.news-military,.news-economy,.news-politics,.news-science,.news-crime){fill:var(--news-color);stroke:color-mix(in srgb,var(--news-color),#182d32 40%)}
.news-tags{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0 0;padding:0;list-style:none}
.news-tags li{padding:1px 6px;border:1px solid var(--line);border-radius:5px;font-size:11px}
#news-language{margin-inline-start:auto;border:1px solid var(--line);border-radius:5px;padding:2px 5px;background:#fff;color:var(--ink);font:inherit}
.asset-classification{display:flex;align-items:center;gap:5px}.asset-classification-icon{width:20px;height:20px;flex:none;overflow:visible;pointer-events:none}.asset-classification-icon path{cursor:default}
.resource-icon.mineral-small,.resource-icon.mineral-small:hover,.resource-icon.mineral-small:focus{stroke-width:.3}

.resource-icon[data-resource-icon="mine"]{stroke-width:.55}
.resource-icon[data-resource-icon="pickaxe"]{stroke-width:.78}

.map-filters{display:flex;flex-wrap:wrap;gap:6px;padding:10px 0}.map-filter{display:inline-flex;align-items:center;gap:5px;border:1px solid #cedad6;border-radius:7px;padding:5px 8px;font-size:13px;cursor:pointer;background:#fffdf8}.map-filter input{accent-color:#00868a;margin:0}.map-filter svg{width:22px;height:22px;pointer-events:none}.map-filter.is-off{opacity:.45}.map-filter:focus-within{outline:2px solid #00868a;outline-offset:2px}.map-filter svg path{pointer-events:none}

.map-filter{color:#203d3f;background:#e3efea;border-color:#9bb5ae;transition:background .12s,opacity .12s}.map-filter.is-off{background:#f0f1ed;border-color:#dfe3de;color:#7a8783;opacity:.4}.map-filter:hover{border-color:#537e76}.map-filter:focus-visible{outline:2px solid #00868a;outline-offset:2px}

.map-filter-panel summary{cursor:pointer;padding:8px 0;font-size:14px;font-weight:600;color:#284b4b}.atlas-tooltip{white-space:pre-line;overflow-wrap:anywhere;max-width:min(360px,80vw)}

.atlas-tooltip-list{list-style:none;margin:0;padding:0;white-space:normal}
.atlas-tooltip-row{padding:7px 0}
.atlas-tooltip-row+.atlas-tooltip-row{border-top:1px solid #dce7e2}
.atlas-tooltip-title{line-height:1.4}
.atlas-tooltip-meta{font-size:11px;color:#697c78;margin-top:3px;line-height:1.3}
.news-category-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#697c78;margin-inline-end:.45em;white-space:nowrap;unicode-bidi:isolate}
.news-category-dot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--news-color,#258e8b)}
.news-category-badge.military{--news-color:#d43d3d}
.news-category-badge.indicator{--news-color:#a5682d}
.article-headline :is(a,.search-map-result){display:inline}


.map-tools{position:absolute;top:12px;left:12px;z-index:680;max-width:calc(100% - 24px);display:flex;flex-wrap:wrap;align-items:center;gap:6px;direction:ltr}
[dir="rtl"] .map-tools>details{direction:rtl}
.map-tools>details>summary{display:flex;align-items:center;gap:7px;width:max-content;list-style:none;padding:7px 11px;background:#fcfdf9;border:1px solid #cedad6;border-radius:8px;font-size:14px;font-weight:600;color:#284b4b;cursor:pointer}
.map-tools>details>summary::-webkit-details-marker{display:none}
.map-tools .settings-body,.news-period-status{position:absolute;left:0;top:100%}
.news-date-nav{display:flex;align-items:center;gap:3px;min-width:0;max-width:100%;padding:3px 5px;background:#fcfdf9;border:1px solid #cedad6;border-radius:8px;color:var(--ink)}
.news-period-icon{width:15px;height:15px;flex:none;border-radius:50%;background:conic-gradient(#c53d37 0 20%,#d7a91b 20% 40%,#288162 40% 60%,#8153b1 60% 80%,#676f75 80% 100%);box-shadow:inset 0 0 0 1px #172e3133}
.news-date-nav :is(button,input){height:27px;margin:0;border:1px solid transparent;border-radius:5px;background:transparent;color:inherit;font:inherit;font-size:13px}
.news-date-nav button{flex:none;min-width:23px;padding:0 4px;cursor:pointer}
.news-date-nav button:disabled{opacity:.35;cursor:default}
.news-date-nav button:not(:disabled):hover{background:#eef4f1}
#news-date{display:flex;align-items:center;gap:7px;padding:0 5px;font-variant-numeric:tabular-nums}
.news-calendar-icon{display:inline-block;width:12px;height:11px;border:1px solid currentColor;border-top-width:3px;border-radius:2px}
#news-calendar{position:absolute;left:0;top:calc(100% + 6px);z-index:2;width:min(280px,calc(100vw - 36px));padding:8px;background:#fcfdf9;border:1px solid #cedad6;border-radius:8px;box-shadow:0 6px 24px #17333326}
.news-calendar-header,.news-calendar-days{display:grid;align-items:center;gap:3px}
.news-calendar-header{grid-template-columns:auto minmax(0,1fr) auto auto;margin-bottom:6px}
.news-calendar-header select{min-width:0;font:inherit;font-size:13px;color:inherit}
.news-calendar-days{grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}
.news-calendar-days>span{font-size:11px;color:var(--muted)}
.news-calendar-days button[aria-current="date"]{border-color:#cedad6}
.news-calendar-days button[aria-pressed="true"]{background:#e3efea;border-color:#9bb5ae;color:#203d3f;font-weight:600}
.map-tools:has(#news-calendar:not([hidden])) .news-period-status{display:none}
.news-date-nav .news-week-toggle{margin-inline-start:2px;padding:0 6px;border-color:#dce3df;color:#596f70;white-space:nowrap}
.news-date-nav .news-week-toggle[aria-pressed="true"]{background:#e3efea;border-color:#9bb5ae;color:#203d3f;font-weight:600}
.news-period-status{z-index:1;width:max-content;max-width:min(260px,calc(100vw - 36px));margin-top:6px;padding:5px 8px;border-radius:6px;background:#fcfdf9;color:var(--muted);font-size:12px}
.map-tools:has(details[open]) .news-period-status{display:none}
.settings-body{width:min(405px,calc(100vw - 48px));max-height:min(65vh,calc(var(--map-frame-height,100vh) - 52px));overflow:auto;overscroll-behavior:contain;margin-top:6px;padding:12px;background:#fcfdf9;border:1px solid #cedad6;border-radius:8px;box-shadow:0 6px 24px #17333326}
.settings-priority{margin:0 0 7px;padding:8px;border:1px solid #adc2ba;border-radius:6px;background:#eef4f1;display:flex;flex-wrap:wrap;gap:8px}
.settings-priority legend{font-weight:600;padding:0 4px}
.settings-priority label{display:inline-flex;align-items:center}
.settings-view-mode{flex-basis:100%;display:flex;align-items:center;gap:8px}
.settings-priority input{accent-color:var(--teal)}
.settings-language{display:flex;align-items:center;gap:8px;margin:4px 0 10px}
#minimize-chat{border:1px solid #cedad6;border-radius:6px;background:#fcfdf9;padding:3px 7px}
.map-filter:disabled{opacity:.25;cursor:default}
#map-chat{position:absolute;right:36px;bottom:22px;z-index:655;width:min(250px,calc(100% - 46px));margin:0}
#map-chat:not(.expanded) :is(.chat-heading,#messages,.chat-selection,#send){display:none}
#map-chat #chat-form{margin:0}
#map-chat.expanded{width:min(490px,calc(100% - 48px));max-height:calc(100% - 34px);padding:12px;display:flex;flex-direction:column;background:#fcfdf9;border:1px solid #cedad6;border-radius:10px;box-shadow:0 8px 26px #17333326}
#map-chat.expanded #messages{min-height:0}
#map-chat .chat-heading{gap:8px}
#map-chat #chat-status{margin-left:auto}
#map-chat #chat-form,#map-chat .chat-heading,#map-chat .chat-selection{flex-shrink:0}
#map-chat:not(.expanded) #chat-form{padding:3px 10px}

/* Keep map tools anchored while their contents follow the reading direction. */
.settings-language > span {min-width:0;overflow-wrap:anywhere}
.settings-language select {max-width:52%;min-width:0}
[dir="rtl"] :is(.message,.search-map-result,.chat-answer) {text-align:start}
[dir="rtl"] .message.user {text-align:end}
#map-chat #chat-status {margin-inline-start:auto}
[dir="rtl"] #map-chat #chat-status {margin-left:0}
