/* Space news — "mission control": deep night blue, starlight text, one amber accent (ignition) and a cyan
   telemetry colour. Chakra Petch for headings and numbers, IBM Plex Sans for reading, Plex Mono for data. */
:root {
    --bg: #070b14; --bg2: #0c1220; --surface: #111a2b; --surface2: #172236;
    --ink: #e7ecf5; --ink2: #b6c0d2; --muted: #8391a8; --faint: #56627a;
    --line: #1f2b40; --line2: #18233a;
    --accent: #ffb547; --accent-ink: #ffc56e; --cyan: #56d4ff;
    --go: #3ddc97; --hold: #ffb547; --tbd: #8391a8; --fail: #ff6b6b;
    --display: "Chakra Petch", system-ui, sans-serif;
    --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
    --r: 10px;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
img { display: block; max-width: 100%; }
.empty, .muted { color: var(--muted); }
.empty { padding: 18px 0; }
.fine { font-size: 12.5px; color: var(--faint); margin: 0; }

/* ---- masthead ---- */
.mast { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.mast-in { max-width: 1280px; margin: 0 auto; padding: 0 28px; height: 62px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .3px; white-space: nowrap; text-transform: uppercase; }
.brand:hover { color: var(--ink); }
.brand-mark circle { fill: var(--accent); }
.brand-mark ellipse { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.brand-mark .sat { fill: var(--cyan); }
.brand.small { font-size: 18px; }
.desks { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.desks::-webkit-scrollbar { display: none; }
.desks a { padding: 6px 10px; border-radius: 6px; font-size: 14.5px; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.desks a:hover { background: var(--surface); color: var(--ink); }
.desks a.on { background: var(--accent); color: #1a1204; }
.search input { width: 210px; font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); color: var(--ink); outline: none; }
.search input:focus { border-color: var(--accent); }
.search.big input { width: 100%; max-width: 560px; font-size: 17px; padding: 12px 16px; margin-top: 14px; }

.pulse { border-top: 1px solid var(--line2); background: var(--bg2); }
.pulse-in { max-width: 1280px; margin: 0 auto; padding: 0 28px; height: 38px; display: flex; align-items: center; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.pulse-in::-webkit-scrollbar { display: none; }
.pulse-lbl { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); white-space: nowrap; }
.pulse-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.pulse-item i, .chip i, .quick i, .lrow-meta i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.pulse-item b { font-family: var(--mono); font-weight: 400; color: var(--faint); font-size: 12.5px; }

/* ---- layout ---- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 30px 28px 40px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; margin-top: 36px; }
.rail { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 124px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--accent); padding-bottom: 8px; margin-bottom: 4px; }
.sec-head h2 { font-family: var(--display); font-size: 15px; font-weight: 600; margin: 0; text-transform: uppercase; letter-spacing: .06em; }
.sec-head a { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.panel .sec-head { border-color: var(--line); }
.kicker { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--cyan); margin-bottom: 6px; }
.kicker span { color: var(--faint); text-transform: none; letter-spacing: 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); }
.eyebrow a { color: var(--accent-ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #1a1204; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 8px; }
.btn:hover { background: #ffc56e; color: #1a1204; }

/* ---- next launch hero (the signature) ---- */
.next { position: relative; margin: -30px -28px 34px; padding: 40px 28px 34px; overflow: hidden; border-bottom: 1px solid var(--line); }
.next::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, var(--bg) 30%, color-mix(in srgb, var(--bg) 70%, transparent) 60%, color-mix(in srgb, var(--bg) 55%, transparent)), var(--img); background-size: cover; background-position: center; opacity: .95; }
.next-in { position: relative; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.next h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 50px); line-height: 1.02; letter-spacing: -.3px; margin: 10px 0 10px; font-weight: 700; }
.next-meta { color: var(--ink2); font-size: 17px; margin: 0 0 22px; }
.next-meta a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); }
.next-when { color: var(--ink2); font-family: var(--mono); font-size: 13.5px; margin: 16px 0 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.next-list { background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; backdrop-filter: blur(6px); }
.countdown { display: flex; gap: 10px; }
.countdown span { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 10px 8px; background: color-mix(in srgb, var(--bg2) 85%, transparent); border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.countdown b { font-family: var(--display); font-size: 38px; line-height: 1; color: var(--ink); font-weight: 600; letter-spacing: .5px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.countdown.past b { color: var(--go); }
.countdown.big { margin: 0 0 22px; }

/* launch status pills + rows */
.st { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 4px; background: var(--surface2); color: var(--tbd); white-space: nowrap; }
.st-go, .st-success, .st-in-flight { background: color-mix(in srgb, var(--go) 16%, transparent); color: var(--go); }
.st-hold, .st-tbc { background: color-mix(in srgb, var(--hold) 16%, transparent); color: var(--hold); }
.st-failure, .st-partial-failure { background: color-mix(in srgb, var(--fail) 16%, transparent); color: var(--fail); }
.lrow { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.lrow:last-child { border-bottom: 0; }
.lrow:hover { color: inherit; }
.lrow:hover .lrow-name { color: var(--accent-ink); }
.lrow time { display: flex; flex-direction: column; font-family: var(--mono); line-height: 1.25; }
.lrow time b { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--ink); }
.lrow time span { font-size: 11px; color: var(--muted); }
.lrow-body { min-width: 0; display: flex; flex-direction: column; }
.lrow-name { font-weight: 600; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lday h2 { font-family: var(--display); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); margin: 26px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-weight: 600; }
.lday:first-child h2 { margin-top: 0; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.quick a { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink2); background: var(--bg2); }
.quick a b { font-family: var(--mono); font-weight: 400; color: var(--faint); font-size: 12px; }
.quick a.on { border-color: var(--accent); color: var(--ink); }
.facts dl { margin: 0 0 16px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 9px 12px; font-size: 14.5px; }
.facts dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; }

/* ---- lead ---- */
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.lead-img img, .second-img img, .story-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r); background: var(--surface); }
.lead-img { display: block; margin-bottom: 16px; }
.lead-title, .story h1 { font-family: var(--display); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; margin: 0 0 12px; font-weight: 600; }
.standfirst { font-size: 17.5px; color: var(--ink2); margin: 0 0 14px; line-height: 1.55; }
.seconds { display: flex; flex-direction: column; gap: 22px; }
.second { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 16px; }
.second-img { grid-row: span 3; }
.second-img img { aspect-ratio: 4/3; }
.second h3 { font-size: 17px; line-height: 1.3; margin: 0 0 8px; font-weight: 600; }

