/* Gods Eyes public pages (server/pages). The console's look without the
   globe: deep black, cyan for data, signal gold for the brand and actions. */

:root {
  --bg: #05070b;
  --bg-raised: #0a0f17;
  --panel: rgba(10, 15, 23, 0.86);
  --line: rgba(140, 220, 255, 0.14);
  --line-strong: rgba(140, 220, 255, 0.32);
  --cyan: #3ce0ff;
  --cyan-soft: rgba(60, 224, 255, 0.12);
  --gold: #f5b942;
  --gold-soft: rgba(245, 185, 66, 0.14);
  --violet: #b892ff;
  --violet-soft: rgba(184, 146, 255, 0.14);
  --red: #ff4d4d;
  --green: #4dffa6;
  --text: #e8eef4;
  --muted: rgba(232, 238, 244, 0.66);
  --faint: rgba(232, 238, 244, 0.42);
  --font-display: 'Chakra Petch', 'JetBrains Mono', ui-monospace, monospace;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans:
    Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  --radius: 12px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      ellipse 90% 60% at 50% -10%,
      rgba(60, 224, 255, 0.09),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 100%,
      rgba(245, 185, 66, 0.06),
      transparent 70%
    ),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 400 16px/1.65 var(--font-sans);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(60, 224, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 224, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

a {
  color: var(--cyan);
  text-decoration-color: rgba(60, 224, 255, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

img,
svg {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--gold);
  color: var(--bg);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 7, 11, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 5px;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 10px rgba(245, 185, 66, 0.35));
}

.brand b {
  color: var(--gold);
  font-weight: 600;
}

.site-nav {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 12px 8px;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: none;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--cyan-soft);
}

.site-header .btn {
  margin-left: auto;
}

@media (min-width: 900px) {
  .site-nav {
    order: 0;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    justify-content: center;
  }
  .site-header .btn {
    margin-left: 0;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(10, 15, 23, 0.6);
  color: var(--text);
  font: 600 13px/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-gold {
  border-color: var(--gold);
  background: var(--gold);
  color: #05070b;
  box-shadow: 0 0 24px rgba(245, 185, 66, 0.25);
}

.btn-gold:hover {
  background: #ffcb5c;
  border-color: #ffcb5c;
  color: #05070b;
}

.btn-violet {
  border-color: var(--violet);
  background: var(--violet);
  color: #05070b;
  box-shadow: 0 0 24px rgba(184, 146, 255, 0.25);
}

.btn-violet:hover {
  background: #cdb2ff;
  border-color: #cdb2ff;
  color: #05070b;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── Type ── */
main {
  display: block;
  padding: 28px 0 56px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker.gold {
  color: var(--gold);
}

.kicker.violet {
  color: var(--violet);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(30px, 7vw, 54px);
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(22px, 4.4vw, 32px);
  margin-top: 8px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 14px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.mono {
  font-family: var(--font-mono);
}

.hero {
  padding: 18px 0 28px;
}

.section {
  margin: 40px 0 0;
}

.section > h2 {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ── Panels and grids ── */
.panel {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel.gold {
  border-color: rgba(245, 185, 66, 0.45);
  border-top: 3px solid var(--gold);
  box-shadow: 0 0 40px rgba(245, 185, 66, 0.07);
}

/* Each plan's colour, the same as the upgrade card's. */
.panel.plan-field {
  border-top: 3px solid var(--cyan);
}

.panel.plan-command {
  border-color: rgba(184, 146, 255, 0.5);
  border-top: 3px solid var(--violet);
  background: linear-gradient(180deg, var(--violet-soft), var(--panel) 45%);
  box-shadow: 0 0 40px rgba(184, 146, 255, 0.09);
}

.panel.plan-command .ticks.lock li::before {
  border-color: var(--violet);
  background: var(--violet);
}

.plan-for {
  margin: 0 0 12px;
  font-weight: 500;
  color: var(--text);
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}

.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  border-color: var(--line-strong);
}

a.card:hover h3 {
  color: var(--cyan);
}

.card h3 {
  margin-bottom: 6px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font: 500 11px/1.6 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip.live {
  border-color: rgba(77, 255, 166, 0.5);
  color: var(--green);
}

.chip.live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}

.chip.off {
  border-color: rgba(255, 77, 77, 0.45);
  color: #ff8a8a;
}

.chip.gold {
  border-color: rgba(245, 185, 66, 0.5);
  color: var(--gold);
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chip.live::before {
    animation: none;
  }
}

/* ── Facts (definition grids) ── */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

/* Lines on the cells, not gaps over a background: a short last row leaves
   plain panel rather than a lit empty cell. */
.facts > div {
  padding: 14px 16px;
  box-shadow: 0 0 0 0.5px var(--line);
}

.facts dt {
  margin: 0 0 4px;
  color: var(--faint);
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--cyan);
  font: 500 20px/1.25 var(--font-mono);
  overflow-wrap: break-word;
}

.facts dd small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

/* ── Map ── */
.map {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #071019;
}

.map svg {
  display: block;
  width: 100%;
  height: auto;
}

.map figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 400 13px/1.5 var(--font-mono);
}

/* ── Notes ── */
.note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: var(--gold-soft);
  color: var(--text);
  font-size: 15px;
}

.note.cyan {
  border-left-color: var(--cyan);
  background: var(--cyan-soft);
}

.note strong {
  color: var(--gold);
}

.note.cyan strong {
  color: var(--cyan);
}

/* ── Lists ── */
.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 6px 0 6px 26px;
  border-bottom: 1px solid rgba(140, 220, 255, 0.07);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 15px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--cyan);
  border-radius: 2px;
  transform: rotate(45deg);
}

.ticks.gold li::before {
  border-color: var(--gold);
}

.ticks.cols {
  columns: 1;
  column-gap: 32px;
}

.ticks.cols li {
  break-inside: avoid;
}

@media (min-width: 640px) {
  .ticks.cols {
    columns: 2;
  }
}

@media (min-width: 980px) {
  .ticks.cols {
    columns: 3;
  }
}

.ticks.lock li::before {
  border-color: var(--gold);
  background: var(--gold);
}

.event-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.event-row .glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--cyan);
  font: 600 14px/1 var(--font-mono);
}

