/* The landing's scroll story (journey.js). Tokens follow docs/design-direction.md
   section 2; a page that defines --space, --panel, --raised, --ink, --muted
   overrides them. */

.jy-root {
  --jy-space: var(--space, #05070A);
  --jy-panel: var(--panel, #10151B);
  --jy-raised: var(--raised, #1A2129);
  --jy-ink: var(--ink, #E6EBF0);
  --jy-muted: var(--muted, #8A96A3);
  --jy-blue: #3C9DF5;
  --jy-font: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --jy-underline: color-mix(in srgb, var(--jy-ink) 40%, transparent);

  --jy-ease-out: cubic-bezier(.22, 1, .36, 1);
  --jy-ease-exit: cubic-bezier(.55, .055, .675, .19);

  /* Five sizes. Body and below grow a little on very wide screens and stop. */
  --jy-display: clamp(34px, 10.35vw, 104px); /* a tenth under the first size, at the owner's ask (16 Nov 2026) */
  --jy-statement: clamp(24px, 1rem + 1.2vw, 32px);
  --jy-lead: clamp(20px, 0.52vw + 10px, 24px);
  --jy-body: clamp(16px, 0.42vw + 8px, 19px);
  --jy-small: clamp(13px, 0.34vw + 6.5px, 15px);

  /* outer margin, and on a phone on its side, clear of the notch (the page uses viewport-fit=cover) */
  --jy-m: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --jy-ctl: 36px;        /* control height */
  --jy-row: 44px;        /* the bottom toolbars' height: the clock's two lines */
  --jy-tabbar: 56px;     /* a phone's bottom bar */
  --jy-top: 0px;         /* a sticky header above the stage, if the page has one */
  --jy-nav: 64px;        /* room for a nav laid over the stage */
  --jy-bottom: max(var(--jy-m), env(safe-area-inset-bottom));

  display: block;
  color: var(--jy-ink);
  background: var(--jy-space);
  font-family: var(--jy-font);
  font-size: var(--jy-body);
  line-height: 1.5;
}

@media (min-width: 600px) { .jy-root { --jy-m: 24px; } }
@media (min-width: 1100px) { .jy-root { --jy-m: 32px; } }
@media (min-width: 2400px) { .jy-root { --jy-m: 48px; --jy-ctl: 40px; --jy-row: 52px; } }
@media (pointer: coarse) { .jy-root { --jy-ctl: 44px; } }
/* the phone layout is for fingers whatever the browser says about its pointer */
.jy-root.jy-narrow { --jy-ctl: 44px; }

.jy-root *, .jy-root *::before, .jy-root *::after { box-sizing: border-box; }
.jy-root [hidden] { display: none !important; }
.jy-root :focus-visible { outline: 2px solid var(--jy-blue); outline-offset: 2px; }
.jy-root.jy-instant *,
.jy-root.jy-instant .jy-beat.is-on,
.jy-root.jy-instant .jy-beat.is-past { transition: none !important; }
/* a drag on the globe never turns into a text selection */
html.jy-dragging, html.jy-dragging * { -webkit-user-select: none !important; user-select: none !important; }
html.jy-dragging { cursor: grabbing; }

/* ---- section and stage ------------------------------------------------------ */

/* No page scrollbar on the story (the main site's Explore view, or explore/index.html):
   it would vanish when the end locks, and everything would jump by its width. A kept
   gutter would stop the jump too, but leave a blank strip beside the Earth. */
html:has(body[data-view="explore"]),
html:has(> body > main#journey) { scrollbar-width: none; }
html:has(body[data-view="explore"])::-webkit-scrollbar,
html:has(> body > main#journey)::-webkit-scrollbar { display: none; }

/* held for 300svh; the page ends where the section ends */
.jy {
  position: relative;
  height: calc(400vh - var(--jy-top));
  height: calc(300svh + 100dvh - var(--jy-top));
}
/* a phone: 200svh, so the swing round the Earth, which has no words, is about a screen long */
.jy-root.jy-narrow .jy {
  height: calc(300vh - var(--jy-top));
  height: calc(200svh + 100dvh - var(--jy-top));
}
/* the end of the story (and no WebGL): one screen, nothing left to scroll */
.jy-root.jy-locked .jy,
.jy-root[data-mode="still"] .jy {
  height: calc(100vh - var(--jy-top));
  height: calc(100dvh - var(--jy-top));
}

.jy-stage {
  position: sticky;
  top: var(--jy-top);
  height: calc(100vh - var(--jy-top));
  height: calc(100dvh - var(--jy-top));
  min-height: 320px;
  overflow: hidden;
  background: #000; /* the sky: true black, as the canvas clears to (journey.js SKY) */
}

.jy-canvas {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 600ms linear;
  /* during the story vertical swipes scroll the page and sideways drags turn the view */
  touch-action: pan-y;
  outline: none;
}
/* at the end there is nothing to scroll: every gesture is the globe's */
.jy-locked .jy-canvas { touch-action: none; }
.jy-earth-ready .jy-canvas { opacity: 1; }
.jy-canvas:focus-visible { outline: 2px solid var(--jy-blue); outline-offset: -2px; }
.jy-ui-on .jy-canvas { cursor: grab; }

.jy-still { position: absolute; display: block; }

/* the satellite and its orbit line, over the pins (see journey.js, renderer
   and scene); clicks go through to the pins and the globe */
.jy-over-canvas {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms linear;
}
.jy-over-canvas[hidden] { display: none; }
.jy-earth-ready .jy-over-canvas { opacity: 1; }

/* Before the globe's code arrives (site/index.html): the opening words on black, in
   the place they'll have, on one screen. */
.jy-shell .jy {
  height: calc(100vh - var(--jy-top));
  height: calc(100dvh - var(--jy-top));
}
@media (max-width: 599px), (max-aspect-ratio: 4/5) { .jy-shell .jy-text { top: 88px; } }
/* the globe couldn't start: the notice clears the nav laid over this view */
#journey > .notice { padding-top: calc(var(--jy-nav) + 32px); }

/* While the Earth's maps download (on a phone's connection that can take a while): a quiet
   line where the Earth will be, after a moment, so a quick load never shows it. */
.jy-loading {
  position: absolute;
  left: 70%;
  top: 60%;
  z-index: 1;
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--jy-muted);
  font-size: var(--jy-small);
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: jy-loading-in 400ms ease 1.2s forwards;
}
.jy-loading.is-now { animation: none; opacity: 1; }
.jy-earth-ready .jy-loading,
.jy-root[data-mode="still"] .jy-loading { display: none; }
.jy-root.jy-narrow:not(.jy-wide-phone) .jy-loading { left: 50%; top: 72%; }
@media (max-width: 599px), (max-aspect-ratio: 4/5) { .jy-shell .jy-loading { left: 50%; top: 72%; } }
@keyframes jy-loading-in { to { opacity: 1; } }

/* ---- text: one anchor on the left margin ------------------------------------- */

/* Only the words and the buttons take the pointer; the space around and
   between the lines belongs to the globe. */
.jy-text {
  position: absolute;
  z-index: 2;
  left: var(--jy-m);
  top: max(22vh, calc(var(--jy-nav) + 24px));
  top: max(22svh, calc(var(--jy-nav) + 24px));
  display: grid;
  justify-items: start;
  max-width: calc(100% - 2 * var(--jy-m));
  pointer-events: none;
}
.jy-narrow .jy-text { top: 88px; }
.jy-narrow.jy-composed .jy-text { top: 72px; }

.jy-beat {
  grid-area: 1 / 1;
  align-self: start;
  width: fit-content;
  margin: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  /* exits run at 60% of the entrance */
  transition: opacity 360ms var(--jy-ease-exit), transform 360ms var(--jy-ease-exit), visibility 0s linear 360ms;
}
.jy-beat.is-past { transform: translateY(-16px); }
.jy-beat.is-on {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 600ms var(--jy-ease-out), transform 600ms var(--jy-ease-out), visibility 0s;
}
/* The text is see-through to the pointer and can't be selected, at every
   beat: a drag or the wheel anywhere over it, words included, reaches the
   globe. (No links or buttons live in it; one added later would need
   pointer-events: auto.) */
.jy-text,
.jy-text * {
  pointer-events: none !important;
  -webkit-user-select: none;
  user-select: none;
}

.jy-h1 {
  margin: 0;
  font-size: var(--jy-display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-transform: uppercase; /* written FrontierSat, so it reads as the name */
}

.jy-lead {
  max-width: 40ch;
  margin: 16px 0 0;
  font-size: var(--jy-lead);
  font-weight: 400;
  line-height: 1.4;
}
/* under the name: what this is (Lead size, quiet) */
.jy-sub {
  margin: 16px 0 0;
  color: var(--jy-muted);
  font-size: var(--jy-lead);
  font-weight: 400;
  line-height: 1.3;
}
.jy-sub + .jy-sub { margin-top: 4px; }
/* right under the name: what it is, a step brighter than the lines under it */
.jy-tagline {
  margin: 14px 0 0;
  font-size: var(--jy-lead);
  font-weight: 500;
  line-height: 1.3;
}
.jy-tagline + .jy-sub { margin-top: 8px; }
.jy-sub + .jy-lead { margin-top: 20px; }

/* Beat 1 shows the first sentence and the cue; the end shows the live
   sentence, what the satellite does when clicked and, until the first drag
   or click, that the globe turns. */
.jy-root.jy-composed .jy-intro-only,
.jy-root:not(.jy-composed) .jy-end-only { display: none; }
.jy-live-lead { font-variant-numeric: tabular-nums; }
.jy-tip,
.jy-hint {
  max-width: 40ch;
  font-size: var(--jy-body);
  font-weight: 500;
  line-height: 1.45;
}
.jy-tip { margin: 16px 0 0; }
.jy-hint {
  margin: 4px 0 0;
  transition: opacity 240ms var(--jy-ease-out), visibility 0s;
}
/* Once the camera has come in, the Earth and the satellite are the point: the words step
   back a little, and a good deal on a phone. The opening keeps its full size. */
.jy-root.jy-composed .jy-h1 { font-size: calc(var(--jy-display) * 0.8); }
.jy-root.jy-composed .jy-tagline,
.jy-root.jy-composed .jy-sub,
.jy-root.jy-composed .jy-live-lead { font-size: calc(var(--jy-lead) * 0.88); }
.jy-root.jy-composed .jy-tip,
.jy-root.jy-composed .jy-hint { font-size: calc(var(--jy-body) * 0.94); }
.jy-root.jy-narrow.jy-composed .jy-sub { margin-top: 6px; font-size: 15px; }
.jy-root.jy-narrow.jy-composed .jy-sub + .jy-sub { margin-top: 2px; }
.jy-root.jy-narrow.jy-composed .jy-tagline { margin-top: 6px; font-size: 15px; }
.jy-root.jy-narrow.jy-composed .jy-tagline + .jy-sub { margin-top: 4px; }
.jy-root.jy-narrow.jy-composed .jy-live-lead { margin-top: 10px; font-size: 16px; line-height: 1.35; }
.jy-root.jy-narrow.jy-composed .jy-tip,
.jy-root.jy-narrow.jy-composed .jy-hint { font-size: 14px; }
.jy-root.jy-narrow.jy-composed .jy-tip { margin-top: 8px; }
.jy-root.jy-narrow.jy-composed .jy-hint { margin-top: 2px; }
/* hidden, not removed, so the block keeps its size and the framing stays put */
.jy-hint.is-off {
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms var(--jy-ease-exit), visibility 0s linear 240ms;
}
/* Short of room at the end, the words give way so the satellite fits (computeFrame): at
   1 how to drag goes, at 2 the facts banner moves into the details, at 3 the live
   sentence keeps only where it is, at 4 the subheading goes. */
.jy-root[data-fit="1"] .jy-hint,
.jy-root[data-fit="2"] .jy-hint,
.jy-root[data-fit="3"] .jy-hint,
.jy-root[data-fit="4"] .jy-hint,
.jy-root[data-fit="3"] .jy-lead-more,
.jy-root[data-fit="4"] .jy-lead-more,
.jy-root.jy-composed[data-fit="4"] .jy-tagline,
.jy-root.jy-composed[data-fit="4"] .jy-sub { display: none; }

/* "Scroll to learn more": still, quiet, gone once the visitor scrolls */
.jy-cue {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 40px 0 0;
  color: var(--jy-muted);
  font-size: var(--jy-body);
  font-weight: 500;
  transition: opacity 240ms var(--jy-ease-out);
  outline: none;
}
.jy-root.jy-scrolled .jy-cue { opacity: 0; }
/* a phone, through the story: a thin line along the foot of the screen, filling as it plays, so
   the stretch without words still shows it's going somewhere */
.jy-progress { display: none; }
.jy-root.jy-narrow:not(.jy-locked):not([data-mode="still"]) .jy-progress {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom);
  display: block;
  height: 3px;
  background: var(--jy-blue);
  transform: scaleX(var(--jy-p, 0));
  transform-origin: left;
  opacity: 0;
  transition: opacity 240ms var(--jy-ease-out);
  pointer-events: none;
}
.jy-root.jy-narrow.jy-scrolled:not(.jy-ui-on):not(.jy-locked) .jy-progress { opacity: 0.9; }
/* under the cue: the pictures, and a way past the story; they go with the cue */
.jy-intro-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 24px 0 0; transition: opacity 240ms var(--jy-ease-out); }
.jy-text .jy-intro-links,
.jy-text .jy-intro-links * { pointer-events: auto !important; }
.jy-root.jy-scrolled .jy-intro-links { opacity: 0; visibility: hidden; transition: opacity 240ms var(--jy-ease-out), visibility 0s linear 240ms; }
.jy-root.jy-scrolled .jy-text .jy-intro-links * { pointer-events: none !important; }
.jy-statement {
  max-width: 26ch;
  font-size: var(--jy-statement);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
/* room for the longest live sentence, so the end frame doesn't shift when the place changes */
.jy-b2 { min-height: calc(5 * 1.2em); }
.jy-narrow .jy-b2 { min-height: calc(6 * 1.2em); }
.jy-narrow .jy-statement { font-size: 20px; }

/* ---- controls ----------------------------------------------------------------- */

.jy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0 20px;
  background: var(--jy-ink);
  color: var(--jy-space);
  font: 500 var(--jy-body) / 1.2 var(--jy-font);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--jy-ease-out);
}
.jy-btn:hover { background: #FFFFFF; }
/* secondary: filled, raised grey (the Orbit page's .cg-btn) */
.jy-btn-quiet { background: var(--jy-raised); color: var(--jy-ink); }
.jy-btn-quiet:hover { background: color-mix(in srgb, var(--jy-raised), var(--jy-ink) 10%); }

.jy-textbtn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  color: var(--jy-ink);
  font: 500 var(--jy-body) / 1.2 var(--jy-font);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--jy-underline);
  cursor: pointer;
}
.jy-textbtn:hover { text-decoration-color: currentColor; }

.jy-link {
  color: var(--jy-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--jy-underline);
}
.jy-link:hover { text-decoration-color: currentColor; }

.jy-sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--jy-ctl);
  height: var(--jy-ctl);
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: var(--jy-panel);
  color: var(--jy-ink);
  cursor: pointer;
  transition: background-color 180ms var(--jy-ease-out);
}
.jy-sq:hover { background: var(--jy-raised); }
.jy-sq:disabled { color: var(--jy-muted); cursor: default; background: var(--jy-panel); }
.jy-sq:disabled svg { opacity: 0.5; }

/* Choosing between things, here and in the panel's tabs: the chosen one is Raised with
   an Ink line under it, as the nav marks the current page. */
.jy-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--jy-ctl);
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0 12px;
  background: none;
  color: var(--jy-muted);
  font: 500 var(--jy-small) / 1.2 var(--jy-font);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms var(--jy-ease-out), color 180ms var(--jy-ease-out);
}
.jy-tab:hover { background: var(--jy-raised); color: var(--jy-ink); }
.jy-tab[aria-pressed="true"] { background: var(--jy-raised); box-shadow: inset 0 -2px 0 var(--jy-ink); color: var(--jy-ink); }

