/* entekhab.net — the Observatory in deep space (owner 2026-11-26: every page of /charts/ in the style of the SOPR and HODL
   pages). Scoped to html.ob-space, which every observatory page carries in its markup (and assets/obs/space.js sets too), so
   nothing outside the section changes. The sky is a canvas from space.js; the frames carry the site's breathing light
   (.br, assets/chrome.css). Data colours keep their meaning: rising is aurora teal, falling magenta, as on the SOPR page. */

html.ob-space{background:#03040c!important;color-scheme:dark;
  --cz-ink:#e9eeff;--cz-mute:rgba(196,208,255,.62);--cz-line:rgba(150,175,255,.16);--cz-line2:rgba(150,175,255,.28);
  --cz-teal:#5ef2d6;--cz-violet:#9b7bff;--cz-mag:#ff4f9a;
  --cz-aur:linear-gradient(100deg,#5ef2d6 0%,#7cc8ff 30%,#9b7bff 62%,#ff6fb5 100%)}
html.ob-space body{background:transparent!important}
/* the site's own depth layer (stars, floor) gives way to the section's sky */
html.ob-space::before,html.ob-space::after,html.ob-space body::before,html.ob-space body::after{display:none!important}
.ob-sky{position:fixed;inset:0;width:100vw;height:100vh;z-index:-1;pointer-events:none;display:block}

/* ---- the page around the instrument */
html.ob-space .ob-page{color:var(--cz-ink)}
html.ob-space .ob-crumb a{color:var(--cz-mute)}
html.ob-space .ob-crumb a:hover{color:var(--cz-teal)}
html.ob-space .ob-head h1{font-size:clamp(1.35rem,1rem + 1.6vw,2.1rem);letter-spacing:-.015em;background:var(--cz-aur);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 18px rgba(124,200,255,.28))}
html.ob-space .ob-head p{color:var(--cz-mute)}

/* ---- the frame: glass over the sky, with the breathing light along its edge */
html.ob-space #ob{--line:var(--cz-line);--card:rgba(12,16,40,.62);--card2:rgba(18,22,54,.7);--acc:var(--cz-teal);--up:var(--cz-teal);--dn:var(--cz-mag);
  --mute:var(--cz-mute);--ink:var(--cz-ink);
  background:linear-gradient(170deg,rgba(12,16,42,.66),rgba(4,6,20,.56));border:1px solid var(--cz-line);border-radius:24px;
  -webkit-backdrop-filter:blur(6px) saturate(130%);backdrop-filter:blur(6px) saturate(130%);
  box-shadow:0 30px 80px -30px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.02) inset,0 0 60px -20px rgba(124,120,255,.35)}
html.ob-space #ob.ob-fs{background:#03040c}
html.ob-space #ob .ob-top{background:linear-gradient(180deg,rgba(18,24,60,.55),rgba(8,10,30,.2));border-bottom-color:var(--cz-line)}
html.ob-space #ob .ob-tab,html.ob-space #ob .ob-all{color:rgba(214,224,255,.72)}
html.ob-space #ob .ob-tab:hover,html.ob-space #ob .ob-all:hover{background:rgba(124,150,255,.1);color:#fff}
html.ob-space #ob .ob-tab.on{background:linear-gradient(100deg,rgba(94,242,214,.16),rgba(155,123,255,.18));color:#fff;box-shadow:inset 0 0 0 1px rgba(140,200,255,.38),0 0 22px -6px rgba(124,200,255,.6)}
html.ob-space #ob .ob-all{border-color:var(--cz-line)}
/* the instruments' own controls, in the same glass */
html.ob-space #ob .ob-seg{background:rgba(10,14,38,.7);border-color:var(--cz-line)}
html.ob-space #ob .ob-seg button:hover{background:rgba(124,150,255,.12);color:#fff}
html.ob-space #ob .ob-seg button.on{background:var(--cz-aur);color:#071022;box-shadow:0 0 16px -3px rgba(124,200,255,.55)}
html.ob-space #ob .ob-ib,html.ob-space #ob .ob-sel,html.ob-space #ob .ob-zoom button{background:rgba(10,14,38,.7);border-color:var(--cz-line)}
html.ob-space #ob .ob-ib:hover,html.ob-space #ob .ob-zoom button:hover{border-color:rgba(94,242,214,.55)}
html.ob-space #ob .ob-sel option{background:#0c1030}
html.ob-space #ob .ob-pi:hover,html.ob-space #ob .ob-pi.on{background:rgba(124,150,255,.14)}
html.ob-space #ob .ob-grid th:first-child,html.ob-space #ob .ob-grid td:first-child{background:#0a0d26}
html.ob-space #ob .ob-tb td,html.ob-space #ob .ob-grid td{border-color:rgba(150,175,255,.1)}
html.ob-space #ob :focus-visible{outline-color:var(--cz-teal)}

