@font-face { font-family: 'Fixedsys Excelsior'; src: url('fonts/fixedsys_excelsior.woff2?v=1790309187') format('woff2'); font-display: swap; }
/* ---------- tokens: the app's Retro look, value for value ----------
   Color.kt, object Mini plus Retro's status colours. The app has no light theme, so neither has the site. */
:root {
  --bg: #0a0b16;
  --surface: #13152a;
  --sunk: #1c2038;
  --ink: #eceef4;
  --ink-2: #9ba1b6;
  --ink-3: #7c8298;
  --line: #22263d;
  --frame: #2e4b5a;
  --accent: #78d8ec;
  --lit: #78d8ec; --on-lit: #0a0b16;
  --enroute: #deff22;
  --ok: #4caf50;
  --warn: #ffc24c;
  --idle: #8fa0c4;
  --blue: #6f9ceb;
  --pink: #ff65d1;
  --teal: #5fffe0;
  --fail: #e5484d;
  --gold: #ffc94a; --flyby: #ffa24c; --craft: #5ce0ea; --surface-st: #cbb26a; --extended: #43c6a8;
  --ok-bg: color-mix(in srgb, var(--ok) 14%, transparent);
  --warn-bg: color-mix(in srgb, var(--warn) 14%, transparent);
  --idle-bg: color-mix(in srgb, var(--idle) 12%, transparent);
  --shadow: none;
  --shadow-hi: 0 0 0 1px var(--frame);
  --header: rgba(10, 11, 22, .8);
  --band: #13152a; --band-ink: #eceef4; --band-2: #9ba1b6;
  --sans: 'Fixedsys Excelsior', ui-monospace, monospace;
  --mono: 'Fixedsys Excelsior', ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
/* ---------- base ---------- */
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }

/* ---------- page transitions (cross-document) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
header { view-transition-name: header; }
::view-transition-old(header), ::view-transition-new(header) { animation: none; }

/* ---------- header ---------- */
header { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px) saturate(1.4); background: var(--header); transition: box-shadow .3s; }
header.scrolled { box-shadow: 0 1px 0 var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
/* the wordmark: a dotless j with the app's star as its dot.
   Set at 16px, the face's own size, so one letter pixel is one CSS pixel and the star's pixels line up with the letters'.
   The font's dotless j (used only here) has had the left half of its top bar taken off, so the star sits on a bare stem.
   That j is also moved 1px left so its stem sits 4px from both the a and the e.
   The star is 5 wide and the stem 2 (3px to 5px of the glyph's 8px advance), so centring it puts it half a pixel off
   the letter grid: it starts 1.5px in, 6.5px back from the end. On a 2x screen that half pixel is a whole device pixel
   and stays sharp. Its foot is 1px above the stem (0.5em up). */
.logo .word { white-space: nowrap; }
/* the face is monospaced: T-r, a-j and j-e open to 4px of clear columns where every other pair has 2; this closes them.
   The r is open on its right, so it sits 3px from the T and 1px from the a, which reads as even (Marc chose it). */
.logo .k1 { margin-left: -1px; }
.logo .k2 { margin-left: -2px; }
.logo .tittle { display: inline-block; vertical-align: baseline; margin: 0 1.5px 0 -6.5px; position: relative; top: -.5em; transition: transform .6s var(--ease); }
.logo:hover .tittle { transform: rotate(90deg); }
nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
nav a.link { position: relative; font-size: 15px; color: var(--ink-2); transition: color .2s; }
nav a.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
nav a.link:hover, nav a.link[aria-current='page'] { color: var(--ink); }
nav a.link:hover::after, nav a.link[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.right { display: flex; align-items: center; gap: 10px; }
/* ---------- buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; border: 3px solid var(--sunk); background: var(--lit); color: var(--on-lit); font-size: 14px; font-weight: 500; white-space: nowrap; transition: transform .3s var(--ease), opacity .2s, box-shadow .2s; }
.pill:hover { transform: translateY(-1px); opacity: .88; }
.pill svg, .more svg, .arrow-link svg { transition: transform .3s var(--ease); }
.pill:hover svg, .more:hover svg, .arrow-link:hover svg { transform: translateX(3px); }
.pill.ghost { background: var(--sunk); color: var(--accent); }
.pill.ghost:hover { color: var(--ink); opacity: 1; }
.pill.lg { height: 50px; padding: 0 24px; font-size: 15px; }
.pill[aria-disabled='true'] { background: var(--sunk); color: var(--ink-3); cursor: default; transform: none; opacity: 1; }

/* ---------- shared pieces ---------- */
.card { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); padding: 6px 12px 6px 8px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 5px; white-space: nowrap; }
.status .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.status.go { color: var(--ok); background: var(--ok-bg); }
.status.tbc { color: var(--warn); background: var(--warn-bg); }
.status.tbd { color: var(--idle); background: var(--idle-bg); }
.tag { font-size: 13px; padding: 5px 12px; border-radius: 5px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
a.tag:hover { color: var(--ink); }
.more { font-size: 15px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.arrow-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }

/* loading placeholders */
.skel { display: block; height: 12px; border-radius: 6px; margin: 10px 0; background: linear-gradient(90deg, var(--sunk) 0%, color-mix(in srgb, var(--sunk) 55%, var(--line)) 50%, var(--sunk) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel.h { height: 22px; margin: 16px 0 12px; }
.skel.block { height: 88px; border-radius: 14px; margin: 24px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
.stale { color: var(--warn); }

/* icons */
.ic { flex: none; display: inline-block; vertical-align: -3px; }
.ibadge { --c: var(--ink); width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); transition: transform .5s var(--ease); }
.head .title { display: flex; align-items: center; gap: 14px; }
.stat .top { display: flex; justify-content: space-between; align-items: start; }
.stat:hover .ibadge, .head:hover .ibadge { transform: rotate(-8deg) scale(1.06); }
.pill .ic { width: 15px; height: 15px; }
.facts dt, .kv dt { display: flex; align-items: center; gap: 6px; }
.facts dt .ic, .kv dt .ic { width: 13px; height: 13px; }
.meta-ic { display: inline-flex; align-items: center; gap: 6px; }
.meta-ic .ic { width: 14px; height: 14px; opacity: .8; }
.mnav a { display: flex; gap: 6px; align-items: center; }
.mnav .ic { width: 16px; height: 16px; }

/* page head */
.phead { padding: 40px 0 8px; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.phead h1 { font-size: clamp(36px, 4vw, 48px); font-weight: 500; letter-spacing: -.03em; line-height: 1; margin: 16px 0 8px; color: var(--accent); }
.phead p { color: var(--ink-2); font-size: 18px; margin: 0; max-width: 520px; }
.split { display: block; overflow: hidden; padding-bottom: .06em; }
.split > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeup .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeup { to { opacity: 1; transform: none; } }

/* section head */
section.block { padding: 56px 0 0; }
.head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; gap: 24px; }
.head h2, .head h3 { font-size: 28px; font-weight: 500; letter-spacing: -.025em; margin: 0; }
.head p { margin: 6px 0 0; color: var(--ink-2); }
.count { font-family: var(--mono); font-size: 14px; color: var(--ink-3); font-weight: 400; margin-left: 10px; letter-spacing: 0; vertical-align: middle; }

/* toolbar: segmented control, chips, search */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 8px; background: var(--sunk); }
.seg button { position: relative; z-index: 1; height: 36px; padding: 0 16px; border-radius: 5px; font-size: 16px; color: var(--ink-2); transition: color .3s; }
.seg button { color: var(--accent); }
.seg button[aria-pressed='true'] { color: var(--bg); }
.seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: 5px; background: var(--lit); transition: transform .45s var(--ease), width .45s var(--ease); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 8px; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s, box-shadow .25s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink-3); color: var(--ink); }
.chip-ic { display: inline-flex; }
.chip[aria-pressed='true'] .chip-ic { color: inherit !important; }
.chip .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.chip[aria-pressed='true'] { background: var(--lit); color: var(--on-lit); box-shadow: none; }
.chip[aria-pressed='true'] .n { color: inherit; opacity: .6; }
.search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); width: 300px; color: var(--ink-3); transition: box-shadow .2s, width .4s var(--ease); }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); width: 340px; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; }
.search input::placeholder { color: var(--ink-3); }
.empty { padding: 72px 0; text-align: center; color: var(--ink-3); }

