/* NextLiftoff — mission-control look: pure black, uppercase condensed display type,
   mono data, hairline rules, square outlined buttons. Colour only carries state. */
:root {
  --black: #000;
  --ink: #f0f0fa;          /* body text, as on spacex.com */
  --dim: #9a9aa6;          /* secondary text, 7.6:1 on black */
  --faint: #5f5f6b;        /* tertiary text */
  --line: rgba(240, 240, 250, .16);
  --line-strong: rgba(240, 240, 250, .5);
  --raise: #0d0d10;        /* hover row / input fill */
  --go: #3ddc84;
  --warn: #f5b942;
  --bad: #ff5a5a;
  --live: #ff3b30;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 60px);
  /* distance from the viewport edge to the 1440px content column (for full-bleed sections) */
  --edge: max(var(--gutter), calc(50vw - 720px + var(--gutter)));

  /* chart series: validated dark-mode categorical slots 1-4 + neutral "other" */
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-other: #5b6170;
  --grid: #1f1f26;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--black); color: var(--ink); font: 400 16px/1.55 var(--sans); overflow-x: clip; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--black); padding: 8px 12px; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 1px solid var(--line); }
.has-hero .top { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(0,0,0,.6), transparent); border-color: transparent; transition: background .25s, border-color .25s; }
.has-hero.scrolled .top { background: var(--black); border-color: var(--line); }
.top-inner { display: flex; align-items: center; gap: 36px; height: var(--header-h); padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.logo {
  font: 700 24px/1 var(--display); letter-spacing: .22em; text-decoration: none; white-space: nowrap;
  margin-right: -.22em; /* optical: tracking adds trailing space */
}
.logo-dim { color: var(--dim); }
.logo-sm .logo-dim { color: var(--faint); }
.logo-sm { font-size: 18px; color: var(--dim); }
nav { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
.top nav a {
  font: 600 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); opacity: .78; white-space: nowrap; padding: 8px 0; border-bottom: 1px solid transparent;
}
.top nav a:hover { opacity: 1; }
.top nav a[aria-current] { opacity: 1; border-bottom-color: var(--ink); }
.tz { margin-left: auto; }
.tz select { width: 230px; }

select, input[type=search] {
  background: var(--black); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 0;
  height: 40px; padding: 0 12px; font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .02em;
}
select:hover, input[type=search]:hover { border-color: var(--ink); }
input[type=search]::placeholder { color: var(--faint); }
input[type=search] { flex: 1 1 280px; min-width: 0; }
select { max-width: 100%; min-width: 0; }
.filter-row select { flex: 0 1 auto; }
@media (max-width: 760px) { .filter-row select, .filter-row input[type=search] { flex: 1 1 100%; } }

.live-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 8px var(--gutter); background: #1a0000; border-bottom: 1px solid rgba(255,59,48,.5);
  font: 500 13px var(--mono); text-transform: uppercase;
}
.live-bar a:not(.btn) { text-decoration: none; }

