/* ============================================================
   Launch Window — time-of-day "sky" design system
   The palette follows the visitor's local hour (night / dawn /
   day / dusk) via [data-theme] and can be cycled with the rocket
   button. Components are token-driven, so each phase is just a
   token set. Phase-independent tokens (the ignition accent, radii,
   status, shared textures) live on :root.
   Seed stylesheet for the utility-engine shared design system.
   ============================================================ */

:root {
  /* ignition accent — reserved for urgency in EVERY phase */
  --ignite: #ff6a2b;
  --ignite-bg: rgba(255, 106, 43, 0.16);

  /* status (dark-phase defaults; the day phase overrides for contrast) */
  --success: #34d399; --success-bg: rgba(52, 211, 153, 0.16);
  --warn: #fbbf24;    --warn-bg: rgba(251, 191, 36, 0.16);
  --danger: #f87171;  --danger-bg: rgba(248, 113, 113, 0.16);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 600px;

  /* shared texture images, selected per phase via --tex */
  --stars:
    radial-gradient(1px 1px at 18px 32px, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 64px 14px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 122px 48px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 174px 22px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 40px 88px, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 96px 104px, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 150px 92px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.4px 1.4px at 190px 70px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 26px 150px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 80px 168px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 134px 150px, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 186px 176px, rgba(255, 255, 255, 0.55), transparent);
  --grid:
    linear-gradient(rgba(20, 60, 120, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 60, 120, 0.05) 1px, transparent 1px);
  /* brighter, faintly-tinted stars for the twinkle layer (body::after) */
  --stars2:
    radial-gradient(1.5px 1.5px at 50px 60px, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.6px 1.6px at 150px 30px, rgba(190, 210, 255, 0.9), transparent),
    radial-gradient(1.3px 1.3px at 100px 130px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 24px 118px, rgba(255, 235, 210, 0.85), transparent),
    radial-gradient(1.4px 1.4px at 210px 96px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 252px 170px, rgba(210, 225, 255, 0.85), transparent),
    radial-gradient(1.3px 1.3px at 70px 208px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 170px 198px, rgba(255, 245, 225, 0.85), transparent);
}

