/* Editorial prototype â€” Swiss / scientific-journal look.
   Light: black ink on warm paper. Dark: the same print as a negative â€” ivory lines on ink-black, like a scratchboard. */

html {
  --paper: #f3f1ea; --ink: #141414; --ink-2: #6b6a66; --accent: #ff5a1f;
  --grain-blend: multiply; --grain-opacity: .35;
  --earth-filter: none; --earth-blend: multiply; --earth-opacity: 1;
  --moon-filter: none; --moon-blend: multiply;
  /* glows: on paper they read as a soft printed haze rather than light */
  --glow: rgba(20, 20, 20, .22); --glow-hot: rgba(255, 90, 31, .75); --atmo: rgba(95, 115, 150, .12);
  --limb-inset: 0; --limb: transparent;
}
html[data-theme="dark"] {
  --paper: #070707; --ink: #ebe8df; --ink-2: #8d8b84; --accent: #ff6a33;
  --grain-blend: screen; --grain-opacity: .18;
  /* the engraving as printed: dark lines on its own pale paper, a lit globe against the black sky */
  --earth-filter: none; --earth-blend: normal; --earth-opacity: 1;
  --moon-filter: brightness(.95) contrast(1.05); --moon-blend: normal;
  --glow: rgba(240, 236, 225, .5); --glow-hot: rgba(255, 106, 51, .9); --atmo: rgba(190, 210, 255, .15);
  --limb-inset: 0; --limb: rgba(240, 236, 225, .75);
}

.ed-app {
  padding: 0; height: 100dvh; min-height: 0; overflow: hidden; background: var(--paper); color: var(--ink);
  transition: background-color .4s, color .4s;
}
@media (min-width: 520px) and (min-height: 560px) { .ed-app { height: 100%; } }
/* status bar on paper */
.phone:has(.ed-app) .phone-ui { color: var(--ink); }
.phone:has(.ed-app) .phone-indicator { background: var(--ink); opacity: .75; }

.ed { position: relative; width: 100%; height: 100%; overflow: hidden; touch-action: pan-y; user-select: none; container-type: inline-size; }
/* paper grain */
.ed::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .48 0 0 0 0 .44 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Own paper and isolation: the engraving's multiply/screen blend happens inside this layer,
   so it can't break when layers above (the glows' filters) get composited separately */
.ed-earth { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: var(--paper); isolation: isolate; }
/* multiply: the engraving prints onto the paper, whatever is left of its own background disappears */
.ed-earth img {
  position: absolute; max-width: none; user-select: none; -webkit-user-drag: none;
  mix-blend-mode: var(--earth-blend); filter: var(--earth-filter); opacity: var(--earth-opacity);
}
.ed-field .moon { mix-blend-mode: var(--moon-blend); filter: var(--moon-filter); }
.ed-field .moon-bg { fill: var(--paper); }
/* the stars are a layer of their own, so their slow fall is moved by the compositor and never repaints the sky */
.ed-stars { position: absolute; inset: 0; pointer-events: none; }
.ed-star-layer, .ed-star-drift { position: absolute; inset: 0; will-change: transform; }
.ed-star-drift { animation: ed-star-fall linear infinite; }
.ed-star-drift svg { position: absolute; overflow: visible; }
.ed-stars .star { fill: var(--ink); }
@keyframes ed-star-fall { to { transform: translateY(var(--tile)); } }
.ed.is-detail:not(.is-leaving) .ed-star-drift { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ed-star-drift { animation: none; } }
/* the asteroids breathe light: their glow swells and settles slowly, each on its own beat (delay set from JS) */
@property --pulse { syntax: '<number>'; inherits: false; initial-value: 0; }
.ed-field .dot {
  --dot-glow: var(--glow);
  filter: drop-shadow(0 0 calc(2.5px + 1.6px * var(--pulse)) var(--dot-glow)) drop-shadow(0 0 calc(7px + 6px * var(--pulse)) var(--dot-glow));
  animation: ed-pulse 3.6s ease-in-out infinite alternate;
}
@keyframes ed-pulse { to { --pulse: 1; } }
/* back home after a page: the beat starts over from its calm end, where the flying copy's glow lands */
.ed-field g.is-returning .dot, .ed-field g.is-arriving .dot { animation-delay: 0s !important; } /* over its own inline beat */
.ed-field g.is-returning .dot { animation: none; }
@media (prefers-reduced-motion: reduce) { .ed-field .dot { animation: none; } }
.ed-field .limb { fill: none; stroke: var(--limb); stroke-width: .8; }
.ed-field { position: absolute; inset: 0; width: 100%; height: 100%; }