.event-row .glyph svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.event-row h3 {
  margin: 0 0 2px;
  font-size: 17px;
}

.event-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.month {
  margin: 28px 0 10px;
  color: var(--gold);
  font: 500 13px/1.4 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.filters a {
  text-decoration: none;
}

.filters a[aria-current='page'] {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(140, 220, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--faint);
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--bg-raised);
}

/* ── Pricing ── */
.plans {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
}

/* A link to one plan (/pricing#plan-black) stops below the sticky header,
   with the plan's kicker in view. */
.plans h2[id] {
  scroll-margin-top: 130px;
}

.price {
  margin: 4px 0 6px;
  font: 600 42px/1 var(--font-display);
  color: var(--text);
}

.price small {
  color: var(--muted);
  font: 400 15px/1 var(--font-sans);
}

/* ── Features ── */
.feature {
  display: grid;
  gap: 18px;
  align-items: center;
  margin: 0 0 34px;
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: 1.2fr 1fr;
  }
  .feature:nth-of-type(even) .shot {
    order: 2;
  }
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #071019;
  aspect-ratio: 16 / 9;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Forms ── */
.search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.search input {
  flex: 1 1 220px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.8);
  color: var(--text);
  font: 500 15px/1.2 var(--font-mono);
  letter-spacing: 0.06em;
}

.search input::placeholder {
  color: var(--faint);
}

/* ── Credits ── */
.credits {
  margin: 0;
  padding: 0;
  list-style: none;
}

.credits li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(140, 220, 255, 0.07);
  color: var(--muted);
  font-size: 15px;
}

/* ── Legal pages (server/pages/legal.js) ── */
.legal {
  max-width: 860px;
}

/* A link from the contents stops below the sticky header. */
.legal .section {
  scroll-margin-top: 110px;
}

.legal .filters {
  margin-top: 18px;
}

