/* Earth Explorer v13 — in-map cockpit, legible legend and deep-space canvas.
 * The original globe, data layers, classroom models and MapLibre runtime remain unchanged.
 */
.ev8-workspace{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(235px,270px)!important;align-items:start;gap:14px}
.ev8-map-column{grid-column:1;min-width:0;width:100%}
.ev8-insights{grid-column:2;grid-row:1;min-width:0}
.ev8-map-stage{height:clamp(550px,69vh,860px)!important;border:1px solid rgba(113,215,241,.38)!important;background:#010410!important;box-shadow:0 32px 80px rgba(0,0,0,.48),0 0 80px rgba(39,125,205,.13)!important}
/* Critically, the map outside the 3D globe is space, not a second flat world map. */
#ev8-map{background-color:#020611!important;background-image:radial-gradient(1px 1px at 6% 12%,rgba(236,246,255,.95) 95%,transparent),radial-gradient(1px 1px at 14% 78%,rgba(182,214,252,.76) 95%,transparent),radial-gradient(1.4px 1.4px at 23% 28%,rgba(224,236,255,.78) 96%,transparent),radial-gradient(1px 1px at 31% 9%,rgba(180,218,252,.72) 95%,transparent),radial-gradient(1.6px 1.6px at 39% 64%,rgba(242,247,255,.72) 97%,transparent),radial-gradient(1px 1px at 48% 19%,rgba(177,223,255,.76) 95%,transparent),radial-gradient(1.2px 1.2px at 58% 82%,rgba(235,243,255,.64) 95%,transparent),radial-gradient(1px 1px at 67% 34%,rgba(186,222,255,.71) 95%,transparent),radial-gradient(1.6px 1.6px at 74% 11%,rgba(210,233,255,.82) 96%,transparent),radial-gradient(1px 1px at 83% 56%,rgba(243,248,255,.66) 95%,transparent),radial-gradient(1.3px 1.3px at 92% 24%,rgba(191,224,255,.77) 96%,transparent),radial-gradient(1.5px 1.5px at 95% 75%,rgba(233,244,255,.66) 96%,transparent),radial-gradient(circle at 18% 18%,rgba(85,125,198,.16),transparent 16%),radial-gradient(circle at 79% 24%,rgba(123,96,194,.14),transparent 18%),radial-gradient(circle at 67% 77%,rgba(76,157,214,.12),transparent 18%),radial-gradient(ellipse at 46% 48%,#08203a 0%,#020815 56%,#01030b 100%)!important;background-size:220px 170px,310px 240px,360px 280px,420px 320px,480px 360px,520px 410px,560px 420px,610px 450px,680px 520px,740px 560px,810px 620px,360px 280px,cover,cover,cover,cover!important}
.ev8-map-stage .ev8-timebar{position:absolute!important;z-index:18;bottom:14px;left:15px;right:70px;width:auto!important;margin:0!important;padding:12px 15px 10px!important;border:1px solid rgba(115,226,230,.35)!important;border-radius:15px!important;background:linear-gradient(113deg,rgba(4,16,31,.95),rgba(6,24,39,.91))!important;backdrop-filter:blur(22px);box-shadow:0 12px 38px rgba(0,0,0,.35)}
.ev8-map-stage .ev8-time-head{align-items:center}
.ev8-map-stage .ev8-time-head h2{font:750 clamp(15px,1.35vw,20px)/1.2 system-ui,sans-serif;color:#f2fdff}
.ev8-map-stage .ev8-year{font-size:clamp(19px,2vw,29px)}
.ev8-map-stage #ev8-year{display:none!important}
.ev8-map-stage #ev13-epoch{display:block;width:100%;height:18px;margin:8px 0 3px;accent-color:#85efd4;cursor:pointer}
.ev8-map-stage .ev8-year-ticks{display:none}
.ev8-map-stage #ev13-ticks{display:flex;justify-content:space-between;gap:3px;color:#c0e2e8;font:700 9px/1.25 system-ui,sans-serif}
.ev8-map-stage .ev8-time-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 0}
.ev8-map-stage .ev8-time-foot p{max-width:none;color:#c3d8e1;font:450 10px/1.5 system-ui,sans-serif}
.ev8-map-stage .ev8-time-foot select{font:650 11px/1.2 system-ui,sans-serif;min-height:35px;max-width:180px;background:#0d2735;color:#f4fdfb;border:1px solid rgba(122,217,220,.45);border-radius:9px;padding:5px 8px}
.ev13-cockpit-key{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:9px 0 0;padding:8px 0 0;border-top:1px solid rgba(162,222,242,.2);font:650 10px/1.35 system-ui,sans-serif;color:#dfedf3}
.ev13-cockpit-key span{display:inline-flex;align-items:center;gap:5px}
.ev13-cockpit-key i{display:inline-block;flex:none;width:10px;height:10px;border-radius:4px;background:var(--cl,#8ee);border:1px solid rgba(255,255,255,.33)}
.ev13-cockpit-key button{border:1px solid rgba(149,240,213,.45);border-radius:8px;background:rgba(47,105,103,.24);font:700 11px/1.25 system-ui,sans-serif;color:#ddfff4;padding:7px 10px;cursor:pointer;margin-left:auto}
.ev13-cockpit-key button:hover,.ev13-cockpit-key button:focus-visible{background:rgba(49,125,116,.46);outline-offset:2px}
.ev13-meaning{display:flex;align-items:center;gap:10px;margin:7px 0 0;font:550 10px/1.3 system-ui,sans-serif;color:#c7dbdf}
.ev13-meaning strong{color:#95f9de;font-weight:760}
.ev13-meaning a{color:#b6e6ff;text-decoration:underline;text-underline-offset:2px}
.ev8-map-stage .ev8-settings{position:absolute!important;left:auto!important;top:56px!important;right:13px!important;bottom:auto!important;display:none!important;z-index:27!important;width:min(360px,calc(100% - 24px))!important;max-height:calc(100% - 250px)!important;overflow-y:auto!important;overscroll-behavior:contain;margin:0!important;padding:14px 17px!important;border:1px solid rgba(154,232,228,.52)!important;border-radius:16px!important;background:linear-gradient(148deg,rgba(4,19,31,.96),rgba(9,25,39,.97))!important;backdrop-filter:blur(25px);box-shadow:0 24px 65px rgba(0,0,0,.7)}
.ev8-map-stage .ev8-settings.ev13-settings-open{display:block!important}
.ev13-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid rgba(162,220,241,.17);color:#bbf7ec;font:760 12px/1.3 system-ui,sans-serif}
.ev13-panel-head button{border:1px solid rgba(144,222,226,.33);background:rgba(43,110,106,.14);border-radius:8px;padding:7px 11px;color:#e5ffff;font:650 11px/1 system-ui,sans-serif;cursor:pointer}
.ev8-map-stage .ev8-settings #ev8-legend-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px}
.ev8-map-stage .ev8-settings .ev8-field{padding:11px 0}
.ev8-map-stage #ev9-palette-strip{display:none!important}
.ev13-map-guide{font:550 11px/1.55 system-ui,sans-serif;color:#b4d0da;margin:9px 0 0}
.ev13-map-guide a{color:#a8f0e7}
.ev8-map-stage .ev8-map-controls{right:12px;top:175px;bottom:auto;z-index:17}
.ev8-map-stage .ev9-map-top{z-index:12}
.ev8-map-stage .ev10-launch{z-index:12}
.ev8-map-stage .ev8-map-corner{bottom:194px;z-index:12}
.ev8-map-stage .ev8-map-status{z-index:15}
.ev8-map-stage .ev9-colour-note{z-index:13}
@media(max-width:1220px){.ev8-workspace{display:flex!important;flex-direction:column}.ev8-map-column,.ev8-insights{grid-column:auto;grid-row:auto;width:100%}.ev8-insights{order:2}.ev8-map-stage{height:clamp(520px,67vh,770px)!important}}
@media(max-width:760px){.ev8-map-stage{height:clamp(530px,90vh,790px)!important}.ev8-map-stage .ev8-timebar{bottom:7px;left:7px;right:7px;padding:10px 10px 8px!important;border-radius:11px!important}.ev8-map-stage .ev8-time-foot p{font-size:9.5px}.ev8-map-stage .ev8-year{font-size:21px}.ev8-map-stage .ev8-settings{top:49px!important;right:6px!important;max-height:calc(100% - 262px)!important;width:min(348px,calc(100% - 12px))!important}.ev8-map-stage .ev8-map-corner{bottom:216px}.ev8-map-stage .ev8-map-controls{top:154px}.ev8-map-stage #ev13-ticks{font-size:9px}.ev13-cockpit-key{gap:6px}.ev13-cockpit-key button{padding:6px 8px}}
@media(max-width:440px){.ev8-map-stage{height:615px!important}.ev8-map-stage .ev8-time-head h2{font-size:14px}.ev8-map-stage .ev8-time-foot{gap:7px}.ev8-map-stage .ev8-time-foot select{max-width:110px;font-size:10px}.ev13-cockpit-key span:nth-child(3){display:none}.ev8-map-stage .ev8-map-corner{bottom:206px}.ev8-map-stage .ev9-colour-note{max-width:78%}.ev8-map-stage .ev8-settings{max-height:calc(100% - 245px)!important}}
@media(prefers-reduced-motion:reduce){.ev8-map-stage .ev8-settings{scroll-behavior:auto}}
@media print{.ev8-map-stage .ev8-settings{display:none!important}}
/* Keep navigation controls clear of the 41-topic launcher and bottom year cockpit. */
.ev8-map-stage .ev8-map-controls{top:178px!important;right:12px!important;transform:none!important;grid-template-columns:repeat(2,40px)!important;gap:6px!important}
.ev8-map-stage .ev8-map-controls button{min-width:40px!important;height:40px!important}
@media(max-width:760px){.ev8-map-stage .ev8-map-controls{top:163px!important;right:8px!important;grid-template-columns:repeat(2,37px)!important}.ev8-map-stage .ev8-map-controls button{min-width:37px!important;height:37px!important}}


@media(max-width:760px){#ev8-map{background-position:center center!important}.ev8-map-stage .ev8-map-tools{right:10px!important}.ev8-map-stage .ev8-map-badge,.ev8-map-stage .ev13-chip-cluster{backdrop-filter:blur(12px)}}