.ed-field .orbit { fill: none; stroke: var(--ink); stroke-opacity: .55; stroke-width: .8; stroke-dasharray: 1.2 3.2; }
.ed-field .orbit.is-focus { stroke-dasharray: none; stroke-opacity: .7; }
.ed-field .moon-ring { fill: none; stroke: var(--ink); stroke-opacity: .45; stroke-width: .8; stroke-dasharray: 1.2 3.2; }
.ed-field .reach { stroke: var(--accent); stroke-width: 1.4; }
.ed-field .moon-reach { stroke: var(--ink); stroke-opacity: .55; stroke-width: 1; }
.ed-field .name { font: 600 13px var(--sans); letter-spacing: .01em; fill: var(--ink); text-anchor: middle; }
.ed-field .tick { stroke: var(--ink); stroke-width: 1; }
.ed-field .note { font: 400 9.5px var(--mono); letter-spacing: .06em; fill: var(--ink-2); }
.ed-field .dist { font: 500 12px var(--mono); letter-spacing: .06em; fill: var(--accent); }
.ed-field .moon-name { font: 600 12px var(--sans); fill: var(--ink); }

/* Header: one quiet centred line with the date between faint arrows, as on the main screen */
.ed-head { position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--safe-top) + 12px); }
.ed-day { display: flex; align-items: center; justify-content: center; gap: 16px; font: 400 13px/1 var(--mono); letter-spacing: -0.01em; }
.ed-day h1 { font: inherit; white-space: nowrap; color: var(--ink); }
.ed-day button { color: var(--ink-2); padding: 6px 4px; font: inherit; transition: color .2s; }
.ed-day button:not(:disabled):hover { color: var(--ink); }
.ed-day button:disabled { opacity: .3; cursor: default; }
.ed-sound { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); padding: 8px; color: var(--ink-2); transition: color .2s; }
.ed-sound:hover { color: var(--ink); }
.ed-sound svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ed-sound .spk { fill: currentColor; stroke: none; }
.ed-sound .mute, .ed-sound[aria-pressed="false"] .wave { display: none; }
.ed-sound[aria-pressed="false"] .mute { display: inline; }

/* Dots: one per asteroid, the current one lit in the accent */
.ed-dots {
  position: absolute; z-index: 3; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center;
  transition: transform .6s cubic-bezier(.65, 0, .25, 1), opacity .45s ease;
}
.ed-dots button { padding: 8px 5px; display: grid; place-items: center; }
.ed-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .35; transition: opacity .25s, background-color .25s, transform .25s; }
.ed-dots button:hover i { opacity: .7; }
.ed-dots .is-on i { background: var(--accent); opacity: 1; transform: scale(1.35); box-shadow: 0 0 6px var(--glow-hot); }
.ed.is-detail .ed-dots { transform: translate(-50%, 80px); opacity: 0; pointer-events: none; }

/* Earth fades into the paper at the bottom of the screen (above the Earth) */
.ed-fade {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 20%; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--paper) 70%, transparent) 45%, var(--paper) 88%);
}

