/* Polar-style controls, guidance and keys, shared by all Observatory maps. */
.ao-map-surface{position:relative;background:#f7f6f2;color:#0f0f0f;min-width:0;border:0!important;border-radius:0!important;box-shadow:none!important}
.ao-map-viewport{border-radius:0!important}
.ao-map-footer{padding:16px 0 20px;background:#f7f6f2;color:#55534f;min-width:0}
.ao-map-footer .ao-map-actions{position:static!important;display:flex!important;flex-wrap:wrap;align-items:center;gap:6px!important;padding:0!important;margin:0!important;background:transparent!important;color:#0f0f0f;box-shadow:none!important}
.ao-map-footer .ao-map-actions button{box-sizing:border-box;min-width:44px!important;min-height:44px!important;padding:8px 14px!important;font:inherit;font-size:15px!important;line-height:1.4;border:1px solid #cbd5d8!important;border-radius:0!important;background:#f7f6f2!important;color:#0f0f0f!important;box-shadow:0 2px 5px #0f0f0f0a;cursor:pointer}
.ao-map-footer .ao-map-actions button:disabled{opacity:.45;cursor:default}
.ao-map-footer .ao-map-actions button:hover:not(:disabled){background:#eeece7!important}
.ao-map-footer .ao-map-actions button:focus-visible{outline:3px solid #d62828;outline-offset:3px}
.ao-map-reset-view{pointer-events:none}
.ao-map-footer .ao-map-actions .ao-map-share{display:inline-flex;align-items:center;gap:7px;margin-left:auto!important;margin-right:4px!important}
.ao-map-share svg{width:18px;height:18px;flex:none}
.ao-map-footer .ao-map-share-status{margin:10px 0 0;font-size:14px;line-height:1.6;color:#55534f}
.ao-map-footer .ao-map-share-link{box-sizing:border-box;width:100%;max-width:620px;min-height:44px;margin-top:8px;padding:8px 12px;font:inherit;font-size:14px;color:#0f0f0f;background:#f7f6f2;border:1px solid #cbd5d8;border-radius:0}
.ao-map-footer :is(.ao-map-share-status,.ao-map-share-link)[hidden]{display:none!important}
.ao-map-footer .ao-map-guidance{display:block!important;position:relative;margin:18px 0 14px!important;padding:12px 0 0!important;border:0!important;background:transparent!important;color:#55534f!important;font-size:14px!important;line-height:1.6!important;min-width:0!important;flex:none!important}
.ao-map-footer .ao-map-guidance:before{content:"";position:absolute;top:0;left:24px;right:24px;height:1px;background:#fff}
.ao-map-footer .ao-map-key{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background-color:transparent!important;color:#55534f!important;font-size:14px;line-height:1.6;box-shadow:none!important}
.ao-map-footer .ao-map-key[hidden]{display:none!important}
.ao-map-footer .ao-map-key:before{display:none!important}
.ao-map-footer .ao-map-key p{margin:10px 0 0!important;font-size:14px!important;line-height:1.6!important;color:#55534f!important}
.ao-map-footer :is(.legend-head,strong){color:#55534f;font-size:12px;font-weight:600}
.ao-map-footer :is(.scale,.ticks,.legend-head,.bio-ramp,.bio-ticks,.mer-ramp,.mer-ticks,.cartographic-legend>div){max-width:480px}
.ao-map-footer .legend-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px}
.ao-map-footer :is(.ticks,.bio-ticks,.cartographic-ticks){font-size:11px!important;color:#55534f!important;line-height:1.6;word-spacing:normal}
.ao-map-footer :is(.scale,.bio-ramp,.cartographic-ramp){height:8px!important;border-radius:0!important}
.ao-map-footer .no-data-key{border-color:#55534f}
.ao-map-footer .scale-title{flex:0 0 110px;font-size:11px;line-height:1.4}
.ao-map-footer .mer-ramp{height:8px;margin:8px 0 2px}
.ao-map-footer .mer-ticks{position:relative;height:18px;font-size:11px;color:#55534f}
.ao-map-footer .mer-ticks span{position:absolute;transform:translateX(-50%)}
.ao-map-footer .mer-ticks span:first-child{transform:none}
.ao-map-footer .mer-ticks span:last-child{transform:translateX(-100%)}
.ao-map-footer .ao-map-expanded-reading{font-size:14px;line-height:1.6;color:#0f0f0f;margin:12px 0 0}
.ao-map-expanded{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100%!important;height:100vh!important;height:100dvh!important;margin:0!important;padding:12px!important;display:flex!important;flex-direction:column;gap:0;border:0!important;box-sizing:border-box;overflow:hidden!important}
.ao-map-expanded>.map-caption{flex:none;background:#f7f6f2;color:#55534f;padding:4px 0 8px}
.ao-map-expanded>.ao-map-viewport{flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;width:100%!important;aspect-ratio:auto!important;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;background:#f7f6f2}
.ao-map-expanded:not(.ao-map-fluid)>.ao-map-viewport canvas,.ao-map-expanded:not(.ao-map-fluid)>canvas.ao-map-viewport{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain;flex:0 1 auto!important}
.ao-map-expanded.ao-map-fluid>.ao-map-viewport>canvas,.ao-map-expanded.ao-map-fluid #cartographic-map{width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important}
.ao-map-expanded>.ao-map-footer{flex:0 0 auto;max-height:42%;overflow-y:auto;overscroll-behavior:contain;padding-bottom:0}
.ao-map-expanded .ao-map-footer .ao-map-actions{position:sticky!important;top:0;z-index:10;background:#f7f6f2!important;padding-bottom:4px!important}
.ao-map-expanded .ao-map-guidance{margin-top:10px!important;margin-bottom:8px!important;padding-top:8px!important}
.ao-map-expanded .greenland-distance-scale{position:absolute;z-index:5;top:8px;left:8px;margin:0;padding:6px;background:#f7f6f2e8}
.ao-map-expanded .flow-inset{top:64px;bottom:auto}
@media(max-width:600px){
 .ao-map-footer{padding-top:12px;padding-bottom:16px}
 .ao-map-footer .ao-map-guidance:before{left:16px;right:16px}
 .ao-map-footer .ao-map-actions button{font-size:14px!important;padding-inline:12px!important}
 .ao-map-footer .ao-map-actions{gap:4px!important}
 .ao-map-footer .ao-map-actions .ao-map-reset-view{display:none}
 .ao-map-expanded{padding:8px!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
 .ao-map-expanded>.ao-map-footer{max-height:48%}
}

/* Expanded map layer selection and selected reading, shared by all regions. */
.ao-map-surface .ao-expanded-layer{display:none}
.ao-map-expanded .ao-map-heading .ao-expanded-layer{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px;line-height:1.4;color:#0f0f0f}
.ao-map-expanded .ao-expanded-layer select{box-sizing:border-box;min-height:44px;max-width:100%;padding:8px 30px 8px 10px;border:1px solid #cbd5d8;border-radius:0;background:#f7f6f2;color:#0f0f0f;font:inherit;font-size:14px}
.ao-map-expanded .ao-expanded-layer select:focus-visible{outline:3px solid #d62828;outline-offset:3px}
@media(max-width:600px){.ao-map-expanded .ao-map-heading .ao-expanded-layer{width:100%}.ao-map-expanded .ao-expanded-layer select{flex:1;min-width:0}}

/* Selected grid-cell reading stays visible above the map during playback. */
.ao-map-numeric-reading[hidden]{display:none!important}
.ao-map-expanded .ao-map-header .ao-map-numeric-reading{grid-column:1/-1;display:grid;grid-template-columns:minmax(130px,.4fr) minmax(0,1fr);column-gap:24px;row-gap:2px;padding:10px 0 4px;margin:4px 0 0;border-top:1px solid #fff;color:#0f0f0f;line-height:1.3}
.ao-map-expanded .ao-map-header .ao-map-numeric-reading span{color:inherit;font-size:inherit;flex-basis:auto;text-align:left;white-space:normal}
.ao-map-expanded .ao-map-header .ao-map-numeric-reading .ao-reading-value{display:inline;font-size:inherit;font-weight:inherit;letter-spacing:inherit}
.ao-map-expanded .ao-map-header .ao-map-numeric-reading .ao-reading-unit{display:inline;font-size:18px;font-weight:400;letter-spacing:0}
.ao-map-numeric-reading .ao-reading-label{grid-column:1;font-size:12px}
.ao-map-numeric-reading .ao-reading-number{display:block!important;grid-column:1;font-size:40px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.035em;line-height:1.1}
.ao-map-numeric-reading .ao-reading-unit{font-size:18px;font-weight:400;letter-spacing:0}
.ao-map-numeric-reading .ao-reading-context{grid-column:2;grid-row:1/3;align-self:center;display:flex;align-items:flex-start;flex-direction:column;gap:3px;font-size:12px;color:#55534f;min-width:0;overflow-wrap:anywhere}
.ao-map-numeric-reading .ao-reading-location{color:#0f0f0f;font-weight:600}
.ao-map-numeric-reading.ao-reading-reference .ao-reading-number{font-size:20px;letter-spacing:0}
@media(max-width:600px){.ao-map-expanded .ao-map-header .ao-map-numeric-reading{grid-template-columns:minmax(120px,.75fr) minmax(0,1fr);column-gap:12px;padding:8px 0 2px}.ao-map-numeric-reading .ao-reading-number{font-size:32px}.ao-map-expanded .ao-map-header .ao-map-numeric-reading .ao-reading-unit{font-size:16px}.ao-map-numeric-reading .ao-reading-context{font-size:11px}.ao-map-numeric-reading.ao-reading-reference .ao-reading-number{font-size:16px}}


.ao-expanded-reading-details[hidden],.ao-map-expanded-controls[hidden]{display:none!important}
.ao-expanded-reading-details{margin:12px 0 0;font-size:13px;line-height:1.6;color:#55534f}
.ao-expanded-reading-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px}
.ao-expanded-reading-details summary:before{content:'+';font-weight:600}
.ao-expanded-reading-details[open] summary:before{content:'−'}
.ao-expanded-reading-details summary:focus-visible{outline:3px solid #d62828;outline-offset:3px}
.ao-expanded-reading-details p{margin:8px 0;white-space:normal}
.ao-map-expanded .polar-wind-controls{margin:4px 0 0;padding:10px 0;border-top:1px solid #fff;border-bottom:0}
.ao-map-expanded .polar-wind-controls p{font-size:12px;line-height:1.4}
.ao-map-expanded .polar-wind-controls select{box-sizing:border-box;max-width:100%}
@media(max-width:600px){.ao-map-expanded .polar-wind-buttons{gap:6px}.ao-map-expanded .polar-wind-buttons button{flex:1;min-width:0;padding:8px;font-size:12px}}

/* Keep the expanded header identical in page, shadow-map and iframe contexts. */
.ao-map-expanded>.ao-map-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px 20px;color:#0f0f0f!important}
.ao-map-expanded .ao-map-heading{display:flex!important;flex-wrap:wrap;align-items:baseline;gap:6px 10px;min-width:0}
.ao-map-expanded .ao-map-heading strong{font-size:15px!important;font-weight:600;line-height:1.4;color:#0f0f0f!important}
.ao-map-expanded .ao-map-heading small{font-size:11px!important;line-height:1.5;letter-spacing:.035em;color:#0f0f0f!important}
.ao-map-expanded .ao-map-date{font-size:12px!important;line-height:1.5;white-space:pre-line;text-align:right;max-width:320px;color:#0f0f0f!important}
.ao-map-expanded .ao-map-header [data-map-distance-scale]{display:flex!important;align-items:center;flex-wrap:nowrap!important;gap:12px!important;padding:0!important;min-width:0;color:#0f0f0f!important}
.ao-map-expanded .ao-map-header [data-map-distance-scale] span{font-size:11px!important;color:#0f0f0f!important;flex-basis:auto!important;text-align:left!important}
@media(max-width:1050px){.ao-map-expanded>.ao-map-header{grid-template-columns:minmax(0,1fr) auto}.ao-map-expanded .ao-map-heading{grid-column:1/-1}}
@media(max-width:600px){.ao-map-expanded>.ao-map-header{gap:12px 16px}.ao-map-expanded .ao-map-date{max-width:145px}.ao-map-expanded .ao-map-header [data-map-distance-scale]{flex-direction:column;align-items:flex-start!important;gap:4px!important}}

/* Single-snapshot views leave more height for the map; notes stay scrollable. */
.ao-map-expanded.ao-map-numeric-view:not(.ao-map-has-time-controls)>.ao-map-footer{max-height:32%}
.ao-map-expanded.ao-map-numeric-view .ao-map-guidance{font-size:12px!important;line-height:1.4!important}

/* A fluid map draws into the full expanded viewport; zoom is geographic, not a CSS stretch. */
.ao-map-expanded.ao-map-fluid>.ao-map-viewport>canvas{display:block;flex:1 1 auto!important;max-width:none!important;max-height:none!important}


/* Keep location and sharing together at every width, including expanded maps. */
.ao-map-view-actions{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto;align-items:center;max-width:100%}
.ao-map-footer .ao-map-actions .ao-map-view-actions .ao-map-share{margin:0!important;white-space:nowrap}
.ao-map-find-form{display:flex;align-items:end;flex-wrap:wrap;gap:12px;width:100%;padding:12px 0;margin:0;font:14px Arial,sans-serif;color:inherit}
.ao-map-find-form[hidden]{display:none!important}
.ao-map-find-form label{display:grid;gap:5px;flex:1 1 130px;max-width:240px;font-size:13px}
.ao-map-find-form input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;font:16px Arial,sans-serif;padding:8px;border:1px solid #71818a;border-radius:0;background:#f7f6f2;color:#0f0f0f}
.ao-map-find-form button{min-height:44px;padding:8px 14px;font:14px Arial,sans-serif;cursor:pointer}
.ao-map-find-form p{flex-basis:100%;margin:0;font-size:12px}
.ao-map-find-form :focus-visible{outline:3px solid #d62828;outline-offset:2px}
@media(max-width:480px){.ao-map-view-actions{margin-left:0;gap:4px;width:100%}.ao-map-footer .ao-map-view-actions button{flex:1 1 auto}}

html[data-appearance="dark"] .ao-map-footer .ao-map-share-status,:host([data-appearance="dark"]) .ao-map-footer .ao-map-share-status{color:#d5d5d0}
