/* Earth View (earth.php, flag earth_view): the globe fills the window, the controls float over it. */
html, body.ev-body { margin: 0; height: 100%; overflow: hidden; background: #000; }
.ev { position: fixed; inset: 0; color: #eef1f8; font-family: Inter, system-ui, -apple-system, sans-serif; }
.ev-globe { position: absolute; inset: 0; }
.ev-globe .cesium-viewer, .ev-globe .cesium-widget, .ev-globe canvas { width: 100%; height: 100%; }
.ev-globe canvas { outline: none; }
/* No Cesium ion logo (ion is Cesium's hosted service, not used here; CesiumJS is Apache-2.0); the data credits stay. */
.ev .cesium-credit-logoContainer { display: none !important; }
.ev .cesium-widget-credits { left: auto; right: 10px; bottom: 112px; text-align: right; font-size: 10px; opacity: 0.75; max-width: 60%; }
.ev .cesium-credit-lightbox-overlay { z-index: 50; }

.ev-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px; z-index: 5;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)); pointer-events: none; }
.ev-top > * { pointer-events: auto; }
.ev-back { display: inline-flex; align-items: center; gap: 6px; color: #eef1f8; text-decoration: none; font-size: 14px; font-weight: 600;
    background: rgba(18, 22, 34, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 7px 12px 7px 9px; }
.ev-title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: 0.02em; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.ev-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ev-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; color: #eef1f8; cursor: pointer;
    background: rgba(18, 22, 34, 0.75); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 7px 12px; min-height: 34px; }