/* ---------- type ---------- */
.display, .page-title {
  font: 700 clamp(40px, 6vw, 72px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.01em;
}
.page-title { margin: 56px 0 16px; }
.lead { color: var(--dim); max-width: 62ch; margin-bottom: 32px; }
.section { margin: 96px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2, .section-title { font: 700 28px/1 var(--display); text-transform: uppercase; }
.section-title { margin: 56px 0 20px; }
.link { font: 500 13px var(--mono); text-transform: uppercase; color: var(--dim); }
.link:hover { color: var(--ink); }
.provider { color: var(--dim); }
.empty { color: var(--dim); padding: 48px 0; }
.cc {
  display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--dim);
  border: 1px solid var(--line); padding: 3px 4px; vertical-align: 1px; margin-right: 2px;
}

/* ---------- buttons, stars, status ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 48px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); cursor: pointer;
  font: 600 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); color: var(--black); }
.btn .ico { width: 16px; height: 16px; transition: transform .15s; }
.btn:hover .ico { transform: translateX(3px); }
.btn-quiet, .btn-ghost { border-color: var(--line-strong); }
.btn-primary { background: var(--ink); color: var(--black); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-live { border-color: var(--live); background: var(--live); color: #fff; }
.btn-live:hover { background: transparent; color: var(--live); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

.star {
  width: 48px; height: 48px; flex: none; border: 1px solid var(--line-strong); border-radius: 0; background: transparent;
  color: var(--dim); font-size: 18px; cursor: pointer;
}
.star:hover { color: var(--ink); border-color: var(--ink); }
.star[aria-pressed="true"] { color: var(--black); background: var(--ink); border-color: var(--ink); }

.status, .badge {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: 1px;
  font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--dim);
}
.status::before, .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.ok { color: var(--go); } .ok::before { background: var(--go); }
.warn { color: var(--warn); } .warn::before { background: var(--warn); }
.bad { color: var(--bad); } .bad::before { background: var(--bad); }
.live { color: var(--live); } .live::before { background: var(--live); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- hero ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  /* full-bleed: break out of the 1440px column, keep text aligned with it */
  margin: 0 calc(50% - 50vw); padding: 0 calc(50vw - 50%) 72px; min-height: 72vh;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.1)),
              linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 45%),
              var(--hero-img, none) center / cover no-repeat, var(--black);
}
.has-hero main > .hero:first-child, .has-hero main > section:first-child.hero { padding-top: calc(var(--header-h) + 48px); }
.hero-full { min-height: 100svh; }
/* photo placeholder: the same frame everywhere a photo will go */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(135deg, #07070a 0 18px, #0c0c10 18px 19px);
}
.ph-label { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ph-name { font: 700 clamp(28px, 4vw, 56px)/1 var(--display); text-transform: uppercase; color: #2c2c34; padding: 0 16px; }
.hero > .ph { position: absolute; z-index: 0; top: calc(var(--header-h) + 32px); right: var(--edge); bottom: 56px; left: 55%; }
.hero > .hero-inner { position: relative; z-index: 1; }
.rocket-img .ph { height: 100%; border: 0; }
.photo-credit {
  position: absolute; right: var(--edge); bottom: 16px; max-width: 46ch; text-align: right;
  font: 400 11px var(--mono); text-transform: uppercase; color: var(--faint); text-decoration: none;
}
.photo-credit:hover { color: var(--ink); }
.hero-inner { max-width: 880px; }
.hero h1 {
  font: 700 clamp(44px, 7.5vw, 104px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.015em;
  margin: 12px 0 18px; text-wrap: balance;
}
.hero h1 a { text-decoration: none; }
.hero-kicker, .eyebrow { font: 500 15px var(--mono); text-transform: uppercase; color: var(--ink); display: flex; gap: 12px 24px; align-items: center; flex-wrap: wrap; }
.hero-meta, .hero .sub { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--dim); font-size: 17px; }
.hero .sub a { color: var(--ink); }
.hero .time { font: 500 15px var(--mono); text-transform: uppercase; margin-top: 8px; }
.hero-desc { color: var(--dim); max-width: 60ch; margin-top: 16px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.big-countdown { font: 300 clamp(40px, 6vw, 72px)/1 var(--mono); margin: 20px 0 8px; font-variant-numeric: tabular-nums; }

/* digit-tile countdown (the one loud element) */
.digits { display: flex; align-items: flex-start; gap: 18px; margin: 28px 0 4px; }
.dg-sign { font: 500 20px/64px var(--mono); color: var(--dim); }
.dg { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dg-nums { display: flex; gap: 4px; }
.dg-nums b {
  display: grid; place-items: center; width: 44px; height: 64px;
  border: 1px solid var(--line-strong); background: rgba(0,0,0,.45);
  font: 300 46px/1 var(--display); font-variant-numeric: tabular-nums;
}
.dg-lbl { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.digits.soon .dg-nums b { border-color: var(--live); }

/* ---------- home: events strip, filters ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.strip-item {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 24px 0; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.strip-item strong { font: 600 20px/1.15 var(--display); text-transform: uppercase; }
.strip-item .provider, .strip-item time { font: 500 12px var(--mono); text-transform: uppercase; color: var(--dim); }
.strip-item:hover strong { text-decoration: underline; text-underline-offset: 4px; }

.filters { margin: 28px 0 12px; }
.tabs { display: flex; gap: 28px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 14px 0; cursor: pointer; white-space: nowrap;
  font: 600 15px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab input { position: absolute; opacity: 0; pointer-events: none; }
.tab img { width: 18px; height: 18px; object-fit: contain; background: #fff; padding: 1px; filter: grayscale(1); opacity: .8; }
.tab:has(input:checked) img, .tab:hover img { filter: none; opacity: 1; }
.tab .count { font: 500 12px var(--mono); color: var(--faint); }
.tab:has(input:checked) { color: var(--ink); border-bottom-color: var(--ink); }
.tab:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.check { display: inline-flex; gap: 8px; align-items: center; font: 500 13px var(--mono); text-transform: uppercase; color: var(--dim); margin-left: 8px; cursor: pointer; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
.results-head { display: flex; justify-content: space-between; gap: 16px; margin: 28px 0 0; font: 500 12px var(--mono); text-transform: uppercase; color: var(--dim); }
.htmx-request#results, .htmx-request #results { opacity: .5; }

/* ---------- launch rows (SpaceX-style manifest table) ---------- */
.list { display: block; }
.lrow {
  display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr) auto;
  gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line);
  font: 400 13px/1.45 var(--mono); text-transform: uppercase;
}
.lrow:not(.lrow-head):hover { background: linear-gradient(90deg, transparent, var(--raise) 8%, var(--raise) 92%, transparent); }
.lrow-head { padding: 14px 0; color: var(--dim); font-size: 12px; letter-spacing: .04em; margin-top: 12px; }
.lrow h3 { font: 600 22px/1.1 var(--display); letter-spacing: .01em; }
.lrow h3 a { text-decoration: none; }
.lrow h3 a:hover { text-decoration: underline; }
.lrow-mission p { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.lrow-cell a { text-decoration: none; }
.lrow-cell a:hover { text-decoration: underline; }
.lbl { display: none; }
.countdown { display: block; color: var(--dim); font: 500 12px var(--mono); margin-top: 4px; font-variant-numeric: tabular-nums; }
.countdown.soon { color: var(--live); }
.lrow-actions { display: flex; gap: 8px; justify-content: flex-end; }
.lrow-actions .btn { height: 40px; padding: 0 16px; font-size: 13px; min-width: 128px; }
.lrow-actions .star { width: 40px; height: 40px; }
.erow { grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; }
.erow-desc { text-transform: none; font: 400 14px/1.5 var(--sans); color: var(--dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- panels ---------- */
.card { border: 1px solid var(--line); background: transparent; border-radius: 0; }
.card.pad { padding: 28px; margin-bottom: 24px; }
.card h2 { font: 700 22px/1.1 var(--display); text-transform: uppercase; margin-bottom: 16px; }
.card .sub { color: var(--dim); margin-bottom: 8px; }
.notice { border: 1px solid var(--line); padding: 16px 20px; margin: 20px 0; color: var(--dim); font-size: 14px; }
.notice p { margin-bottom: 12px; }
.meter { height: 2px; background: var(--line); }
.meter span { display: block; height: 100%; background: var(--ink); }

/* ---------- launch detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 48px; margin: 56px 0 96px; }
.detail .card.pad { border-width: 1px 0 0; padding: 24px 0 8px; }
.detail .card h2 { font-size: 26px; }
.detail .col > p, .detail p { max-width: 70ch; }
.kv { display: grid; grid-template-columns: auto 1fr; margin: 0 0 12px; font: 400 13px var(--mono); text-transform: uppercase; }
.kv dt, .kv dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--dim); padding-right: 24px; }
.kv dd { text-align: right; }
.embed { aspect-ratio: 16 / 9; max-height: 80vh; margin: 48px 0 0; border: 1px solid var(--line); background: #050505; }
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed { position: relative; }
.embed-play {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(circle at center, #111 0, #050505 70%); border: 0; color: var(--ink); cursor: pointer; padding: 24px;
}
.embed-icon { display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid var(--ink); border-radius: 50%; font-size: 26px; padding-left: 6px; }
.embed-play:hover .embed-icon { background: var(--ink); color: var(--black); }
.embed-play strong { font: 600 22px var(--display); text-transform: uppercase; letter-spacing: .06em; }
.embed-note { font: 400 12px var(--mono); text-transform: uppercase; color: var(--dim); max-width: 52ch; text-align: center; }
.embed-out { position: absolute; bottom: 14px; right: 16px; }
.stream { display: flex; gap: 16px; align-items: center; padding: 14px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.stream:hover strong { text-decoration: underline; }
.stream img { width: 132px; aspect-ratio: 16/9; object-fit: cover; flex: none; }
.stream strong { display: block; margin: 6px 0 2px; font: 600 18px/1.2 var(--display); text-transform: uppercase; }
.stream small { color: var(--dim); font: 400 12px var(--mono); text-transform: uppercase; }
.stream .status, .stream .badge { margin-right: 10px; }
.timeline { list-style: none; padding: 0; margin: 0; font: 400 13px var(--mono); text-transform: uppercase; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--faint); }
.timeline code { font: inherit; }
.timeline li.done { color: var(--ink); }
.timeline li.current { color: var(--black); background: var(--ink); padding-left: 8px; }
.updates { list-style: none; padding: 0; margin: 0; }
.updates li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.updates time { display: block; color: var(--dim); font: 400 12px var(--mono); text-transform: uppercase; margin-bottom: 4px; }
.changes { list-style: none; padding: 0; margin: 0; font: 400 13px var(--mono); text-transform: uppercase; }
.changes li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.changes small { display: block; color: var(--dim); margin-top: 2px; }
.arrow { margin-right: 6px; }
.arrow.later { color: var(--warn); }
.arrow.earlier { color: var(--go); }
.warn-box { border-color: var(--bad) !important; }
.detail ul:not([class]) { padding-left: 18px; }
#live-hero, .rocket-hero { min-height: 86vh; }

/* ---------- grids: providers, rockets ---------- */
.grid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); background: var(--line); border: 1px solid var(--line); margin-bottom: 96px; }
.grid > * { background: var(--black); }
.grid .empty { padding: 48px 24px; }
.provider-card, .card.provider { padding: 28px; display: flex; flex-direction: column; border: 0; }
.card.provider header { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.card.provider h2 { font-size: 24px; margin: 0; }
.card.provider .sub { font: 400 12px var(--mono); text-transform: uppercase; margin: 6px 0 0; }
.logo-img { width: 52px; height: 52px; object-fit: contain; background: #fff; padding: 5px; flex: none; }
.stats { display: flex; gap: 28px; margin: 0 0 16px; }
.stats dt { font: 500 11px var(--mono); text-transform: uppercase; color: var(--dim); letter-spacing: .04em; }
.stats dd { margin: 4px 0 0; font: 400 34px/1 var(--display); }
.card.provider > .sub, .rocket-card .sub { color: var(--dim); }
.next { margin-top: auto; padding-top: 16px; font: 400 13px var(--mono); text-transform: uppercase; color: var(--dim); }
.next a { color: var(--ink); }
.card.provider .actions { margin-top: 20px; }

.rocket-card { display: flex; flex-direction: column; border: 0; }
.rocket-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #070707 center / cover no-repeat; }
.rocket-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: transform .4s, filter .4s; }
.rocket-card:hover .rocket-img img { transform: scale(1.03); filter: none; }
.rocket-img { text-decoration: none; }
.rocket-card .pad { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.rocket-card h2 { font: 700 30px/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.rocket-card h2 a { text-decoration: none; }
.rocket-card .sub { font: 400 12px var(--mono); text-transform: uppercase; margin-bottom: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- tiles, tables ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 48px 0; }
.tile { background: var(--black); padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; }
.tile-label { font: 500 12px var(--mono); text-transform: uppercase; color: var(--dim); letter-spacing: .04em; }
.tile-value { font: 400 56px/1 var(--display); font-variant-numeric: tabular-nums; }
.tile-note { font: 400 12px var(--mono); text-transform: uppercase; color: var(--dim); }
.tile-note.up { color: var(--go); }
.tile-note.down { color: var(--bad); }

.table-wrap { overflow-x: auto; }
.card.table-wrap { border-width: 1px 0 0; }
.table { width: 100%; border-collapse: collapse; font: 400 13px/1.4 var(--mono); text-transform: uppercase; }
.table th, .table td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--dim); font-weight: 500; font-size: 12px; letter-spacing: .04em; }
.table tbody tr:hover { background: var(--raise); }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table .sub { color: var(--dim); }
.nowrap { white-space: nowrap; }
.pager { display: flex; justify-content: space-between; margin: 28px 0 96px; }

/* ---------- stats chart ---------- */
.chart-card { position: relative; margin: 48px 0; }
.chart-card.card.pad { border-width: 1px 0 0; padding: 28px 0 0; }
.chart-card figcaption .sub { font: 400 13px var(--mono); text-transform: uppercase; }
.legend { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font: 400 12px var(--mono); text-transform: uppercase; color: var(--dim); }
.legend li, .chart-tip li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 10px; height: 10px; display: inline-block; flex: none; }
.chart { width: 100%; min-height: 300px; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .tick { fill: var(--dim); font: 11px var(--mono); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .col.on path { filter: brightness(1.3); }
.chart-tip {
  position: absolute; transform: translateY(-100%); pointer-events: none; z-index: 5; min-width: 200px;
  background: var(--black); border: 1px solid var(--line-strong); padding: 12px 14px; font: 400 12px var(--mono); text-transform: uppercase;
}
.chart-tip ul { list-style: none; padding: 0; margin: 8px 0; }
.chart-tip b { margin-left: auto; padding-left: 16px; font-weight: 500; }
.chart-tip small { color: var(--dim); }
.table-view { margin-top: 20px; }
.table-view summary { cursor: pointer; font: 500 12px var(--mono); text-transform: uppercase; color: var(--dim); }
.table-view .table-wrap { max-height: 380px; overflow: auto; margin-top: 12px; }

.rank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; margin-bottom: 96px; }
.rank-grid .card.pad { border-width: 1px 0 0; padding: 24px 0 0; margin: 0; }
.rank { list-style: none; padding: 0; margin: 0; }
.rank li { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; font: 400 12px var(--mono); text-transform: uppercase; }
.rank-name { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name:hover { text-decoration: underline; }
.rank-bar { height: 10px; }
.rank-bar span { display: block; height: 100%; background: var(--ink); min-width: 2px; }
.rank-val { text-align: right; }
.rank-rate { color: var(--dim); width: 3.5em; text-align: right; }

/* ---------- map ---------- */
.map { height: min(72vh, 680px); margin-bottom: 96px; border: 1px solid var(--line); background: #050505; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.key-up { background: var(--ink); }
.key-all { background: #6b6b78; }
.pin span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--black); font: 600 14px var(--display); border: 2px solid var(--black);
  box-shadow: 0 0 0 4px rgba(240,240,250,.2);
}
.leaflet-container { font: 400 13px var(--sans); background: #050505; }
.map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.42) contrast(1.6); }
.leaflet-control-attribution { background: rgba(0,0,0,.7) !important; color: var(--dim); }
.leaflet-control-attribution a { color: var(--ink); }
.leaflet-bar a { background: var(--black); color: var(--ink); border-color: var(--line-strong); border-radius: 0 !important; }
.leaflet-bar { border-radius: 0; border: 1px solid var(--line-strong) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--black); color: var(--ink); border-radius: 0; border: 1px solid var(--line-strong); box-shadow: none; }
.leaflet-popup-content strong { font: 600 17px var(--display); text-transform: uppercase; }
.leaflet-popup-content a { color: var(--ink); }
.leaflet-container a.leaflet-popup-close-button { color: var(--dim); }
.pop-list { padding-left: 18px; margin: 8px 0; }
.pop-list li { margin-bottom: 6px; }
.pop-list time { color: var(--dim); font: 400 11px var(--mono); text-transform: uppercase; }

/* ---------- globe ---------- */
.globe-wrap { position: relative; margin: 0 calc(50% - 50vw); height: calc(100svh - var(--header-h) - 1px); min-height: 560px; background: #000; overflow: hidden; }
.globe { position: absolute; inset: 0 0 0 calc(var(--edge) + 340px); cursor: grab; }
.globe:active { cursor: grabbing; }
.globe-panel {
  position: absolute; top: 24px; left: var(--edge); bottom: 24px; width: 340px; overflow-y: auto; z-index: 2;
  padding: 24px; background: rgba(0, 0, 0, .72); border: 1px solid var(--line); backdrop-filter: blur(6px);
  scrollbar-width: thin;
}
.globe-title { font: 700 44px/.95 var(--display); text-transform: uppercase; margin-bottom: 20px; }
.globe-panel h2 { font: 600 15px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 24px 0 4px; }
.glist { list-style: none; padding: 0; margin: 0; }
.glist li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.glist button {
  flex: 1; display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 8px 12px 0;
  background: none; border: 0; color: var(--ink); cursor: pointer; font: 400 12px var(--mono); text-transform: uppercase;
}
.glist button strong { font: 600 18px/1.1 var(--display); }
.glist button span { color: var(--dim); }
.glist button:hover strong, .glist button[aria-pressed="true"] strong { text-decoration: underline; text-underline-offset: 4px; }
.glist button[aria-pressed="true"] { box-shadow: inset 2px 0 0 var(--ink); padding-left: 10px; }
.glist .countdown { margin: 0; color: var(--live); }
.live-num { font-variant-numeric: tabular-nums; color: var(--ink) !important; }
.fine { color: var(--faint); font-size: 13px; line-height: 1.5; margin-top: 16px; }
.fine a { color: var(--dim); }
.gmarker {
  display: flex; flex-direction: column; gap: 2px; transform: translate(14px, -50%); text-decoration: none; pointer-events: auto;
  padding: 6px 8px; background: rgba(0,0,0,.75); border-left: 2px solid var(--live); white-space: nowrap;
}
.gmarker a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.gmarker a + a { padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--line); }
.gmarker strong { font: 600 14px/1 var(--display); text-transform: uppercase; color: var(--ink); }
.gmarker a:hover strong { text-decoration: underline; }
.gmarker.on { border-left-color: var(--ink); }
.gmarker .countdown { margin: 0; font-size: 11px; color: var(--live); }
.ghist { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.ghist select { width: 120px; }
.ghist-count { font: 400 12px var(--mono); text-transform: uppercase; color: var(--dim); }
.glegend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 11px var(--mono); text-transform: uppercase; color: var(--dim); }
.glegend li { display: flex; align-items: center; gap: 6px; }
.glegend i { width: 14px; height: 2px; }
.k-ok { background: rgb(120, 170, 255); }
.k-fail { background: #f5b942; }
.k-next { background: var(--live); height: 3px !important; }
.gsat {
  display: flex; align-items: center; gap: 6px; transform: translate(-5px, -50%); pointer-events: auto; cursor: pointer;
  background: none; border: 0; padding: 0; color: var(--ink);
}
.gsat i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(240,240,250,.25), 0 0 12px rgba(240,240,250,.6); }
.gsat span { font: 600 13px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; text-shadow: 0 0 4px #000, 0 0 8px #000; }
.gsat.on i { background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.35), 0 0 18px #fff; }
.gtip { font: 400 12px/1.4 var(--mono); text-transform: uppercase; background: #000; border: 1px solid var(--line-strong); padding: 8px 10px; color: var(--ink); }
.gtip b { font: 600 15px var(--display); }
.globe-page .foot { margin-top: 0; }

/* ---------- legal pages ---------- */
.legal { max-width: 72ch; margin-bottom: 96px; }
.legal h2 { font: 700 26px/1.1 var(--display); text-transform: uppercase; margin: 40px 0 12px; }
.legal h3 { font: 600 18px var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 24px 0 8px; color: var(--dim); }
.legal p, .legal li { line-height: 1.65; margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.todo { background: none; color: var(--bad); font-weight: 600; }
.todo-box { border-color: var(--bad); color: var(--ink); }

/* ---------- watchlist ---------- */
.notify-box.card.pad { margin: 0 0 48px; }
.notify-box .filter-row { font: 500 13px var(--mono); text-transform: uppercase; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 4px 4px 4px 14px; font: 500 13px var(--mono); text-transform: uppercase; }
.chip a { text-decoration: none; }
.chip small { color: var(--dim); }
.chip .star { width: 32px; height: 32px; font-size: 14px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 96px; }
.foot-inner { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; padding-top: 40px; padding-bottom: 48px; color: var(--dim); font-size: 14px; }
.foot-inner p { flex: 1 1 360px; max-width: 70ch; }
.foot nav { gap: 20px; }
.foot nav a { font: 500 12px var(--mono); text-transform: uppercase; text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .top-inner { gap: 20px; }
  .tz select { width: 170px; }
  .lrow { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.4fr) auto; }
  .lrow > .lrow-cell:nth-child(2) { display: none; }
  .lrow-head > span:nth-child(2) { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: auto; }
  .top-inner { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 10px; row-gap: 6px; }
  .top nav { order: 3; width: 100%; gap: 20px; }
  .tz select { width: 150px; height: 34px; }
  .has-hero .top { position: absolute; }
  .hero { padding-bottom: 48px; }
  .has-hero main > .hero:first-child { padding-top: 140px; }
  .digits { gap: 10px; }
  .dg-sign { display: none; }
  .dg-nums b { width: 34px; height: 50px; font-size: 34px; }
  .lrow, .lrow-head, .erow { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .lrow-head { display: none; }
  .lrow > .lrow-cell:nth-child(2) { display: block; }
  .lbl { display: inline; color: var(--dim); margin-right: 8px; }
  .lbl::after { content: ":"; }
  .lrow-actions { justify-content: flex-start; }
  .detail { grid-template-columns: 1fr; gap: 0; }
  .section { margin: 64px 0; }
  .stream img { width: 96px; }
  .rank li { grid-template-columns: minmax(0, 1fr) 60px auto auto; }
  .table th, .table td { padding: 12px 12px 12px 0; }
  .stats { gap: 20px; }
  .foot-inner { flex-direction: column; gap: 16px; }
  .hero > .ph { left: var(--gutter); top: 120px; bottom: auto; height: 180px; opacity: .6; }
  .globe-wrap { height: auto; min-height: 0; overflow: visible; }
  .globe { position: relative; inset: auto; height: 72svh; }
  .globe-panel { position: static; width: auto; margin: 0 var(--gutter); border: 0; padding: 24px 0; background: none; backdrop-filter: none; }
}
