/* A shared scene for nearby bodies and distant systems, beneath the masthead. */
body.website-edition.explore-connected:not(.sky-mode) #universe {
  position:absolute; top:calc(0px + var(--website-header-height, 100px));
  left:0px; right:0px; bottom:0px;
  width:auto; height:auto; overflow:hidden;
}
body.website-edition.explore-connected.space-atlas-ready:not(.sky-mode) :is(.vignette,.destination-panel,.location-badge,.scene-toolbar,.orbit-hint,.destination-section,.footer) { display:none !important; }
body.website-edition.explore-connected.space-atlas-ready:not(.sky-mode) .main { position:static; flex:1; min-height:0; padding:0; }
body.website-edition #space-controls {
  --space-destinations-height:88px;
  position:absolute; z-index:6; pointer-events:none;
  top:calc(0px + var(--website-header-height, 100px));
  left:0px; right:0px; bottom:0px;
  color:#f1e4ca; font:14px/1.4 var(--sans);
}
body.website-edition #space-controls button,
body.website-edition #space-controls select,
body.website-edition #space-controls input {
  pointer-events:auto; color:#f1e4ca; background:#09212bec;
  border:1px solid #bd985888; border-radius:6px; padding:8px 11px;
  font:13px/1.3 var(--sans);
}
body.website-edition #space-controls button:active { background:#31504c; }
body.website-edition #space-toolbar {
  position:absolute; top:7px; left:10px; right:10px;
  display:flex; flex-wrap:nowrap; gap:6px; align-items:center;
  pointer-events:auto;
}
body.website-edition #space-toolbar > * { flex:0 0 auto; white-space:nowrap; }
body.website-edition #space-toolbar #space-home { flex:none; background:#d8b87d; color:#10252c; }
body.website-edition #space-toolbar #space-view-tools { display:flex; flex:1 1 auto; min-width:0; gap:6px; overflow-x:auto; scrollbar-width:none; }
body.website-edition #space-view-tools > * { flex:none; white-space:nowrap; }
body.website-edition #space-view-tools::-webkit-scrollbar { display:none; }
body.website-edition #space-view-mode { min-width:135px; }
body.website-edition #space-selection {
  position:absolute; top:67px; left:12px; width:min(290px, calc(100% - 24px));
  padding:12px 14px; background:#061821dc; border:1px solid #ac884e44; border-radius:8px;
  pointer-events:auto;
}
body.website-edition .space-eyebrow { margin:0 0 5px; font-size:9px; letter-spacing:2px; color:#a6bdb8; }
body.website-edition #space-selection-name { margin:0; font:normal clamp(22px,2.8vw,32px)/1.12 var(--serif); overflow-wrap:anywhere; }
body.website-edition #space-selection-parent { margin:7px 0 0; color:#bad2cc; font-size:12px; }
body.website-edition #space-selection-status { margin:5px 0 0; color:#f1c38c; font-size:12px; }
body.website-edition #space-selection-status:empty { display:none; }
body.website-edition.space-inspecting #space-selection { visibility:hidden; pointer-events:none; }
body.website-edition #space-inspection {
  position:absolute; z-index:24; display:flex; flex-direction:column; min-height:120px;
  max-width:calc(100% - 24px); padding:10px 12px; border:1px solid #bd985b;
  border-radius:9px; background:#061a23f5; box-shadow:0 12px 40px #0009; pointer-events:auto;
}
body.website-edition #space-inspection[hidden] { display:none; }
body.website-edition #space-inspection-header { display:flex; flex:none; gap:10px; align-items:center; justify-content:space-between; }
body.website-edition #space-inspection-header .space-eyebrow { margin:0; }
body.website-edition #space-controls #space-inspection-close { flex:none; width:44px; height:44px; padding:0; font-size:27px; }
body.website-edition #space-inspection-content { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; padding:2px 2px 8px; }
body.website-edition #space-inspection-content :is(h2,h3) { margin:7px 0 10px; font:normal 24px/1.15 var(--serif); overflow-wrap:anywhere; }
body.website-edition #space-inspection-content h4 { margin:12px 0 6px; font-size:16px; }
body.website-edition #space-inspection-content p { font-size:13px; line-height:1.5; margin:8px 0; color:#c5d6d7; }
body.website-edition #space-inspection-content .science-evidence-note { color:#f1c38c; }
body.website-edition #space-inspection-content .science-note { font-size:11px; color:#adc1c8; }
body.website-edition #space-inspection-content .celestial-portrait { margin:8px 0; }
body.website-edition #space-inspection-content .celestial-portrait img { width:100%; height:auto; max-height:150px; object-fit:contain; }
body.website-edition #space-inspection-content .celestial-portrait figcaption { font-size:10px; line-height:1.4; color:#a7bec4; }
body.website-edition #space-inspection-content .space-info-world-card { padding:10px 0 14px; border-bottom:1px solid #ac884e55; }
body.website-edition #space-inspection-content .space-info-star-section { padding-top:14px; }
body.website-edition #space-inspection-content .space-info-facts { display:grid; grid-template-columns:auto 1fr; gap:7px 12px; font-size:12px; line-height:1.45; }
body.website-edition #space-inspection-content .space-info-facts dt { color:#a8c1c7; }
body.website-edition #space-inspection-content .space-info-facts dd { margin:0; }
body.website-edition #space-inspection-content .space-info-action { display:inline-block; min-height:44px; margin:4px 5px 4px 0; font-size:12px; }
body.website-edition #space-inspection-content a { color:#e3c88d; }
body.website-edition #space-inspection-footer { flex:none; padding-top:7px; border-top:1px solid #ac884e44; }
body.website-edition #space-inspection-footer p { margin:0 0 6px; font-size:11px; line-height:1.35; color:#b5caca; }
body.website-edition #space-controls #space-inspection-visit { width:100%; min-height:44px; background:#d8b87d; color:#10252c; }
body.website-edition .space-reading-actions { display:flex; gap:6px; margin-top:10px; }
body.website-edition .space-reading-actions { flex-wrap:wrap; }
body.website-edition #space-news-return { display:inline-flex; align-items:center; min-height:44px; padding:4px 8px; color:#e3c88d; border:1px solid #bd985888; border-radius:6px; font-size:12px; pointer-events:auto; }
body.website-edition #space-news-return[hidden] { display:none; }
body.website-edition #news-entry-status { position:fixed; bottom:18px; right:16px; z-index:35; width:340px; max-width:calc(100% - 32px); box-sizing:border-box; padding:14px 18px; background:#061a23f5; border:1px solid #bd985b; border-radius:8px; font:14px/1.6 var(--sans); color:#f1e4ca; }
body.website-edition #news-entry-status p { margin:0 0 7px; }
body.website-edition #news-entry-status a { display:inline-flex; min-height:44px; align-items:center; color:#e3c88d; }
body.website-edition #space-controls #space-read { background:#d8b87d; color:#10252c; }
body.website-edition #space-search {
  position:absolute; top:61px; right:10px; width:min(370px, calc(100% - 20px));
  max-height:calc(100% - 80px); padding:12px; overflow:auto; overscroll-behavior:contain;
  background:#061a23fa; border:1px solid #bc985b; border-radius:9px; pointer-events:auto; z-index:20;
  box-shadow:0 15px 60px #000a;
}
body.website-edition .space-search-top { display:flex; gap:8px; align-items:center; justify-content:space-between; }
body.website-edition .space-search-top label { font-size:14px; }
body.website-edition #space-search-close { padding:0; font-size:23px; }
body.website-edition #space-target-search { width:100%; margin-top:8px; font-size:16px; }
body.website-edition .space-search-note { font-size:11px; color:#a7bdbb; }
body.website-edition #space-target-results { display:flex; flex-direction:column; gap:5px; }
body.website-edition #space-target-results button { width:100%; text-align:left; }
body.website-edition #space-target-results small { display:block; margin-top:4px; color:#9ebbb7; font-size:11px; }
body.website-edition #space-movement { position:absolute; bottom:calc(61px + var(--space-destinations-height)); left:12px; padding:7px; background:#061821b8; border:1px solid #ac884e44; border-radius:8px; pointer-events:auto; }
body.website-edition .space-move-buttons { display:grid; grid-template-columns:repeat(4,44px); gap:4px; }
body.website-edition .space-move-buttons button { width:44px; height:44px; padding:0 !important; font-size:23px !important; touch-action:none; }
body.website-edition #space-forward { grid-column:2; grid-row:1; }
body.website-edition #space-back { grid-column:2; grid-row:2; }
body.website-edition #space-left { grid-column:1; grid-row:2; }
body.website-edition #space-right { grid-column:3; grid-row:2; }
body.website-edition #space-up { grid-column:4; grid-row:1; }
body.website-edition #space-down { grid-column:4; grid-row:2; }
body.website-edition #space-scale-note { position:absolute; bottom:8px; left:12px; right:12px; margin:0; display:flex; align-items:center; justify-content:space-between; gap:10px; color:#a5bfbb; text-shadow:0 1px 3px #000; font-size:11px; }
body.website-edition #space-scale-note a { display:inline-flex; align-items:center; min-height:44px; padding:4px 6px; white-space:nowrap; color:#d3bb84; pointer-events:auto; }
body.website-edition #space-input-hint { position:absolute; right:14px; bottom:calc(61px + var(--space-destinations-height)); width:min(300px,40%); margin:0; color:#b5cac7; font-size:11px; text-align:right; text-shadow:0 1px 3px #000; }
body.website-edition #space-destinations { position:absolute; bottom:52px; left:10px; right:10px; height:var(--space-destinations-height); padding:7px; display:flex; flex-direction:column; gap:5px; border:1px solid #ac884e66; border-radius:8px; background:#061821e8; pointer-events:auto; }
body.website-edition #space-destinations > .space-eyebrow { flex:none; margin:0; line-height:12px; }
body.website-edition #space-destination-list { display:flex; flex:1; min-height:0; gap:6px; overflow-x:auto; overscroll-behavior-x:contain; touch-action:pan-x; scrollbar-width:thin; scrollbar-color:#ac884e77 transparent; }
body.website-edition #space-destination-list button { display:flex; align-items:center; flex:0 0 112px; min-width:112px; gap:7px; padding:7px; text-align:left; }
body.website-edition #space-destination-list button[aria-current="true"] { border-color:#e4c183; background:#29433f; }
body.website-edition .space-destination-dot { display:block; width:22px; height:22px; flex:none; border-radius:50%; background:radial-gradient(circle at 30% 25%,#ffffff55,var(--world-color) 40%,#07161f); box-shadow:inset -5px -2px 7px #0008; }
body.website-edition .space-destination-copy { display:block; min-width:0; }
body.website-edition .space-destination-copy strong { display:block; font-size:12px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.website-edition .space-destination-copy small { display:block; font-size:9px; color:#a6bdb8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.website-edition #space-load-status { position:absolute; top:60px; right:12px; max-width:360px; margin:0; font-size:13px; color:#d9bd89; background:#061821dd; border-radius:6px; padding:7px; }
body.website-edition #space-load-status:empty { display:none; }
body.website-edition #space-retry { position:absolute; top:120px; right:12px; }
body.website-edition #space-labels { z-index:10; position:absolute; inset:0; overflow:hidden; pointer-events:none; }
body.website-edition #space-hover-label {
  position:absolute; transform:translate(-50%,-100%); pointer-events:none;
  white-space:nowrap; padding:4px 8px; border:1px solid #aac6bc55;
  border-radius:5px; background:#071922e8; color:#edf4ef;
  font-size:12px; max-width:min(280px,calc(100% - 12px)); overflow:hidden; text-overflow:ellipsis;
  text-shadow:0 1px 3px #000;
}
body.website-edition #space-hover-label[data-kind="star"],
body.website-edition #space-hover-label[data-kind="system"] { color:#f7d897; border-color:#cbab6d88; }
@media(max-width:600px) {
  body.website-edition #space-selection { top:61px; padding:9px 11px; width:220px; }
  body.website-edition #space-selection-name { font-size:23px; }
  body.website-edition #space-input-hint { display:none; }
  body.website-edition #space-movement { left:8px; }
  body.website-edition #space-scale-note { left:9px; right:9px; font-size:10px; }
}

/* Camera journeys keep the live scene and information panel fixed. */
body.website-edition.place-changing :is(#universe,#space-selection) { pointer-events:none; }
body.website-edition.place-changing :is(#space-hover-label,#travel-overlay) { display:none !important; }
body.website-edition.place-changing #space-selection * { pointer-events:none !important; }

/* The panel keeps one reachable disclosure while its content is collapsed. */
body.website-edition #space-controls #space-selection-toggle {
  position:absolute; top:2px; left:2px; width:44px; height:44px; padding:0;
  font:26px/1 sans-serif; touch-action:manipulation; user-select:none;
}
body.website-edition #space-selection-content > .space-eyebrow {
  min-height:30px; padding-left:34px; display:flex; align-items:center;
}
body.website-edition #space-selection-content[hidden] { display:none; }
body.website-edition #space-selection.is-collapsed {
  width:44px; height:44px; min-height:44px; padding:0; border:0;
  background:transparent; box-shadow:none; pointer-events:none;
}
body.website-edition #space-selection.is-collapsed #space-selection-toggle { inset:0; pointer-events:auto; }
@media (min-width:601px) and (max-height:500px) {
  body.website-edition #space-movement { left:auto; right:10px; }
  body.website-edition #space-selection:not(.is-collapsed) { width:min(290px,calc(100% - 244px)); }
  body.website-edition #space-selection-content {
    max-height:max(44px,calc(100dvh - var(--website-header-height,100px) - var(--space-destinations-height) - 109px));
    overflow-y:auto; overscroll-behavior:contain;
  }
}