/* The end-state controls: hidden during the story. Their boxes pass the
   pointer through; only the controls themselves take it. */
.jy-time,
.jy-corner,
.jy-facts-slot {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms var(--jy-ease-exit), visibility 0s linear 150ms;
}
.jy-ui-on .jy-time,
.jy-ui-on .jy-corner,
.jy-locked .jy-facts-slot {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms var(--jy-ease-out), visibility 0s;
}
.jy-time > *,
.jy-corner > *,
.jy-corner .jy-zoom > *,
.jy-facts-slot > * { pointer-events: auto; }

/* Two flat toolbars along the bottom, one height, on Panel because they often sit over
   bright cloud; their parts are divided by a Raised line.
   time: [clock | 1x 60x 600x | Now], bottom left */
.jy-time {
  left: var(--jy-m);
  bottom: var(--jy-bottom);
  display: flex;
  align-items: stretch;
  min-height: var(--jy-row);
  background: var(--jy-panel);
}
.jy-root[data-mode="still"] .jy-time { display: none; }

.jy-clock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 11.5em;
  margin: 0;
  padding: 4px 12px;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.jy-clock-main { font-size: var(--jy-body); }
.jy-clock-sub { font-size: var(--jy-small); color: var(--jy-muted); letter-spacing: 0.01em; }