.legal h3 {
  margin-top: 22px;
}

.legal code {
  font: 400 0.92em/1.4 var(--font-mono);
  overflow-wrap: anywhere;
}

.legal td {
  overflow-wrap: anywhere;
}

.legal .table-wrap + p,
.legal .spaced {
  margin-top: 14px;
}

/* On a phone each row stacks, with its column names beside the words. */
@media (max-width: 600px) {
  .legal thead {
    display: none;
  }

  .legal table,
  .legal tbody,
  .legal tr,
  .legal td {
    display: block;
  }

  .legal tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .legal tr:last-child {
    border-bottom: 0;
  }

  .legal td {
    padding: 4px 14px;
    border: 0;
  }

  .legal td::before {
    content: attr(data-label);
    display: block;
    color: var(--faint);
    font: 500 11px/1.6 var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
}

.legal-meta {
  color: var(--muted);
  font: 400 13px/1.5 var(--font-mono);
}

.legal-caps {
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* An unfilled detail: meant to be impossible to miss. */

/* ── Breadcrumbs ── */
.crumbs {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--faint);
  font: 400 12px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
}

.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--faint);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--faint);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 14px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cyan);
}

.brief-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: brief;
}

.brief-item {
  position: relative;
  padding: 14px 0 14px 40px;
  border-top: 1px solid var(--line);
  counter-increment: brief;
}

.brief-item::before {
  content: counter(brief);
  position: absolute;
  top: 16px;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--gold);
  border-radius: 50%;
}

.brief-item[data-severity='critical']::before {
  background: var(--red);
}

.brief-line {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.4;
}

.brief-item .small {
  margin: 2px 0 0;
}

.brief-note {
  margin-top: 18px;
}

.brief-earlier {
  margin-top: 28px;
  font-size: 18px;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

[hidden] {
  display: none !important;
}

/* ── Story and event timelines, and headlines linked to their publishers ── */
.story-summary {
  margin: 16px 0;
  padding: 16px 18px;
}

.story-summary .lead {
  margin: 0 0 8px;
}

.story-facts {
  margin: 16px 0 0;
}

.story-chart {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 8px;
}

.story-times {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.story-times li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.story-when {
  color: var(--cyan);
  font: 500 13px/1.4 var(--font-mono);
}

.story-when small {
  display: block;
  color: var(--faint);
  font-size: 11px;
}

.story-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.story-list li {
  border-bottom: 1px solid var(--line);
}

.story-list a {
  display: block;
  padding: 10px 4px;
  color: var(--text);
  text-decoration: none;
}

.story-list a:hover {
  background: var(--cyan-soft);
}

.story-head {
  display: block;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.story-by {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font: 400 12px/1.5 var(--font-mono);
  overflow-wrap: anywhere;
}

.story-row {
  display: block;
  padding: 12px 14px;
}

.story-row h3 {
  margin: 0 0 2px;
  font-size: 17px;
}

.story-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ── News: the /news hub, story pages and headline pages ── */
.news-label {
  margin: 0 0 10px;
  color: var(--muted);
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-label .muted {
  float: right;
  letter-spacing: 0.04em;
  text-transform: none;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 8px;
  color: var(--muted);
  font: 400 12px/1.5 var(--font-mono);
}

.news-topic,
.news-status {
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-status.news-developing {
  border-color: rgba(255, 77, 77, 0.6);
  color: var(--red);
}

.news-status.news-quiet {
  color: var(--gold);
  border-color: rgba(245, 185, 66, 0.5);
}

.news-top {
  padding: 22px 22px 18px;
}

.news-top h1 {
  margin: 4px 0 8px;
}

.news-latest {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.news-latest b {
  color: var(--red);
  font-weight: 600;
}

.news-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 10px;
}

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.news-main > .section:first-child,
.news-side > :first-child {
  margin-top: 0;
}

.news-coverage,
.news-reported,
[data-news-timeline] {
  padding: 16px 18px;
}

.news-coverage p {
  margin: 0 0 10px;
}

.news-hours {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 10px;
}

.news-hours rect {
  fill: var(--cyan);
  opacity: 0.75;
}

.news-hours a:hover rect,
.news-hours a[aria-current='true'] rect {
  opacity: 1;
  fill: var(--gold);
}

.news-hours text {
  fill: var(--faint);
  font: 400 10px var(--font-mono);
}

.news-filters input {
  width: 100%;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-raised);
  color: var(--text);
  font: inherit;
}

.news-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.news-chips .btn {
  padding: 4px 10px;
  font-size: 12px;
}

.news-chips .btn[aria-pressed='true'] {
  border-color: var(--gold);
  color: var(--gold);
}

.news-day {
  margin: 14px 0 4px;
  color: var(--faint);
  font: 600 12px/1.4 var(--font-mono);
  text-transform: uppercase;
}

.news-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.news-timeline li {
  display: grid;
  grid-template-columns: 46px 30px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
}

.news-when {
  color: var(--cyan);
  font: 500 12px/1.6 var(--font-mono);
}

.news-badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan);
  font: 600 10px var(--font-mono);
}

.news-by {
  display: block;
  color: var(--muted);
  font: 400 12px/1.5 var(--font-mono);
}

.news-head {
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.news-head:hover {
  color: var(--cyan);
}

.news-original {
  font: 400 12px var(--font-mono);
  white-space: nowrap;
}

.news-map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.news-photo {
  margin: 14px 0;
}

.news-photo img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-raised);
}

.news-photo figcaption {
  margin-top: 4px;
  color: var(--faint);
  font: 400 12px var(--font-mono);
}

.news-outlets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-outlets li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40% 28px;
  gap: 10px;
  align-items: center;
  padding: 3px 0;
  font-size: 14px;
}