/* ---- DUSK (default / fallback) ---- */
:root, :root[data-theme="dusk"] {
  --bg: #0b0a1f;
  --panel: rgba(24, 18, 52, 0.55);
  --panel-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --text: #eef1f8; --muted: #aab0d6; --faint: #7b82a8;
  --border: rgba(255, 255, 255, 0.10); --border-strong: rgba(255, 255, 255, 0.20);
  --accent: #7aa2ff; --accent-bg: rgba(122, 162, 255, 0.16);
  --sky:
    radial-gradient(900px 480px at 50% 122%, rgba(255, 122, 60, 0.10), transparent 62%),
    radial-gradient(1100px 720px at 50% -12%, #261658 0%, #160e38 42%, #0b0a1f 100%);
  --tex: var(--stars); --tex-opacity: 0.5; --tex-size: 220px 220px;
  --tex2-opacity: 0.7;
  --sweep-color: rgba(255, 122, 60, 0.5);
}

/* ---- NIGHT ---- */
:root[data-theme="night"] {
  --bg: #06050e;
  --panel: rgba(16, 16, 40, 0.55);
  --panel-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --text: #eef1f8; --muted: #a6adcf; --faint: #737aa0;
  --border: rgba(255, 255, 255, 0.10); --border-strong: rgba(255, 255, 255, 0.20);
  --accent: #8ab4ff; --accent-bg: rgba(138, 180, 255, 0.16);
  --sky:
    radial-gradient(800px 500px at 50% 120%, rgba(60, 80, 160, 0.12), transparent 60%),
    radial-gradient(1200px 820px at 50% -10%, #12122e 0%, #0a0a1c 45%, #06050e 100%);
  --tex: var(--stars); --tex-opacity: 0.85; --tex-size: 200px 200px;
  --tex2-opacity: 0.95;
  --sweep-color: rgba(138, 180, 255, 0.45);
}

/* ---- DAWN (rosier + lighter than dusk, sun about to crest) ---- */
:root[data-theme="dawn"] {
  --bg: #241641;
  --panel: rgba(52, 34, 78, 0.5);
  --panel-shadow: 0 18px 50px rgba(0, 0, 0, 0.30);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.09);
  --text: #f6eef6; --muted: #d4bdd1; --faint: #ab90a8;
  --border: rgba(255, 255, 255, 0.13); --border-strong: rgba(255, 255, 255, 0.24);
  --accent: #c9b2ff; --accent-bg: rgba(201, 178, 255, 0.20);
  --sky:
    radial-gradient(1300px 760px at 50% 116%, rgba(255, 158, 110, 0.48), rgba(255, 120, 155, 0.24) 36%, rgba(150, 110, 195, 0.12) 60%, transparent 76%),
    radial-gradient(1100px 840px at 50% -8%, #412c63 0%, #30214f 46%, #241641 100%);
  --tex: var(--stars); --tex-opacity: 0.26; --tex-size: 220px 220px;
  --tex2-opacity: 0.42;
  --sweep-color: rgba(255, 150, 105, 0.55);
}

/* ---- DAY (Daylight Aerospace) ---- */
:root[data-theme="day"] {
  --bg: #eef4fb;
  --panel: #ffffff;
  --panel-shadow: 0 14px 40px rgba(20, 40, 80, 0.12);
  --surface: #f1f6fc;
  --surface-2: #e6eef8;
  --text: #14233f; --muted: #51607d; --faint: #8b93ad;
  --border: rgba(20, 40, 80, 0.12); --border-strong: rgba(20, 40, 80, 0.20);
  --accent: #0a6cff; --accent-bg: rgba(10, 108, 255, 0.10);
  --success: #0a8f53; --success-bg: rgba(10, 143, 83, 0.12);
  --warn: #b4770a;    --warn-bg: rgba(180, 119, 10, 0.12);
  --danger: #c0392b;  --danger-bg: rgba(192, 57, 43, 0.12);
  --sky: radial-gradient(1000px 560px at 50% -10%, #dcebfb 0%, #eaf2fb 45%, #f4f8fc 100%);
  --tex: var(--grid); --tex-opacity: 0.6; --tex-size: 38px 38px;
  --tex2-opacity: 0;
  --sweep-color: rgba(10, 108, 255, 0.32);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image: var(--sky);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  transition: background-color 0.7s ease, color 0.5s ease;
}

/* sky texture — stars at night/dawn/dusk, a precision grid by day */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--tex-opacity, 0.5);
  background-image: var(--tex);
  background-size: var(--tex-size, 220px 220px);
  transition: opacity 0.6s ease;
}

/* twinkle layer — brighter stars that gently pulse (dark phases only; --tex2-opacity:0 by day) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--stars2);
  background-size: 300px 300px;
  opacity: var(--tex2-opacity, 0);
  animation: twinkle 4.2s ease-in-out infinite;
  transition: opacity 0.6s ease;
}
@keyframes twinkle {
  0%, 100% { opacity: var(--tex2-opacity, 0); }
  50% { opacity: calc(var(--tex2-opacity, 0) * 0.35); }
}

/* occasional shooting stars (dark phases only) */
.sky-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky-fx i {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.55);
  opacity: 0;
}
.sky-fx i::after {
  content: "";
  position: absolute;
  top: 50%; left: 2px;
  width: 92px; height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent);
}
.sky-fx i:nth-child(1) { top: 8%;  left: 80%; animation: shoot 11s ease-in 4s infinite; }
.sky-fx i:nth-child(2) { top: 16%; left: 94%; animation: shoot 16s ease-in 10s infinite; }
@keyframes shoot {
  0%   { opacity: 0; transform: translate(0, 0) rotate(-29deg); }
  2%   { opacity: 1; }
  10%  { opacity: 0; transform: translate(-340px, 190px) rotate(-29deg); }
  100% { opacity: 0; transform: translate(-340px, 190px) rotate(-29deg); }
}
[data-theme="day"] .sky-fx { display: none; }

/* moon — soft glowing disc behind the content (full at night, faint at dusk) */
.sky-fx .moon {
  position: absolute;
  top: 64px; right: 7%;
  width: 78px; height: 78px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 66% 70%, rgba(150, 160, 195, 0.38), transparent 22%),
    radial-gradient(circle at 40% 58%, rgba(150, 160, 195, 0.30), transparent 16%),
    radial-gradient(circle at 60% 34%, rgba(150, 160, 195, 0.24), transparent 13%),
    radial-gradient(circle at 36% 33%, #fefdf8, #e9ecf5 52%, #c4cad8 100%);
  box-shadow: 0 0 38px 8px rgba(214, 226, 255, 0.22), inset -7px -7px 16px rgba(85, 95, 130, 0.45);
  opacity: 0;
  transition: opacity 0.6s ease;
}
[data-theme="night"] .sky-fx .moon { opacity: 1; }
[data-theme="dusk"] .sky-fx .moon { opacity: 0.5; }

