/* Jupiter explorer – TheFrontierWiki. Plain CSS, no build step.
   Colours and fonts follow the wiki's style.css (leather, gold, parchment, rust; Rye + Source Sans 3). */
@font-face{font-family:"Rye";src:url(fonts/rye.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Source Sans 3";src:url(fonts/sans.woff2) format("woff2");font-weight:400 700;font-display:swap}

:root{
  --ink:#2b1a0e;--leather:#3a2414;--leather2:#24150b;--gold:#c9a24a;--gold2:#e8cf8a;
  --parch:#f3e7cc;--parch2:#e6d3a8;--rust:#8a3b1c;--muted:#7a5a2c;
  --paper:#f1e9d5;            /* the plates' paper colour */
  --panel:#fbf4e2;
  --fire:#e2701f;--steam:#c42a2a;--exhaust:#4f7393;
  --focus:#1d5fa8;
  --head:"Rye",Georgia,serif;
  --body:"Source Sans 3","Segoe UI",system-ui,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);font:18px/1.55 var(--body);
  background:radial-gradient(ellipse at top,#fbf3df,var(--parch) 60%,var(--parch2));min-height:100vh}
a{color:var(--rust)}
.masthead{background:linear-gradient(var(--leather),var(--leather2));text-align:center;padding:16px 10px 14px;
  border-bottom:4px double var(--gold);box-shadow:0 4px 18px #0006}
.brand{font:2rem var(--head);color:var(--gold);text-decoration:none;text-shadow:0 2px 0 #000}
.jx-page{max-width:1320px;margin:26px auto;padding:26px 32px 10px;background:#fbf4e2cc;border:1px solid var(--parch2);
  box-shadow:0 0 0 6px #fbf4e2,0 0 0 7px var(--gold),0 10px 40px #5a3a1a33}
.crumbs{font-size:.9rem;color:var(--muted);margin:0 0 6px}
h1{font:2.4rem/1.15 var(--head);margin:.1em 0 .2em;color:var(--leather)}
h2{font:1.45rem var(--head);color:var(--leather);border-bottom:1px solid var(--gold);padding-bottom:4px;margin:1.6em 0 .5em}
h2 small{font:italic .95rem var(--body);color:var(--muted)}
.lede{font-size:1.08rem;max-width:62em;margin:.2em 0 1em}
.jx-note{font-size:.95rem;color:#5c4423}
.est{color:var(--rust);font-weight:700}

/* ---------------------------------------------------------------- toolbar */
.jx{position:relative}
.jx-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-bottom:10px}
.jx-tabs{display:flex;border:1px solid var(--gold);border-radius:6px;overflow:hidden;background:var(--panel)}
.jx-tabs button{font:600 1rem var(--body);color:var(--leather);background:none;border:0;padding:8px 18px;cursor:pointer;
  border-right:1px solid #c9a24a77;min-height:44px}
.jx-tabs button:last-child{border-right:0}
.jx-tabs button[aria-selected="true"]{background:linear-gradient(var(--leather),var(--leather2));color:var(--gold2)}
.jx-tabs button:hover:not([aria-selected="true"]){background:#efe0bd}
.jx-peel{display:flex;align-items:center;gap:8px;font:600 .9rem var(--body);color:var(--muted)}
.jx-peel input{width:150px;accent-color:var(--rust)}
.jx-peel[hidden]{display:none}
.jx-btn{font:600 .95rem var(--body);color:var(--leather);background:var(--panel);border:1px solid var(--gold);border-radius:6px;
  padding:8px 14px;cursor:pointer;min-height:40px}
.jx-btn:hover{background:#efe0bd}
.jx-primary{background:var(--rust);border-color:var(--rust);color:#fff}
.jx-primary:hover{background:#6d2c12}
.jx-ghost{background:none;border-color:transparent;text-decoration:underline}
.jx-small{padding:4px 10px;min-height:34px;font-size:.88rem}
.jx-tour-start{margin-left:auto}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

/* ---------------------------------------------------------------- stage */
.jx-frame{position:relative}
.jx-stage-wrap{position:relative}
.jx-stage{position:relative;overflow:hidden;aspect-ratio:3860/1580;background:var(--paper);
  border:8px solid transparent;border-image:linear-gradient(135deg,#b8893a,#7a5420,#d9b25c,#7a5420) 1;
  box-shadow:0 4px 14px #3a241466;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:default}
.jx-stage.is-zoomed{touch-action:none;cursor:grab}
.jx-stage.is-dragging{cursor:grabbing}
.jx-stage.is-hot{cursor:pointer}
.jx-world{position:absolute;left:0;top:0;width:3860px;height:1580px;transform-origin:0 0;will-change:transform}
.jx-world.is-anim{transition:transform .45s cubic-bezier(.3,.7,.2,1)}
.jx-view{position:absolute;inset:0;margin:0;visibility:hidden}
.jx-view.is-on{visibility:visible}
.jx-view .base{display:block;width:100%;height:100%;pointer-events:none;-webkit-user-drag:none}
.jx-view .ov{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.jx-cap{display:none}
#view-outside{z-index:2}
#view-cutaway{z-index:1}
#view-front{z-index:3;opacity:0;transition:opacity .35s ease}
#view-front.is-on{opacity:1}
.jx-peel-edge{position:absolute;top:0;bottom:0;width:60px;margin-left:-30px;z-index:4;pointer-events:none;display:none;
  background:linear-gradient(90deg,transparent,#3a241433 40%,#fbf6ea 48%,#c9a24a 50%,#fbf6ea 52%,#3a241422 60%,transparent)}
.jx-peel-edge.is-on{display:block}

/* zoom buttons and hint */
.jx-zoom{position:absolute;right:8px;top:8px;display:flex;flex-direction:column;gap:6px;z-index:6}
.jx-zb{width:38px;height:38px;border-radius:6px;border:1px solid var(--gold);background:#fbf4e2ee;color:var(--leather);
  font:700 1.2rem/1 var(--body);cursor:pointer;box-shadow:0 1px 4px #3a241444}
.jx-zb:hover{background:#fff}
.jx-hint{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);margin:0;padding:6px 12px;border-radius:20px;
  background:#24150bdd;color:#fbf4e2;font-size:.85rem;pointer-events:none;opacity:0;transition:opacity .3s;z-index:6;white-space:nowrap}
.jx-hint.is-on{opacity:1}

/* full screen (real Fullscreen API, or a fixed overlay where that is missing) */
.jx-frame.is-full{position:fixed;inset:0;z-index:1000;background:var(--paper);display:flex;flex-direction:column}
.jx-frame.is-full .jx-stage-wrap,.jx-frame:fullscreen .jx-stage-wrap{flex:1;display:flex;min-height:0}
.jx-frame.is-full .jx-stage{flex:1;aspect-ratio:auto;border-width:0}
.jx-frame:fullscreen{background:var(--paper);display:flex;flex-direction:column}
.jx-frame:fullscreen .jx-stage{flex:1;aspect-ratio:auto;border-width:0}

/* ---------------------------------------------------------------- overlay */
.ov .hs-halo{stroke:#fbf6ea;stroke-width:4.5;opacity:.8;vector-effect:non-scaling-stroke}
.ov .hs-leader{stroke:#2a1d14;stroke-width:1.3;vector-effect:non-scaling-stroke}
.ov .hs-target{fill:#2a1d14;stroke:#fbf6ea;stroke-width:1.2;vector-effect:non-scaling-stroke}
.ov .hs-ring{fill:none;stroke:var(--rust);stroke-width:3;opacity:0;vector-effect:non-scaling-stroke}
.ov .hs-b{transform-box:fill-box;transform-origin:center;transform:scale(var(--bk,1))}
.ov .hs-badge{fill:#fbf6ea;stroke:#2a1d14;stroke-width:2}
.ov .hs-num{font:700 20px var(--body);text-anchor:middle;fill:#2a1d14;letter-spacing:-.5px}
.ov .hs{transition:opacity .2s}
.ov .hs:focus{outline:none}
.ov .hs:focus-visible .hs-badge{stroke:var(--focus);stroke-width:5}
.ov .hs.is-hover .hs-badge,.ov .hs.is-sel .hs-badge{fill:var(--rust);stroke:#fbf6ea}
.ov .hs.is-hover .hs-num,.ov .hs.is-sel .hs-num{fill:#fff}
.ov .hs.is-hover .hs-leader,.ov .hs.is-sel .hs-leader{stroke:var(--rust);stroke-width:2.5}
.ov .hs.is-sel .hs-ring,.ov .hs.is-tour .hs-ring{opacity:1;animation:jx-pulse 1.6s ease-out infinite}
.ov .hs.is-tour .hs-badge{fill:var(--gold2)}
@keyframes jx-pulse{0%{r:8;opacity:1}100%{r:44;opacity:0}}
/* small on screen: show plain dots instead of unreadable numbers */
.jx-stage.is-compact .ov .hs-num{display:none}
.jx-stage.is-compact .ov .hs-badge{fill:var(--rust);stroke:#fbf6ea;stroke-width:3}
.jx-stage.is-compact .ov .hs-leader,.jx-stage.is-compact .ov .hs-halo{opacity:.35}
/* filters */
.jx-stage.has-filter .ov .hs:not(.is-match){opacity:.18}
.jx-stage.has-filter .ov .hs.is-match .hs-badge{stroke:var(--rust);stroke-width:4}
.jx-stage.in-tour .ov .hs:not(.is-tour){opacity:.25}
.jx-stage.no-numbers .ov .hotspots{display:none}
/* flows */
.ov .flow{transition:opacity .3s}
.ov .flow.is-off{opacity:0}
.ov .fl-halo{stroke-width:15;opacity:.75}
.ov path.fl-halo[fill="#fbf6ea"]{stroke-width:7}
.ov .fl-line{stroke-width:7}
.jx-stage.is-moving .ov .fl-line{stroke-dasharray:26 16;animation:jx-flow 1.1s linear infinite}
.jx-stage.is-moving .ov .flow-exhaust .fl-line{animation-duration:.8s}
@keyframes jx-flow{from{stroke-dashoffset:42}to{stroke-dashoffset:0}}
.ov .marker{transition:opacity .3s}
.jx-stage.in-tour .ov .marker:not(.is-on){opacity:.25}
.ov .marker.is-on circle{animation:jx-glow 1.4s ease-in-out infinite alternate}
@keyframes jx-glow{to{stroke-width:7}}

/* ---------------------------------------------------------------- part card */
.jx-card{position:absolute;z-index:20;width:330px;max-width:calc(100% - 16px);background:var(--panel);color:var(--ink);
  border:2px solid var(--gold);border-radius:6px;box-shadow:0 0 0 3px #fbf4e2,0 8px 26px #3a241466;padding:12px 16px 10px;font-size:.98rem}
.jx-card[hidden]{display:none}
.jx-card.is-preview .jx-card-nav,.jx-card.is-preview .jx-card-x,.jx-card.is-preview .jx-card-seen{display:none}
.jx-card h3{font:1.15rem/1.2 var(--head);color:var(--leather);margin:4px 28px 6px 0}
.jx-card p{margin:0 0 6px}
.jx-card-head{display:flex;align-items:center;gap:8px}
.jx-card-num{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 6px;border-radius:15px;background:var(--rust);color:#fff;font-weight:700}
.jx-card-sys{font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--sys,#5c4423)}
.jx-card-sys::before{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--sys,#5c4423);margin-right:6px;vertical-align:-1px}
.jx-card-note{font-size:.88rem;color:#6b4a1c;background:#efe0bd88;border-left:3px solid var(--gold);padding:4px 8px}
.jx-card-note:empty{display:none}
.jx-card-seen{font-size:.88rem;color:var(--muted)}
.jx-card-seen button{font:inherit;color:var(--rust);background:none;border:0;padding:2px 4px;text-decoration:underline;cursor:pointer;min-height:30px}
.jx-card-seen button[aria-current="true"]{color:var(--ink);text-decoration:none;font-weight:700;cursor:default}
.jx-card-nav{display:flex;justify-content:space-between;gap:8px;margin-top:6px!important}
.jx-card-x{position:absolute;right:6px;top:4px;width:36px;height:36px;border:0;background:none;font-size:1.6rem;line-height:1;color:var(--leather);cursor:pointer}

/* ---------------------------------------------------------------- tour */
.jx-tour{display:grid;grid-template-columns:auto 1fr auto;gap:6px 18px;align-items:start;margin-top:12px;padding:14px 18px;
  background:linear-gradient(160deg,#6b4423,#3d2412 70%,#2a180b);color:var(--parch);border:2px solid var(--gold);border-radius:4px;
  box-shadow:inset 0 0 0 3px #3d2412,inset 0 0 0 4px var(--gold2)}
.jx-tour[hidden]{display:none}
.jx-tour-letter{margin:0;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#b3261e;color:#fff;
  font:1.6rem var(--head);border:3px solid #fbf6ea}
.jx-tour h3{font:1.3rem var(--head);color:var(--gold2);margin:0 0 4px}
.jx-tour h3:focus{outline:none}
.jx-tour p{margin:0 0 6px}
.jx-tour-step{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
.jx-tour-parts{font-size:.9rem;color:var(--gold2)}
.jx-tour-parts button{font:inherit;color:var(--gold2);background:#ffffff14;border:1px solid #c9a24a66;border-radius:12px;padding:1px 8px;margin:2px 2px;cursor:pointer}
.jx-tour-nav{display:flex;flex-direction:column;gap:6px}
.jx-tour .jx-ghost{color:var(--gold2)}

/* ---------------------------------------------------------------- filters + layers */
.jx-controls{display:flex;flex-wrap:wrap;gap:6px 26px;margin-top:12px}
.jx-controls fieldset{border:0;margin:0;padding:0;min-width:0}
.jx-controls legend{font:600 .8rem var(--body);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding:0;margin-bottom:4px}
.jx-filters{flex:1 1 560px}
.jx-chips{display:flex;flex-wrap:wrap;gap:6px}
.jx-chip{font:600 .9rem var(--body);color:var(--leather);background:var(--panel);border:1px solid #c9a24a99;border-radius:18px;
  padding:5px 12px;cursor:pointer;min-height:36px}
.jx-chip i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;background:var(--c)}
.jx-chip[aria-pressed="true"]{background:var(--leather);color:var(--gold2);border-color:var(--leather)}
.jx-layers{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center}
.jx-layers legend{width:100%}
.jx-layers label{font-size:.92rem;display:inline-flex;align-items:center;gap:5px;min-height:32px;cursor:pointer}
.jx-layers input{accent-color:var(--rust);width:18px;height:18px}
.jx-layers label.is-disabled{opacity:.45;cursor:default}
.sw{display:inline-block;width:18px;height:4px;border-radius:2px}
.sw-fire{background:var(--fire)}.sw-steam{background:var(--steam)}.sw-exhaust{background:var(--exhaust)}

/* ---------------------------------------------------------------- list + downloads */
.parts-list{list-style:none;padding:0;margin:0;columns:2 420px;column-gap:34px}
.parts-list li{break-inside:avoid;display:flex;gap:10px;padding:8px 0;border-bottom:1px dotted #d9c49a}
.parts-list li[hidden]{display:none}
.pl-num{flex:0 0 auto;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;border:2px solid var(--ink);
  font-weight:700;font-size:.9rem;background:#fbf6ea}
.pl-body{display:block}
.pl-name{font-weight:700}
.pl-sys{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-left:4px}
.pl-desc{display:block;font-size:.95rem}
.pl-seen{display:block;font-size:.82rem;color:var(--muted);font-style:italic}
.pl-show{font:600 .82rem var(--body);color:var(--rust);background:none;border:0;padding:2px 0;text-decoration:underline;cursor:pointer;margin-left:6px;font-style:normal}
.parts-list li.is-sel{background:#efe0bd88}
.jx-dl{border-collapse:collapse;width:100%;font-size:.95rem}
.jx-dl th,.jx-dl td{text-align:left;padding:8px 10px;border-bottom:1px solid #d9c49a}
.jx-dl small{color:var(--muted)}
.jx-foot{font-size:.85rem;color:var(--muted);text-align:center;margin-top:28px;padding:10px 0;border-top:1px solid var(--parch2)}

/* ---------------------------------------------------------------- no JavaScript: show the three views one under another */
html:not(.js) .jx-bar,html:not(.js) .jx-controls,html:not(.js) .jx-zoom,html:not(.js) .js-only,html:not(.js) .jx-hint{display:none}
html:not(.js) .jx-stage{aspect-ratio:auto;overflow:visible;border:0;box-shadow:none;background:none}
html:not(.js) .jx-world{position:static;width:auto;height:auto;transform:none!important}
html:not(.js) .jx-view{position:relative;visibility:visible;opacity:1;margin:0 0 18px;background:var(--paper);border:6px solid #b8893a}
html:not(.js) .jx-view .base{height:auto}
html:not(.js) .jx-cap{display:block;font-style:italic;font-size:.9rem;padding:4px 8px;background:var(--panel)}
html:not(.js) .ov .hs-b{transform:scale(1.6)}

/* ---------------------------------------------------------------- small screens */
@media (max-width:760px){
  .jx-page{margin:0;padding:14px 12px;box-shadow:none;border:0}
  h1{font-size:1.75rem}
  .brand{font-size:1.5rem}
  .jx-bar{gap:8px}
  .jx-tabs{width:100%}
  .jx-tabs button{flex:1;padding:8px 6px}
  .jx-tour-start{margin-left:0}
  .jx-peel input{width:110px}
  .jx-stage{border-width:4px;aspect-ratio:2/1}
  .jx-zb{width:34px;height:34px}
  .jx-zoom{flex-direction:row;top:auto;bottom:6px;right:6px}
  .jx-zoom #full{display:none}
  .jx-hint{bottom:auto;top:6px;font-size:.78rem}
  /* the card sits under the drawing instead of on top of it */
  .jx-card{position:relative;left:auto!important;top:auto!important;width:auto;max-width:none;margin-top:8px}
  .jx-frame.is-full .jx-card{position:absolute;left:8px!important;right:8px;bottom:8px;top:auto!important}
  .jx-tour{grid-template-columns:auto 1fr}
  .jx-tour-nav{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}
  .parts-list{columns:1}
}

/* ---------------------------------------------------------------- dark theme (the wiki sets data-theme="dark") */
html[data-theme="dark"] body{background:#17110c;color:#efe3c8}
html[data-theme="dark"] .jx-page{background:#211812;border-color:#3d2c1c;box-shadow:0 0 0 6px #211812,0 0 0 7px #8a6a2a}
html[data-theme="dark"] h1,html[data-theme="dark"] h2{color:var(--gold2)}
html[data-theme="dark"] .jx-note,html[data-theme="dark"] .crumbs,html[data-theme="dark"] .pl-sys,html[data-theme="dark"] .pl-seen{color:#cdb98f}
html[data-theme="dark"] a,html[data-theme="dark"] .pl-show{color:#e8a27a}
html[data-theme="dark"] .jx-chip,html[data-theme="dark"] .jx-btn,html[data-theme="dark"] .jx-tabs{background:#2b2018;color:#efe3c8}
html[data-theme="dark"] .jx-tabs button{color:#efe3c8}
html[data-theme="dark"] .pl-num{background:#2b2018;border-color:#efe3c8}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion:reduce){
  .jx-world.is-anim{transition:none}
  #view-front,.ov .hs,.ov .flow,.jx-hint{transition:none}
  .ov .hs.is-sel .hs-ring,.ov .hs.is-tour .hs-ring{animation:none;r:16px;opacity:1}
  .ov .marker.is-on circle{animation:none;stroke-width:6}
}
html[data-theme="dark"] .jx-tabs button[aria-selected="true"],
html[data-theme="dark"] .jx-chip[aria-pressed="true"]{background:var(--gold);color:var(--leather2);border-color:var(--gold)}
html[data-theme="dark"] .jx-card .jx-btn{background:var(--panel);color:var(--leather)}
html[data-theme="dark"] .parts-list li.is-sel{background:#4a3520}