.news-outlets span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-outlets svg {
  width: 100%;
  height: 6px;
}

.news-outlets rect {
  fill: var(--text);
}

.news-outlets rect.news-track {
  fill: var(--line);
}

.news-outlets b {
  text-align: right;
  font: 500 12px var(--font-mono);
}

.news-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-people li {
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
}

.news-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.news-figures .panel {
  padding: 12px 14px;
}

.news-figures b {
  display: block;
  color: var(--gold);
  font: 700 26px/1.2 var(--font-display);
}

.news-figures span {
  display: block;
  font-weight: 500;
}

.news-figures small {
  display: block;
  color: var(--muted);
}

.news-sources {
  margin: 4px 0 0;
  font: 400 12px var(--font-mono);
}

.news-sources a {
  margin-right: 8px;
}

.news-reported ol {
  margin: 0 0 8px;
  padding: 0 0 0 14px;
  list-style: none;
  border-left: 1px solid var(--line-strong);
}

.news-reported li {
  position: relative;
  padding: 0 0 14px 6px;
}

.news-reported li::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -20px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--text);
  border-radius: 50%;
  background: var(--bg);
}

.news-reported p {
  margin: 2px 0 0;
}

.news-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.news-card .news-latest {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.news-reader {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 22px;
}

.news-standfirst {
  margin: 12px 0;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
}

.news-standfirst p {
  margin: 0 0 4px;
}

.news-standfirst footer {
  color: var(--faint);
  font: 400 12px var(--font-mono);
}

@media (max-width: 860px) {
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .news-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Plain public pages: a tiny bar of words and one way into the map ── */
.plain-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 7, 11, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.plain-header .wrap {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  min-height: 46px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}

.plain-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  text-decoration: none;
  font: 700 13px/1 var(--font-display);
  letter-spacing: 0.14em;
}

.plain-brand b {
  color: var(--gold);
  font-weight: 700;
}

.plain-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  flex: 1 1 auto;
}

.plain-nav a {
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
}

.plain-nav a:hover,
.plain-nav a[aria-current='page'] {
  color: var(--text);
}

.plain-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

.plain-map {
  padding: 6px 12px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--gold);
  font: 600 12.5px/1.2 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
}

.plain-map:hover {
  background: var(--gold);
  color: var(--bg);
}

.plain-hero {
  padding-bottom: 8px;
}