/* ---------- launch rows ---------- */
.list { overflow: hidden; }
.row { display: grid; grid-template-columns: 180px 1fr 220px 90px 24px; align-items: center; gap: 24px; padding: 22px 28px; border-top: 1px solid var(--line); transition: background .25s; width: 100%; text-align: left; }
.list > :first-child, .list > :first-child > .row { border-top: 0; }
.row:hover { background: var(--sunk); }
.row .when { font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.row .cd { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.row .name { font-weight: 500; font-size: 17px; }
.row .sub { font-size: 14px; color: var(--ink-3); }
.row .place { font-size: 14px; color: var(--ink-2); }
.row .arrow { color: var(--ink-3); transition: transform .4s var(--ease), color .2s; justify-self: end; }
a.row:hover .arrow { transform: translateX(4px); color: var(--ink); }
.launch.open .row .arrow { transform: rotate(180deg); color: var(--ink); }
.launch.open .row { background: var(--sunk); }
/* expandable detail: grid rows 0fr -> 1fr animates to the content's own height */
.more-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); background: var(--sunk); }
.launch.open .more-wrap { grid-template-rows: 1fr; }
.more-wrap > div { overflow: hidden; }
.detail { padding: 4px 28px 28px 232px; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .5s var(--ease); }
.launch.open .detail { opacity: 1; transform: none; transition-delay: .1s; }
.detail .about { color: var(--ink-2); margin: 0 0 20px; max-width: 700px; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 32px; }
.facts dt { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 2px 0 0; font-size: 15px; }
.crew { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.crew span { background: var(--surface); border-radius: 12px; padding: 10px 14px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.crew small { display: block; color: var(--ink-3); font-size: 12px; }
.detail .acts { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.group-title { font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; margin: 48px 0 14px 4px; display: flex; gap: 10px; }

/* ---------- launch cards: the app's Launches list ---------- */
.lband { font-size: 15px; font-weight: 400; letter-spacing: .06em; margin: 28px 0 10px 2px; }
.lnone { color: var(--ink-2); margin: 0 0 4px 2px; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; align-items: start; }
.lc { position: relative; background: var(--surface); border-radius: 14px; padding: 14px 16px 12px; box-shadow: inset 0 0 0 1px transparent; cursor: pointer; transition: box-shadow .2s; }
.lc:hover { box-shadow: inset 0 0 0 1px var(--frame); }
.lc.hot, .lc.hot:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.lc-tap { position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.lc > :not(.lc-tap) { position: relative; z-index: 1; pointer-events: none; }
.lc a, .lc .lbtn { pointer-events: auto; }
.lc-head { display: flex; gap: 11px; align-items: flex-start; }
.lc-head > .ic.px { width: 28px; height: 36px; flex: none; margin-top: 3px; color: var(--accent); }
.lc-body { min-width: 0; flex: 1; }
.lc h3 { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-sub { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lpill { color: var(--c); box-shadow: inset 0 0 0 1px var(--c); border-radius: 5px; padding: 2px 8px; font-size: 13px; white-space: nowrap; line-height: 1.4; }
.lc-clock { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 12px; font-size: clamp(17px, 5.4vw, 24px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.lc-clock span { color: var(--ink-2); }
.lc-clock b { font-weight: 400; color: var(--lk, var(--ink)); }
.lc-date { text-align: right; color: var(--ink-2); font-size: 14px; }
.lc-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.lc.open .lc-fold { grid-template-rows: 1fr; }
.lc-fold > div { overflow: hidden; }
.lc-more { padding-top: 10px; }
.lc-more hr { border: 0; height: 1px; background: color-mix(in srgb, var(--ink-2) 30%, transparent); margin: 0 0 10px; }
.lfact { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 5px; }
.lfact > span:first-child { color: var(--ink-2); flex: none; }
.lfact > span:last-child { text-align: right; }
.lsq { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; margin: -1px 0 6px; }
.lsq i { width: 7px; height: 7px; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.lsq i.now { background: var(--warn); }
.lbar { position: relative; height: 18px; border-radius: 4px; background: var(--sunk); overflow: hidden; margin-bottom: 5px; }
.lbar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.lbar b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 400; font-size: 13px; color: var(--ink); mix-blend-mode: difference; }
.lseq-h { color: var(--ink-2); font-size: 15px; margin: 12px 0 8px; }
.lseq { list-style: none; margin: 0; padding: 0; display: flex; }
.lseq li { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; font-size: 12px; color: var(--ink-2); line-height: 1.25; }
.lseq li::before { content: ''; position: absolute; top: 4.5px; left: 0; right: 0; height: 1px; background: var(--accent); }
.lseq li:first-child::before { left: 50%; }
.lseq li:last-child::before { right: 50%; }
.lseq li i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); margin-bottom: 5px; }
.lseq li span { padding: 0 2px; }
.lseq.live { flex-direction: column; gap: 6px; }
.lseq.live li { flex-direction: row; text-align: left; gap: 10px; font-size: 15px; }
.lseq.live li::before { display: none; }
.lseq.live li i { margin: 0; flex: none; box-shadow: inset 0 0 0 2px var(--ink-2); background: transparent; }
.lseq.live li span { flex: 1; padding: 0; }
.lseq.live li.done { color: var(--ink); } .lseq.live li.done span { opacity: .6; }
.lseq.live li.done i { background: var(--ok); box-shadow: none; }
.lseq.live li.next { color: var(--ink); }
.lseq.live li.next i { background: var(--pink); box-shadow: none; animation: blink 1s ease-in-out infinite alternate; }
.lseq.live li.next b { color: var(--pink); }
.lseq.live b { font-weight: 400; }
@keyframes blink { to { opacity: .25; } }
.lc-mission { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--frame); color: var(--accent); font-size: 15px; }
.lc-mission:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.lacts { display: flex; gap: 6px; margin-top: 10px; }
.lc-watch { margin-top: 10px; }
.lc.open .lc-watch { display: none; }
.lbtn { --track: color-mix(in srgb, var(--bg) 50%, transparent); flex: 1; display: grid; place-items: center; min-width: 0; min-height: 40px; padding: 4px 12px; border: 3px solid transparent; border-radius: 8px; background: var(--track); color: var(--ink); font-size: 15px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .2s; }
/* the app's action button: a field track with the accent thumb inset 3px when lit */
.lbtn.on { background: linear-gradient(var(--accent), var(--accent)) padding-box, var(--track) border-box; color: var(--bg); }
.lbtn:hover { opacity: .88; }
.lbtn[disabled] { opacity: .45; cursor: default; }
.lc-hint { text-align: center; color: var(--accent); font-size: 14px; margin-top: 6px; }
.lfresh { text-align: center; color: var(--ink-2); font-size: 14px; margin: 24px 0 0; }
.lfresh.stale { color: var(--warn); }

/* ---------- missions list: the app's rail, status strip and cards ---------- */
.filters { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ftop { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ftop .search { flex: 1 1 260px; max-width: 420px; height: 42px; }
.frail { flex: 1 1 520px; max-width: 760px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 42px; padding: 3px; border-radius: 8px; background: var(--sunk); }
.fbtn { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 100%; padding: 0 10px; border-radius: 5px; color: var(--accent); font-size: 16px; transition: background .25s, color .25s; }
.fbtn .fl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbtn:hover { color: var(--ink); }
.fbtn.on { background: var(--accent); color: var(--bg); }
.fbtn.on .fn { background: var(--bg); color: var(--accent); }
.fn { color: var(--bg); background: var(--accent); border-radius: 5px; padding: 0 6px; font-size: 13px; line-height: 1.5; }
.ffold { max-width: 760px; max-height: 320px; overflow: auto; background: var(--surface); border-radius: 8px; padding: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 8px; }
.fopt { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--ink); font-size: 15px; text-align: left; }
.fopt:hover { background: var(--sunk); }
.fopt .mono { color: var(--ink-2); }
.fopt.on { background: var(--accent); color: var(--bg); } .fopt.on .mono { color: var(--bg); }
.fnone { margin: 6px 10px; color: var(--ink-2); }
.fstatus, .fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.spill { color: var(--c); box-shadow: inset 0 0 0 1px var(--c); border-radius: 8px; padding: 4px 10px; font-size: 13px; white-space: nowrap; }
.spill:hover { background: color-mix(in srgb, var(--c) 14%, transparent); }
.spill.new { --c: var(--accent); }
.spill { display: inline-flex; gap: 8px; align-items: center; }
.spill .mono { opacity: .75; }
.spill.on { background: var(--c); color: var(--bg); }
.ffold.pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
.fchip { display: inline-flex; gap: 8px; align-items: center; color: var(--bg); background: var(--c); border-radius: 8px; padding: 4px 10px; font-size: 13px; }
.fsum { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 15px; min-height: 40px; }
.fsum .lbtn { flex: none; min-width: 120px; --track: var(--surface); }
.mc { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; text-align: left; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s; }
.mc:hover { box-shadow: inset 0 0 0 1px var(--frame); }
.mc-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mc-name .dest { flex: none; width: 20px; height: 20px; }
.mc-name .dest.px, .mc .craft { image-rendering: pixelated; }
.mc-name .dest.big { width: 24px; height: 24px; margin: -2px; }
.mc-t { font-size: 22px; line-height: 1.25; white-space: nowrap; overflow: hidden; min-width: 0; flex: 1; }
.mc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mchip { color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border-radius: 8px; padding: 3px 9px; font-size: 13px; white-space: nowrap; }
.mnew { color: var(--bg); background: var(--accent); border-radius: 8px; padding: 3px 9px; font-size: 13px; }
.mc-foot { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.mc .craft { width: 20px; height: 20px; object-fit: contain; flex: none; }
.mc-ag { margin-left: auto; }
@media (max-width: 1100px) { .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- countdown ---------- */
.clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.unit { background: var(--sunk); border-radius: 14px; padding: 16px 0 12px; text-align: center; }
.digits { font-family: var(--mono); font-size: 36px; font-weight: 500; letter-spacing: -.03em; height: 44px; overflow: hidden; position: relative; line-height: 44px; }
.digits span { display: block; }
.digits span.out { position: absolute; inset: 0; animation: d-out .45s var(--ease) forwards; }
.digits span.in { animation: d-in .45s var(--ease); }
@keyframes d-out { to { transform: translateY(-100%); opacity: 0; } }
@keyframes d-in { from { transform: translateY(100%); opacity: 0; } }
.unit small { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.clock.big .digits { font-size: 56px; height: 66px; line-height: 66px; }
.clock.big .unit { padding: 22px 0 16px; border-radius: 18px; }

/* ---------- feature card (next launch) ---------- */
.feature { padding: 36px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.feature h2 { font-size: 36px; font-weight: 500; letter-spacing: -.03em; margin: 14px 0 6px; line-height: 1.1; }
.feature .where { color: var(--ink-2); margin: 0 0 24px; }
.feature .top { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); }

/* ---------- mission cards ---------- */
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mcard { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 196px; text-align: left; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); }
.mcard .t { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.mcard .name { font-size: 19px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.mcard .to { color: var(--ink-2); font-size: 14px; margin-top: -8px; }
.mcard .foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); gap: 12px; }
.phase { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--c); }
.phase .ic { width: 14px; height: 14px; }
.track { height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 99px; background: var(--accent); width: 0; transition: width 1.6s var(--ease); }
.in .track i, .track.in i { width: var(--p); }
.pop { animation: pop .5s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 41; left: 50%; top: 50%; width: min(1080px, calc(100% - 48px)); height: min(780px, calc(100% - 48px)); border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--frame), 0 40px 80px -20px rgba(0, 0, 0, .6); transform: translate(-50%, calc(-50% + 24px)) scale(.98); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .3s; display: flex; flex-direction: column; overflow: hidden; }
.drawer.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.drawer .bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0 32px; flex: none; }
.drawer .x { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease); }
.drawer .x:hover { transform: rotate(90deg); }
.drawer .dhead { padding: 0 32px; flex: none; border-bottom: 1px solid var(--line); }
.drawer .body { padding: 4px 32px 40px; overflow-y: auto; flex: 1; min-height: 0; }
.drawer h2 { font-size: 36px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; margin: 10px 0 14px; }
.drawer .lead { color: var(--ink-2); margin: 0 0 24px; max-width: 72ch; }
.drawer h3 { font-size: 13px; font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; margin: 32px 0 12px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.kv div { background: var(--sunk); border-radius: 14px; padding: 12px 14px; }
.kv dt { font-size: 12px; color: var(--ink-3); }
.kv dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 18px 26px; }
.tl li::before { content: ''; position: absolute; left: 5px; top: 18px; bottom: 0; width: 1.5px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl li::after { content: ''; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); background: var(--surface); }
.tl li.done::after { background: var(--ink); box-shadow: none; }
.tl li.next::after { box-shadow: inset 0 0 0 1.5px var(--accent); animation: ring 2s var(--ease) infinite; }
@keyframes ring { 0% { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 10px transparent; } }
.tl .tt { font-size: 15px; }
.tl li:not(.done):not(.next) .tt { color: var(--ink-2); }
.tl .on { font-size: 13px; color: var(--ink-3); }
.tl li.next .on { color: var(--accent); }
.obj { margin: 0; padding-left: 18px; color: var(--ink-2); max-width: 80ch; }
.obj li { margin-bottom: 6px; }
.drawer .body > * { animation: pop .6s var(--ease) both; }
.drawer .body > *:nth-child(2) { animation-delay: .05s; } .drawer .body > *:nth-child(3) { animation-delay: .1s; }
.drawer .body > *:nth-child(4) { animation-delay: .15s; } .drawer .body > *:nth-child(n+5) { animation-delay: .2s; }

/* ---------- news ---------- */
.lead-story { padding: 0; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: stretch; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.lead-story:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); }
.lead-story h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; margin: 18px 0 18px; }
.lead-story p { color: var(--ink-2); font-size: 17px; margin: 0; max-width: 620px; }
.src-line { font-size: 13px; color: var(--ink-3); display: flex; gap: 10px; }
.lead-story .pic { aspect-ratio: auto; min-height: 380px; }
.lead-story .body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.lead-story .side { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.story { display: flex; flex-direction: column; gap: 8px; padding: 12px; min-width: 0; }
.story .ah { display: flex; align-items: center; gap: 8px; }
.story h3 { flex: 1; font-size: 19px; font-weight: 400; text-shadow: .5px 0 currentColor; line-height: 1.25; margin: 0; text-align: center; color: var(--ink); }
.story h3 a:hover { color: var(--accent); }
.story.marked h3 { padding-right: 38px; }
.amark { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--accent); }
.well { background: var(--sunk); border-radius: 10px; padding: 7px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.well img { display: block; height: 150px; width: 100%; object-fit: contain; border-radius: 10px; }
.well p { margin: 0; padding: 0 3px; font-size: 13px; line-height: 19px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.afoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.am { display: flex; flex-direction: column; font-size: 12px; letter-spacing: .2px; color: var(--accent); min-width: 0; }
.gpill { flex: none; font-size: 12px; color: var(--accent); padding: 4px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--frame); background: color-mix(in srgb, var(--surface) 82%, transparent); }
.gpill:hover { color: var(--ink); }

/* ---------- home ---------- */
/* ---------- home: the app's Home page, laid out wide ---------- */
.intro { padding: 40px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.intro h1 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.03em; font-weight: 500; margin: 20px 0 16px; }
.intro .soft { color: var(--ink-3); }
.intro .lede { font-size: 16px; color: var(--ink-2); max-width: 460px; margin: 0 0 24px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
/* NowTile: count in the status colour, the week's change beside it, the label under */
.nowtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ntile { background: var(--surface); border-radius: 10px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; transition: background .2s; }
.ntile:hover { background: var(--sunk); }
.ntile .nn { display: inline-flex; align-items: baseline; gap: 4px; }
.ntile b { font-weight: 400; font-size: 22px; line-height: 1.2; }
.ntile i { font-style: normal; font-size: 12px; position: relative; top: -3px; }
.ntile i.up { color: color-mix(in srgb, var(--ok) 50%, var(--ink-2)); }
.ntile i.down { color: color-mix(in srgb, var(--fail) 50%, var(--ink-2)); }
.ntile .nl { font-size: 12px; color: var(--ink-2); }
/* BriefCard: a centred capital heading, then rows */
.brief { padding-top: 24px; display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 8px; align-items: stretch; }
.bcard { padding: 12px 14px 10px; display: flex; flex-direction: column; min-width: 0; }
.bcard h2 { font-size: 17px; font-weight: 400; text-align: center; margin: 0 0 12px; color: var(--ink); letter-spacing: 0; }
.brows { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.brow2, .cprow { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 4px; border-radius: 6px; font-size: 15px; transition: background .2s; }
.brow2:hover { background: var(--sunk); }
.bt { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 0 10px; flex-wrap: wrap; }
.bt b { font-weight: 400; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.bt small { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bv { color: var(--ink-2); flex: none; }
.brow2 .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--idle); }
.brow2 .dot.go { background: var(--ok); } .brow2 .dot.exp { background: var(--flyby); }
.brow2 .dot.pulse { animation: dotpulse 1.5s cubic-bezier(.4, 0, .2, 1) infinite alternate; }
@keyframes dotpulse { to { opacity: .34; } }
/* LaunchClockPanel: the soonest go launch inside a day */
.lclock { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 8%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warn) 45%, transparent); }
.lclock img { image-rendering: pixelated; flex: none; }
.lc-w { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lc-w b { font-weight: 400; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-w small { font-size: 11px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tclock { font-size: 16px; white-space: nowrap; flex: none; font-variant-numeric: tabular-nums; }
/* CheckpointLine: the row is its own progress bar */
.cprow { position: relative; margin: 4px 0; padding: 1px 6px; background: var(--sunk); overflow: hidden; }
.cprow::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--f); background: color-mix(in srgb, var(--ink-2) 19%, transparent); transform-origin: left; animation: cpfill .65s cubic-bezier(.4, 0, .2, 1) calc(var(--i) * .1s) both; }
.cprow.first::before { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.cprow > * { position: relative; }
.cprow:hover .bt b { color: var(--accent); }
@keyframes cpfill { from { transform: scaleX(0); } }
/* BandCard: the lighter band with a sprite and the heading, then the body */
.band { overflow: hidden; }
.bandhead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sunk); }
.bandhead h2 { font-size: 19px; font-weight: 400; margin: 0; flex: 1; color: var(--ink); letter-spacing: 0; }
.bandhead [data-icon] { display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--accent); }
.bandhead .more, .bandhead .sw-age { font-size: 13px; color: var(--accent); }
.bandhead .sw-age { color: var(--ink-3); margin: 0; }
.bandrows { display: flex; flex-direction: column; }
.brow { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); }
.brow:first-child { border-top: 0; }
.brow b { font-weight: 400; color: var(--accent); }
.brow span { color: var(--ink-2); font-size: 14px; }
.brow:hover b { color: var(--ink); }
.duo { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; padding-top: 8px; }
section.block.duo { padding-top: 8px; }
#news .band { margin-bottom: 8px; }
#news .news { gap: 8px; }

/* ---------- app band + footer ---------- */
.cta { margin: 72px 0 0; padding: 72px 64px; border-radius: 12px; background: var(--band); color: var(--band-ink); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.cta h2 { font-size: 44px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 14px; }
.cta p { color: var(--band-2); margin: 0; max-width: 460px; }
.cta .rings { position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; opacity: .25; pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta > .rings { position: absolute; z-index: 0; }
.cta .rings circle { stroke: var(--band-ink); animation: breathe 6s ease-in-out infinite; transform-origin: center; }
.cta .rings circle:nth-child(2) { animation-delay: -2s; }
.cta .rings circle:nth-child(3) { animation-delay: -4s; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .5; } }
footer { padding: 56px 0 64px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a:hover { color: var(--ink); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  nav ul { display: none; }
  .right .pill { display: none; }
  .intro, .feature, .lead-story, .duo { grid-template-columns: 1fr; }
  .intro { padding-top: 24px; }
  .brief { grid-template-columns: 1fr; }
  .b-mile { order: 1; } .b-check { order: 2; } .b-launch { order: 3; }
  .nowtiles { grid-template-columns: 1fr 1fr; }
  .feature { padding: 28px; gap: 24px; }
  .lead-story .pic { min-height: 220px; }
  .lead-story .body { padding: 28px; }
  .cruise, .news, .mgrid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 20px; }
  .row .place, .row .arrow { display: none; }
  .row > :first-child { grid-column: 1 / -1; }
  .detail { padding: 4px 20px 24px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 48px 28px; }
  .cta h2 { font-size: 34px; }
  .search, .search:focus-within { width: 100%; }
  .clock.big .digits { font-size: 36px; height: 44px; line-height: 44px; }
  .mnav { display: flex; }
}
.mnav { display: none; position: fixed; z-index: 30; left: 50%; bottom: 16px; transform: translateX(-50%); gap: 4px; padding: 6px; border-radius: 8px; background: var(--header); backdrop-filter: blur(14px); box-shadow: var(--shadow-hi); view-transition-name: mnav; }
.mnav a { height: 40px; padding: 0 16px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; color: var(--ink-2); }
.mnav a[aria-current='page'] { background: var(--lit); color: var(--on-lit); }
@media (max-width: 900px) { body { padding-bottom: 88px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .split > span, .fade-up, .reveal { transform: none; opacity: 1; }
  .track i { width: var(--p); }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- mission drawer: tabs, stats, instruments ---------- */
.mcard .sum { margin: -4px 0 0; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dtabs { margin: 0 -32px 16px; padding: 0 32px; overflow-x: auto; scrollbar-width: none; }
.dtabs::-webkit-scrollbar { display: none; }
.dtabs .seg button { padding: 0 14px; white-space: nowrap; }
.drawer .pane > div:first-child h3, .drawer .pane > .lead:first-child { margin-top: 20px; }
.drawer .prose { margin: 0; color: var(--ink-2); max-width: 80ch; }
.drawer .muted { color: var(--ink-3); margin: 24px 0 0; }
.finds a, .dnews a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.recs { list-style: none; padding-left: 0; }
.recs li { position: relative; padding-left: 22px; }
.recs li::before { content: '★'; position: absolute; left: 0; color: var(--accent); }
.nextup { margin-top: 24px; background: var(--sunk); border-radius: 14px; padding: 2px 16px 14px; }
.nextup h3 { margin: 12px 0 6px !important; color: var(--accent) !important; }
.nextup .tt { font-weight: 500; }
.nextup .on, .tl .dd { font-size: 13px; color: var(--ink-3); }
.tl .dd { color: var(--ink-2); margin-top: 2px; max-width: 72ch; }
.sgroup { background: var(--sunk); border-radius: 14px; padding: 4px 16px; }
.srow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.srow:first-child { border-top: 0; }
.srow span { color: var(--ink-3); }
.srow b { font-weight: 500; text-align: right; }
.srow p { flex-basis: 100%; margin: 0; color: var(--ink-2); font-size: 13px; }
.inst { list-style: none; margin: 0; padding: 0; }
.inst li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.inst li:first-child { border-top: 0; }
.inst .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; transform: translateY(-1px); }
.inst .tt { font-size: 15px; }
.inst .on { font-size: 13px; color: var(--ink-3); }
.dnews { list-style: none; margin: 20px 0 0; padding: 0; }
.dnews li { padding: 12px 0; border-top: 1px solid var(--line); }
.dnews li:first-child { border-top: 0; }
.dnews a { color: var(--ink); text-decoration: none; font-weight: 500; }
.dnews a:hover { color: var(--accent); }
.dnews small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
@media (max-width: 600px) { .drawer { width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 12px; } .drawer .bar { padding: 14px 14px 0 20px; } .drawer .dhead { padding: 0 20px; } .drawer .body { padding: 4px 20px 40px; } .drawer h2 { font-size: 28px; } .dtabs { margin: 0 -20px 12px; padding: 0 20px; } }
.srow.long b { flex-basis: 100%; text-align: left; }

/* ---------- Fixedsys Excelsior: one weight, drawn on a pixel grid ---------- */
* { font-synthesis: none; letter-spacing: normal !important; -webkit-font-smoothing: none; }

/* ---------- pixel icons from the app: drawn at their own pixel size, never squeezed ---------- */
.ic.px, .status .ic.px, .pill .ic.px, .facts dt .ic.px, .kv dt .ic.px, .meta-ic .ic.px, .mnav .ic.px, .phase .ic.px { width: auto; height: auto; vertical-align: middle; }

/* ---------- mission crew, launch tab, photos; home space weather ---------- */
.crewcard { margin-top: 24px; }
.crewcard .csub { margin: -4px 0 8px; color: var(--ink-3); font-size: 13px; }
.crewcard ul { list-style: none; margin: 0; padding: 4px 16px; background: var(--sunk); border-radius: 14px; }
.crewcard li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.crewcard li:first-child { border-top: 0; }
.crewcard .cr { color: var(--ink-3); font-size: 13px; }
.crewcard .ca { color: var(--accent); font-size: 13px; }
.dlaunch { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.dlaunch .ln { font-size: 20px; line-height: 1.3; }
.dlaunch .lw, .dlaunch .lp { color: var(--ink-2); font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dlaunch .acts, .photos .acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.photos { margin-top: 20px; }
.pcount { color: var(--ink-3); font-size: 13px; margin: 0 0 10px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.pthumb { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--sunk); padding: 0; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.pthumb:hover img { transform: scale(1.05); }
.pview { margin: 0; }
.pview img { width: auto; max-width: 100%; max-height: 520px; margin: 0 auto; height: auto; border-radius: 14px; background: var(--sunk); display: block; }
.pview figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.pview figcaption b { display: block; color: var(--ink); font-weight: 500; }
.pview figcaption p { margin: 4px 0; }
.pview small { color: var(--ink-3); font-size: 12px; }
.pnav { display: inline-flex; gap: 8px; align-items: center; margin-left: auto; }
.pnav .pill { padding: 0 14px; font-size: 18px; }
.pn { font-size: 13px; color: var(--ink-3); }
.head .sw-age { margin: 0; font-size: 13px; color: var(--ink-3); }
.sw { padding: 18px 20px; display: grid; grid-template-columns: auto 1fr 1fr; gap: 24px; align-items: center; }
.swl { display: inline-flex; gap: 10px; align-items: center; font-size: 20px; color: var(--c); padding-right: 24px; border-right: 1px solid var(--line); }
.swl .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.swr span { display: block; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.swr b { display: block; font-weight: 500; font-size: 18px; margin: 2px 0; }
.swr small { color: var(--ink-3); font-size: 13px; }
@media (max-width: 700px) { .sw { grid-template-columns: 1fr 1fr; } .swl { grid-column: 1 / -1; border-right: 0; padding-right: 0; } }

/* ---------- samples tab ---------- */
.samples { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.shead, .sample { background: var(--sunk); border-radius: 14px; padding: 16px; }
.shead h4, .sample h4 { margin: 0; font-size: 18px; font-weight: 500; }
.shead p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.sample .sh { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.sample .skind { color: var(--accent); }
.sample .prose { font-size: 14px; margin: 6px 0 10px; }
.sample figure { margin: 0 0 10px; }
.sample figure img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; display: block; background: var(--surface); }
.sample figcaption, .sgal { font-size: 12px; color: var(--ink-3); margin: 4px 0 0; }
.sgal { margin: 0 0 10px; }
.sgal a { color: var(--accent); text-decoration: underline; }
.sample .sgroup { background: var(--surface); }

/* ---------- Worlds and Maps: the get-the-app window ---------- */
nav button.link { font: inherit; font-size: 15px; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; position: relative; transition: color .2s; }
nav button.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
nav button.link:hover { color: var(--ink); }
nav button.link:hover::after { transform: scaleX(1); transform-origin: left; }
.mnav button { height: 40px; padding: 0 16px; border-radius: 8px; display: flex; gap: 6px; align-items: center; font: inherit; font-size: 14px; color: var(--ink-2); background: none; border: 0; }
@media (max-width: 560px) { .mnav a, .mnav button { font-size: 0; padding: 0 12px; gap: 0; } }
.getapp { position: fixed; z-index: 51; left: 50%; top: 50%; width: min(420px, calc(100% - 32px)); transform: translate(-50%, calc(-50% + 24px)); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .3s; background: var(--surface); border-radius: 12px; padding: 32px 28px 28px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .35); text-align: center; }
.getapp.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.gscrim { z-index: 50; }
.getapp .x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); font-size: 18px; }
.getapp .gicon { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto; }
.getapp h2 { font-size: 26px; font-weight: 500; margin: 18px 0 8px; }
.getapp p { color: var(--ink-2); margin: 0 0 22px; font-size: 15px; }

/* the phone menu: the base rule above hides it everywhere, so it is shown again here, after it */
@media (max-width: 900px) { .mnav { display: flex; } }

.dtabs .seg button.plus { color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }

/* one photo open: picture, caption and controls share the window's height, no scrolling */
.drawer .body:has(.pane:not([hidden]) .photos.viewing) { padding-bottom: 20px; overflow: hidden; display: flex; flex-direction: column; }
.pane:has(.photos.viewing) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.photos.viewing { flex: 1; min-height: 0; margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.photos.viewing .pview { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.photos.viewing .pview img { flex: 1; min-height: 0; width: 100%; max-height: none; object-fit: contain; background: transparent; border-radius: 0; }
.photos.viewing figcaption { flex: none; }
.photos.viewing figcaption p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.photos.viewing .acts { flex: none; margin-top: 0; }

/* where each mission is going, beside its name, as the app's cards show it */
.mcard .name .dest { display: inline-block; width: 16px; height: 16px; margin: 0 8px 0 0; vertical-align: -2px; }
.mcard .name .dest.px { image-rendering: pixelated; }
.mcard .name .dest.big { width: 21px; height: 21px; margin: -2.5px 5.5px -2.5px -2.5px; }

/* ---------- scrollbars: square and flat, in the site's own colours ----------
   Chrome and Safari take the ::-webkit-scrollbar rules. Firefox only knows scrollbar-color, so it gets that alone:
   setting it in Chrome would switch the custom rules off. */
::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--frame); border: 3px solid var(--bg); border-radius: 0; background-clip: padding-box; min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--accent) 55%, var(--frame)); }
::-webkit-scrollbar-thumb:active { background-color: var(--accent); }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
.drawer ::-webkit-scrollbar-thumb, .getapp ::-webkit-scrollbar-thumb { border-color: var(--surface); }
@supports (-moz-appearance: none) { html, .drawer .body { scrollbar-color: var(--frame) transparent; } }

/* ---------- wide screens ---------- */
@media (min-width: 1280px) { .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .news { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* the news page flows its cards into columns, so short stories don't leave holes */
.news.flow { display: block; columns: 3 300px; column-gap: 8px; }
.news.flow .story { break-inside: avoid; margin-bottom: 8px; }
@media (max-width: 600px) { .bandhead { flex-wrap: wrap; } .bandhead .sw-age { flex-basis: 100%; order: 3; } }
