/* Doom Signals — Home night-ops revision */
:root {
  --ds-red: #8b1e1e;
  --ds-quiet: #6f8f72;
  --ds-watch: #c9a227;
  --ds-elevated: #8b1e1e;
  --ds-stale: #8a8a8a;
  --ds-ivory: #f2f2f2;
}

body.home-night {
  background: #000;
}

body.home-night .site-header {
  background: #000;
  border-bottom: 1px solid #1c1c1c;
}

body.home-night .site-nav {
  background: #000;
}

body.home-night .header-bar {
  display: none;
}

@media (width <= 879px) {
  body.home-night .header-bar {
    display: flex;
  }
}

/* Live HUD */
.home-hud {
  background: #000;
  border-bottom: 1px solid #2a2a2a;
  border-top: 1px solid #2a2a2a;
  width: 100%;
}

.home-hud-inner {
  width: min(1180px, 100% - 1.5rem);
  margin: 0 auto;
  padding: 0.55rem 0 0.45rem;
}

.home-hud-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: #2a2a2a;
  border: 1px solid #2a2a2a;
}

.hud-cell {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.55rem 0.75rem 0.6rem;
  border-right: 0;
  min-height: 4.4rem;
  background: #000;
}

.hud-cell:hover {
  background: #0a0a0a;
  text-decoration: none;
}

.hud-label {
  display: block;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
  font-size: 0.62rem;
  font-weight: 650;
  margin: 0 0 0.2rem;
}

.hud-value {
  display: block;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 750;
  line-height: 1.15;
  color: var(--ds-ivory);
  margin: 0;
}

.hud-sub {
  display: block;
  color: #6a6a6a;
  font-size: 0.68rem;
  line-height: 1.3;
  margin: 0.2rem 0 0;
}

.hud-cell.is-quiet .hud-value {
  color: var(--ds-quiet);
}
.hud-cell.is-watch .hud-value {
  color: var(--ds-watch);
}
.hud-cell.is-elevated .hud-value {
  color: var(--ds-elevated);
}
.hud-cell.is-stale .hud-value,
.hud-cell.is-unavailable .hud-value {
  color: var(--ds-stale);
}
.hud-cell.is-loading .hud-value {
  color: #5a5a5a;
}

.home-hud-note {
  margin: 0.35rem 0 0;
  text-align: center;
  color: #5a5a5a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.58rem;
  line-height: 1.35;
}

.home-hud-note [data-hud-stamp] {
  color: #6a6a6a;
}

@media (width <= 1100px) {
  .home-hud-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (width <= 640px) {
  .home-hud-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hud-cell[data-hud-cell="status"] .hud-value {
    font-size: 1.35rem;
  }
}

/* 4C mark */
.home-mark {
  text-align: center;
  padding: 1.15rem 1rem 0.35rem;
}

.home-mark-svg {
  width: 42px;
  height: 42px;
  display: block;
  margin: 0 auto 0.45rem;
}

.home-mark-word {
  margin: 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ds-ivory);
}

.home-mark-word .wm-signals {
  font-weight: 500;
  letter-spacing: 0.34em;
  color: #c8c8c8;
  margin-left: 0.35em;
}

.home-mark a {
  text-decoration: none;
  color: inherit;
}

.home-mark a:hover .home-mark-word {
  color: #fff;
}

/* Splash */
.home-splash {
  text-align: center;
  width: min(900px, 100% - 2rem);
  margin: 0.35rem auto 1.1rem;
  padding: 0 0 0.5rem;
}

.home-splash-meta {
  color: #8a8a8a;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.62rem;
  margin: 0 0 0.7rem;
}

.home-splash-figure {
  width: min(420px, 92%);
  margin: 0 auto 0.95rem;
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

.home-splash-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0a0a0a;
}

.home-splash-placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, #121212 0%, #0a0a0a 45%, #151515 100%);
}

.home-splash-placeholder::after {
  content: "";
  position: absolute;
  inset: 18% 22%;
  border: 1px solid #2a2a2a;
  opacity: 0.55;
}

.home-splash-figure.is-placeholder .home-splash-img {
  display: none;
}

.home-splash-figure:not(.is-placeholder) .home-splash-placeholder {
  display: none;
}

/* Legacy class kept inert if any stale markup remains — not the default splash. */
.home-earth-still {
  display: none;
}

.home-splash-headline {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.18;
  text-transform: uppercase;
  color: #fff;
}

.home-splash-headline a {
  color: #fff;
  text-decoration: none;
}

.home-splash-headline a:hover {
  color: #fff;
  text-decoration: underline;
}

.home-splash-dek {
  margin: 0;
  font-size: clamp(0.82rem, 2vw, 1.02rem);
  font-weight: 750;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ds-red);
}