.jy-speed {
  display: flex;
  box-shadow: inset 1px 0 0 var(--jy-raised);
}
.jy-speed label { position: relative; display: block; cursor: pointer; }
.jy-speed input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.jy-speed span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 100%;
  min-height: var(--jy-ctl);
  padding: 0 12px;
  color: var(--jy-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background-color 180ms var(--jy-ease-out), color 180ms var(--jy-ease-out);
}
.jy-speed label:hover span { background: var(--jy-raised); color: var(--jy-ink); }
/* chosen: Ink, as on the Orbit page */
.jy-speed input:checked + span { background: var(--jy-ink); color: var(--jy-space); }
.jy-speed input:focus-visible + span { outline: 2px solid var(--jy-blue); outline-offset: 2px; }

/* Beside the time toolbar, as wide as the room before the corner row (placeMeta in
   journey.js): where the pictures' repository is, and when the site was last updated */
.jy-meta {
  position: absolute;
  z-index: 2;
  bottom: var(--jy-bottom);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--jy-row);
  margin: 0;
  padding: 4px 12px;
  background: var(--jy-panel);
  color: var(--jy-muted);
  font-size: var(--jy-small);
  line-height: 1.35;
  letter-spacing: 0.01em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms var(--jy-ease-exit), visibility 0s linear 150ms;
}
.jy-ui-on .jy-meta {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms var(--jy-ease-out), visibility 0s;
}
.jy-meta .jy-link { color: var(--jy-ink); overflow-wrap: anywhere; }
.jy-meta .jy-site-link { white-space: nowrap; } /* never "Sat-1-" / "Photos" */
.jy-meta-updated[hidden] { display: none; }

/* The site's QR code under the headline, for a screen nobody can touch (placeQr in journey.js
   puts it there, and only where it fits). Always laid out, so it can be measured. */
.jy-qr {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: calc(16px * var(--jy-ui, 1));
  padding: calc(12px * var(--jy-ui, 1));
  padding-right: calc(20px * var(--jy-ui, 1));
  background: var(--jy-panel);
  color: var(--jy-muted);
  font-size: var(--jy-small);
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms var(--jy-ease-exit), visibility 0s linear 150ms;
}
.jy-qr[hidden] { display: none; }
.jy-ui-on.jy-composed .jy-qr {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms var(--jy-ease-out), visibility 0s;
}
.jy-qr-code { flex: none; display: block; width: calc(112px * var(--jy-ui, 1)); aspect-ratio: 1; }
.jy-qr-svg { display: block; width: 100%; height: 100%; }
.jy-qr-text { display: flex; flex-direction: column; gap: 2px; }
.jy-qr-title { color: var(--jy-ink); font-size: var(--jy-body); font-weight: 500; }
/* this site's own address, for anyone who would rather type it than scan */
.jy-qr-site { margin-top: calc(8px * var(--jy-ui, 1)); }
.jy-qr-url { color: var(--jy-ink); font-weight: 500; white-space: nowrap; } /* never "Sat-1-" / "Photos" */
/* The sponsors, in the corner's row in place of its controls: chosen in Credits (assets/credits.js),
   and on a TV whenever nobody is using it (its controls go then anyway). Credits' row
   (assets/credits.css) drawn as tall as the row, in line with the clock's box on the left
   (placeSponsors in journey.js lays it over the row and sets --sp-k), each logo on its white tile (they're drawn for white). It shows once every
   logo is in (loadSponsorLogos); a pointer resting on it stops it. */
.jy-sponsors {
  --sp-k: 0.61;
  --sp-gap: calc(12px * var(--sp-k));
  position: absolute;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: flex-end; /* tucked against the right, a few logos at a time */
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms var(--jy-ease-exit), visibility 0s linear 150ms;
}
.jy-root.jy-ui-on.jy-sponsors-on .jy-sponsors.is-loaded,
.jy-root.jy-tv.jy-tv-idle .jy-sponsors.is-loaded {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms var(--jy-ease-out), visibility 0s;
}
/* the controls step aside for it (kept in place, so nothing moves when they come back) */
.jy-root.jy-sponsors-on .jy-corner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms var(--jy-ease-exit), visibility 0s linear 150ms;
}
/* the thank-you line above the logos (the owner's words), on no card: a shadow keeps it apart
   from the Earth */