/* No iPhone frame on desktop: just the screen, a phone-proportioned sheet on the page's own paper */
html:has(.ed-app), html:has(.ed-app) body { background: var(--paper); transition: background-color .4s; }
@media (min-width: 520px) and (min-height: 560px) {
  .phone:has(.ed-app) { padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .phone:has(.ed-app) .ed-app { --safe-top: 20px; border-radius: 0; }
  .phone:has(.ed-app) .phone-ui, .phone:has(.ed-app) .phone-indicator { display: none; }
}

/* ---------------- Full details: the asteroid's page, set like a journal article ---------------- */
.ed-field .dot { cursor: pointer; }
/* The page fades in over the sky as the sky lets go; the asteroid itself flies up to become its header */
.ed-sheet {
  /* no paper of its own: the zooming sky stays visible through it until it has faded */
  position: absolute; inset: 0; z-index: 3; color: var(--ink);
  display: flex; flex-direction: column; opacity: 0; transition: opacity .3s ease;
}
.ed-sheet.is-open { opacity: 1; transition: opacity .45s ease .12s; }
.ed-sheet[hidden] { display: none; }

/* the sky letting go: a camera move toward the asteroid. Sky and Earth scale up around it (--zoom-origin, set from JS),
   so what is above it flies off upward and what is below flies off downward, fading on the way;
   the header leaves upward, the bottom fade downward */
.ed-field, .ed-stars, .ed-earth { transform-origin: var(--zoom-origin, 50% 50%); transition: transform .76s cubic-bezier(.65, 0, .25, 1), opacity .6s cubic-bezier(.5, 0, .75, 0); }
/* the orbits' dotted lines turn into heavy dashes as they scale up, so the sky's lines are gone before they get there */
.ed.is-detail .ed-field, .ed.is-detail .ed-stars { transition: transform .76s cubic-bezier(.65, 0, .25, 1), opacity .32s ease-out; }
.ed-head, .ed-fade { transition: transform .6s cubic-bezier(.65, 0, .25, 1), opacity .45s ease; }
.ed.is-detail .ed-field, .ed.is-detail .ed-stars, .ed.is-detail .ed-earth { transform: translate(var(--zoom-shift, 0px, 0px)) scale(var(--zoom-scale, 3.2)); opacity: 0; }
/* !important: setting the sky's pose out of sight must never animate, whatever transition another state asks for (is-leaving) */
.ed.is-snap .ed-field, .ed.is-snap .ed-stars, .ed.is-snap .ed-earth { transition: none !important; }
/* the way back is slower than the way in */
.ed.is-leaving .ed-field, .ed.is-leaving .ed-stars, .ed.is-leaving .ed-earth { transition: transform 1.15s cubic-bezier(.65, 0, .25, 1), opacity .95s cubic-bezier(.5, 0, .75, 0); }
.ed.is-leaving .ed-head, .ed.is-leaving .ed-fade { transition: transform .9s cubic-bezier(.65, 0, .25, 1) .25s, opacity .7s ease .3s; }
.ed.is-leaving .ed-sheet { transition: opacity .5s ease; }
/* back home from the page: the labels return with the sky, and the line to Earth draws down from the asteroid as it comes;
   the dot, halo and orbit stay hidden while the flying copy stands in for them, then the halo comes up */
.ed-field g.is-returning > .dot, .ed-field g.is-returning > .halo, .ed-field g.is-returning > .orbit, .ed-field g.is-returning > .dist { visibility: hidden; }
.ed-field g.is-returning .reach { animation: ed-draw 1.15s cubic-bezier(.65, 0, .25, 1) both; }
.ed-field g.is-arriving .halo, .ed-field g.is-arriving .dist { animation: ed-arrive .45s ease-out both; }
@keyframes ed-draw { from { stroke-dasharray: 1 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1 1; stroke-dashoffset: 0; } }
@keyframes ed-arrive { from { opacity: 0; } }
.ed.is-detail .ed-head { transform: translateY(-60px); opacity: 0; }
.ed.is-detail .ed-fade { transform: translateY(100%); opacity: 0; }
.ed.is-detail .ed-field, .ed.is-detail .ed-head { pointer-events: none; }
.ed-field g.is-flying > * { visibility: hidden; }

/* the asteroid as a header: a lit sphere in the accent, engraved shading on its dark side, glowing */
/* the asteroid and its orbit sit in the middle of the cover; the page's words flow around them */
.ed-hero { position: absolute; left: 0; right: 0; top: calc(52cqh - 105px); height: 210px; pointer-events: none; }
.ed-hero-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent); }
/* the orbit, as it looks when focused on the sky: a solid hairline (on the page and while flying) */
.ed-hero-orbit circle, .ed-ghost-orbit circle { fill: none; stroke: var(--ink); stroke-opacity: .7; stroke-width: .8; }
.ed-hero-orbit circle { stroke-dasharray: 3 4; stroke-opacity: .55; }
.ed-ghost-orbit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible; }
.ed-hero-orbit { visibility: hidden; }
.ed-sheet.is-landed .ed-hero-orbit { visibility: visible; }
.ed-hero-dot {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--accent) 55%, #fff) 0%, var(--accent) 42%, color-mix(in srgb, var(--accent) 62%, #000) 100%);
  box-shadow: 0 0 14px var(--glow-hot), 0 0 46px color-mix(in srgb, var(--glow-hot) 45%, transparent);
  visibility: hidden;
}
.ed-hero-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .22) 0 .8px, transparent .8px 3px);
  -webkit-mask: radial-gradient(circle at 32% 28%, transparent 38%, #000 82%); mask: radial-gradient(circle at 32% 28%, transparent 38%, #000 82%);
}
/* the header sphere only marks the place; what you see is the travelling asteroid (#actor) */
/* it travels over the page's lines (the cover's orbit passes behind it), and only slips under the content
   on the way to and from a screen where something stands in front of it (the size reference) */
