/* Real geographic maps: containment, labels and controls survive reader zoom. */
.geo-atlas-section,.geo-atlas-map{min-width:0;max-width:100%;box-sizing:border-box}
/* Figures never become a second horizontal scroll container around the map. */
html body figure.geo-atlas-map{overflow:visible!important}
.geo-atlas-section{margin-block:var(--ds-space-6);clear:both}
.geo-atlas-map{margin:0 0 var(--ds-space-8);padding:var(--ds-space-4);border:1px solid var(--ds-border-strong);border-radius:var(--ds-radius-md);background:var(--ds-surface);color:var(--ds-text)}
.geo-atlas-map h3{margin:0 0 var(--ds-space-3);color:var(--ds-heading);font-size:var(--ds-text-h4);line-height:var(--ds-leading-heading)}
.geo-atlas-controls{display:flex;flex-wrap:wrap;gap:var(--ds-space-2);margin-bottom:var(--ds-space-3)}
.geo-atlas-controls button,.geo-atlas-controls a{display:inline-flex;align-items:center;justify-content:center;min-height:var(--ds-touch-min);padding:var(--ds-space-2) var(--ds-space-3);font:inherit;font-size:1rem;line-height:1.5;border:1px solid var(--ds-border-strong);border-radius:var(--ds-radius-sm);background:var(--ds-surface-soft);color:var(--ds-text);cursor:pointer;text-decoration:none;white-space:normal}
.geo-atlas-controls a{color:var(--ds-primary);text-decoration:underline;text-underline-offset:.2em}
.geo-atlas-controls button:hover,.geo-atlas-controls a:hover{background:var(--ds-primary-soft)}
.geo-atlas-controls :focus-visible,.geo-atlas-scroll:focus-visible{outline:3px solid var(--ds-focus);outline-offset:3px}
.geo-atlas-scroll{max-width:100%;width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;border:1px solid var(--ds-border);border-radius:var(--ds-radius-sm);background:var(--ds-surface);-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom;box-sizing:border-box}
figure.geo-atlas-map .geo-atlas-scroll>img{display:block!important;width:var(--atlas-display-width,100%)!important;min-width:100%!important;max-width:none!important;height:auto!important;object-fit:contain;filter:none!important;margin:0!important}
/* Initial view shows the entire geographic extent; magnified maps scroll inside their own frame. */
.geo-atlas-map[data-atlas-magnified="true"] .geo-atlas-scroll{max-height:min(78dvh,48rem);overflow:auto;overscroll-behavior:contain}
.geo-atlas-scroll>img{vertical-align:middle}
.geo-atlas-map .geo-atlas-hint,.geo-atlas-map .geo-atlas-source{margin:var(--ds-space-3) 0;font-size:1rem;line-height:1.8;color:var(--ds-text-muted)}
.geo-atlas-map .geo-atlas-source{margin-bottom:0}
@media(max-width:30rem){.geo-atlas-map{padding:var(--ds-space-3)}.geo-atlas-controls{gap:var(--ds-space-2)}.geo-atlas-controls button,.geo-atlas-controls a{flex:1 1 auto}}
@media print{.geo-atlas-controls,.geo-atlas-hint{display:none}.geo-atlas-scroll{overflow:visible}.geo-atlas-map{break-inside:avoid}figure.geo-atlas-map .geo-atlas-scroll>img{width:100%!important;min-width:0!important;max-width:100%!important}}
