:root { color-scheme:light; --ink:#342921; --muted:#62564f; --paper:#fdf6ee; --navy:#132b40; --accent:#c45c3e; --line:#ddcfc2; --teal:#53745a; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif; }
body::before { content:""; display:block; height:7px; background:linear-gradient(90deg,var(--navy) 0 66%,var(--accent) 66%); }
a { color:#9d412c; text-underline-offset:3px; }
button { font:inherit; }
button:focus-visible,a:focus-visible,.scene:focus-visible { outline:3px solid #e27954; outline-offset:3px; }
.skip-link { position:absolute; top:-100px; left:12px; z-index:200; padding:10px; background:white; }
.skip-link:focus { top:8px; }
main,footer { width:min(100% - 28px,1120px); margin-inline:auto; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
h2,p { margin-top:0; }
.back-link { display:inline-flex; align-items:center; width:fit-content; min-height:44px; margin-top:17px; padding:9px 0; font-size:.82rem; font-weight:750; }
.explorer { padding:2px 0 0; }
.scene { position:relative; isolation:isolate; height:calc(100svh - 190px); min-height:570px; max-height:750px; overflow:hidden; border:2px solid #274155; border-radius:22px; background:radial-gradient(circle at 50% 50%,#162532 0,#0a1420 40%,#03070d 100%); touch-action:none; user-select:none; }
.scene::before { content:""; position:absolute; inset:0; z-index:0; background:radial-gradient(circle at 50% 49%,#c59b5530,transparent 32%); pointer-events:none; }
#space-renderer,.space-nodes { position:absolute; inset:0; width:100%; height:100%; }
#space-renderer { z-index:1; }
#space-renderer canvas { display:block; width:100%; height:100%; }
.space-nodes { z-index:2; pointer-events:none; }
.space-node { position:absolute; left:0; top:0; display:grid; place-items:center; padding:9px; border:1px solid #ffffffa3; border-radius:50%; color:white; font-weight:850; line-height:1.12; text-align:center; text-shadow:0 1px 6px #061320; box-shadow:inset -10px -11px 20px #0717249c,inset 7px 7px 14px #ffffff47,0 0 20px color-mix(in srgb,var(--planet) 56%,transparent),0 9px 20px #00101d87; cursor:pointer; pointer-events:auto; transform-origin:center; will-change:transform; }
.space-node::before { content:""; position:absolute; inset:5px; border:1px solid #ffffff36; border-radius:50%; pointer-events:none; }
.space-node.hub { width:104px; height:104px; background:radial-gradient(circle at 35% 26%,#f3d8aa,#bb8b46 48%,#18212c 100%); color:#132b40; font-size:1rem; text-shadow:none; }
.space-node.planet { width:70px; height:70px; background:radial-gradient(circle at 27% 22%,color-mix(in srgb,var(--planet) 46%,white),var(--planet) 38%,#071b2c 100%); font-size:.64rem; }
.space-node.planet.focal { width:118px; height:118px; font-size:1rem; }
.space-node.satellite { width:68px; height:68px; background:radial-gradient(circle at 27% 22%,color-mix(in srgb,var(--planet) 62%,white),var(--planet) 34%,#0b2335 100%); font-size:.61rem; }
.space-node.shared::after { content:"×2"; position:absolute; right:-4px; bottom:4px; display:grid; width:24px; height:24px; place-items:center; border:1px solid #ffffffb3; border-radius:50%; background:#fff7e5; color:#263a45; font-size:.6rem; font-weight:900; text-shadow:none; }
.space-node[aria-pressed="true"] { outline:3px solid #ffd3a2; outline-offset:3px; }
.space-node.focal { cursor:pointer; }
.space-node:focus-visible { outline:3px solid #ffd3a2; outline-offset:4px; }
.space-node[hidden] { display:none; }
.space-title { position:absolute; z-index:4; top:16px; left:17px; max-width:calc(100% - 84px); margin:0; color:#e6f0f3; font-size:clamp(1rem,4vw,1.35rem); font-weight:850; line-height:1.15; text-shadow:0 2px 8px #03070d; pointer-events:none; }
.scene-hint { position:absolute; z-index:3; right:15px; bottom:65px; left:15px; margin:0; color:#d7e4ea; font-size:.7rem; text-align:center; pointer-events:none; }
.scene.has-details .scene-hint { top:55px; bottom:auto; width:max-content; max-width:calc(100% - 30px); margin-inline:auto; padding:5px 10px; border-radius:999px; background:#071724c9; }
.scene-hint[hidden] { display:none; }
.scene-actions { position:absolute; z-index:4; right:12px; bottom:12px; left:12px; display:grid; grid-template-columns:repeat(4,max-content); justify-content:center; gap:9px 7px; }
.scene-actions button { min-width:42px; min-height:40px; padding:7px 10px; border:1px solid #d4e3eb82; border-radius:999px; background:#f9faf3ed; color:#132b40; font-size:.76rem; font-weight:850; cursor:pointer; }
.scene-actions button:hover { background:white; }
.scene-actions #go-back { grid-column:1 / -1; justify-self:center; min-height:44px; border:2px solid #fff0dc; background:#e98962; color:#172a38; font-size:.82rem; font-weight:900; white-space:nowrap; box-shadow:0 3px 0 #803b2c,0 5px 15px #0008; }
.scene-actions #go-back:hover { background:#ffad85; }
.scene-actions #go-back[hidden] { display:none; }
.object-details { margin-top:13px; padding:16px 18px; border:1px solid #c0d2d9; border-radius:13px; background:#fffdf8; box-shadow:0 6px 16px #132b4014; }
.object-details[hidden] { display:none; }
.object-details .detail-tag { margin:0 0 7px; color:#a9482f; font-size:.7rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.object-details h3 { margin:0 0 5px; color:var(--navy); font-size:1.18rem; line-height:1.15; }
.object-details p { margin-bottom:7px; color:var(--muted); font-size:.78rem; }
.object-details a { font-size:.81rem; font-weight:800; }
.media-dialog { position:fixed; width:min(100% - 28px,490px); max-height:min(82svh,650px); margin:auto; padding:25px; overflow-y:auto; border:1px solid #edb797; border-radius:20px; background:#fffaf2; color:var(--ink); box-shadow:0 22px 80px #000a; }
.media-dialog::backdrop { background:#071724b8; backdrop-filter:blur(3px); }
.media-dialog .detail-tag { margin:0 36px 7px 0; color:#a9482f; font-size:.72rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.media-dialog h2 { margin:0 36px 12px 0; color:var(--navy); font-size:clamp(1.6rem,6vw,2.15rem); line-height:1.08; }
.media-dialog p { margin-bottom:12px; line-height:1.55; }
.media-dialog .media-relation { margin-bottom:12px; color:var(--muted); font-size:.85rem; }
.media-facts { margin:14px 0 13px; border-top:1px solid var(--line); }
.media-fact { display:grid; grid-template-columns:112px minmax(0,1fr); gap:1px 8px; padding:10px 0; border-bottom:1px solid var(--line); }
.media-fact dt { color:var(--navy); font-size:.79rem; font-weight:850; }
.media-fact dd { min-width:0; margin:0; line-height:1.25; }
.media-fact dd strong { display:block; font-size:.92rem; }
.media-fact dd strong.with-unit { white-space:nowrap; }
.media-unit { color:var(--muted); font-size:.61rem; font-weight:700; }
.media-fact small { display:block; margin-top:3px; color:var(--muted); font-size:.69rem; line-height:1.4; }
.media-fact small a { font-weight:800; white-space:nowrap; }
.dialog-close { position:absolute; top:12px; right:12px; display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--navy); font-size:1.45rem; cursor:pointer; }
.media-next { display:grid; gap:8px; margin:18px 0; color:var(--muted); font-size:.8rem; font-weight:800; }
.media-next button { width:fit-content; min-height:44px; padding:8px 15px; border:0; border-radius:999px; background:var(--navy); color:white; font-size:.9rem; font-weight:800; cursor:pointer; }
.media-next button:hover { background:#264a63; }
.dialog-source { display:inline-block; margin-top:5px; font-size:.82rem; font-weight:800; }
.map-note { max-width:78ch; margin:10px 0 31px; color:var(--muted); font-size:.81rem; line-height:1.6; }
footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; padding:0 0 28px; color:var(--muted); font-size:.72rem; }
@media (min-width:760px) {
  .scene { height:700px; }
  .object-details { padding:20px; }
}
@media (max-width:380px) { .scene { min-height:550px; } .space-node.hub { width:94px; height:94px; } .space-node.planet { width:66px; height:66px; font-size:.58rem; } .space-node.planet.focal { width:108px; height:108px; } .space-node.satellite { width:62px; height:62px; font-size:.57rem; } .scene-actions { gap:4px; } .scene-actions button { padding-inline:7px; font-size:.7rem; } .scene-actions #go-back { padding-inline:6px; font-size:.72rem; } }
@media (max-width:600px) { .media-dialog { width:calc(100% - 24px); max-height:calc(100svh - 24px); margin:auto 12px 12px; padding:23px 19px; border-radius:20px 20px 12px 12px; } }
@media (max-width:359px) { .media-fact { grid-template-columns:76px minmax(0,1fr); } .media-fact dd strong.with-unit { font-size:.86rem; } .media-unit { font-size:.53rem; letter-spacing:-.01em; } }
@media (max-width:359px) { .space-node.hub { width:72px; height:72px; font-size:.8rem; } .space-node.planet:not(.focal) { width:52px; height:52px; padding:4px; font-size:.52rem; } .space-node.planet.focal { width:82px; height:82px; font-size:.82rem; } .space-node.satellite { width:50px; height:50px; padding:4px; font-size:.49rem; } .space-node.shared::after { width:18px; height:18px; font-size:.5rem; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .space-node { will-change:auto; } }
html[data-style="b"] { --ink:#062f4d; --muted:#173f57; --paper:#fff9df; --navy:#062f4d; --accent:#ff6b57; --line:#062f4d; }
html[data-style="b"] body { background:radial-gradient(circle,#062f4d 0 2px,transparent 2.5px) 0 0/25px 25px,linear-gradient(135deg,#fff9df,#e5f5ef 60%,#ffe5dd); }
html[data-style="b"] body::before { background:linear-gradient(90deg,#062f4d 0 66%,#ff6b57 66%); }
html[data-style="b"] .scene,html[data-style="b"] .object-details { border:3px solid #062f4d; border-radius:10px 22px 12px 20px; box-shadow:5px 5px 0 #062f4d; }
html[data-style="b"] .object-details { background:#fffdf5; }
html[data-embedded="true"] body::before,
html[data-embedded="true"] .site-nav,
html[data-embedded="true"] .back-link,
html[data-embedded="true"] .map-note,
html[data-embedded="true"] footer { display:none; }
html[data-embedded="true"] body { background:#03070d; }
html[data-embedded="true"] main { width:100%; margin:0; }
html[data-embedded="true"] .explorer { padding:0; }
html[data-embedded="true"] .scene { height:100svh; min-height:0; max-height:none; border:0; border-radius:0; box-shadow:none; }
html[data-embedded="true"] .object-details { margin:0; border-radius:0; }