/* no will-change: as a layer it would be drawn at its header size and blown up blurry on screens where it is bigger (Size) */
.ed-actor { left: 0; top: 0; margin: 0; z-index: 2; pointer-events: none; }
.ed-actor.is-under { z-index: 0; }
.sheet-body { position: relative; z-index: 1; }
.ed-sheet.is-landed .ed-actor { visibility: visible; }
.ed-sheet.is-landed [data-actor] { visibility: hidden; }
.sheet-bar { position: relative; z-index: 3; }
.ed-sheet.is-landed .sheet-bar { background: var(--paper); }
/* the flying copy, above everything while it travels */
/* no will-change: as a layer it would be drawn once at its small starting size and blown up blurry,
   then snap sharp when the page's copy takes over */
.ed-hero-dot.is-ghost {
  left: 0; top: 0; margin: 0; z-index: 5; visibility: visible; pointer-events: none;
  /* --flat (0â€“100%) lays a flat accent over the shading, so at the sky's end it is the sky's plain glowing disc */
  /* --g1/--g2: glow sizes and --hot: white-to-accent glow, set per frame by the flight */
  --glow-c: color-mix(in srgb, var(--glow-hot) var(--hot, 100%), var(--glow));
  box-shadow: inset 0 0 0 46px color-mix(in srgb, var(--accent) var(--flat, 0%), transparent), 0 0 var(--g1, 14px) var(--glow-c), 0 0 var(--g2, 46px) color-mix(in srgb, var(--glow-c) 45%, transparent);
}
.ed-hero-dot.is-ghost::after { opacity: calc(1 - var(--flatn, 0)); }
/* leaving from behind the size reference: it starts under the fading page, so the drawing in front of it doesn't jump behind */
.ed-hero-dot.is-ghost.is-under, .ed-ghost-orbit.is-under { z-index: 2; }
/* a white (unselected) asteroid warms to the accent as it flies in: an ink disc over it fades away, the glow grows */
.ed-hero-dot.is-ghost.from-ink::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); z-index: 1;
  animation: ed-warm .45s ease-out both;
}
@keyframes ed-warm { from { opacity: 1; } to { opacity: 0; } }

/* the text falls into place block by block */
.ed-cascade { animation: ed-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ed-rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .ed-cascade { animation: none; } }