/* ---- what the page shows, its limits and its sources: each its own glass card at the foot of the page */
html.ob-space .ob-about{max-width:1080px;color:rgba(214,224,255,.8);display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px;margin-top:26px}
html.ob-space .ob-about[hidden]{display:none}
html.ob-space .ob-ac{border-radius:20px;padding:6px 18px 14px;border:1px solid var(--cz-line);
  background:linear-gradient(165deg,rgba(22,28,68,.55),rgba(6,8,24,.5));-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);
  box-shadow:0 18px 50px -28px rgba(0,0,0,.9),0 0 40px -24px rgba(124,120,255,.45)}
html.ob-space .ob-ac:first-child{grid-column:1/-1}
html.ob-space .ob-about h2{color:#f1f4ff;display:flex;align-items:center;gap:10px;margin:14px 0 6px}
html.ob-space .ob-about h2::before{content:"";flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:var(--cz-teal);box-shadow:0 0 12px var(--cz-teal),0 0 2px #fff}
html.ob-space .ob-ac:nth-child(2) h2::before{background:var(--cz-violet);box-shadow:0 0 12px var(--cz-violet),0 0 2px #fff}
html.ob-space .ob-ac:nth-child(3) h2::before{background:#ff6fb5;box-shadow:0 0 12px #ff6fb5,0 0 2px #fff}
html.ob-space .ob-about b{color:#f1f4ff}
html.ob-space .ob-about a{color:#9fd8ff}
html.ob-space .ob-about li::marker{color:rgba(150,175,255,.55)}

/* ---- the section's front page: each group of charts a glass frame, each chart a card that lights up */
html.ob-space .ob-hsec{color:#f1f4ff;display:flex;align-items:center;gap:10px}
html.ob-space .ob-hsec::before{content:"";flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:var(--cz-teal);box-shadow:0 0 12px var(--cz-teal),0 0 2px #fff}
html.ob-space .ob-hsec small{color:var(--cz-mute)}
html.ob-space .ob-hubf{padding:12px;border-radius:24px;border:1px solid var(--cz-line);
  background:linear-gradient(170deg,rgba(12,16,42,.5),rgba(4,6,20,.4));-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
html.ob-space .ob-hc{background:linear-gradient(160deg,rgba(26,34,78,.5),rgba(9,11,32,.42));border-color:var(--cz-line);color:var(--cz-ink);position:relative;
  transition:border-color .25s,transform .25s,box-shadow .25s}
html.ob-space a.ob-hc:hover,html.ob-space a.ob-hc:focus-visible{border-color:rgba(140,200,255,.45);transform:translateY(-2px);
  box-shadow:0 14px 34px -18px rgba(0,0,0,.9),0 0 26px -8px rgba(124,200,255,.45)}
html.ob-space .ob-hc small{color:var(--cz-mute)}
html.ob-space .ob-hc em{color:var(--cz-teal)}
html.ob-space a.ob-hc:focus-visible{outline:2px solid var(--cz-teal);outline-offset:2px}

/* ---- the footer, glass over the sky */
html.ob-space #ekf{background:linear-gradient(180deg,rgba(6,8,22,.5),rgba(3,4,12,.9))!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}

@media (max-width:760px){
  html.ob-space #ob{border-radius:18px}
  html.ob-space .ob-ac{padding:4px 14px 10px}
  html.ob-space .ob-hubf{padding:8px;border-radius:18px}
}
@media (prefers-reduced-motion:reduce){html.ob-space .ob-hc{transition:none}html.ob-space a.ob-hc:hover{transform:none}}
@media (forced-colors:active){html.ob-space .ob-head h1{color:CanvasText;background:none}}

/* ---- the charts themselves sit in the glass, not on a flat black slab (owner 2026-11-26): the canvases paint a deep-space
   ground of their own (OB.bg in core.js), so their boxes stay clear and the sky's light reaches them */
html.ob-space .ob-stage,html.ob-space .ob-mapbox,html.ob-space .ob-tsbox,html.ob-space .x-clgd{background:transparent}

/* ---- the motion switch under the page title (assets/obs/worlds.js) */
.ek-mo{display:inline-flex;align-items:center;gap:7px;margin-top:12px;padding:7px 13px;border-radius:999px;border:1px solid var(--cz-line2,rgba(150,175,255,.28));
  background:rgba(10,14,38,.55);color:rgba(214,224,255,.78);font-weight:600;font-size:.78rem;line-height:1;font-family:inherit;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.ek-mo:hover{color:#fff;border-color:rgba(94,242,214,.55)}
.ek-mo:focus-visible{outline:2px solid #5ef2d6;outline-offset:2px}
.ek-mo[aria-pressed=true]{color:#5ef2d6}
.ek-mo svg{flex:0 0 auto}
@media print{.ek-mo,.ob-sky{display:none!important}}

/* in the pages with a world of their own (assets/obs/worlds.js) the glass is a little clearer, so the planet behind it shows;
   the charts keep their own dark ground */
html.ob-space[data-world]:not([data-world=deep]) #ob{background:linear-gradient(170deg,rgba(12,16,42,.5),rgba(4,6,20,.4))}

/* ---------- the door of the craft, opening as each page of the Observatory arrives (scripts/build_obs.py DOOR).
   Metal panels lit by the page's own colour, a light that turns from red to green, the name of the world behind it.
   Transforms only; gone after about a second and a half; never takes a click. */
.ob-door{position:fixed;inset:0;z-index:2147483000;pointer-events:none;overflow:hidden;contain:strict;animation:obd-gone 0s linear 1.55s forwards}
@keyframes obd-gone{to{visibility:hidden}}
.ob-door i{position:absolute;display:block;will-change:transform;
  background:radial-gradient(120% 90% at 50% 0%,rgba(255,255,255,.08),rgba(255,255,255,0) 60%),linear-gradient(150deg,#2c3448 0%,#151b2c 55%,#1e2538 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.07),inset 0 0 60px rgba(0,0,0,.55)}
.ob-door i::after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#c8d0e0,#3a4256 70%);box-shadow:0 0 0 2px rgba(0,0,0,.35)}
.ob-door .dl{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:.5rem;text-align:center;
  font:600 clamp(1.1rem,3.4vw,1.9rem)/1.3 inherit;color:#eef4ff;text-shadow:0 0 18px var(--dc);white-space:nowrap;animation:obd-lab .62s ease-in forwards;z-index:2}
.ob-door .dl small{font-size:.5em;letter-spacing:.14em;color:var(--dc);opacity:.9;display:flex;align-items:center;gap:.6em}
.ob-door .dl small::before{content:"";width:.9em;height:.9em;border-radius:50%;background:#ff4f6a;box-shadow:0 0 10px #ff4f6a;animation:obd-ok .42s steps(1) forwards}
@keyframes obd-ok{to{background:#5ef2d6;box-shadow:0 0 12px #5ef2d6}}
@keyframes obd-lab{0%,70%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.06)}}
/* two halves, side to side */
.ob-door[data-d=h] .p1{inset:0 50% 0 0;border-right:3px solid var(--dc);animation:obd-l .72s cubic-bezier(.7,0,.25,1) .55s forwards}
.ob-door[data-d=h] .p2{inset:0 0 0 50%;border-left:3px solid var(--dc);animation:obd-r .72s cubic-bezier(.7,0,.25,1) .55s forwards}
.ob-door[data-d=h] .p1::after{right:18px;top:calc(50% - 5px)}.ob-door[data-d=h] .p2::after{left:18px;top:calc(50% - 5px)}
/* two halves, up and down */
.ob-door[data-d=v] .p1{inset:0 0 50% 0;border-bottom:3px solid var(--dc);animation:obd-u .72s cubic-bezier(.7,0,.25,1) .55s forwards}
.ob-door[data-d=v] .p2{inset:50% 0 0 0;border-top:3px solid var(--dc);animation:obd-d .72s cubic-bezier(.7,0,.25,1) .55s forwards}
.ob-door[data-d=v] .p1::after{bottom:16px;left:calc(50% - 5px)}.ob-door[data-d=v] .p2::after{top:16px;left:calc(50% - 5px)}
/* four leaves, out to the corners */
.ob-door[data-d=quad] .p1{inset:0 50% 50% 0;border-right:2px solid var(--dc);border-bottom:2px solid var(--dc);animation:obd-q1 .75s cubic-bezier(.7,0,.25,1) .55s forwards}
.ob-door[data-d=quad] .p2{inset:0 0 50% 50%;border-left:2px solid var(--dc);border-bottom:2px solid var(--dc);animation:obd-q2 .75s cubic-bezier(.7,0,.25,1) .55s forwards}
.ob-door[data-d=quad] .p3{inset:50% 50% 0 0;border-right:2px solid var(--dc);border-top:2px solid var(--dc);animation:obd-q3 .75s cubic-bezier(.7,0,.25,1) .55s forwards}
.ob-door[data-d=quad] .p4{inset:50% 0 0 50%;border-left:2px solid var(--dc);border-top:2px solid var(--dc);animation:obd-q4 .75s cubic-bezier(.7,0,.25,1) .55s forwards}
.ob-door[data-d=quad] i::after{display:none}
/* cut on the diagonal */
.ob-door[data-d=diag] .p1{inset:0;clip-path:polygon(0 0,100% 0,0 100%);animation:obd-dg1 .75s cubic-bezier(.7,0,.25,1) .55s forwards}
.ob-door[data-d=diag] .p2{inset:0;clip-path:polygon(100% 0,100% 100%,0 100%);animation:obd-dg2 .75s cubic-bezier(.7,0,.25,1) .55s forwards}
.ob-door[data-d=diag] .p3{inset:0;background:linear-gradient(to top right,transparent calc(50% - 2px),var(--dc) 50%,transparent calc(50% + 2px));box-shadow:none;animation:obd-fade .2s linear .55s forwards}
.ob-door[data-d=diag] i::after{display:none}
/* an iris that opens from the middle */
.ob-door[data-d=iris] .p1{left:50%;top:50%;width:0;height:0;border-radius:50%;transform:translate(-50%,-50%);background:none;
  box-shadow:0 0 0 160vmax #171d2e,0 0 0 calc(160vmax + 0px) #171d2e,inset 0 0 0 3px var(--dc),0 0 30px 6px var(--dc);animation:obd-iris .85s cubic-bezier(.6,0,.3,1) .5s forwards}
.ob-door[data-d=iris] .p1::after{display:none}
/* a round hatch: the wheel turns, then the whole hatch swings past us */
.ob-door[data-d=hatch] .p1{inset:0;animation:obd-sw .7s cubic-bezier(.6,0,.4,1) .62s forwards;transform-origin:0 50%}
.ob-door[data-d=hatch] .p2{left:50%;top:50%;width:min(56vmin,420px);height:min(56vmin,420px);border-radius:50%;transform:translate(-50%,-50%);
  background:radial-gradient(circle,transparent 0 28%,rgba(255,255,255,.1) 29% 31%,transparent 32% 62%,var(--dc) 63% 64%,#1b2134 65% 100%);
  box-shadow:0 0 40px rgba(0,0,0,.6),0 0 0 2px rgba(255,255,255,.12);animation:obd-wh .5s ease-in-out .1s forwards,obd-fade .25s linear .62s forwards}
.ob-door[data-d=hatch] .p2::after{left:calc(50% - 5px);top:calc(50% - 5px)}
.ob-door[data-d=hatch] .p1::after{display:none}
.ob-door[data-d=h] .p3,.ob-door[data-d=h] .p4,.ob-door[data-d=v] .p3,.ob-door[data-d=v] .p4,.ob-door[data-d=diag] .p4,
.ob-door[data-d=iris] .p2,.ob-door[data-d=iris] .p3,.ob-door[data-d=iris] .p4,.ob-door[data-d=hatch] .p3,.ob-door[data-d=hatch] .p4{display:none}
@keyframes obd-l{to{transform:translateX(-102%)}}@keyframes obd-r{to{transform:translateX(102%)}}
@keyframes obd-u{to{transform:translateY(-102%)}}@keyframes obd-d{to{transform:translateY(102%)}}
@keyframes obd-q1{to{transform:translate(-102%,-102%)}}@keyframes obd-q2{to{transform:translate(102%,-102%)}}
@keyframes obd-q3{to{transform:translate(-102%,102%)}}@keyframes obd-q4{to{transform:translate(102%,102%)}}
@keyframes obd-dg1{to{transform:translate(-80%,-80%)}}@keyframes obd-dg2{to{transform:translate(80%,80%)}}
@keyframes obd-iris{to{width:300vmax;height:300vmax;box-shadow:0 0 0 160vmax rgba(23,29,46,0),inset 0 0 0 3px transparent,0 0 30px 6px transparent}}
@keyframes obd-sw{to{transform:perspective(900px) rotateY(-100deg);opacity:0}}
@keyframes obd-wh{to{transform:translate(-50%,-50%) rotate(100deg)}}
@keyframes obd-fade{to{opacity:0}}
html[dir=ltr] .ob-door[data-d=hatch] .p1{transform-origin:100% 50%}
html[dir=ltr] .ob-door[data-d=hatch] .p1{animation-name:obd-sw2}@keyframes obd-sw2{to{transform:perspective(900px) rotateY(100deg);opacity:0}}
html.ek-still .ob-door{display:none}
@media (prefers-reduced-motion:reduce){
  .ob-door{animation:obd-fade .5s linear .5s forwards,obd-gone 0s linear 1.05s forwards}
  .ob-door i,.ob-door .dl,.ob-door .dl small::before{animation:none!important}
}
@media print{.ob-door{display:none!important}}
/* the window onto the world: an open strip under the title where the scene (its ground, its astronaut, its craft) is never covered */
html.ob-space .ob-stage{position:relative;height:clamp(150px,22vh,230px);margin:0 0 .4rem;pointer-events:none}
html.ob-space .ob-where{position:absolute;bottom:.55rem;inset-inline-start:.2rem;font-size:.72rem;letter-spacing:.04em;color:#e9ecff;opacity:.78;
  padding:.2rem .6rem .2rem .5rem;border-radius:99px;background:rgba(3,4,12,.42);border:1px solid color-mix(in srgb,var(--dc) 55%,transparent);
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);white-space:nowrap}
html.ob-space .ob-where::before{content:"";display:inline-block;width:.45rem;height:.45rem;border-radius:50%;background:var(--dc);margin-inline-end:.4rem;vertical-align:.05em;box-shadow:0 0 8px var(--dc)}
@media (max-width:699px){html.ob-space .ob-stage{height:clamp(120px,18vh,170px)}}
html.ob-space .ob-head h1{filter:drop-shadow(0 2px 10px rgba(2,3,10,.75))}
html.ob-space .ob-head p{text-shadow:0 1px 8px rgba(2,3,10,.9),0 0 2px rgba(2,3,10,.8)}
.ob-fxc{position:fixed;inset:0;width:100vw;height:100vh;z-index:30;pointer-events:none;display:none}
@media print{.ob-stage,.ob-fxc{display:none!important}}