.jy-sponsors-title {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  margin: 0;
  padding: 3px 0;
  color: var(--jy-ink);
  font-size: var(--jy-small);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.6);
}
.jy-sponsors-strip {
  flex: 0 1 calc(380px * var(--jy-ui, 1));
  align-self: center;
  min-width: 0;
  height: calc(72px * var(--sp-k));
  overflow: hidden;
  pointer-events: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.jy-sponsors-row {
  display: flex;
  gap: var(--sp-gap);
  width: max-content;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: jy-sponsors var(--sp-time, 60s) linear infinite; /* --sp-time: journey.js, from how long the row is */
}
.jy-sponsors-strip:hover .jy-sponsors-row { animation-play-state: paused; }
.jy-sponsor {
  flex: none;
  display: grid;
  place-content: center;
  justify-items: center;
  box-sizing: border-box;
  height: 100%;
  padding: calc(10px * var(--sp-k)) calc(16px * var(--sp-k));
  border-radius: calc(8px * var(--sp-k));
  background: #fff;
}
.jy-sponsor img {
  display: block;
  width: calc(var(--w) * var(--sp-k) * 1px);
  height: calc(var(--h) * var(--sp-k) * 1px);
}
/* a programme or product named under its maker's logo (Fly Your Satellite!, NX) */
.jy-sponsor-under {
  display: block;
  margin-top: calc(3px * var(--sp-k));
  color: #10151B;
  font-size: max(9px, calc(12px * var(--sp-k)));
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@keyframes jy-sponsors {
  to { transform: translateX(calc(-50% - var(--sp-gap) / 2)); }
}

/* on a wide enough screen, and not on a phone, the still picture or with motion kept still
   (?motion=reduced, app.js): Credits has them all */
@media (min-width: 1100px) and (min-height: 700px) {
  .jy-root:not(.jy-narrow):not([data-mode="still"]) .jy-sponsors { display: flex; }
}
html[data-motion="reduced"] .jy-root.jy-root .jy-sponsors { display: none; }

/* phones have the tab bar down there, and Credits says the same */
.jy-root[data-mode="still"] .jy-meta,
.jy-narrow .jy-meta,
.jy-meta.is-cramped { display: none; }

.jy-now { min-height: var(--jy-ctl); padding: 0 16px; }
.jy-now[aria-disabled="true"] { background: none; box-shadow: inset 1px 0 0 var(--jy-raised); color: var(--jy-muted); cursor: default; }

/* bottom right: [Play the intro again] [Following] [Aurora] [Hide photo previews] [See all n pictures] [- | +] */
.jy-corner {
  right: var(--jy-m);
  bottom: var(--jy-bottom);
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-height: var(--jy-row);
}
/* the one strong action down here: the pictures */
.jy-all { gap: 8px; min-height: var(--jy-ctl); padding: 0 16px; }
/* quiet, on Panel */
.jy-again {
  gap: 8px;
  min-height: var(--jy-ctl);
  padding: 0 16px;
  background: var(--jy-panel);
  text-decoration: none;
  transition: background-color 180ms var(--jy-ease-out);
}
.jy-again svg { flex: none; color: var(--jy-muted); transition: color 180ms var(--jy-ease-out); }
.jy-again:hover svg { color: var(--jy-ink); }
.jy-again:hover { background: var(--jy-raised); }
/* Following, Aurora: on when Raised with the Ink line, as the other chosen things */
.jy-toggle {
  min-height: var(--jy-ctl);
  padding: 0 16px;
  background: var(--jy-panel);
  text-decoration: none;
  transition: background-color 180ms var(--jy-ease-out);
}
.jy-toggle[hidden] { display: none; }
.jy-toggle:hover { background: var(--jy-raised); }
.jy-toggle[aria-pressed="true"] { background: var(--jy-ink); color: var(--jy-space); }
.jy-toggle[aria-pressed="true"]:hover { background: color-mix(in srgb, var(--jy-ink) 86%, var(--jy-space)); }
.jy-root[data-mode="still"] .jy-toggle { display: none; }
/* Its words say what it will do. On a phone the eye shows too, struck through while they're
   hidden, and it has a row of its own at the top of Controls: on a small globe the thumbnails
   crowd it, so the way to hide them should be plain to see. */
.jy-previews svg { display: none; flex: none; }
.jy-previews:not(.is-hidden) .jy-previews-slash { display: none; }
.jy-root.jy-narrow:not([data-mode="still"]) .jy-previews svg { display: block; }
.jy-root.jy-narrow:not([data-mode="still"]) .jy-corner { flex-wrap: wrap; }
.jy-root.jy-narrow:not([data-mode="still"]) .jy-previews {
  order: -1;
  flex: 1 0 100%;
  justify-content: center;
  gap: 8px;
  min-height: var(--jy-row);
  box-shadow: inset 0 -1px 0 var(--jy-raised);
}
/* the row is long for these widths: the replay button keeps its icon, and its name for screen readers */
@media (max-width: 1369px) {
  .jy-root:not(.jy-narrow) .jy-again span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.jy-zoom { display: flex; }
.jy-zoom .jy-sq { width: var(--jy-row); height: auto; min-height: var(--jy-ctl); }
.jy-zoom .jy-sq + .jy-sq { box-shadow: inset 1px 0 0 var(--jy-raised); }
.jy-root[data-mode="still"] .jy-zoom { display: none; }
/* full screen, beside the zoom: one square, its corners pointing out, or in once it's on */
.jy-fullscreen { width: var(--jy-row); height: auto; min-height: var(--jy-ctl); }
.jy-fullscreen[hidden] { display: none; }
.jy-fullscreen[aria-pressed="true"] .jy-fs-enter,
.jy-fullscreen:not([aria-pressed="true"]) .jy-fs-leave { display: none; }

/* the facts ticker (facts.js) sits above the time controls, at the end only */
.jy-facts-slot {
  left: var(--jy-m);
  bottom: calc(var(--jy-bottom) + var(--jy-row) + 8px);
  width: min(34em, calc(100% - 2 * var(--jy-m)));
}
.jy-facts-slot:empty { display: none; }
/* put away, it leaves a button in its corner to bring it back */
.jy-root:not(.jy-narrow).jy-facts-hidden .jy-facts-slot { opacity: 0; visibility: hidden; }
.jy-facts-show {
  position: absolute;
  z-index: 2;
  left: var(--jy-m);
  bottom: calc(var(--jy-bottom) + var(--jy-row) + 8px);
  min-height: var(--jy-ctl);
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0 12px;
  background: var(--jy-panel);
  color: var(--jy-ink);
  font: 500 var(--jy-small) / 1.2 var(--jy-font);
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms var(--jy-ease-exit), visibility 0s linear 150ms, background-color 180ms var(--jy-ease-out);
}
.jy-locked .jy-facts-show {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms var(--jy-ease-out), visibility 0s, background-color 180ms var(--jy-ease-out);
}
.jy-facts-show:hover { background: var(--jy-raised); }
.jy-root[data-mode="still"] .jy-facts-show { display: none; }
/* in the details, where the end view has no room for the banner, there's nothing to put away */
.jy-details-facts .cf-hide { display: none; }
/* below this the banner and the details would meet; above it the banner stays put */
@media (max-width: 1099px) {
  .jy-panel-open .jy-facts-slot,
  .jy-panel-open .jy-facts-show { opacity: 0; visibility: hidden; }
}
.jy-narrow.jy-panel-open .jy-facts-slot,
.jy-narrow.jy-panel-open .jy-facts-show { opacity: 0; visibility: hidden; }

/* The dock, top right, at the end only: the summary bar with its tabs, and under it the
   details (.jy-panel, dropped down from the bar) or, on big screens, the viewfinder in
   the same place. Below the bar the box only passes the pointer through. */
.jy-dock {
  position: absolute;
  z-index: 4;
  top: var(--jy-nav);
  right: var(--jy-m);
  /* down to just above the bottom-right controls */
  bottom: calc(var(--jy-bottom) + var(--jy-row) + 16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  width: clamp(380px, 18vw, 420px);
  max-width: calc(100% - 2 * var(--jy-m));
  pointer-events: none;
}
.jy-root[data-mode="still"] .jy-dock { display: none; }

/* where it is, over [Stats | Pictures] [Hide]; on one row where the viewfinder shows (below) */
.jy-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  min-height: var(--jy-ctl);
  background: var(--jy-panel);
  color: var(--jy-ink);
  font: 400 var(--jy-small) / 1.2 var(--jy-font);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms var(--jy-ease-exit), visibility 0s linear 150ms;
}
.jy-ui-on .jy-summary {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms var(--jy-ease-out), visibility 0s;
}
/* the credits open in the same corner: the dock steps aside but stays laid out, so the
   framing doesn't move (and the same below for the viewfinder) */
.jy-credits-open .jy-summary { opacity: 0; visibility: hidden; }
/* a long place name takes a second line, so the altitude is never cut off */
.jy-summary-text { flex: 1 1 100%; min-width: 0; margin: 0; padding: 8px 12px; }
.jy-summary-name { margin-right: 0.25em; font-size: var(--jy-body); font-weight: 500; letter-spacing: 0; }
.jy-summary-tools { position: relative; display: flex; flex: 1 1 100%; box-shadow: inset 0 1px 0 var(--jy-raised); }
/* Cycle's speed, from a right-click on it: under the tabs, over the picture or the details */
.jy-cycle-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  right: 0;
  min-width: 200px;
  padding: 6px 0;
  background: var(--jy-panel);
  box-shadow: 0 0 0 1px var(--jy-raised);
}
.jy-cycle-menu[hidden] { display: none; }
.jy-cycle-menu-title { margin: 0; padding: 4px 12px 6px; color: var(--jy-muted); font-size: var(--jy-small); }
.jy-cycle-speed {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  margin: 0;
  border: 0;
  padding: 0 12px;
  background: none;
  color: var(--jy-ink);
  font: inherit;
  font-size: var(--jy-small);
  text-align: left;
  cursor: pointer;
}
.jy-cycle-speed::before { content: ''; flex: none; width: 1em; }
.jy-cycle-speed[aria-checked="true"]::before { content: '\2713'; }
.jy-cycle-speed:hover,
.jy-cycle-speed:focus-visible { background: var(--jy-raised); outline: none; }
.jy-tabs { display: flex; flex: 1; }
.jy-tabs .jy-tab { flex: 1; }
.jy-cycle { box-shadow: inset 1px 0 0 var(--jy-raised); }
/* While it runs: its underline is faint, and the line along the bar's foot fills as the turn goes */
.jy-cycle[aria-pressed="true"] { box-shadow: inset 1px 0 0 var(--jy-raised), inset 0 -2px 0 color-mix(in srgb, var(--jy-ink) 30%, transparent); }
.jy-summary { position: relative; }
.jy-cycle-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--jy-ink);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
}
.jy-cycle-bar.is-running { opacity: 1; animation: jy-cycle-run linear forwards; }
@keyframes jy-cycle-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.jy-dock-hidden .jy-cycle-bar { display: none; }
.jy-cycle-pace { flex: none; gap: 4px; box-shadow: inset 1px 0 0 var(--jy-raised); }
.jy-cycle-pace svg { flex: none; }
.jy-tab[hidden] { display: none; }
/* holding a turn while the pointer or the keyboard is on the panel */
.jy-cycle.is-paused { color: var(--jy-muted); }
.jy-cycle[aria-pressed="true"].is-paused { box-shadow: inset 1px 0 0 var(--jy-raised), inset 0 -2px 0 var(--jy-muted); }
.jy-dock-toggle { flex: none; box-shadow: inset 1px 0 0 var(--jy-raised); }
/* The chevron turns even when the system prefers reduced motion (the site's choice,
   as the facts banner and the viewfinder); only ?motion=reduced (.jy-calm) stops it. */
.jy-dock-toggle svg { flex: none; transition: transform 240ms var(--jy-ease-out) !important; }
.jy-dock-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.jy-calm .jy-dock-toggle svg { transition: none !important; }
/* The whole panel put away: only the button to bring it back, in the same corner. The dock
   stays laid out, so the framing doesn't move. */
.jy-root:not(.jy-narrow).jy-dock-hidden .jy-summary { justify-self: end; width: auto; }
.jy-root:not(.jy-narrow).jy-dock-hidden .jy-summary-text,
.jy-root:not(.jy-narrow).jy-dock-hidden .jy-tabs { display: none; }
.jy-root:not(.jy-narrow).jy-dock-hidden .jy-summary-tools { flex: none; box-shadow: none; }
.jy-root:not(.jy-narrow).jy-dock-hidden .jy-dock-toggle { box-shadow: none; color: var(--jy-ink); }
/* the tabs where they drop down: Stats and Pictures are the two halves of the details */
.jy-root .jy-panel[data-tab="stats"] .jy-latest { display: none; }
.jy-root .jy-panel[data-tab="pictures"] :is(.jy-panel-head, [data-ref="aka"], .jy-over, .jy-panel-zoom, .jy-facts, .jy-elements, .jy-aurora-note, .jy-details-facts, .jy-retry) { display: none; }
.jy-root .jy-panel[data-tab="pictures"] .jy-latest { margin-top: 12px; }

/* The picture viewfinder (viewfinder.js): big screens only, at the end only. The
   dock's box is set here, whatever the picture and before the module loads, because
   the framing keeps the Earth's limb under it from the start (computeFrame). The
   picture is 4:3 and never larger than its own 640 x 480: it gives way to the height,
   and on narrower screens to the headline. The bar needs 488px to hold its words and
   its tabs on one row, so on the shortest of these the picture sits centred in a wider
   frame. The media query is VIEWFINDER_MEDIA in journey.js. */
