/* Dark Leaflet map stage for the Space trackers (ISS, satellites + their embed
   widgets) — same look as the LK Forge earth + weather maps. */
.sp-stage { position: relative; isolation: isolate; margin-top: 18px; border-radius: var(--radius-lg, 14px); overflow: hidden; border: 1px solid var(--border); background: #04060e; box-shadow: var(--shadow); }
.sp-lmap { aspect-ratio: 2 / 1; min-height: 320px; max-height: 620px; background: #04060e; }
.sp-stage:fullscreen { border-radius: 0; border: 0; }
.sp-stage:fullscreen .sp-lmap { height: 100%; max-height: none; aspect-ratio: auto; }
.sp-stage .leaflet-container { font: inherit; background: #04060e; }
.sp-stage .leaflet-control-zoom { border: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.sp-stage .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; background: rgba(15,23,42,.85); color: #e2e8f0; border-bottom: 1px solid rgba(255,255,255,.1); }
.sp-stage .leaflet-control-zoom a:hover { background: rgba(30,41,59,.95); color: #fff; }
.sp-stage .leaflet-control-attribution { background: rgba(15,23,42,.7); color: #94a3b8; font-size: .68rem; }
.sp-stage .leaflet-control-attribution a { color: #cbd5e1; }
.sp-fs { position: absolute; top: 12px; right: 12px; z-index: 500; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(15,23,42,.85); color: #e2e8f0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.sp-fs:hover { background: rgba(30,41,59,.95); color: #fff; }
.sp-fs:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.sp-fs svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-bar { position: absolute; left: 12px; bottom: 26px; z-index: 500; max-width: calc(100% - 24px); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 12px; border-radius: 12px; background: rgba(15,23,42,.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.35); color: #e2e8f0; font-size: .76rem; font-weight: 600; }
.sp-bar span { display: inline-flex; align-items: center; gap: 6px; }
.sp-bar i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #fff; }
.sp-bar label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sp-bar input { accent-color: #22d3ee; width: 15px; height: 15px; margin: 0; }
/* ISS marker: pulsing cyan dot */
.sp-iss-ico { width: 18px; height: 18px; position: relative; }
.sp-iss-ico::before, .sp-iss-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22d3ee; }
.sp-iss-ico::before { animation: sp-pulse 1.8s ease-out infinite; opacity: .7; }
.sp-iss-ico::after { inset: 4px; border: 2px solid #fff; box-shadow: 0 0 8px rgba(34,211,238,.9); }
@keyframes sp-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sp-iss-ico::before { animation: none; } }
/* Starlink dot canvas over the Leaflet map (redrawn on move/zoom) */
.sl-dots { position: absolute; left: 0; top: 0; z-index: 450; pointer-events: none; }
/* Planets Tonight: sky-chart stage with the time slider in a glass header bar */
.pt-stage { display: flex; flex-direction: column; }
.pt-stage .pt-sky { border-radius: 0; }
.pt-glass.pt-chart-head { margin: 0; padding: 10px 12px 10px 16px; background: rgba(15,23,42,.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #e2e8f0; border-bottom: 1px solid rgba(255,255,255,.08); }
.pt-glass label { font-weight: 600; font-size: .88rem; white-space: nowrap; }
.pt-glass strong { font-family: 'JetBrains Mono', monospace; color: #fff; }
.sp-fs.pt-fs { position: static; flex-shrink: 0; }
.pt-stage:fullscreen { justify-content: center; }
.pt-stage:fullscreen .pt-sky { flex: 1 1 auto; height: auto; max-height: calc(100vh - 60px); }
/* Asteroid close-approach chart */
.ast-stage { margin: 14px 0 16px; background: radial-gradient(120% 90% at 50% 50%, #111b33 0%, #070b14 70%); }
.ast-chart { display: block; width: 100%; height: auto; }
.ast-stage:fullscreen { display: flex; align-items: center; justify-content: center; }
.ast-stage:fullscreen .ast-chart { height: 100%; max-height: 100vh; }
.ast-pt circle { cursor: help; transition: transform .15s; transform-box: fill-box; transform-origin: center; }
.ast-pt:hover circle { transform: scale(1.4); }
.ast-bar { bottom: 12px; }
.ast-bar-note { color: #94a3b8; font-weight: 500; }
@media (max-width: 600px) { .ast-bar-note { display: none !important; } }
/* Launch pads: next launch = pulsing orange marker */
.ln-stage { margin: 0 0 18px; }
.ln-next-ico { width: 20px; height: 20px; position: relative; }
.ln-next-ico::before, .ln-next-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #f97316; }
.ln-next-ico::before { animation: sp-pulse 1.8s ease-out infinite; opacity: .7; }
.ln-next-ico::after { inset: 4px; border: 2px solid #fff; box-shadow: 0 0 10px rgba(249,115,22,.9); }
@media (prefers-reduced-motion: reduce) { .ln-next-ico::before { animation: none; } }
/* Space Weather: the Sun right now (NOAA SUVI / LASCO still image) */
.sw-stage { display: flex; align-items: center; justify-content: center; background: #000; min-height: 320px; }
.sw-sun { display: block; width: 100%; max-width: 620px; aspect-ratio: 1 / 1; object-fit: contain; background: #000; margin: 0 auto; }
.sw-stage:fullscreen .sw-sun { max-width: none; width: auto; height: 100vh; }
.sw-bar { justify-content: space-between; right: 12px; bottom: 12px; }
.sw-chan { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-chan button { font: inherit; font-size: .76rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(203,213,225,.3); background: rgba(255,255,255,.06); color: #e2e8f0; cursor: pointer; }
.sw-chan button[aria-pressed="true"] { background: #f59e0b; border-color: #f59e0b; color: #0b1220; }
.sw-time { font-family: 'JetBrains Mono', monospace; color: #fff; font-weight: 700; }
.sw-sun-note { margin-top: 10px; }
@media (max-width: 600px) { .sw-bar { position: static; border-radius: 0; } .sw-stage { flex-direction: column; } }
/* satellite name labels */
.sp-sat-lbl { background: rgba(15,23,42,.8); color: #fff; border: 0; border-radius: 6px; font-weight: 700; font-size: .72rem; padding: 1px 6px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.sp-sat-lbl::before { display: none; }
@media (max-width: 600px) { .sp-lmap { aspect-ratio: auto; height: 340px; } .sp-bar { font-size: .7rem; gap: 4px 10px; } }
/* Eclipse Tracker: ‹ eclipse › browser + fullscreen in a glass header strip joined to the map */
.ec-stage { display: flex; flex-direction: column; }
.ec-glass { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(15,23,42,.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); color: #e2e8f0; }
.ec-glass-lbl { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: .9rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-glass-lbl small { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: .78rem; color: #94a3b8; margin-left: 8px; }
.ec-step { flex: none; width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(203,213,225,.3); background: rgba(255,255,255,.06); color: #e2e8f0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ec-step:hover:not(:disabled) { background: rgba(255,255,255,.14); color: #fff; }
.ec-step:disabled { opacity: .35; cursor: default; }
.ec-step:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.ec-step svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sp-fs.ec-fs { position: static; flex: none; margin-left: 4px; background: rgba(255,255,255,.08); box-shadow: none; }
.ec-stage:fullscreen .sp-lmap { flex: 1 1 auto; height: auto; }
@media (max-width: 600px) { .ec-glass-lbl small { display: block; margin-left: 0; } }
/* Asteroid Tracker: filters + fullscreen in a glass header strip joined to the chart */
.ast-glass { margin: 0; padding: 10px 12px; gap: 10px 14px; align-items: flex-end; background: rgba(15,23,42,.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.ast-glass .sp-field label { color: #94a3b8; }
.ast-glass .sp-select { min-height: 40px; padding: 8px 12px; font-size: .9rem; background: rgba(255,255,255,.06); color: #fff; border-color: rgba(203,213,225,.3); color-scheme: dark; }
.ast-glass .btn-ghost { min-height: 40px; background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(203,213,225,.3); border-radius: 999px; }
.ast-glass .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.sp-fs.ast-fs { position: static; flex: none; margin-bottom: 2px; background: rgba(255,255,255,.08); box-shadow: none; }
.ast-glass .sp-actions { margin-left: auto; }
.ast-stage:fullscreen { flex-direction: column; justify-content: flex-start; align-items: stretch; }
.ast-stage:fullscreen .ast-chart { flex: 1 1 auto; min-height: 0; height: auto; max-height: none; }
@media (max-width: 600px) { .ast-glass .sp-field { flex: 1 1 100%; } .ast-glass .sp-actions { width: auto; margin-left: 0; } .sp-fs.ast-fs { margin-left: auto; } }
/* Launch Tracker: map-view buttons + fullscreen in a glass header strip joined to the map */
.ln-stage { display: flex; flex-direction: column; }
.ln-glass { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(15,23,42,.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.ln-view { font: inherit; font-size: .88rem; font-weight: 700; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(203,213,225,.3); background: rgba(255,255,255,.06); color: #e2e8f0; cursor: pointer; }
.ln-view:hover:not(:disabled) { background: rgba(255,255,255,.14); color: #fff; }
.ln-view[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ln-view:disabled { opacity: .4; cursor: default; }
.ln-view:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.sp-fs.ln-fs { position: static; flex: none; margin-left: auto; background: rgba(255,255,255,.08); box-shadow: none; }
.ln-stage:fullscreen .sp-lmap { flex: 1 1 auto; height: auto; max-height: none; aspect-ratio: auto; }
/* Satellite Tracker: satellite tabs scroll sideways inside the glass strip on narrow screens */
.sat-tabs { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sat-tabs::-webkit-scrollbar { display: none; }
.sat-tabs .ln-view { flex: none; white-space: nowrap; }
/* Space Weather: channel tabs + fullscreen in a glass header strip, image below, time label bottom-left */
.sw-stage { flex-direction: column; align-items: stretch; justify-content: flex-start; }
.sw-view { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.sw-view .sw-bar { right: auto; }
.sw-chan.sat-tabs { flex-wrap: nowrap; }
.sw-chan.sat-tabs button { flex: none; white-space: nowrap; font-size: .84rem; min-height: 36px; padding: 6px 12px; }
.sw-chan button:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.sw-stage:fullscreen .sw-sun { height: 100%; max-height: 100%; width: auto; }

/* [hidden]-guard (2026-09-29): an author display rule must never beat the hidden attribute (bit 4x: weather, timer, whats-my-ip, image converters). */
[hidden] { display: none !important; }
