/* The exploration view shares the map's type and controls; the worlds carry the colour. */
#solar-view { position: absolute; inset: 0; z-index: 15; background: #03060c; overflow: hidden; color: #f0f4f8; animation: solar-arrive 650ms ease-out; }
@keyframes solar-arrive { from { opacity: 0; } to { opacity: 1; } }
#solar-view[hidden], #solar-view [hidden] { display: none !important; }
#solar-stage, .solar-labels { position: absolute; inset: 0; }
#solar-stage { opacity: 0; transition: opacity 650ms; }
.solar-ready #solar-stage { opacity: 1; }
#solar-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.solar-labels { pointer-events: none; overflow: hidden; }
.solar-label { position: absolute; top: 0; left: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; border: 0; background: #03060c9c; border-radius: 4px; padding: 4px 9px; font: 13px var(--font); color: #e7edf4; text-shadow: 0 1px 4px #000; }
.solar-label span { border-bottom: 1px solid var(--body-color); padding-bottom: 3px; }
.solar-label small { color: #b5c7d5; padding-top: 3px; font-size: 10px; white-space: nowrap; }
.solar-label:hover, .solar-label[aria-pressed="true"] { background: #172332e6; }
.solar-belt-label { position: absolute; top: 0; left: 0; color: #b1c1cc; font: 11px var(--font); padding: 5px 8px; background: #03060caa; border-bottom: 1px dashed #849aa477; white-space: nowrap; }
.solar-layers { position: absolute; top: 76px; left: 20px; z-index: 2; display: flex; gap: 16px; padding: 7px 10px; background: #03060caa; border-radius: 4px; color: #bfcedc; font-size: 12px; }
.solar-layers label { display: flex; align-items: center; gap: 5px; min-height: 28px; }
.solar-layers input { accent-color: #96c3d2; }
.solar-toolbar { position: absolute; z-index: 3; top: 18px; left: 20px; right: 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.solar-toolbar button, .solar-toolbar label, .solar-zoom button { background: #111b27e8; border: 1px solid #7895ae55; border-radius: 6px; color: #edf4fa; font: 13px var(--font); min-height: 44px; }
.solar-toolbar button { padding: 10px 16px; }
.solar-toolbar label { display: flex; align-items: center; gap: 10px; padding: 0 12px; }
#solar-select { background: transparent; color: #f0f4f8; border: 0; font: inherit; min-height: 42px; max-width: 220px; }
#solar-select option, #solar-select optgroup { color: #f0f4f8; background: #111b27; }
#solar-loading { position: absolute; top: 45%; width: 100%; text-align: center; padding: 20px; color: #b5c7d5; }
.solar-info { position: absolute; bottom: 90px; left: 28px; max-width: min(430px, calc(100% - 100px)); padding: 16px 20px; border-left: 2px solid #7895ae77; background: linear-gradient(90deg,#03060cdb,#03060c80); pointer-events: none; }
.solar-info p { margin: 0 0 8px; color: #bfcedc; font-size: 13px; line-height: 1.5; }
.solar-info h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 400; letter-spacing: -.03em; margin: 0 0 10px; }
#solar-kind { color: #a5b9c9; font-size: 12px; }
#solar-neighbours { display: flex; flex-wrap: wrap; gap: 6px; }
#solar-neighbours button, #solar-earth-map { pointer-events: auto; min-height: 36px; border: 1px solid #7895ae66; background: #111b27b0; color: #e7edf4; border-radius: 5px; padding: 7px 12px; font: 12px var(--font); }
#solar-earth-map { margin-top: 6px; }
#solar-surface-note { margin-top: 10px; font-size: 11px; }
#solar-position-note { margin-top: 8px; font-size: 11px; }
#solar-position-note:empty { display: none; }
#solar-neighbours button:disabled { opacity: .4; cursor: default; }
.solar-zoom { position: absolute; right: 22px; bottom: 90px; display: flex; flex-direction: column; gap: 6px; }
.solar-zoom button { width: 44px; font-size: 24px; }
.solar-footer { position: absolute; bottom: 0; left: 0; width: 100%; padding: 12px 24px; background: #03060cde; display: flex; gap: 10px 24px; justify-content: space-between; align-items: end; color: #a5b9c9; font-size: 11px; }
.solar-footer details { max-width: 400px; max-height: 55vh; overflow-y: auto; }
.solar-footer > div { display: flex; flex-direction: column; gap: 5px; }
#solar-epoch { color: #cee0ec; font-variant-numeric: tabular-nums; }
.solar-footer summary { cursor: pointer; min-height: 28px; align-content: center; }
.solar-footer p { line-height: 1.55; }
.solar-footer a { color: #cadde9; }
#solar-view :focus-visible { outline: 2px solid #b8e2f4; outline-offset: 3px; }
.solar-active #main > :not(#solar-view) { opacity: 0; pointer-events: none; transition: opacity 650ms; }
#solar-open { width: 100%; padding: 10px; text-align: left; }
@media (max-width: 600px) {
  .solar-toolbar { top: 10px; left: 10px; right: 10px; gap: 8px; }
  .solar-toolbar button { padding: 8px 10px; font-size: 12px; }
  .solar-toolbar label { order: 3; width: 100%; }
  .solar-layers { top: 113px; left: 10px; font-size: 11px; padding: 3px 8px; }
  #solar-select { max-width: none; flex: 1; min-width: 0; }
  #solar-overview { margin-left: auto; }
  .solar-info { bottom: 94px; left: 12px; padding: 8px 12px; max-width: calc(100% - 76px); }
  .solar-info h2 { font-size: 30px; margin-bottom: 5px; }
  .solar-info p { font-size: 12px; margin-bottom: 5px; }
  .solar-zoom { right: 12px; bottom: 92px; }
  .solar-footer { padding: 8px 14px; font-size: 10px; flex-direction: column; align-items: start; gap: 0; }
  .solar-label { font-size: 11px; padding: 3px 6px; }
  .solar-label small { font-size: 9px; }
  #solar-neighbours button { padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) { #solar-stage, .solar-active #main > :not(#solar-view) { transition: none; } #solar-view { animation: none; } }