.jy-vf-slot { display: none; }
.jy-dock-grip { display: none; }
@media (min-width: 1360px) and (min-height: 760px) and (min-aspect-ratio: 4/5) {
  .jy-dock {
    --vf-inset: 12px;
    --vf-gap: 4px;
    --vf-band-top: 44px;
    --vf-band-bottom: 28px;
    --vf-caption: 84px;
    --vf-pic-h: min(480px,
      calc(68.6vh - var(--jy-nav) - var(--jy-ctl) - var(--vf-gap) - var(--vf-band-top) - var(--vf-band-bottom) - var(--vf-caption)),
      calc((50vw - 112px) * 3 / 4));
    bottom: auto;
    width: max(488px, calc(var(--vf-pic-h) * 4 / 3 + 2 * var(--vf-inset)));
    height: calc(var(--jy-ctl) + var(--vf-gap) + var(--vf-band-top) + var(--vf-pic-h) + var(--vf-band-bottom) + var(--vf-caption));
  }
  .jy-summary { flex-wrap: nowrap; }
  .jy-summary-text { flex: 1 1 auto; padding: 0 12px; }
  .jy-summary-tools { flex: none; align-self: stretch; box-shadow: none; }
  .jy-tabs { flex: none; }
  .jy-tabs .jy-tab { flex: none; }
  .jy-vf-slot {
    grid-area: 2 / 1;
    display: block;
    min-height: 0;
    margin-top: var(--vf-gap);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 150ms var(--jy-ease-exit), visibility 0s linear 150ms;
  }
  .jy-locked .jy-vf-slot {
    opacity: 1;
    visibility: visible;
    transition: opacity 240ms var(--jy-ease-out), visibility 0s;
  }
  .jy-vf-slot > * { pointer-events: auto; }
  /* the details take its place; it keeps its picture until they close */
  .jy-panel-open .jy-vf-slot,
  .jy-dock-hidden .jy-vf-slot,
  .jy-credits-open .jy-vf-slot {
    opacity: 0;
    visibility: hidden;
    transition: opacity 120ms var(--jy-ease-exit), visibility 0s linear 120ms;
  }

  /* Sized by the visitor with the grip below: the picture's height, held on screen, above
     the bottom-right controls and short of the headline's side */
  .jy-dock.jy-dock-sized {
    --vf-pic-h: min(var(--vf-user-h),
      calc(100vh - var(--jy-nav) - var(--jy-ctl) - var(--vf-gap) - var(--vf-band-top) - var(--vf-band-bottom) - var(--vf-caption) - var(--jy-bottom) - var(--jy-row) - 96px),
      calc((62vw - 2 * var(--vf-inset)) * 3 / 4));
  }
  /* just outside the dock's bottom-left corner, clear of the caption: drag out to make it bigger,
     in to make it smaller */
  .jy-dock-grip {
    position: absolute;
    z-index: 4;
    left: -32px;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--jy-raised);
    color: var(--jy-muted);
    cursor: nesw-resize;
    touch-action: none;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 150ms var(--jy-ease-exit), visibility 0s linear 150ms, color 180ms var(--jy-ease-out);
  }
  .jy-locked .jy-dock-grip {
    opacity: 1;
    visibility: visible;
    transition: opacity 240ms var(--jy-ease-out), visibility 0s, color 180ms var(--jy-ease-out);
  }
  .jy-dock-hidden .jy-dock-grip,
  .jy-credits-open .jy-dock-grip {
    opacity: 0;
    visibility: hidden;
    transition: opacity 120ms var(--jy-ease-exit), visibility 0s linear 120ms, color 180ms var(--jy-ease-out);
  }
  /* no picture yet (none loaded, or none nearly whole): nothing to size */
  .jy-root .jy-vf-slot[hidden] ~ .jy-dock-grip { display: none; }
  .jy-dock-grip::before { content: ""; position: absolute; inset: -8px; } /* a bigger target than it looks */
  .jy-dock:hover .jy-dock-grip,
  .jy-dock-grip:hover { color: var(--jy-ink); }
  .jy-dock-grip:focus-visible { outline: 2px solid var(--jy-blue); outline-offset: 2px; }

  /* the bottom row's repo-and-last-update line gives way while the picture shows */
  .jy-root:not(.jy-dock-hidden):not(.jy-credits-open):has(.jy-vf-slot:not([hidden])) .jy-meta { display: none; }

  /* The details take the picture's place in the same box and over it, so a switch is a
     cross-fade: the box keeps its size, nothing shows through or below them, and they don't
     slide over the bar (which stays on top, with Cycle's menu) */
  .jy-summary { position: relative; z-index: 3; }
  .jy-root .jy-panel {
    position: relative;
    z-index: 2;
    align-self: stretch;
    align-content: start;
    margin-top: var(--vf-gap);
    transform: none;
  }
  .jy-root .jy-panel.is-on { transform: none; }
}
/* The map (journey.js, with site/globe/map2d.js): where it is now, as the Orbit page draws it,
   in the viewfinder's place as a third tab and a third turn of Cycle */
.jy-map-slot { display: none; }
@media (min-width: 1360px) and (min-height: 760px) and (min-aspect-ratio: 4/5) {
  .jy-map-slot {
    grid-area: 2 / 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: var(--vf-gap);
    background: var(--jy-panel);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 150ms var(--jy-ease-exit), visibility 0s linear 150ms;
  }
  /* up only while nothing else has its place: Stats, the panel put away, the credits */
  .jy-root.jy-locked.jy-map-on:not(.jy-panel-open):not(.jy-dock-hidden):not(.jy-credits-open) .jy-map-slot {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 240ms var(--jy-ease-out), visibility 0s;
  }
  .jy-root.jy-map-on .jy-vf-slot {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 120ms var(--jy-ease-exit), visibility 0s linear 120ms;
  }
  .jy-map-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
  .jy-map-zoom { position: absolute; z-index: 1; top: 8px; right: 8px; display: flex; }
  .jy-map-zoom .jy-sq + .jy-sq { box-shadow: inset 1px 0 0 var(--jy-raised); }
  .jy-map-caption { margin: 0; padding: 8px 12px; color: var(--jy-muted); font-size: var(--jy-small); line-height: 1.35; }
  /* Globe | Map, as on the Orbit page */
  .jy-map-kind { position: absolute; z-index: 1; top: 8px; left: 8px; display: flex; background: var(--jy-panel); }
  /* the globe (globe/scene.js) and its labels, styled here rather than with the Orbit page's globe.css */
  .jy-globe-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
  .jy-globe-canvas[hidden],
  .jy-map-slot .cg-labels[hidden] { display: none; }
  .jy-map-slot .cg-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
  .jy-map-slot .cg-label {
    position: absolute;
    top: 0;
    left: 0;
    margin: -9px 0 0 12px;
    font: 500 var(--jy-small) / 1.2 var(--jy-font);
    white-space: nowrap;
    color: var(--jy-ink);
    text-shadow: 0 0 2px #05070A, 0 0 1px #05070A;
  }
  .jy-map-slot .cg-label-sat { color: var(--jy-blue); }
}

/* on the shortest of these the frame is narrow and the caption's lines may wrap */
@media (min-width: 1360px) and (max-height: 859px) and (min-height: 760px) and (min-aspect-ratio: 4/5) {
  .jy-dock { --vf-caption: 124px; }
}

@media (max-width: 1199px) {
  /* the corner row goes above the time row so the two never meet */
  .jy-root:not(.jy-narrow) .jy-corner { bottom: calc(var(--jy-bottom) + var(--jy-row) + 8px); }
  .jy-root:not(.jy-narrow) .jy-facts-slot,
  .jy-root:not(.jy-narrow) .jy-facts-show { bottom: calc(var(--jy-bottom) + 2 * var(--jy-row) + 16px); }
  .jy-root:not(.jy-narrow) .jy-dock { bottom: calc(var(--jy-bottom) + 2 * var(--jy-row) + 24px); }
}
/* the same wherever they would still meet (placeMeta in journey.js measures it) */
.jy-root.jy-corner-up:not(.jy-narrow) .jy-corner { bottom: calc(var(--jy-bottom) + var(--jy-row) + 8px); }
.jy-root.jy-corner-up:not(.jy-narrow) .jy-facts-slot,
.jy-root.jy-corner-up:not(.jy-narrow) .jy-facts-show { bottom: calc(var(--jy-bottom) + 2 * var(--jy-row) + 16px); }
.jy-root.jy-corner-up:not(.jy-narrow) .jy-dock { bottom: calc(var(--jy-bottom) + 2 * var(--jy-row) + 24px); }

/* Under the picture where it shows and there's room above the corner's row (placeFacts in
   journey.js moves them into the dock): the facts hang from its foot, as wide as it, and Show
   facts waits at its right when they're put away. Credits takes that side while it's open. */
