/* The Solar System overview (viewer/solar_system.js), the Explorer's default view. Its own elements
   carry .ss and show only while it is on (body.ss-on); while it is on, the globe view's own
   overlays, buttons and fact sheet stand aside, and come back as they were when a globe opens. */
body:not(.ss-on) .ss { display: none !important; }
body.ss-on #stage > :not(#globe):not(.ss):not(.sc):not(.camerabar):not(.viewbar):not(#tb-toggle):not(.fly-badge):not(.fly-pad):not(#pname):not(.sc-scalebar):not(.craft-visit) { display: none !important; }
body.ss-on .camerabar .seg:has(#v-sun), body.ss-on #l-night { display: none !important; }
body.ss-on #info > :not(#ssinfo):not(.cv-facts) { display: none !important; }
body.ss-on :is(#viewbar, .camerabar, .vb-pop) .pg { display: none !important; }   /* the globe's controls stand aside, including Spin in the camera row */

.ss-input { position: absolute; inset: 0; touch-action: none; }
.ss-input[hidden] { display: none; }
.ss-hud { position: absolute; left: 10px; top: 30px; color: var(--text); pointer-events: none; white-space: pre;
  text-shadow: 0 0 4px #000, 0 0 2px #000; font-size: 12px; line-height: 1.35; }
.ss-credit { position: absolute; right: 10px; bottom: 8px; max-width: 60%; text-align: right; color: var(--dim);
  font-size: 11px; letter-spacing: 0.03em; pointer-events: none; text-shadow: 0 0 4px #000; }
.ss-card { position: absolute; left: 0; top: 0; z-index: 4; max-width: 250px; padding: 6px 10px; pointer-events: none;
  background: rgba(21, 23, 26, 0.92); border: 1px solid var(--line); border-left: 2px solid var(--accent); font-size: 12px; line-height: 1.35; }
.ss-card .nm { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 2px; }
.ss-card .dim { color: var(--dim); font-size: 11px; }

/* labels: planets always, the rest when zoomed in or pointed at */
.ss-label { position: absolute; left: 0; top: 0; margin-top: -8px; pointer-events: none; white-space: nowrap; font-size: 12px;
  color: var(--text); letter-spacing: 0.04em; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.ss-label small { display: block; font-size: 10px; color: var(--accent); letter-spacing: 0.06em; }
.ss-label.sun { color: var(--accent); }
.ss-label.dwarf { color: #c9c5bd; font-size: 11px; }
.ss-label.small { color: var(--dim); font-size: 10px; }
.ss-label.belt { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.8; }
.ss-label.belt small { color: var(--dim); text-transform: none; letter-spacing: 0.02em; }
.ss-label.shot { pointer-events: auto; cursor: pointer; color: var(--accent); font-size: 10px; margin: -7px 0 0 -4px; padding: 0 3px 0 12px; opacity: 0.85; }
.ss-label.shot::before { content: ''; position: absolute; left: 0; top: 4px; width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.ss-label.shot:hover { opacity: 1; color: var(--text); }

/* the way back from a globe, and the list's first entry */
.ss-crumb { position: absolute; left: 8px; top: 5px; z-index: 3; background: rgba(21, 23, 26, 0.85); color: var(--dim); border: 1px solid var(--line);
  padding: 2px 8px 2px 6px; font: inherit; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.ss-crumb::before { content: '‹ '; color: var(--accent); }
.ss-crumb:hover { color: var(--accent); border-color: var(--accent); }
.ss-crumb[hidden] { display: none; }
#stage:has(.ss-crumb:not([hidden])) #pname { left: 138px; }
#list button.ss-entry { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; text-align: left; padding: 4px 6px; margin: 0 0 6px;
  border-bottom: 1px solid var(--line); }
#list button.ss-entry.on { border-bottom-color: var(--accent); }
#list button.ss-entry .nm { flex: 1; min-width: 0; line-height: 1.2; }
#list button.ss-entry .nm small { display: block; color: var(--dim); font-size: 11px; }
#list button.ss-entry .thumb { flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle, #ffd27a 0 3px, rgba(255, 190, 90, 0.35) 4px, transparent 7px),
    radial-gradient(circle, transparent 10px, var(--orbit) 10.5px 11.2px, transparent 11.8px),
    radial-gradient(circle, transparent 17px, var(--orbit) 17.5px 18.2px, transparent 18.8px), #000; }

/* the controls */
.ss-rate { background-color: rgba(21, 23, 26, 0.85); color: var(--text); border: 1px solid var(--line); font: inherit; padding: 3px 4px; margin-left: -1px; color-scheme: dark; }
.ss-group { display: flex; align-items: center; gap: 6px; }
.ss-lab { color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }

/* the fact sheet */
#ssinfo table.ss-bodies { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
#ssinfo table.ss-bodies th { color: var(--dim); font-weight: normal; text-align: right; font-size: 11px; padding: 2px 4px; }
#ssinfo table.ss-bodies td { padding: 2px 4px; text-align: right; color: var(--dim); }
#ssinfo table.ss-bodies td:first-child { text-align: left; color: var(--text); }
#ssinfo table.ss-bodies tr.dwarf td:first-child, #ssinfo table.ss-bodies tr.small td:first-child { color: var(--dim); }
#ssinfo table.ss-bodies tr:not(:first-child) { cursor: pointer; }
#ssinfo table.ss-bodies tr:not(:first-child):hover td { color: var(--accent); }
#ssinfo ul.ss-shots { list-style: none; margin: 0; padding: 0; font-size: 12px; }
#ssinfo ul.ss-shots li { display: flex; gap: 8px; align-items: baseline; padding: 1px 0; }
#ssinfo ul.ss-shots button { background: none; border: none; padding: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; flex: 1; }
#ssinfo ul.ss-shots button:hover { color: var(--accent); }
#ssinfo ul.ss-shots a { color: var(--accent); text-decoration: none; font-size: 11px; }

/* the deep-space craft's labels on their journeys */
.ss-label.craft { color: #f2c14e; font-size: 11px; letter-spacing: 0.06em; }
.ss-label.craft::before { content: '◆ '; font-size: 8px; vertical-align: 1px; }

/* Spacecraft's settings (craftMenu), in its popover */
.ss-label.craft.mark { font-size: 0; }
.ss-label.craft.mark::before { font-size: 9px; }
.ss-craftrow { flex-direction: column; align-items: stretch !important; gap: 4px !important; min-width: 280px; }
.ss-cf-h { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
.ss-cf-seg { display: flex; gap: 0; } .ss-cf-seg button { flex: 1; text-align: center; }
.ss-cf-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ss-cf-one { width: 100%; }

/* the featured starting view (Earthrise) under the Solar System entry: its still, landscape */
#list button.ss-feature .thumb.ss-still { width: 72px; height: 40px; border-radius: 2px; background: #000 center / cover no-repeat; }
#list button.ss-feature { margin-top: -2px; }
/* the DSN's craft (Earth's DSN layer): name, range, light time */
.ss-label.dsn { color: #a8f0b4; font-size: 10.5px; letter-spacing: 0.03em; }

.ss-label.craft { pointer-events: auto; cursor: pointer; background: none; border: none; padding: 0; text-transform: none; }
.ss-craft-card { position: absolute; right: 10px; bottom: 30px; z-index: 10; padding: 12px; max-width: 320px; background: var(--panel, #15171a); border: 1px solid var(--line); border-left: 2px solid var(--accent); }
.ss-craft-card h3 { margin: 0 0 6px; color: var(--accent); }
.ss-craft-card p { font-size: 12px; }
.ss-craft-card button { margin-right: 6px; }

.ss-craft-card a { display: block; margin-bottom: 8px; color: var(--accent); font-size: 12px; }