/* occasional rocket blastoff — rises behind the content (dark phases only) */
.sky-fx .rocket {
  position: absolute;
  left: 14%; bottom: -10%;
  width: 16px; height: 30px;
  opacity: 0;
  animation: blastoff 24s ease-in 5s infinite;
}
.sky-fx .rocket svg { display: block; width: 16px; height: 30px; filter: drop-shadow(0 0 4px rgba(180, 200, 255, 0.5)); }
.sky-fx .rocket::after {
  content: "";
  position: absolute;
  left: 50%; top: 95%;
  transform: translateX(-50%);
  width: 7px; height: 30px;
  background: linear-gradient(to bottom, rgba(255, 190, 110, 0.95), rgba(255, 120, 40, 0.45) 45%, transparent);
  border-radius: 50% 50% 40% 40% / 18% 18% 100% 100%;
  filter: blur(1.5px);
}
@keyframes blastoff {
  0% { transform: translateY(0); opacity: 0; }
  3% { opacity: 1; }
  17% { transform: translateY(-122vh); opacity: 1; }
  19%, 100% { transform: translateY(-122vh); opacity: 0; }
}
/* smaller, lower moon on narrow screens so it nestles behind the hero instead of the header chips */
@media (max-width: 600px) {
  .sky-fx .moon { top: 86px; right: 6%; width: 64px; height: 64px; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { font-weight: 600; letter-spacing: -0.01em; }
svg { width: 1em; height: 1em; }

/* ---------- header ---------- */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-icon { color: var(--accent); font-size: 1.3rem; filter: drop-shadow(0 0 8px rgba(122, 162, 255, 0.5)); }
.tz-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.header-right { display: inline-flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  font-size: 1.05rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.theme-toggle:active { transform: scale(0.92); }

/* one-shot color "ignition" sweep that blooms from the rocket on theme change */
.theme-sweep {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: radial-gradient(circle at var(--ox, 50%) var(--oy, 8%), var(--sweep-color), transparent 55%);
  opacity: 0;
  will-change: opacity, transform;
  animation: theme-sweep 0.85s ease forwards;
}
@keyframes theme-sweep {
  0% { opacity: 0; transform: scale(0.5); }
  30% { opacity: 0.95; }
  100% { opacity: 0; transform: scale(1.5); }
}

/* transient label naming the new sky */
.theme-toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  z-index: 10000;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--panel-shadow);
  opacity: 0;
  animation: theme-toast 1.8s ease forwards;
}
@keyframes theme-toast {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  12%, 70% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

#main { max-width: var(--maxw); margin: 0 auto; padding: 4px 18px 40px; }

.data-notice {
  margin: 0 0 14px;
  padding: 9px 12px;
  font-size: 0.8rem;
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ---------- hero / detail panel (frosted glass) ---------- */
.hero, .detail-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--panel-shadow);
}
.hero { min-height: 332px; }
.detail-card { min-height: 300px; }

/* ignition glow behind the hero when a launch is imminent */
.hero.ignite::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 60px rgba(255, 106, 43, 0.25) inset, 0 18px 60px rgba(255, 106, 43, 0.18);
}

.hero-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;                        /* allow the text child to shrink */
  font-size: 0.78rem;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip svg { flex: none; }
.chip-provider { color: var(--accent); background: var(--accent-bg); max-width: 62%; }
.chip-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }  /* BUG FIX: truncate long provider names */