/* Daily splash subhead (Oct 8 2026): plain sentence case, readable grey (13:1 on #000), not the red link style */
.home-splash-dek.is-subhead {
  font-size: clamp(0.98rem, 2.1vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-transform: none;
  color: #d4d4d4;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.home-splash-dek a {
  color: var(--ds-red);
  text-decoration: none;
}

.home-splash-dek a:hover {
  color: #a82828;
  text-decoration: underline;
}

/* Three columns — Earth | Wire | Human */
body.home-night .wire {
  grid-template-columns: 1fr 1.15fr 1fr;
  grid-template-areas: "b c d";
  width: min(1180px, 100% - 1.5rem);
  margin: 0.4rem auto 2rem;
  gap: 0;
  border-top: 1px solid #2a2a2a;
}

body.home-night .wire > section {
  padding: 0.85rem 1rem 1.1rem;
  border-right: 1px solid #2a2a2a;
}

body.home-night .wire > section:last-child {
  border-right: 0;
}

body.home-night .wire h2 {
  color: #a0a0a0;
  border-bottom: 2px solid var(--ds-red);
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  margin: 0 0 0.7rem;
  padding-bottom: 0.28rem;
}

body.home-night .story a {
  color: #eee;
}

body.home-night .story.is-hot a,
body.home-night .story a.is-hot {
  color: var(--ds-red);
  font-weight: 750;
}

body.home-night .lead {
  display: none; /* splash owns the lead */
}

body.home-night .wire-archive-link {
  text-align: center;
  margin: 0 0 1.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.home-night .wire-archive-link a {
  color: #8a8a8a;
  text-decoration: none;
}

body.home-night .wire-archive-link a:hover {
  color: #fff;
  text-decoration: underline;
}

body.home-night .site-footer {
  background: #000;
  border-top: 1px solid #2a2a2a;
  text-align: center;
}

body.home-night .site-footer .footer-sources {
  color: #6a6a6a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.62rem;
  margin: 0 0 0.55rem;
}

body.home-night .site-footer .footer-tag {
  color: #5a5a5a;
  font-size: 0.72rem;
  margin: 0.45rem 0 0;
}

body.home-night .site-footer nav {
  justify-content: center;
}

@media (width <= 860px) {
  body.home-night .wire {
    grid-template-columns: 1fr;
    grid-template-areas: "b" "c" "d";
  }
  body.home-night .wire > section {
    border-right: 0;
    border-bottom: 1px solid #2a2a2a;
  }
}

/* Lane dots on primary nav (home) */
body.home-night .nav-primary a[href="ecdo.html"]::before,
body.home-night .nav-primary a[href="climate.html"]::before,
body.home-night .nav-primary a[href="neo.html"]::before,
body.home-night .nav-primary a[href="conflict.html"]::before,
body.home-night .nav-primary a[href="fracture.html"]::before,
body.home-night .nav-primary a[href="ai.html"]::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: 0.05rem;
  background: currentColor;
}
body.home-night .nav-primary a[href="ecdo.html"]::before { background: #a87848; }
body.home-night .nav-primary a[href="climate.html"]::before { background: #5a8474; }
body.home-night .nav-primary a[href="neo.html"]::before { background: #d8d8d8; }
body.home-night .nav-primary a[href="conflict.html"]::before { background: #8f3e36; }
body.home-night .nav-primary a[href="fracture.html"]::before { background: #8a7358; }
body.home-night .nav-primary a[href="ai.html"]::before { background: #6a848c; }

/* Visits strip (Drudge-style layout, dark instrument palette) */
.home-visits {
  background: #000;
  border-top: 1px solid #2a2a2a;
  width: 100%;
  padding: 0.85rem 0 1rem;
}

.home-visits .wrap {
  width: min(1180px, 100% - 1.5rem);
  margin: 0 auto;
  text-align: left;
}

.home-visits .visits-head,
.home-visits .visits-line,
.home-visits .visits-note {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.home-visits .visits-head {
  color: var(--ds-ivory, #f2f0e6);
  font-size: 0.72rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.home-visits .visits-line {
  color: #c8c4b8;
  font-size: 0.68rem;
  line-height: 1.55;
}

.home-visits .visits-note {
  color: #5a5a5a;
  font-size: 0.58rem;
  margin-top: 0.4rem;
  letter-spacing: 0.06em;
}

.home-visits.is-stale .visits-line,
.home-visits .visits-line.is-stale {
  color: var(--ds-stale, #8a7a5a);
}

body.home-night .home-visits {
  background: #000;
  border-top: 1px solid #2a2a2a;
}


/* Quiet link under mark → Weekly Brief */
.home-brief-link {
  text-align: center;
  margin: 0.15rem 0 0.55rem;
  padding: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #6a6a6a;
}

.home-brief-link a {
  color: #8a8a8a;
  text-decoration: none;
}

.home-brief-link a:hover {
  color: #c8c8c8;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ===== Phase 1: HUD as a thin official rail (same six bins, same data logic) ===== */
.home-hud-inner {
  padding: 0.35rem 0 0.3rem;
}
.hud-cell {
  min-height: 0;
  padding: 0.38rem 0.7rem 0.42rem;
}
.hud-label {
  margin: 0 0 0.1rem;
  font-size: 0.58rem;
}
.hud-value {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}
.hud-sub {
  margin: 0.1rem 0 0;
  font-size: 0.62rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-hud-note {
  margin: 0.25rem 0 0;
  font-size: 0.55rem;
}
@media (width <= 640px) {
  .home-hud-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hud-cell {
    padding: 0.32rem 0.45rem 0.36rem;
  }
  .hud-label {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hud-value,
  .hud-cell[data-hud-cell="status"] .hud-value {
    font-size: 0.95rem;
  }
  .hud-sub {
    font-size: 0.55rem;
  }
}

/* Splash photo credit (required by CC BY / BY-SA licences) */
.home-splash-credit {
  width: min(420px, 92%);
  margin: -0.6rem auto 0.95rem;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: #8a8a8a;
  text-align: right;
}
.home-splash-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