/* ---- story rows ---- */
.row { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row:not(:has(.row-img)) { grid-template-columns: minmax(0, 1fr); }
.row-img { order: 2; }
.row-img img { width: 128px; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: var(--surface); }
.row h3 { font-size: 18px; line-height: 1.32; margin: 0 0 9px; font-weight: 600; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.row-meta.big { margin: 6px 0 22px; }
.feed.narrow { max-width: 820px; }
.cov { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.cov-bar { display: inline-flex; gap: 2px; }
.cov-bar i { width: 5px; height: 11px; border-radius: 1px; background: var(--line); }
.cov-bar i.on { background: var(--faint); }
.cov.multi { color: var(--ink); }
.cov.multi .cov-bar i.on { background: var(--cyan); }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 2px 9px 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.chip:hover { border-color: var(--ink2); color: var(--ink); }

/* ---- rail widgets ---- */
.mini { list-style: none; margin: 0; padding: 0; }
.mini li { padding: 10px 0; border-bottom: 1px solid var(--line2); font-size: 14.5px; line-height: 1.38; }
.mini li:last-child { border-bottom: 0; }
.mini a { font-weight: 500; }
.mini .n { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-left: 4px; white-space: nowrap; }
.mini.dated li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 8px; }
.mini.dated time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-top: 2px; }
.mini.dated .n { grid-column: 2; margin-left: 0; }
.desk-list { list-style: none; margin: 4px 0 0; padding: 0; }
.desk-list a { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; border-bottom: 1px solid var(--line2); }
.desk-list li:last-child a { border-bottom: 0; }
.desk-list b { font-family: var(--mono); font-weight: 400; font-size: 12.5px; color: var(--muted); }

/* ---- page heads ---- */
.page-head { padding: 8px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.page-head h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin: 8px 0 10px; font-weight: 700; display: flex; align-items: center; gap: 14px; }
.page-head p { color: var(--ink2); font-size: 17.5px; max-width: 700px; margin: 0; }
.page-head p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); }
.entity-head h1 i { width: 16px; height: 16px; border-radius: 50%; background: var(--ent); display: inline-block; flex: none; box-shadow: 0 0 18px var(--ent); }
.entity-head .chips { margin-top: 16px; }