.sheet-bar {
  flex: none; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  padding: calc(var(--safe-top) + 6px) 14px 10px; border-bottom: 1px solid transparent; transition: border-color .25s;
  font: 400 13px/1 var(--mono);
}
.sheet-bar button:focus:not(:focus-visible) { outline: none; }
.sheet-bar button { color: var(--ink); font: 400 18px/1 var(--sans); padding: 6px 4px; justify-self: start; }
.sheet-bar-name { text-align: center; font: 600 14px/1 var(--sans); opacity: 0; transition: opacity .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-bar-fig { justify-self: end; white-space: nowrap; color: var(--ink-2); font-size: 11px; letter-spacing: .06em; }
.ed-sheet.is-stuck .sheet-bar { border-bottom-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.ed-sheet.is-stuck .sheet-bar-name { opacity: 1; }

.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 22px; scrollbar-width: none; overscroll-behavior: contain; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-loading { font: 400 11px var(--mono); color: var(--ink-2); letter-spacing: .06em; margin-top: 24px; }

/* The page scrolls screen by screen: the intro under the asteroid, then one block per fact */
.sheet-body { container-type: size; overflow-x: hidden; scroll-snap-type: y proximity; }

/* the cover: the name, its class and a one-line headline at the top, the asteroid in the middle,
   and the countdown at the foot, told the same way as every other screen */
.ed-intro { min-height: 100cqh; scroll-snap-align: start; padding: 14cqh 0 92px; display: flex; flex-direction: column; }
.ed-kicker, .ed-label { font: 400 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ed-masthead { text-align: center; }
.ed-masthead h1 { font: 500 18px/1.2 var(--sans); letter-spacing: -.01em; margin: 0; }
.ed-intro .ed-kicker { font: 500 12px/1.3 var(--sans); letter-spacing: .05em; color: var(--ink); margin-top: 16px; }
.ed-intro .ed-kicker .hz { color: var(--accent); }
.ed-cover-line { font: 400 14px/1.45 var(--sans); color: var(--ink-2); max-width: 26ch; margin: 20px auto 0; }
.ed-countdown { margin-top: auto; }
.ed-countdown [data-cd-value] { font-variant-numeric: tabular-nums; }

/* a block: one screen for one fact â€” the figure fills the top, the words sit at the foot */
.ed-block { min-height: 100cqh; scroll-snap-align: start; padding: 64px 0 92px; display: flex; flex-direction: column; gap: 28px; }
.ed-block-fig { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; }
/* the words: the same four lines on every screen â€” kicker, headline, sub, one paragraph â€” left-aligned */
.ed-copy { width: 100%; text-align: left; }
.ed-copy-kicker { font: 400 13px/1.3 var(--sans); color: var(--ink-2); }
.ed-copy-title { font: 600 min(36px, 9.5cqw)/1.1 var(--sans); letter-spacing: -.025em; margin-top: 8px; }
.ed-copy-sub { font: 400 15px/1.4 var(--sans); margin-top: 10px; }
.ed-copy-text { font: 400 13.5px/1.55 var(--sans); color: var(--ink-2); margin-top: 14px; max-width: 46ch; }
.ed-copy-text b { color: var(--ink); font-weight: 500; }
.ed-copy .ed-legend { justify-content: flex-start; margin-top: 22px; }
.ed-block-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.ed-block-fig svg.is-square { width: min(100%, 52cqh); margin: 0 auto; }
.ed-block-fig svg.is-bleed { width: 100%; max-height: 50cqh; }
.ed-block-fig svg.ed-seg-mark { margin-bottom: 6px; overflow: visible; }
.ed-block-fig .ink { stroke: var(--ink); stroke-width: .8; }
.ed-block-fig .faint { stroke-opacity: .35; }
.ed-block-fig .dashed { stroke-dasharray: 3 3; }
.ed-block-fig .dotted { stroke-dasharray: 1 3; stroke-opacity: .6; }
.ed-block-fig .ink-fill { fill: var(--ink); }
.ed-block-fig .accent { fill: var(--accent); filter: drop-shadow(0 0 4px var(--glow-hot)); }
.ed-block-fig .accent.big { filter: drop-shadow(0 0 10px var(--glow-hot)) drop-shadow(0 0 34px color-mix(in srgb, var(--glow-hot) 50%, transparent)); }
.ed-block-fig .accent-line { stroke: var(--accent); stroke-width: 1; }
.ed-block-fig .max { stroke-opacity: .6; stroke-dasharray: 5 5; }
.ed-block-fig .halo { fill: var(--accent); opacity: .14; }
.ed-block-fig .t-note { font: 400 9.5px var(--mono); letter-spacing: .04em; fill: var(--ink-2); }
.ed-block-fig .t-strong { font: 500 10px var(--mono); letter-spacing: .04em; fill: var(--accent); }
/* the engraved size reference stands in front of the asteroid, printed as it is (silver on both papers) */
.ed-block-fig .ref-img { filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--paper) 60%, transparent)); }