.ev-btn:hover { border-color: var(--accent, #ffae57); }
.ev-btn[aria-pressed="true"] { background: var(--accent, #ffae57); color: #1b2133; border-color: transparent; }
.ev-layers { position: static; }

.ev-compass { position: absolute; right: 16px; top: 64px; width: 44px; height: 44px; border-radius: 50%; z-index: 5; cursor: pointer; padding: 0;
    background: rgba(18, 22, 34, 0.75); border: 1px solid rgba(255, 255, 255, 0.18); display: grid; place-items: center; }
.ev-compass[hidden] { display: none; }
.ev-locate { position: absolute; right: 16px; top: 116px; width: 44px; height: 44px; border-radius: 50%; z-index: 5; cursor: pointer; padding: 0;
    color: #eef1f8; background: rgba(18, 22, 34, 0.75); border: 1px solid rgba(255, 255, 255, 0.18); display: grid; place-items: center; }
.ev-locate.is-busy { color: var(--accent, #ffae57); }
.ev-tomap { top: 168px; text-decoration: none; }
/* Events over the globe: page elements, so neither the ground nor the cloud in its volume can cover them. */
.ev-evlayer { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.ev-evmark { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; padding: 0; cursor: pointer; pointer-events: auto;
    background: rgba(20, 26, 46, 0.9); border: 1.5px solid var(--accent, #ffae57); display: grid; place-items: center; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.ev-evmark img { width: 15px; height: 15px; display: block; }
.ev-evmark span { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); white-space: pre; text-align: center; font: 600 11px/1.25 Inter, system-ui, sans-serif;
    color: #fff; text-shadow: 0 1px 3px #000, 0 0 2px #000; pointer-events: none; }
.ev-evmark.is-far { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.ev-evmark.is-far img { width: 11px; height: 11px; }
.ev-evmark.is-far span { display: none; }
.ev-evmark[hidden] { display: none; }
.ev-locate[hidden] { display: none; }
.ev-compass svg { display: block; transform-origin: 50% 50%; }
.ev-compass, .ev-compass * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

.ev-ground { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; align-items: center;
    font-size: 13px; background: rgba(18, 22, 34, 0.8); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 5px 6px 5px 14px; }
.ev-ground[hidden] { display: none; }

.ev-help { position: absolute; right: 16px; top: 112px; z-index: 8; width: min(360px, calc(100vw - 32px)); font-size: 13px;
    background: rgba(14, 18, 28, 0.94); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; padding: 12px 16px; }
.ev-help[hidden] { display: none; }
.ev-help h2 { font-size: 14px; margin: 0 0 8px; }
.ev-help dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.ev-help dt { font-weight: 600; color: #fff; }
.ev-help dd { margin: 0; color: #b9c1d3; }
.ev-help p { color: #b9c1d3; margin: 10px 0 0; }

.ev-pick { position: absolute; left: 16px; top: 64px; z-index: 6; width: min(340px, calc(100vw - 32px)); font-size: 13px;
    background: rgba(14, 18, 28, 0.94); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; padding: 12px 14px; }
.ev-pick[hidden] { display: none; }
.ev-pick h3 { margin: 0 0 4px; font-size: 15px; }
.ev-pick p { margin: 2px 0; color: #b9c1d3; }
.ev-pick .ev-pick-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ev-pick a.ev-btn { text-decoration: none; }
.ev-pick .ev-x { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: #b9c1d3; font-size: 18px; cursor: pointer; }
.ev-pick a { color: var(--accent, #ffae57); }

/* The Sky Time mark, bottom right: the controls away and back (2026-11-11). */
.ev-clean { position: absolute; right: 16px; bottom: 18px; z-index: 6; padding: 8px 10px; border: 1px solid transparent; border-radius: 14px;
    background: rgba(18, 22, 34, 0.35); cursor: pointer; line-height: 0; transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease; opacity: 0.9; }
.ev-clean img { display: block; width: 58px; height: auto; }
.ev-clean:hover, .ev-clean:focus-visible { transform: translateY(-2px) scale(1.06); background: rgba(18, 22, 34, 0.75); border-color: rgba(255, 174, 87, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 174, 87, 0.18), 0 6px 18px rgba(0, 0, 0, 0.45); opacity: 1; outline: none; }
.ev-clean:active { transform: scale(0.97); }
.ev.is-clean .ev-clean { background: rgba(18, 22, 34, 0.15); opacity: 0.7; }
.ev.is-clean .ev-clean:hover { opacity: 1; }
/* With the controls away, only the globe and its layers (and the sources' line, which the licences ask for). */
.ev.is-clean .ev-top, .ev.is-clean .ev-time, .ev.is-clean .ev-compass, .ev.is-clean .ev-locate, .ev.is-clean .ly-sheet,
.ev.is-clean .ev-pick, .ev.is-clean .ev-layers { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.ev.is-clean .ev-top *, .ev.is-clean .ev-time * { pointer-events: none !important; }
.ev .ev-top, .ev .ev-time, .ev .ev-compass, .ev .ev-locate { transition: opacity 0.25s ease, visibility 0s linear 0s; }
.ev-time { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; width: min(760px, calc(100vw - 32px));
    box-sizing: border-box; background: rgba(14, 18, 28, 0.86); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; padding: 8px 12px 10px; }
.ev-time-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ev-speeds { display: inline-flex; gap: 2px; background: rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 2px; }
.ev-speeds button { font: inherit; font-size: 12px; color: #d6dbe7; background: none; border: 0; border-radius: 8px; padding: 5px 8px; cursor: pointer; }
.ev-speeds button.on { background: var(--accent, #ffae57); color: #1b2133; font-weight: 700; }
.ev-date input { font: inherit; font-size: 13px; color: #eef1f8; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px; padding: 5px 8px; color-scheme: dark; }
.ev-clock { font-size: 14px; font-weight: 700; margin-left: auto; font-variant-numeric: tabular-nums; }
.ev-clock small { font-weight: 500; color: #9aa4b8; margin-left: 6px; }
.ev-slide-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; }
.ev-slide { flex: 1; min-width: 0; }
.ev-live { flex: none; font: inherit; font-size: 13px; font-weight: 600; color: #b8c0d4; cursor: pointer;
    background: rgba(255, 255, 255, 0.08); border: 0; border-radius: 10px; padding: 7px 12px; }
.ev-live.is-live { background: var(--accent, #ffae57); color: #1b2133; }
.ev-slider { width: 100%; margin: 6px 0 0; accent-color: var(--accent, #ffae57); }
.ev-marks { position: relative; height: 14px; margin: 0 8px; }
.ev-mark { position: absolute; top: 0; width: 14px; height: 14px; margin-left: -7px; border: 0; padding: 0; background: none; cursor: pointer; color: #ffae57; }
.ev-mark svg { display: block; }
.ev-mark.is-storm { color: #ff6b6b; }
.ev-mark.is-day { color: #8fd0ff; }
.ev-dayrow { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.ev-dayrow::-webkit-scrollbar { display: none; }
.ev-daychip { flex: none; border: 1px solid rgba(143, 208, 255, 0.45); background: rgba(143, 208, 255, 0.1); color: #dfe9f7; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.ev-daychip small { color: #8fd0ff; margin-left: 5px; }
.ev-daychip.is-now { border-color: #ffae57; background: rgba(255, 174, 87, 0.16); }

.ev-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; font-size: 15px; color: #b9c1d3; pointer-events: none; }
.ev-loading[hidden] { display: none; }

/* The Layers sheet is the map's (.ly-sheet in app.css), placed for a full-window globe. */
.ev .ly-sheet { position: absolute; right: 12px; top: 58px; bottom: auto; left: auto; transform: none; width: min(380px, calc(100vw - 24px)); max-height: calc(100% - 190px);
    overflow: auto; z-index: 9; }
.ev .ly-look-ground { background-size: cover; background-position: center; }
.ev .ly-look-bm .ly-look-ground { background: #05070d url("look-natural.jpg") center / cover no-repeat; }
.ev .ly-look-night .ly-look-ground { background: #05070d url("look-dark.jpg") center / cover no-repeat; }
.ev .ly-look-map .ly-look-ground { background: #05070d url("look-map.jpg") center / cover no-repeat; }

@media (max-width: 640px) {
    .ev-back span, .ev-title { display: none; }
    .ev .cesium-widget-credits { bottom: 150px; }
    /* A phone: the top bar's buttons in one row inside the screen (the owner, 2026-11-10: "Mobile version doesnt fit"). */
    .ev-top { padding: 8px 10px; gap: 8px; }
    .ev-tools { gap: 6px; }
    .ev-btn { padding: 7px 10px; }
    #ev-moon-word { display: none; }
    .ev .ev-layers { height: 38px; padding: 0 12px; font-size: 14px; }
    .ev-compass { right: 12px; top: 58px; }
    .ev-locate { right: 12px; top: 110px; }
    .ev-tomap { top: 160px; }
    .ev .ly-sheet { right: 8px; top: 54px; width: calc(100vw - 16px); max-height: calc(100% - 66px); }
    /* The time bar: play and speed; the date and the clock; Live and the slider. */
    .ev-time { width: calc(100vw - 16px); bottom: 8px; padding: 6px 10px 8px; }
    /* Above the time bar on a phone; down in the corner once the controls are away. */
    .ev-clean { right: 10px; bottom: 132px; padding: 6px 8px; }
    .ev-clean img { width: 46px; }
    .ev.is-clean .ev-clean { bottom: 12px; }
    .ev-time-row { gap: 6px; }
    .ev-speeds button { padding: 5px 7px; }
    .ev-date input { font-size: 12px; padding: 4px 6px; }
    .ev-clock { font-size: 13px; }
}
/* No keys on a touch screen: the keys help is for a keyboard and mouse. */
@media (hover: none) and (pointer: coarse) {
    #ev-help, .ev-help { display: none !important; }
}