.jy-root:not(.jy-narrow) .jy-dock > .jy-facts-slot {
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  width: 100%;
}
.jy-root:not(.jy-narrow) .jy-dock > .jy-facts-slot .cf { max-width: none; }
.jy-root:not(.jy-narrow) .jy-dock > .jy-facts-show {
  top: calc(100% + 8px);
  bottom: auto;
  left: auto;
  right: 0;
  pointer-events: auto; /* the dock's box passes the pointer through */
}
.jy-root.jy-credits-open .jy-dock > :is(.jy-facts-slot, .jy-facts-show) { opacity: 0; visibility: hidden; }

/* ---- marks over the canvas: pins and the satellite -------------------------------- */

.jy-marks {
  position: absolute;
  inset: 0;
  z-index: 1; /* its own layer: pins never cover the text, the card or the panels */
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms var(--jy-ease-exit), visibility 0s linear 150ms;
}
.jy-ui-on .jy-marks {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms var(--jy-ease-out), visibility 0s;
}

.jy-pin {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: calc(32px * var(--jy-ui, 1) + 4px);
  height: calc(24px * var(--jy-ui, 1) + 4px);
  border: 2px solid var(--jy-ink);
  background: var(--jy-space);
  pointer-events: auto;
  will-change: transform;
}
.jy-pin.jy-pin-square { width: calc(24px * var(--jy-ui, 1) + 4px); }
.jy-narrow .jy-pin { width: 28px; height: 22px; }
.jy-narrow .jy-pin.jy-pin-square { width: 22px; }
/* a touch target bigger than the picture */
@media (pointer: coarse) { .jy-pin::before { content: ""; position: absolute; inset: -12px; } }
.jy-pin img { display: block; width: 100%; height: 100%; object-fit: contain; }
.jy-pin.is-off { visibility: hidden; }
.jy-pin.in-pile,
.jy-pin.is-under { pointer-events: none; }
/* a phone: a picture that would sit on the satellite's name gives way to it */
.jy-pin.is-on-label,
.jy-pile-count.is-on-label { opacity: 0; pointer-events: none; }
/* A dark frame (black, noise, or the Sun as a dot) has nothing to show at this size: a
   small dim square rather than a black thumbnail in a frame. It still takes a pointer
   over a fair area, and its card shows the picture. */
.jy-marks .jy-pin.jy-pin-dark {
  width: 10px;
  height: 10px;
  border: 1px solid color-mix(in srgb, var(--jy-ink) 55%, transparent);
  background: color-mix(in srgb, var(--jy-space) 60%, transparent);
}
.jy-marks .jy-pin.jy-pin-dark::before { content: ""; position: absolute; inset: -10px; }
@media (pointer: coarse) { .jy-marks .jy-pin.jy-pin-dark::before { inset: -18px; } }
.jy-marks .jy-pin.jy-pin-dark:hover,
.jy-marks .jy-pin.jy-pin-dark:focus-visible { border-color: var(--jy-ink); }

/* Photo previews hidden: every pin is a small dim mark like the dark ones, and says so only on hover. */
.jy-previews-hidden .jy-marks .jy-pin {
  width: 10px;
  height: 10px;
  border: 1px solid color-mix(in srgb, var(--jy-ink) 55%, transparent);
  background: color-mix(in srgb, var(--jy-space) 60%, transparent);
}
.jy-previews-hidden .jy-marks .jy-pin::before { content: ""; position: absolute; inset: -10px; }
/* a finger needs the full 44px around the dot */
@media (pointer: coarse) { .jy-previews-hidden .jy-marks .jy-pin::before { inset: -17px; } }
.jy-previews-hidden .jy-marks .jy-pin:hover,
.jy-previews-hidden .jy-marks .jy-pin:focus-visible { border-color: var(--jy-ink); }
.jy-previews-hidden .jy-pin img,
.jy-previews-hidden .jy-pile-count { display: none; }

.jy-pile-count {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--jy-ink);
  font-size: var(--jy-small);
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
}
/* a phone: the number on the pile's corner */
.jy-pile-count.is-badge {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--jy-ink);
  color: var(--jy-space);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.jy-pile-count[hidden] { display: none; }

/* the satellite and its label are one button; the label sits 12px right of the model */
.jy-sat {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  min-width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 0;
  padding: 0 4px 0 calc(22px + var(--jy-sat-off, 32px));
  background: none;
  color: var(--jy-ink);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 240ms var(--jy-ease-out);
}
.jy-sat.is-shown { opacity: 1; }
/* near the right edge (zoomed in on a phone): the label on the model's left instead (journey.js) */
.jy-sat.is-left { padding: 0 calc(22px + var(--jy-sat-off, 32px)) 0 4px; }
.jy-sat-label {
  font-size: var(--jy-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: opacity 240ms var(--jy-ease-out);
}
/* zoomed in close, where the model plainly is the satellite, the label fades (SAT_LABEL_MAX_PX in
   journey.js); the button stays, so a click there still opens its details */
.jy-sat.is-close .jy-sat-label { opacity: 0; }

/* hover card for a pin (or the list for a pile) */
.jy-card {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  max-width: calc(100% - 16px);
  padding: 12px;
  background: var(--jy-panel);
  opacity: 0;
  transition: opacity 180ms var(--jy-ease-out);
}
.jy-card.is-on { opacity: 1; }
.jy-card-item { display: block; color: var(--jy-ink); text-decoration: none; }
.jy-card-item img {
  display: block;
  width: 160px;
  height: 120px;
  object-fit: contain;
  background: var(--jy-space);
}
.jy-card-item img.is-square { width: 120px; }
.jy-card-place { display: block; margin-top: 8px; font-size: var(--jy-body); font-weight: 500; line-height: 1.3; }
.jy-card-time { display: block; color: var(--jy-muted); font-size: var(--jy-small); font-variant-numeric: tabular-nums; }
.jy-card-item:hover .jy-card-place { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.jy-card.is-list { display: grid; gap: 8px; max-height: 60%; overflow: auto; }
.jy-card.is-list .jy-card-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.jy-card.is-list .jy-card-item img { grid-row: 1 / 3; width: 64px; height: 48px; }
.jy-card.is-list .jy-card-item img.is-square { width: 48px; }
.jy-card.is-list .jy-card-place { margin-top: 0; }

/* ---- the satellite's details and the credits panel: top right ------------------------ */

.jy-panel,
.jy-credits {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--jy-raised) transparent;
  background: var(--jy-panel);
  opacity: 0;
}
.jy-credits {
  position: absolute;
  top: max(96px, calc(var(--jy-nav) + 32px));
  right: var(--jy-m);
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: clamp(360px, 18vw, 420px);
  max-width: calc(100% - 2 * var(--jy-m));
  /* down to just above the bottom-right controls */
  max-height: calc(100% - max(96px, calc(var(--jy-nav) + 32px)) - var(--jy-bottom) - var(--jy-row) - 16px);
  padding: 24px;
  transform: translateX(16px);
  transition: opacity 150ms var(--jy-ease-exit), transform 150ms var(--jy-ease-exit);
}
.jy-credits.is-on {
  opacity: 1;
  transform: none;
  transition: opacity 240ms var(--jy-ease-out), transform 240ms var(--jy-ease-out);
}
/* In the dock, under the bar, as one flat block with it. It drops down even when the
   system prefers reduced motion (the site's choice, as the facts banner and the
   viewfinder); only ?motion=reduced (.jy-calm) keeps it to a fade. */
.jy-panel {
  grid-area: 2 / 1;
  align-self: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: center;
  max-height: 100%;
  padding: 0 12px 16px;
  pointer-events: auto;
  transform: translateY(-8px);
}
.jy-root .jy-panel { transition: opacity 150ms var(--jy-ease-exit), transform 150ms var(--jy-ease-exit) !important; }
.jy-root .jy-panel.is-on {
  opacity: 1;
  transform: none;
  transition: opacity 240ms var(--jy-ease-out), transform 240ms var(--jy-ease-out) !important;
}
.jy-root.jy-calm .jy-panel,
.jy-root.jy-calm .jy-panel.is-on { transform: none; transition: opacity 150ms linear !important; }
/* closing (or not yet open): no clicks or hover for what's fading */
.jy-root .jy-panel:not(.is-on) { pointer-events: none; }
.jy-panel p,
.jy-credits p { margin: 0; }
/* open details wait out the story: shown again when the visitor comes back down */
.jy-root:not(.jy-ui-on) .jy-panel { visibility: hidden; opacity: 0; }

.jy-grab { display: none; }

/* The bar above names the satellite, says where it is and folds the details up, so the
   dock's details keep the title for screen readers only and show no Close. On a phone the
   bottom bar folds them up. */
.jy-root [data-ref="close"] { display: none; }
.jy-root:not(.jy-narrow) .jy-panel .jy-panel-head { grid-area: 1 / 2; margin: 0; }
.jy-root:not(.jy-narrow) .jy-panel .jy-panel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.jy-root:not(.jy-narrow) .jy-panel .jy-over { display: none; }
.jy-root:not(.jy-narrow) .jy-panel [data-ref="aka"] { grid-area: 1 / 1; }
.jy-root:not(.jy-narrow) .jy-panel-body { grid-column: 1 / -1; }

.jy-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -10px;
}
.jy-panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  outline: none;
}
.jy-panel-tools { display: flex; gap: 16px; }