/* ---- story page ---- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; }
.story-img { margin-bottom: 20px; }
.attrib { font-size: 13.5px; color: var(--muted); margin: -4px 0 26px; }
.attrib a { text-decoration: underline; }
.cov-title { font-family: var(--display); font-size: 20px; border-bottom: 1px solid var(--accent); padding-bottom: 8px; margin: 10px 0 0; font-weight: 600; }
.cov-title span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.coverage { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.coverage li { padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); position: relative; counter-increment: c; }
.coverage li::before { content: counter(c, decimal-leading-zero); position: absolute; left: 0; top: 15px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.coverage .src { font-family: var(--mono); font-size: 12px; color: var(--cyan); margin-bottom: 3px; }
.coverage .src time { color: var(--faint); margin-left: 6px; }
.coverage a { font-size: 16.5px; font-weight: 500; line-height: 1.38; }
.coverage a span { color: var(--faint); font-size: 13px; }
.entity .ent-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.entity .ent-head i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.entity p { color: var(--ink2); font-size: 14.5px; margin: 6px 0 10px; }
.entity .more { font-family: var(--mono); font-size: 12.5px; color: var(--accent-ink); }

/* ---- directories ---- */
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 24px; }
.lab-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ent); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.lab-card:hover { border-color: var(--ink2); border-top-color: var(--ent); color: inherit; }
.lab-name { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 18px; }
.lab-name i { width: 10px; height: 10px; border-radius: 50%; background: var(--ent); }
.lab-card p { margin: 0; color: var(--ink2); font-size: 14px; }
.lab-stats { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lab-stats b { color: var(--ink); font-weight: 500; }
.lab-top { font-size: 13.5px; color: var(--ink2); border-top: 1px solid var(--line2); padding-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line2); font-size: 14.5px; vertical-align: middle; }
.tbl th { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 400; background: var(--bg2); }
.tbl .num { text-align: right; font-family: var(--mono); }
.tbl .headline a { font-weight: 500; }

/* ---- prose ---- */
.prose { max-width: 720px; }
.prose h1 { font-family: var(--display); font-size: 40px; margin: 8px 0 16px; }
.prose h2 { font-family: var(--display); font-size: 21px; margin: 28px 0 8px; font-weight: 600; }
.prose p { color: var(--ink2); font-size: 17px; }
.prose a { color: var(--accent-ink); text-decoration: underline; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; }
.foot-in { max-width: 1280px; margin: 0 auto; padding: 36px 28px 20px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot-in p { color: var(--muted); font-size: 14px; max-width: 44ch; }
.foot h4 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; font-weight: 400; }
.foot nav a { display: block; font-size: 14px; color: var(--ink2); padding: 3px 0; }
.foot-fine { max-width: 1280px; margin: 0 auto; padding: 14px 28px 26px; font-size: 12.5px; color: var(--faint); border-top: 1px solid var(--line2); }

/* ---- responsive ---- */
@media (max-width: 1080px) {
    .search input { width: 150px; }
    .cols, .story-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
}
@media (max-width: 900px) {
    .next-in, .lead-grid, .cols, .story-grid { grid-template-columns: minmax(0, 1fr); }
    .rail { position: static; }
    .search { display: none; }
    .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .mast-in, .pulse-in, .wrap, .foot-in, .foot-fine { padding-left: 16px; padding-right: 16px; }
    .next { margin: -30px -16px 28px; padding: 28px 16px; }
    .mast-in { gap: 14px; }
    .brand-name { display: none; }
    .countdown { gap: 6px; }
    .countdown span { min-width: 0; flex: 1; }
    .countdown b { font-size: 28px; }
    .second { grid-template-columns: 110px minmax(0, 1fr); }
    .row { grid-template-columns: minmax(0, 1fr) 92px; }
    .row-img img { width: 92px; }
    .row h3 { font-size: 16.5px; }
    .tbl .headline { display: none; }
    .facts dl { grid-template-columns: 96px minmax(0, 1fr); }
}
