/**
 * Astral Archive — Sky map, orrery and orbit globe
 * ---------------------------------------------------------------------------
 * Chrome around the three views that were added as modules: the chart and its
 * controls, the solar system stage, and the sun-and-moon panel. The canvases
 * themselves are drawn by the vendored runtimes; everything here is the site's
 * own frame, so the three read as pages of the archive rather than as embedded
 * third-party widgets.
 *
 * No third-party stylesheet is loaded. Colours come from the tokens declared in
 * main.css.
 */

.skymap-stage-wrap {
  position: relative;
  padding: 10px 10px 0;
}

.skymap-stage {
  position: relative;
  width: 100%;
  min-height: 460px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(124, 134, 232, 0.10), transparent 62%),
    #05060a;
}

.skymap-stage canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
}

.skymap-hint {
  position: absolute;
  right: 20px;
  bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(142, 149, 166, 0.85);
  pointer-events: none;
}

.skymap-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.skymap-layer-row,
.skymap-select-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: #b4bac8;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.chip:hover {
  color: #e6e8f0;
  border-color: rgba(255, 255, 255, 0.18);
}

.chip.is-on {
  background: rgba(124, 134, 232, 0.18);
  border-color: rgba(124, 134, 232, 0.55);
  color: #e6e8f0;
}

.chip:focus-visible {
  outline: 2px solid rgba(143, 182, 218, 0.7);
  outline-offset: 2px;
}

.skymap-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8e95a6;
}

.skymap-select select {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e6e8f0;
  font: inherit;
  font-size: 12px;
  padding: 7px 26px 7px 11px;
  border-radius: 8px;
  cursor: pointer;
}

.skymap-select select:focus-visible {
  outline: 2px solid rgba(143, 182, 218, 0.7);
  outline-offset: 2px;
}

/* Sun & Moon panel */

.sunmoon-list {
  margin: 0;
  display: grid;
  gap: 1px;
}

.sunmoon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sunmoon-row:last-child {
  border-bottom: 0;
}

.sunmoon-row dt {
  font-size: 12px;
  color: #8e95a6;
}

.sunmoon-row dd {
  margin: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #e6e8f0;
}

/* Orrery */

.orrery-stage {
  position: relative;
  width: 100%;
  min-height: 520px;
  background: #05060a;
}

.orrery-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Orbit globe (tracker) */

.orbit-globe-stage {
  position: relative;
  width: 100%;
  min-height: 420px;
  background: #05060a;
  border-radius: 18px;
  overflow: hidden;
}

.orbit-globe-stage canvas {
  display: block;
}

@media (max-width: 900px) {
  .skymap-stage {
    min-height: 340px;
  }

  .orrery-stage {
    min-height: 400px;
  }

  .skymap-controls {
    justify-content: flex-start;
  }
}