.status {
  margin-left: auto;                   /* pin status to the right; never pushed off-canvas */
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status.s-go { color: var(--success); background: var(--success-bg); }
.status.s-warn { color: var(--warn); background: var(--warn-bg); }
.status.s-info { color: var(--accent); background: var(--accent-bg); }
.status.s-danger { color: var(--danger); background: var(--danger-bg); }
.status.s-muted { color: var(--muted); background: var(--surface-2); }
.status.live::before { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero-eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hero-mission { font-size: 1.5rem; margin: 4px 0 18px; }

/* ---------- segmented launch clock (the signature) ---------- */
.clock { display: flex; align-items: stretch; gap: 8px; }
.seg {
  flex: 1;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 6px 10px;
}
.seg-num {
  display: block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.5px;
}
.seg-lab { display: block; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }
/* non-precise / liftoff / awaiting states render as one centered cell */
.clock-msg, .clock-approx {
  flex: 1;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 12px;
  font-size: 1.4rem;
  font-weight: 600;
}
.clock-approx { font-size: 1.15rem; color: var(--muted); }

.when { text-align: center; font-size: 0.84rem; color: var(--muted); margin-top: 12px; }

/* ignition: the clock heats up inside the last hour */
.ignite .seg-num { color: var(--ignite); text-shadow: 0 0 18px rgba(255, 106, 43, 0.65); }
.ignite .seg { border-color: rgba(255, 106, 43, 0.40); background: rgba(255, 106, 43, 0.06); }
.ignite .clock-msg { color: var(--ignite); }
.hero.ignite .status, .detail-card.ignite .status { color: #fff; background: var(--ignite); }
.hero.ignite .btn-primary, .detail-card.ignite .btn-primary { background: var(--ignite); }

/* ---------- buttons ---------- */
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.btn {
  flex: 1;
  min-width: 130px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease, filter 0.12s ease, transform 0.05s ease;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: scale(0.985); }
.btn-primary { color: #fff; background: var(--accent); border-color: transparent; }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: default; pointer-events: none; }
.hero-hint { flex-basis: 100%; font-size: 0.76rem; color: var(--faint); text-align: center; margin-top: 2px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--faint); }

/* ---------- upcoming list (timeline / trajectory) ---------- */
.upcoming { margin-top: 26px; }
.upcoming-head h2 { font-size: 1.05rem; margin: 0 0 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.filter-chip {
  font-size: 0.78rem;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip[aria-pressed="true"] { color: var(--accent); border-color: transparent; background: var(--accent-bg); }

.launch-list { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 9px; }
/* faint trajectory line linking the launches chronologically */
.launch-list::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-bg), rgba(122, 162, 255, 0.04));
  pointer-events: none;
}
.launch-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px 12px 40px;       /* room for the node */
}
.launch-item::before {                 /* node on the trajectory */
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px rgba(122, 162, 255, 0.4);
}
.launch-item .li-name { font-size: 0.92rem; font-weight: 500; }
.li-badge { font-size: 0.72rem; color: var(--accent); margin-left: 6px; }
.launch-item .li-when { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.li-right { text-align: right; flex-shrink: 0; }
.li-rel { font-size: 0.82rem; color: var(--text); font-variant-numeric: tabular-nums; }
.li-status { font-size: 0.72rem; margin-top: 3px; }
.li-status.s-go { color: var(--success); }
.li-status.s-warn { color: var(--warn); }
.li-status.s-info { color: var(--accent); }
.li-status.s-danger { color: var(--danger); }
.li-status.s-muted { color: var(--faint); }
.li-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.li-chev { color: var(--faint); font-size: 1.25rem; line-height: 1; }

a.launch-item { text-decoration: none; color: inherit; transition: background .12s, border-color .12s; }
a.launch-item:hover { background: var(--surface-2); border-color: var(--border-strong); text-decoration: none; }
a.launch-item:hover::before { box-shadow: 0 0 12px rgba(122, 162, 255, 0.7); }

/* ---------- ad slot (reserved, no shift) ---------- */
.ad-slot {
  margin: 26px 0;
  min-height: 100px;            /* reserves space → no layout shift when the ad loads */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.ad-slot::before {
  content: "Advertisement";
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.ad-slot .adsbygoogle { display: block; width: 100%; }

/* ---------- static intro (crawlable H1 + lede) ---------- */
.static-intro { margin: 4px 0 18px; }
.static-intro h1 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 8px; }
.static-intro p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- about / footer ---------- */
.about { margin-top: 8px; }
.about h2 { font-size: 1.0rem; margin: 0 0 8px; }
.about p { font-size: 0.88rem; color: var(--muted); margin: 0 0 10px; }
.about p:last-child { margin-bottom: 0; }

.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 18px 40px;
  font-size: 0.76rem;
  color: var(--faint);
  text-align: center;
}
.site-footer a { color: var(--muted); }

/* ---------- skeleton ---------- */
.sk { background: var(--surface-2); border-radius: 6px; animation: shimmer 1.3s infinite; }
.sk-row { width: 60%; height: 18px; margin-bottom: 14px; }
.sk-title { width: 80%; height: 26px; margin-bottom: 18px; }
.sk-count { width: 100%; height: 92px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.sk-actions { width: 100%; height: 44px; }
@keyframes shimmer { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- detail page ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); margin: 4px 0 14px; }
.detail-hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 16px; display: block; }
.mission-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.patch { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; object-fit: contain; background: var(--surface-2); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.detail-cell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.detail-cell .k { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.detail-cell .v { font-size: 0.9rem; font-weight: 500; margin-top: 3px; }
.detail-cell .v a { color: var(--accent); }
.detail-desc { margin-top: 18px; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* collapsible "Viewing guide" — travel moved below the telemetry (answer-first) */
.viewing-guide { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.viewing-guide > summary {
  cursor: pointer;
  padding: 13px 15px;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.viewing-guide > summary::-webkit-details-marker { display: none; }
.viewing-guide > summary svg { color: var(--accent); }
.viewing-guide > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform 0.2s ease; }
.viewing-guide[open] > summary::after { transform: rotate(180deg); }
.vg-body { padding: 0 15px 15px; }
.vg-body p { font-size: 0.85rem; color: var(--muted); margin: 0 0 12px; }
.travel-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.more-launches { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.more-launches h2 { font-size: 1rem; font-weight: 600; margin: 0 0 12px; }

/* ---------- responsive ---------- */
@media (max-width: 380px) {
  .hero-actions .btn { flex-basis: 100%; }
  .seg-num { font-size: 1.9rem; }
  .seg { padding: 12px 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Manual in-content AdSense units now live inside the .ad-slot containers. */