.plain-credits {
  margin: 28px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.plain-credits a {
  color: var(--muted);
}

.search.big input {
  min-height: 52px;
  font-size: 17px;
}

.search.big .btn {
  min-height: 52px;
}

/* ── The big number ── */
.sky-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin: 12px 0 6px;
}

.sky-count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.sky-count b {
  color: var(--cyan);
  font: 700 clamp(56px, 12vw, 92px) / 1 var(--font-display);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.sky-count span {
  max-width: 24ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.sky-count.small b {
  font-size: clamp(34px, 7vw, 48px);
}

.sky-count.small span {
  font-size: 13.5px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.sky-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sky-actions .search {
  flex: 1 1 280px;
  margin: 0;
}

.sky-start .sky-actions {
  margin-top: 14px;
}

.updated {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.updated + .lead {
  margin-top: 14px;
}

.sky-grid {
  align-items: start;
  margin-top: 16px;
}

.sky-grid h2 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.sky-grid > div > h2:first-child,
.sky-grid > section > h2:first-child {
  margin-top: 0;
}

/* ── Lists by distance: one line a row on desktop, two on a phone ── */
.sky-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.sky-list li {
  border-bottom: 1px solid var(--line);
}

.sky-list li > a,
.sky-list li:not(:has(> a)) {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) minmax(0, 2fr) auto;
  gap: 2px 12px;
  align-items: baseline;
  padding: 9px 4px;
  color: var(--text);
  text-decoration: none;
}

.sky-list li > a:hover {
  background: var(--cyan-soft);
}

.sky-call {
  font: 600 14px/1.3 var(--font-mono);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.sky-who {
  color: var(--muted);
  font-size: 13.5px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sky-look {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  grid-column: 1 / span 2;
  color: var(--cyan);
  font: 500 13px/1.3 var(--font-mono);
}

.sky-alt,
.sky-far {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  color: var(--text);
  font: 500 13px/1.3 var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sky-far {
  grid-row: 2;
  color: var(--muted);
}

.sky-arrow {
  width: 13px;
  height: 13px;
  flex: none;
  fill: var(--cyan);
}

.sky-list.passes li,
.sky-list.board li > a,
.sky-list.board li:not(:has(> a)) {
  grid-template-columns: minmax(84px, 1fr) minmax(0, 2fr);
}

.sky-list.passes .sky-look {
  grid-column: 1 / -1;
}

.sky-list.names li > a {
  grid-template-columns: minmax(0, 1fr);
}

.sky-list.names .sky-look {
  grid-column: 1;
}

/* ── Small bars and chip lists ── */
.bars {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 620px;
}

.bars li {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 1.4fr) 3ch;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
}

.bars b {
  justify-self: end;
  font: 600 13px/1 var(--font-mono);
}

.bar {
  display: block;
  width: 100%;
  height: 6px;
  fill: var(--cyan);
  background: var(--cyan-soft);
  border-radius: 3px;
}

.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-chips a,
.link-chips.static span {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.3;
  text-decoration: none;
}

.link-chips a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.link-chips b {
  color: var(--cyan);
  font-family: var(--font-mono);
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px 24px;
}

.state-block h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

/* ── Flight route ── */
.route-line {
  margin: 0 0 16px;
}

.route-ends {
  margin: 0 0 6px;
}

.route-ends strong {
  color: var(--gold, #f5b942);
  letter-spacing: 0.04em;
}

.route-line progress {
  display: block;
  width: 100%;
  height: 8px;
  margin: 0 0 6px;
  accent-color: var(--gold, #f5b942);
}

/* ── Flight progress ── */
.progress {
  margin: 14px 0 18px;
}

.stage-strip {
  display: flex;
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  gap: 3px;
}

.stage-strip li {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 4px;
  border-top: 3px solid var(--line-strong);
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.2;
  text-align: center;
}

.stage-strip li.done {
  border-top-color: rgba(60, 224, 255, 0.5);
  color: var(--muted);
}

.stage-strip li[aria-current='step'] {
  border-top-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}

.raw {
  margin: 4px 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(5, 7, 11, 0.6);
  font: 400 12.5px/1.5 var(--font-mono);
  overflow-wrap: anywhere;
}

.official {
  white-space: pre-line;
}

.steps {
  padding-left: 22px;
}

.steps li {
  margin: 6px 0;
}

@media (max-width: 640px) {
  .plain-map {
    margin-left: auto;
  }

  .plain-nav {
    order: 3;
    flex: 1 1 100%;
    gap: 2px 14px;
  }

  .sky-count b {
    font-size: 64px;
  }

  .stage-strip li {
    font-size: 11px;
    padding: 6px 1px;
  }

  .bars li {
    grid-template-columns: minmax(96px, 1fr) minmax(0, 1fr) 3ch;
  }
}

.note + .lead {
  margin-top: 14px;
}

/* ── Events archive: an event's blocks and list tags (server/pages/events) ── */
.ev-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 6px 0 12px;
}

.ev-tags a.chip {
  text-decoration: none;
}

.event-row .ev-tags {
  margin: 0 0 4px;
}

h2.ev-first {
  margin-top: 0;
}

.ev-facts dd small.ev-src {
  margin-top: 6px;
  color: var(--faint);
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.04em;
}

.ev-table caption {
  padding: 8px 14px;
  text-align: left;
}

.section h3 {
  margin: 22px 0 8px;
}

.ev-towns,
.ev-related {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ev-towns li,
.ev-related li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(140, 220, 255, 0.07);
}

.ev-towns .chip {
  margin-left: auto;
}

.ev-towns a,
.ev-related a {
  color: var(--text);
  text-decoration: none;
}

.ev-towns a:hover,
.ev-related a:hover {
  color: var(--cyan);
}

.ev-related .chip {
  margin-right: 6px;
}

.facts.ev-air {
  margin: 12px 0;
}

/* People pages (/people, /people/<slug>) */
.plain-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.plain-list li {
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.plain-list a {
  color: var(--text);
}

.person-photo {
  margin: 16px 0;
  max-width: 250px;
}

.person-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.person-photo figcaption {
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.person-photo figcaption a {
  color: var(--muted);
}

/* ── Live data pages: airports, earthquakes by place, ISS, Starlink, tornadoes
   (server/pages/seo/airportArrivals.js, quakePages.js, spacePages.js,
   tornadoPages.js). No inline styles: the pages' CSP allows none. ── */
.sub-h1 {
  margin: -6px 0 10px;
  color: var(--muted);
  font: 500 15px/1.4 var(--font-mono);
  letter-spacing: 0.02em;
}

.data-table {
  font-size: 14px;
}

.data-table td {
  padding: 8px 12px;
  overflow-wrap: break-word;
}

/* A grid column may shrink below its widest table or map: the table scrolls in
   its own frame instead of pushing the page sideways on a phone. */
.sky-grid > * {
  min-width: 0;
}

.data-table th {
  padding: 8px 12px;
  white-space: nowrap;
}

.data-table tr:target td {
  background: var(--gold-soft);
}

.data-table caption {
  padding: 8px 12px;
  text-align: left;
  color: var(--muted);
}

.chart {
  margin: 12px 0;
  overflow-x: auto;
}

.chart svg {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
}

.qa h2 {
  margin-bottom: 8px;
}

.qa p {
  max-width: 72ch;
}

.explainer p {
  max-width: 72ch;
}

.method p {
  max-width: 80ch;
}

/* "Do more with this": free things on the live map, and what Black Clearance
   adds here (server/pages/upsell.js). */
.upsell-cols {
  display: grid;
  gap: 6px 36px;
}

@media (min-width: 760px) {
  .upsell-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.upsell .kicker {
  margin: 10px 0 4px;
}

.upsell .ticks li {
  border-bottom: 0;
}

.upsell-price {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.upsell-price a {
  color: var(--gold);
  text-decoration-color: rgba(245, 185, 66, 0.45);
}

.cta-line {
  margin: 22px 0;
  padding: 14px 18px;
  border: 1px solid rgba(245, 185, 66, 0.35);
  border-radius: var(--radius);
  background: var(--gold-soft);
}

.cta-line p {
  margin: 0;
}

.cta-line a {
  color: var(--gold);
}

/* FAA status box. */
.faa {
  margin: 14px 0 18px;
}

.faa .kicker {
  margin: 0 0 4px;
}

.faa-head {
  margin: 0 0 6px;
  font: 600 20px/1.3 var(--font-display);
}

.faa-clear .faa-head {
  color: var(--green);
}

.faa-delay .faa-head,
.faa-program .faa-head {
  color: var(--gold);
}

.faa-stop .faa-head {
  color: var(--red);
}

.faa-unknown .faa-head {
  color: var(--muted);
}

/* Flight category badges and the 24-hour strip. */
.cat {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  font: 600 13px/1.6 var(--font-mono);
  color: #05070b;
  vertical-align: 2px;
}

.cat-vfr,
.cat-strip .cat-vfr b {
  background: #4dffa6;
}

.cat-mvfr,
.cat-strip .cat-mvfr b {
  background: #3ca0ff;
}

.cat-ifr,
.cat-strip .cat-ifr b {
  background: #ff4d4d;
}

.cat-lifr,
.cat-strip .cat-lifr b {
  background: #ff4dff;
}

.cat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 12px;
  padding: 0;
  list-style: none;
}

.cat-strip li {
  display: grid;
  gap: 2px;
  min-width: 44px;
  text-align: center;
  font: 500 10px/1.3 var(--font-mono);
  color: var(--faint);
}

.cat-strip b {
  padding: 2px 0;
  border-radius: 4px;
  color: #05070b;
  font-size: 10px;
}

.taf li b {
  color: var(--cyan);
  font-weight: 500;
}

.raw-reports {
  margin: 14px 0;
}

.raw-reports summary {
  cursor: pointer;
  color: var(--muted);
}

/* Earthquake lists in tabs that need no script. */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tabs > label {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font: 500 13px/1.4 var(--font-mono);
  cursor: pointer;
}

.tabs > input:focus-visible + label {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.tabs > input:checked + label {
  border-color: var(--gold);
  color: var(--gold);
}

.tab-panel {
  display: none;
  flex-basis: 100%;
  /* A flex item would otherwise grow to its table's width on a phone. */
  min-width: 0;
  max-width: 100%;
}

.tab-panel h3 {
  margin: 12px 0 8px;
}

#qt-day:checked ~ .tab-day,
#qt-week:checked ~ .tab-week,
#qt-month:checked ~ .tab-month {
  display: block;
}

/* Tornado tracker. */
.safety-line {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 77, 77, 0.55);
  border-radius: var(--radius);
  background: rgba(255, 77, 77, 0.12);
}

.badge {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  font: 600 11px/1.6 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-red {
  background: rgba(255, 77, 255, 0.22);
  color: #ffb3ff;
}

.near-check {
  margin: 12px 0;
}

.near-result {
  margin: 10px 0 0;
}

.near-yes {
  color: var(--red);
  font-weight: 600;
}

.near-no {
  color: var(--green);
}

.plain-list.numbered {
  list-style: decimal inside;
}

@media (max-width: 640px) {
  .data-table {
    font-size: 13px;
  }
  .data-table td,
  .data-table th {
    padding: 6px 8px;
  }
  .faa-head {
    font-size: 18px;
  }
}

/* ── Flight guides, God's Eye View and comparisons (server/pages/guides) ── */
.qa > h2 {
  font-size: clamp(20px, 3.6vw, 26px);
}

.answer ul {
  margin-bottom: 0;
}

.credit-bar {
  margin: 4px 0 18px;
}

.status-box {
  margin: 10px 0 18px;
}

.status-box .kicker {
  margin-bottom: 8px;
}

.status-box p:last-child {
  margin-bottom: 0;
}

h2.small-h {
  margin-top: 26px;
  font-size: 20px;
}

.guide-cta {
  margin: 18px 0;
}

.facts + .updated,
.facts + .grid-2 {
  margin-top: 12px;
}

td .mono,
td.mono {
  font-family: var(--font-mono);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}