.jy-small { font-size: var(--jy-small); line-height: 1.45; letter-spacing: 0.01em; }
.jy-muted { color: var(--jy-muted); }
.jy-over { margin-top: 12px !important; max-width: none; }
.jy-panel-zoom { margin-top: 4px !important; }
/* the facts, when the end view has no room for their banner */
.jy-details-facts { margin-top: 16px; }
.jy-details-facts:empty { display: none; }
.jy-details-facts .cf { max-width: none; padding: 0 8px 0 0; background: none; }

.jy-facts {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 16px 0 0;
}
.jy-facts dt { color: var(--jy-muted); font-size: var(--jy-small); line-height: 1.5; padding-top: 0.15em; }
.jy-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.jy-elements { margin-top: 16px !important; }
.jy-elements:not(.jy-muted) { color: var(--jy-ink); }
.jy-retry { margin-top: 12px !important; }

.jy-bar {
  display: inline-block;
  max-width: 100%;
  height: 0.9em;
  vertical-align: -0.1em;
  background: var(--jy-raised);
}

.jy-latest { margin-top: 32px; }
.jy-latest-title { margin: 0 0 12px; font-size: var(--jy-body); font-weight: 600; }
.jy-latest-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--jy-space);
}
/* a picture that never fully came down: the frame is shorter (rowsWithData), and only
   the rows with data show, from the top */
.jy-latest-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.jy-latest-failed {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  aspect-ratio: 4 / 3;
  padding: 16px;
  background: var(--jy-space);
  font-size: var(--jy-small);
}
.jy-latest-place { margin-top: 12px !important; font-weight: 500; }
.jy-latest .jy-link { display: inline-block; margin-top: 12px; }
/* a phone has no "See all n pictures" beside the globe: it's here */
.jy-latest .jy-latest-all { display: none; }
.jy-narrow .jy-latest .jy-latest-all { display: inline-block; margin-left: 16px; }
/* on touch a taller place to tap than the words, with nothing about them moved */
@media (pointer: coarse) {
  .jy-latest .jy-link { position: relative; }
  .jy-latest .jy-link::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    top: 50%;
    height: 44px;
    margin-top: -22px;
  }
}

/* credits */
.jy-credits { gap: 12px; font-size: var(--jy-small); line-height: 1.5; letter-spacing: 0.01em; color: var(--jy-muted); }
.jy-credits .jy-panel-head { margin-bottom: 4px; color: var(--jy-ink); }
.jy-credits .jy-link { text-underline-offset: 3px; }
.jy-credits-logo { display: block; align-self: flex-start; width: auto; height: 28px; margin: 4px 0; }
.jy-credits-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--jy-body);
}
.jy-credits-links .jy-link { display: inline-flex; align-items: center; min-height: 44px; }
.jy-news-slot:empty { display: none; }

/* ---- a phone: a bottom bar, and one thing at a time above it ------------------------------ */

/* the Sun and the Moon's names, beside them, as the satellite's label */
.jy-sky-label {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  color: var(--jy-ink);
  font-size: var(--jy-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms var(--jy-ease-out);
}
.jy-sky-label.is-on { opacity: 1; }

/* close up, the satellite's parts say what they are, by the pointer (journey.js, paintPartLabel) */
.jy-part-label {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6; /* over the panels too: it goes where the pointer is */
  box-sizing: border-box;
  width: max-content;
  max-width: min(280px, calc(100% - 16px));
  padding: 8px 12px;
  background: color-mix(in srgb, var(--jy-panel) 94%, transparent);
  box-shadow: 0 0 0 1px var(--jy-raised);
  font-size: var(--jy-small);
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms var(--jy-ease-out);
}
.jy-part-label.is-on { opacity: 1; }
.jy-part-name { display: block; color: var(--jy-ink); font-weight: 600; letter-spacing: 0.01em; }
.jy-part-note { display: block; color: var(--jy-muted); }

/* [Stats] [Pictures] [Facts] [Controls], from the story's end. A flat Panel strip across
   the bottom edge; what's open has the Ink line, at the top because the bar is at the bottom. */
.jy-tabbar { display: none; }
.jy-root.jy-narrow:not([data-mode="still"]) .jy-tabbar {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--jy-panel);
  box-shadow: inset 0 1px 0 var(--jy-raised);
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms var(--jy-ease-exit), visibility 0s linear 150ms;
}
.jy-root.jy-narrow.jy-locked:not([data-mode="still"]) .jy-tabbar {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms var(--jy-ease-out), visibility 0s;
}
.jy-tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: var(--jy-tabbar);
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  color: var(--jy-muted);
  font: 500 13px / 1.1 var(--jy-font);
  letter-spacing: 0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms var(--jy-ease-out), color 180ms var(--jy-ease-out);
}
.jy-tabbar-item[aria-pressed="true"] { background: var(--jy-raised); box-shadow: inset 0 2px 0 var(--jy-ink); color: var(--jy-ink); }

.jy-narrow .jy-clock { min-width: 0; flex: 1; padding: 4px 8px 4px 16px; }
.jy-narrow .jy-speed span { min-width: 44px; padding: 0 4px; }
.jy-narrow .jy-now { padding: 0 12px; }

/* Controls, above the bar and edge to edge: [clock | speeds | Now] over [replay] [Following] [Aurora] [- | +]
   (without WebGL there's no bar, and See all n pictures stays in the corner) */
.jy-narrow .jy-corner { left: var(--jy-m); }
.jy-root.jy-narrow:not([data-mode="still"]) .jy-time {
  left: 0;
  right: 0;
  /* above the corner's rows (Hide photo previews, then the rest), as tall as placeMeta measures them */
  bottom: calc(var(--jy-tabbar) + env(safe-area-inset-bottom) + var(--jy-corner-h, 2 * var(--jy-row)));
  justify-content: space-between;
  padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
  box-shadow: inset 0 1px 0 var(--jy-raised);
}
.jy-root.jy-narrow:not([data-mode="still"]) .jy-corner {
  left: 0;
  right: 0;
  bottom: calc(var(--jy-tabbar) + env(safe-area-inset-bottom));
  justify-content: space-between;
  gap: 0;
  padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
  background: var(--jy-panel);
  box-shadow: inset 0 1px 0 var(--jy-raised);
}
.jy-root.jy-narrow:not([data-mode="still"]) .jy-all { display: none; }
.jy-root.jy-narrow:not([data-mode="still"]) .jy-again { background: none; }
.jy-narrow .jy-toggle { padding: 0 12px; }
/* phones (and a phone on its side, where the controls have the right-hand column): the replay
   button keeps its icon, and its name for screen readers, so the row fits */