/* legend: filled dot and dashed ring, as in the figure */
.ed-legend { display: flex; gap: 26px; justify-content: center; font: 400 13px var(--sans); color: var(--ink-2); }
.ed-legend span { display: flex; align-items: center; gap: 9px; }
.ed-legend i { width: 14px; height: 14px; border-radius: 50%; }
.ed-legend i.solid { background: var(--accent); box-shadow: 0 0 10px var(--glow-hot); }
.ed-legend i.dashed { border: 1.2px dashed var(--accent); }

/* small numbers under a block, in columns split by hairlines */

/* data quality: ten segments */
.ed-segments { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; width: 100%; }
.ed-segments i { height: 28px; border: 1px solid var(--ink); }
.ed-segments i.on { background: var(--ink); }
.ed-seg-scale { display: flex; justify-content: space-between; font: 400 10px var(--mono); color: var(--ink-2); margin-top: 8px; text-transform: uppercase; letter-spacing: .08em; }

.ed-end { padding: 10px 0 100px; scroll-snap-align: end; }
.ed-source { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-top: 1.2px solid var(--ink); border-bottom: 1.2px solid var(--ink); font: 500 15px var(--sans); }
.ed-source .ed-label { display: block; margin-bottom: 4px; }
.ed-colophon { font: 400 10.5px/1.5 var(--mono); color: var(--ink-2); margin-top: 14px; }

/* a block's parts fall into place one after another as it scrolls in */
.ed-block > *, .ed-end > * { opacity: 0; }
.ed-block.is-in > *, .ed-end.is-in > * { opacity: 1; animation: ed-fade-in .6s ease both; }
@keyframes ed-fade-in { from { opacity: 0; } }
.ed-block.is-in > :nth-child(2) { animation-delay: .08s; }
.ed-block.is-in > :nth-child(3) { animation-delay: .18s; }
.ed-block.is-in > :nth-child(4) { animation-delay: .3s; }
.ed-block.is-in > :nth-child(5) { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .ed-block > *, .ed-end > * { opacity: 1; transform: none; animation: none !important; } }

/* Tabs: a quiet row of section names at the bottom, the current one in ink with an accent dot */
.ed-tabs {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); background: var(--paper);
  opacity: 0; transform: translateY(100%); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.ed-sheet.is-landed .ed-tabs { opacity: 1; transform: none; }
.ed-tabs button {
  flex: 1; position: relative; padding: 12px 0 8px; font: 400 13px/1 var(--sans);
  color: var(--ink-2); transition: color .25s;
}
.ed-tabs button::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px var(--glow-hot); opacity: 0; transform: scale(.4); transition: opacity .25s, transform .25s;
}
.ed-tabs button.is-on { color: var(--ink); }
.ed-tabs button.is-on::after { opacity: 1; transform: none; }

/* passes: one row per pass â€” year, a bar as long as the pass was close, the distance */
.ed-passes { list-style: none; margin: 0; padding: 0; width: 100%; font: 400 13px/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ed-passes li { display: grid; grid-template-columns: 44px 1fr 58px; align-items: center; gap: 12px; padding: 11px 0; }
.ed-passes li > span:first-child { text-align: left; }
.ed-passes li > span:last-child { text-align: right; }
.ed-passes li.is-past { opacity: .45; }
.ed-passes li.is-current { color: var(--ink); }
.ed-pass-bar { position: relative; height: 12px; }
.ed-pass-bar::before { content: ''; position: absolute; left: 0; top: 5.5px; height: 1px; width: var(--w); background: currentColor; opacity: .6; }
.ed-pass-bar i { position: absolute; left: var(--w); top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: currentColor; }
.ed-passes li.is-current .ed-pass-bar::before { background: var(--accent); opacity: 1; height: 1.5px; }
.ed-passes li.is-current .ed-pass-bar i { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; background: var(--accent); box-shadow: 0 0 8px var(--glow-hot); }
.ed-block-fig .ed-cone { fill: var(--accent); fill-opacity: .1; }
.ed-block-fig .accent-line.faint { stroke-opacity: .5; }

