#sun-horizon-status { margin-top: 5px; color: #e1e9e4; font-size: 13px; }
#sun-horizon-status:empty { display: none; }

.globe-instruments { display: grid; gap: clamp(16px, 3vw, 28px); }
.globe-card { min-width: 0; padding-block: 8px; text-align: center; }
.globe-instrument-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 35%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(6px, 2vw, 22px);
  max-width: 690px;
  margin-inline: auto;
}
.globe-instrument-row > svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 178px;
  filter: drop-shadow(0 2px 3px #111b);
}
.globe-instrument-row > :first-child { text-align: right; }
.globe-instrument-row > :last-child { text-align: left; }
.globe-card svg text { fill: #f1f5f2; font-size: 12px; text-anchor: middle; }
.globe-guide { fill: none; stroke: #ffffffe0; stroke-width: 1.6; }
.globe-guide.dashed { stroke: #ffffffab; stroke-dasharray: 3 4; }
.globe-sun-fill { fill: #ffe0a2; }
.globe-origin { fill: #fff; }
.globe-sun-stroke, .globe-moon-stroke { fill: none; stroke: #ffe8b8; stroke-width: 2.4; stroke-linecap: round; }
.globe-moon-stroke { stroke: #e3f1ff; }
.globe-moon-dark { fill: #101b19; }
.globe-moon-fill { fill: #fff; fill-opacity: .2; }
.globe-reading { display: grid; gap: 4px; overflow-wrap: anywhere; }
.globe-reading strong { font-weight: 560; font-size: clamp(18px, 2.3vw, 24px); font-variant-numeric: tabular-nums; }
.globe-reading span, .globe-reading time { font-size: 13px; color: #e1e9e4; }

.globe-space { margin-top: clamp(32px, 6vw, 64px); }
.globe-space-diagrams { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px; margin-block: 20px 32px; }
.globe-space figure { margin: 0; min-width: 0; }
.globe-space svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 2px 3px #111b); }
.globe-space svg text { fill: #fff; font: 16px Helvetica, Arial, sans-serif; }
.globe-space svg .space-small { font-size: 14px; }
.space-guide { fill: none; stroke: #ffffff99; stroke-width: 1.3; }
.space-guide.dashed { stroke-dasharray: 4 5; }
.earth-disc { fill: #9dd8f945; stroke: #d9efff; stroke-width: 2; }
.earth-axis { fill: none; stroke: #ffe0a2; stroke-width: 2; }
.orbit-path { fill: none; stroke: #ffffff70; stroke-width: 1.2; }
.orbit-sun { fill: #ffe0a2; }
.orbit-point { fill: #fff; stroke: #101b19; stroke-width: 1; }
.orbit-point.earth { fill: #a9dcff; }
.globe-space svg .orbit-number { font-size: 18px; paint-order: stroke; stroke: #18231f; stroke-width: 4px; }
.globe-space figcaption, .globe-space-note, #globe-night-range { color: #e1e9e4; font-size: 14px; line-height: 1.6; }
.globe-space figcaption { text-align: center; margin-top: 10px; }
.globe-space-note a { color: inherit; text-underline-offset: 3px; }
.globe-space .globe-space-note { margin-top: 12px; }
#globe-night-range { margin-block: 6px 14px; }
#globe-planets-status:empty { display: none; }
.globe-planets-scroll { overflow-x: auto; }
.globe-planets-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.globe-planets-table :is(th, td) { text-align: left; padding: 10px 12px; border-bottom: 1px solid #ffffff40; }
.globe-planets-table :is(th, td):first-child { padding-left: 0; }
.globe-planets-table th { font-weight: 600; }
.globe-planets-table td small { display: block; color: #e1e9e4; font-size: 13px; }
.planet-available { color: #d3f1d4; }
@media (max-width: 560px) {
  .globe-tilt { width: min(100%, 360px); justify-self: center; }
  .globe-planets-table :is(th, td) { padding: 8px 6px; }
}

/* Match the horizon status to the full-moon date on the opposite side. */
.globe-moon-row {
  grid-template-columns: minmax(0, 1fr) clamp(70px, 22%, 120px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(8px, 1.2vw, 16px);
}
.globe-moon-row > svg { align-self: center; justify-self: center; }
.globe-moon-row > .globe-reading {
  grid-template-rows: auto auto 1fr auto;
  padding-block: 14px;
}
.globe-moon-row .globe-full-moon {
  grid-row: 4;
  display: grid;
  gap: 4px;
}
#moon-phase { overflow-wrap: normal; }

@media (max-width: 840px) {
  .globe-space-diagrams { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .globe-orbits { width: min(100%, 560px); justify-self: center; }
}

@media (max-width: 440px) {
  .globe-moon-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .globe-moon-row > svg { grid-area: 1 / 1 / 2 / -1; width: 100px; }
  .globe-moon-row > .globe-reading { padding-block: 0; }
}

.globe-sun-row { grid-template-columns: minmax(0, 1fr) minmax(90px, 38%) minmax(0, 1fr); }
.globe-sun-row > svg { max-height: 190px; }



/* Main Earth diagram directly below the selected locality. */
.globe-earth-header { margin-top: 0; margin-bottom: clamp(20px, 4vw, 38px); }
.globe-earth-header .globe-tilt { width: min(100%, 480px); margin-inline: auto; }
@media (max-width: 560px) {
  .globe-earth-header .globe-tilt { width: min(100%, 360px); }
}