.jy-root.jy-narrow.jy-wide-phone:not([data-mode="still"]) .jy-again span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 519px) {
  .jy-root.jy-narrow:not([data-mode="still"]) .jy-again span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.jy-root.jy-narrow:not([data-mode="still"]):not(.jy-phone-controls) .jy-time,
.jy-root.jy-narrow:not([data-mode="still"]):not(.jy-phone-controls) .jy-corner { opacity: 0; visibility: hidden; }

/* the facts, on request, just above the bar; the bar is what puts them away */
.jy-root.jy-narrow:not([data-mode="still"]) .jy-facts-slot { bottom: calc(var(--jy-tabbar) + env(safe-area-inset-bottom) + 8px); }
.jy-root.jy-narrow:not([data-mode="still"]):not(.jy-phone-facts) .jy-facts-slot { opacity: 0; visibility: hidden; }
.jy-narrow .jy-facts-show,
.jy-narrow .cf-hide { display: none; }
.jy-narrow.jy-credits-open .jy-facts-slot { opacity: 0; visibility: hidden; }

/* no summary bar on a phone, and the details are a sheet above the bottom bar */
.jy-narrow .jy-dock { position: static; display: block; width: auto; max-width: none; }
.jy-narrow .jy-summary { display: none; }
/* most phones: the seven controls fit across without squeezing the last one */
@media (max-width: 399px) {
  .jy-narrow .jy-toggle:not(.jy-previews) { padding: 0 8px; }
}
/* the narrowest phones: the row still fits, the clock whole */
@media (max-width: 340px) {
  .jy-narrow .jy-clock { padding: 4px 6px 4px 12px; }
  .jy-narrow .jy-clock-main { font-size: 15px; }
  .jy-narrow .jy-speed span { min-width: 44px; padding: 0 2px; }
  .jy-narrow .jy-now { padding: 0 8px; }
  .jy-narrow .jy-toggle:not(.jy-previews) { padding: 0 6px; }
  /* no room for full screen beside the rest (an iPhone has none anyway) */
  .jy-root.jy-narrow:not([data-mode="still"]) .jy-fullscreen { display: none; }
}

.jy-narrow .jy-panel {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-height: 120px;
  overflow: hidden;
  padding: 0 16px 16px;
  transform: translateY(16px);
}
.jy-narrow.jy-locked .jy-panel { bottom: calc(var(--jy-tabbar) + env(safe-area-inset-bottom)); }
.jy-narrow .jy-panel.is-on { transform: none; }
/* going, it keeps its height (is-open stays until it's gone) and slides down as it fades */
.jy-root.jy-narrow:not(.jy-calm) .jy-panel:not(.is-on) {
  transform: translateY(48px);
  transition: opacity 200ms var(--jy-ease-exit), transform 220ms var(--jy-ease-exit) !important;
}
/* opens at its natural height up to this share (SHEET_OPEN_SHARE in journey.js), so the satellite
   stays in view above it; once the handle has moved it, the height is set there */
.jy-narrow .jy-panel.is-open { max-height: 45%; overflow: auto; }
/* a phone on its side: the panel stands at the right, full height, and the Earth stays at the left */
.jy-narrow.jy-wide-phone .jy-panel {
  left: auto;
  width: min(440px, 55%);
  padding-right: max(16px, env(safe-area-inset-right));
}
.jy-narrow.jy-wide-phone .jy-panel.is-open { max-height: calc(100% - var(--jy-nav) - var(--jy-tabbar) - env(safe-area-inset-bottom)); }
/* while a phone's panel is up, the headline makes way for the satellite. It comes back once the
   camera has moved, not in the same moment. On its side, Controls and Facts take the right-hand
   column too, and the headline makes way for them as well. */
.jy-root.jy-narrow .jy-text { transition: opacity 260ms var(--jy-ease-out) 240ms, visibility 0s; }
.jy-root.jy-narrow.jy-panel-open .jy-text,
.jy-root.jy-narrow.jy-wide-phone:is(.jy-phone-controls, .jy-phone-facts) .jy-text {
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms var(--jy-ease-exit), visibility 0s linear 150ms;
}
.jy-root.jy-narrow.jy-wide-phone:not([data-mode="still"]) :is(.jy-time, .jy-corner, .jy-facts-slot) {
  left: auto;
  right: 0;
  width: min(440px, 55%);
}
.jy-narrow .jy-panel.is-sized { max-height: none; }
.jy-root.jy-narrow:not(.jy-calm) .jy-panel.is-on {
  transition: opacity 240ms var(--jy-ease-out), transform 240ms var(--jy-ease-out), height 280ms var(--jy-ease-out) !important;
}
/* under the finger it follows at once: this has to outrank the rule above, or the height eases behind it */
.jy-root.jy-narrow .jy-panel.is-dragging,
.jy-root.jy-narrow:not(.jy-calm) .jy-panel.is-on.is-dragging { transition: none !important; }
/* The handle: the whole strip across the top takes the finger, and stays there as the
   sheet's contents scroll under it. */
.jy-narrow .jy-grab {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(100% + 32px);
  height: 44px; /* a finger's worth */
  margin: 0 -16px -8px;
  border: 0;
  padding: 0;
  background: var(--jy-panel);
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.jy-narrow .jy-grab span { display: block; width: 36px; height: 4px; background: var(--jy-muted); transition: background-color 180ms var(--jy-ease-out); }
.jy-narrow .jy-panel.is-dragging .jy-grab { cursor: grabbing; }
.jy-narrow .jy-panel.is-dragging .jy-grab span { background: var(--jy-ink); }
/* the sheet's two links stand on lines of their own: a finger's height each */
.jy-narrow .jy-panel :is([data-ref="latestOpen"], .jy-latest-all) { display: flex; align-items: center; width: fit-content; min-height: 44px; }
.jy-narrow .jy-panel-head { margin-top: 0; }
.jy-narrow .jy-panel-tools { gap: 14px; }
.jy-narrow .jy-over { order: 1; margin-top: 0 !important; }
.jy-narrow .jy-panel [data-ref="aka"] { order: 2; margin-top: 8px; }
.jy-narrow .jy-panel-body { order: 3; }
.jy-narrow .jy-facts { grid-template-columns: 112px minmax(0, 1fr); }

.jy-narrow .jy-credits {
  top: calc(var(--jy-nav) - 4px);
  left: var(--jy-m);
  right: var(--jy-m);
  width: auto;
  max-height: calc(100% - var(--jy-nav) - var(--jy-bottom));
  padding: 16px;
  transform: translateY(-8px);
}
.jy-narrow .jy-credits.is-on { transform: none; }

/* ---- short screens (laptops with a small window, phones on their side) ------------------ */

@media (max-height: 640px) and (min-width: 600px) {
  .jy-root { --jy-display: clamp(43px, 10.8svh, 86px); }
  .jy-text { top: max(16vh, calc(var(--jy-nav) + 16px)); top: max(16svh, calc(var(--jy-nav) + 16px)); }
  .jy-tagline,
  .jy-sub { margin-top: 10px; }
  .jy-tagline + .jy-sub { margin-top: 6px; }
  .jy-sub + .jy-lead { margin-top: 12px; }
  .jy-cue { margin-top: 24px; }
}
/* small phones (320 x 640 and the like): the end view keeps the name and the live sentence, and
   the globe gets the room the two subheadings took */
@media (max-height: 700px) and (max-width: 599px) {
  .jy-root.jy-narrow.jy-composed .jy-sub { display: none; }
}
@media (max-height: 480px) {
  /* phones on their side: the name, the subheading and the live sentence */
  .jy-root.jy-composed .jy-tip,
  .jy-root.jy-composed .jy-hint { display: none; }
  /* wider, so where it is takes one line */
  .jy-root.jy-composed .jy-live-lead { margin-top: 12px; max-width: 60ch; }
  /* the bar stays clear of the headline */
  .jy-root:not(.jy-narrow) .jy-dock { width: min(380px, calc(100vw - 300px)); }
}

/* ---- a screen nobody touches (setUpTv in journey.js: explore/?tv, which tv/ opens) ----------
   Read from across a room, but the satellite comes first: the words a little bigger than on a
   desktop (about a tenth at 1920 x 1080, growing with the screen), the satellite drawn bigger.
   Once nobody has used the mouse or the keyboard for a few seconds (.jy-tv-idle), the
   controls go and only what's worth reading stays; using either brings them back. They keep
   their places, so nothing moves when they come and go. */
.jy-root.jy-tv {
  --jy-statement: clamp(28px, 1.9vw, 60px);
  --jy-lead: clamp(20px, 1.15vw, 36px);
  --jy-body: clamp(17px, 0.95vw, 30px);
  --jy-small: clamp(14px, 0.78vw, 24px);
  --jy-ctl: 44px;
  --jy-row: 52px;
}
/* nobody can click: the how-to lines go */
.jy-tv :is(.jy-tip, .jy-hint) { display: none; }
.jy-tv .jy-qr-code { width: calc(144px * var(--jy-ui, 1)); }
.jy-tv .cf { max-width: 28em; font-size: var(--jy-body); }
.jy-tv .cf-meta { font-size: var(--jy-small); }
@media (min-width: 1360px) and (min-height: 760px) and (min-aspect-ratio: 4/5) {
  .jy-tv .jy-dock { --vf-band-top: 50px; --vf-band-bottom: 32px; --vf-caption: 104px; }
}
.jy-tv.jy-tv-idle,
.jy-tv.jy-tv-idle * { cursor: none !important; }
.jy-tv.jy-tv-idle :is(.jy-corner, .jy-speed, .jy-now, .jy-summary-tools, .jy-facts-show, .cf-btn, .vf-nav, .jy-dock-grip) {
  visibility: hidden;
}

/* ---- reduced motion: opacity only, 200ms or less --------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .jy-root .jy-beat,
  .jy-root .jy-beat.is-past {
    transform: none !important;
    transition: opacity 200ms linear, visibility 0s linear 200ms !important;
  }
  .jy-root .jy-beat.is-on { transform: none !important; transition: opacity 200ms linear !important; }
  .jy-root .jy-credits,
  .jy-root .jy-credits.is-on { transform: none !important; transition: opacity 150ms linear !important; }
  .jy-root .jy-canvas,
  .jy-root .jy-over-canvas { transition: opacity 200ms linear !important; }
  .jy-root .jy-time,
  .jy-root .jy-corner,
  .jy-root .jy-facts-slot,
  .jy-root .jy-facts-show,
  .jy-root .jy-vf-slot,
  .jy-root .jy-summary,
  .jy-root .jy-marks,
  .jy-root .jy-card,
  .jy-root .jy-cue,
  .jy-root .jy-hint,
  .jy-root .jy-sat { transition: opacity 150ms linear !important; }
  .jy-root .jy-hint.is-off { transition: opacity 150ms linear, visibility 0s linear 150ms !important; }
}
