/* ============================================================
   Hot 'Stacks — homepage styles
   Drudge-density structure + Hot Stacks vocabulary.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--body);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--magenta); }

/* tiny utility */
.cap { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; }
.sep { color: var(--sep); padding: 0 0.45em; user-select: none; }

/* ============================================================
   LIVE TICKER BAR (sticky)
   ============================================================ */
.live-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #F5F2ED;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 22px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--magenta);
  gap: 16px;
  white-space: nowrap;
  overflow: hidden;
}
.live-bar .left, .live-bar .right { display: flex; align-items: center; gap: 14px; }
.live-bar .right { flex-shrink: 0; }
.live-bar .pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--magenta);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  position: relative; top: -1px;
}
@media (prefers-reduced-motion: no-preference) {
  .live-bar .pulse { animation: live-pulse 1.4s steps(1) infinite; }
}
@keyframes live-pulse { 0%,55% { opacity: 1 } 56%,100% { opacity: .25 } }
.live-bar .dim { color: #8A877F; }
.live-bar .sub-cta {
  background: var(--magenta);
  color: #F5F2ED;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: filter .15s;
}
.live-bar .sub-cta:hover { filter: brightness(0.92); color: #F5F2ED; }

/* ============================================================
   MASTHEAD
   ============================================================ */
.mast-rule { height: 8px; background: var(--magenta); }
.masthead {
  text-align: center;
  padding: 26px 22px 18px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.mast-overline {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 6px;
}
.mast-overline a { color: var(--ink); border-bottom: 2px solid var(--teal); }
.mast-overline .kicker { color: var(--magenta); margin-right: 10px; }
.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(72px, 13vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 4px 0 6px;
}
.wordmark .apos { color: var(--magenta); }
.mast-strip {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  margin-top: 4px;
  text-wrap: balance;
}
.mast-strip .it { color: var(--ink); }
.mast-strip .sep {
  color: var(--sep);
  margin: 0 0.45em;
  display: inline-block;
}

/* ============================================================
   EWS BANNER — oblong horizontal strip above the magenta pencil
   rule. Knockout hed on the left, stat cells flowing right.
   Pulls level + airborne stats from ews.kylemcdonald.net.
   ============================================================ */
.ews-badge {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--paper-card);
  color: var(--ink);
  text-decoration: none;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  transition: background .15s;
}
.ews-badge:hover { background: var(--magenta-05); color: var(--ink); }
.ews-badge:focus-visible { outline: 2px solid var(--magenta); outline-offset: -2px; }

/* ── Knockout hed band — left edge ───────────────────────── */
.ews-band {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
}
.ews-band-mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--magenta);
  flex-shrink: 0;
}
.ews-band-mark svg { width: 100%; height: 100%; display: block; }
.ews-band-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ews-band-text {
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-indent: 0.025em;
  color: var(--paper);
  text-transform: uppercase;
  line-height: 0.9;
  white-space: nowrap;
}
.ews-band-kind {
  font-family: var(--display);
  font-weight: 900;
  font-size: 8px;
  letter-spacing: 0.235em;
  text-indent: 0.12em;
  color: var(--magenta);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.ews-badge:hover .ews-band { background: #000; }

/* ── Stat cells — single-line LABEL · ICON · DATA ─────── */
.ews-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-left: 1px solid var(--rule);
  min-width: 0;
}
.ews-cell-label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.ews-cell-body {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  line-height: 1;
  min-width: 0;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.ews-cell-body .ews-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--ink);
  flex-shrink: 0;
}
.ews-cell-body .ews-glyph svg { width: 100%; height: 100%; display: block; }
.ews-cell-body .big {
  font-size: 16px;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.ews-cell-body .of {
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}

/* Level cell — fig + dots + word, all inline */
.ews-cell-level .ews-cell-body { gap: 8px; }
.ews-level-fig {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.015em;
}
.ews-level-fig .den {
  font-size: 10px;
  color: var(--muted);
  margin-left: 1px;
}
.ews-level-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ews-dots {
  display: flex;
  gap: 2px;
}
.ews-dots .dot {
  width: 6px;
  height: 6px;
  background: transparent;
  border: 1.25px solid var(--ink);
  flex-shrink: 0;
}
.tone-calm     .ews-dots .dot.on { background: var(--teal);    border-color: var(--teal); }
.tone-elevated .ews-dots .dot.on { background: var(--orange);  border-color: var(--orange); }
.tone-critical .ews-dots .dot.on { background: var(--magenta); border-color: var(--magenta); }
.ews-word {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tone-calm     .ews-word { color: var(--teal); }
.tone-elevated .ews-word { color: var(--orange); }
.tone-critical .ews-word { color: var(--magenta); }

/* Dateline cell — single inline string */
.ews-cell-time .ews-cell-body.ews-time {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.ews-time-sep { color: var(--sep); }
.ews-time-date,
.ews-time-clock { white-space: nowrap; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 920px) {
  /* Knockout band stretches across; stats wrap to a 2x2 grid below. */
  .ews-badge {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .ews-band {
    grid-column: 1 / -1;
    padding: 6px 14px;
    gap: 9px;
    border-bottom: 1px solid var(--rule);
  }
  .ews-band-mark { width: 22px; height: 22px; }
  .ews-band-text { font-size: 18px; }
  .ews-band-kind { font-size: 7.5px; }
  .ews-cell-level { border-left: none; }
  .ews-cell-pass  { border-left: none; border-top: 1px solid var(--rule); }
  .ews-cell-time  { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .ews-band { padding: 6px 12px; gap: 8px; }
  .ews-band-mark { width: 20px; height: 20px; }
  .ews-band-text { font-size: 16px; letter-spacing: 0.06em; }
  .ews-band-kind { font-size: 7px; letter-spacing: 0.2em; }
  .ews-cell { padding: 5px 10px; gap: 3px; }
  .ews-cell-label { font-size: 7px; letter-spacing: 0.14em; }
  .ews-cell-body { font-size: 11px; gap: 4px; }
  .ews-cell-body .big { font-size: 13px; }
  .ews-cell-body .of { font-size: 9px; }
  .ews-cell-body .ews-glyph { width: 13px; height: 13px; }
  .ews-cell-level .ews-cell-body { gap: 6px; }
  .ews-level-fig { font-size: 16px; }
  .ews-level-fig .den { font-size: 9px; }
  .ews-level-meta { gap: 3px; }
  .ews-dots { gap: 2px; }
  .ews-dots .dot { width: 5px; height: 5px; border-width: 1px; }
  .ews-word { font-size: 7px; letter-spacing: 0.12em; }
  .ews-cell-time .ews-cell-body.ews-time { font-size: 8.5px; letter-spacing: 0.08em; gap: 4px; }
}

/* ============================================================
   EWS CALM EAR — freestanding newspaper "ear" text box that
   sits inline with the HOT 'STACKS wordmark when level ≤ 2.
   Modeled on the "Late Edition" ear next to a broadsheet
   nameplate: bordered box, knockout head, stacked detail rows.
   ============================================================ */

/* Reserve symmetric padding so the centered wordmark gets a
   middle slot with room for the ear hanging into the left.
   Wordmark scales down to fit that narrower middle slot. */
.masthead.has-ews-ear {
  padding-left: 260px;
  padding-right: 260px;
}
.masthead.has-ews-ear .wordmark {
  font-size: clamp(48px, 8vw, 116px);
}

.ews-ear {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 224px;
  display: block;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  text-align: left;
  transition: background .15s;
  z-index: 2;
}
.ews-ear:hover { background: var(--magenta-05); color: var(--ink); }
.ews-ear:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }

/* ── Head: knockout, mark + APOCALYPSE / EARLY WARNING SYSTEM */
.ews-ear-head {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 9px;
  border-bottom: 2px solid var(--magenta);
}
.ews-ear-mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--magenta);
  flex-shrink: 0;
}
.ews-ear-mark svg { width: 100%; height: 100%; display: block; }
.ews-ear-head-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ews-ear-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1;
}
.ews-ear-kind {
  font-family: var(--display);
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
  line-height: 1;
}

/* ── Body: stacked detail rows ───────────────────────────── */
.ews-ear-body {
  padding: 6px 10px 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ews-ear-row-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px dotted var(--rule);
}
.ews-ear-row-line:last-child { border-bottom: none; }
.ews-ear-row-line .lbl {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ews-ear-row-line .val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 0;
}
.ews-ear-row-line .fig {
  display: inline-flex;
  align-items: baseline;
}
.ews-ear-row-line .fig .den {
  font-size: 9px;
  color: var(--muted);
  margin-left: 1px;
}
.ews-ear-row-line .of {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ews-ear-row-line .glyph {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: var(--ink);
  flex-shrink: 0;
}
.ews-ear-row-line .glyph svg { width: 100%; height: 100%; display: block; }

.ews-ear-dots {
  display: inline-flex;
  gap: 2px;
}
.ews-ear-dots .dot {
  width: 5px;
  height: 5px;
  background: transparent;
  border: 1px solid var(--ink);
  flex-shrink: 0;
}
.tone-calm     .ews-ear-dots .dot.on { background: var(--teal);    border-color: var(--teal); }
.tone-elevated .ews-ear-dots .dot.on { background: var(--orange);  border-color: var(--orange); }
.tone-critical .ews-ear-dots .dot.on { background: var(--magenta); border-color: var(--magenta); }

.ews-ear-word {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tone-calm     .ews-ear-word { color: var(--teal); }
.tone-elevated .ews-ear-word { color: var(--orange); }
.tone-critical .ews-ear-word { color: var(--magenta); }

/* ── Foot: dateline ──────────────────────────────────────── */
.ews-ear-foot {
  border-top: 1px solid var(--rule);
  padding: 5px 10px 5px;
  background: var(--paper);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}

/* ── EWS as a column module — sits atop the Source Roll ─── */
.ews-module-block.is-module {
  margin: 0 0 20px;
}
.ews-ear.is-module {
  position: static;
  top: auto;
  left: auto;
  width: 100%;
  max-width: none;
  margin: 0;
}
.ews-credit {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.ews-credit-link {
  color: var(--ink);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 1px;
}
.ews-credit-link:hover {
  color: var(--magenta);
  border-bottom-color: var(--magenta);
}

@media (max-width: 1000px) {
  .masthead.has-ews-ear {
    padding-left: 22px;
    padding-right: 22px;
  }
  .masthead.has-ews-ear .wordmark {
    font-size: clamp(56px, 13vw, 168px);
  }
  .ews-ear {
    position: static;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 14px;
  }
}

/* ============================================================
   BANNER HERO — knockout band + tertiary inline row
   ============================================================ */
.banner-wrap {
  border-bottom: 4px double var(--ink);
}
.banner-band {
  background: var(--ink);
  padding: 40px 22px 44px;
  text-align: center;
}
.banner-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--magenta);
  color: #F5F2ED;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 12px 7px;
  margin-bottom: 24px;
  white-space: nowrap;
}
.banner-hed {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--paper);
  max-width: 1100px;
  margin: 0 auto;
  text-wrap: balance;
}
.banner-hed a {
  color: var(--paper);
  border-bottom: 3px solid var(--magenta);
  padding-bottom: 4px;
}
.banner-hed a:hover { color: var(--magenta); border-bottom-color: var(--paper); }

/* ── Lead photo → full-bleed knockout treatment ───────────
   Scoped with :has() to bands that actually carry a photo, so
   the text-only and pre-roll bands are untouched. The DOM is the
   live Banner.jsx markup (.banner-band > .banner-flag +
   a.banner-hero>img + .banner-hed), so this block drops into the
   production banner.css verbatim — no JSX change. */
.banner-band:has(.banner-hero) {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding: 0 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
}
.banner-band:has(.banner-hero) .banner-hero {
  position: absolute;
  inset: 0;
  max-width: none;
  margin: 0;
  z-index: 0;
}
.banner-band:has(.banner-hero) .banner-hero img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border: none;
}
/* Scrim — dark at the foot so the knockout serif stays legible,
   clearing toward the top so the photo reads. */
.banner-band:has(.banner-hero)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(17, 17, 17, 0.95) 0%,
    rgba(17, 17, 17, 0.80) 42%,
    rgba(17, 17, 17, 0.40) 78%,
    rgba(17, 17, 17, 0.16) 100%);
}
.banner-band:has(.banner-hero) .banner-flag {
  position: relative;
  z-index: 2;
  align-self: flex-start;
}
.banner-band:has(.banner-hero) .banner-hed {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 1080px;
  font-size: clamp(46px, 6.6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.022em;
}

.tertiary-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  padding: 22px 22px 26px;
  background: var(--paper);
}
.tertiary {
  flex: 1 1 0;
  min-width: 180px;
  padding: 4px 18px;
  border-right: 1px solid var(--rule);
  text-align: left;
}
.tertiary:last-child { border-right: none; }
.tertiary .tag {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.tertiary .tag.src-solo { color: var(--src-solo); }
.tertiary .tag.src-mid  { color: var(--src-mid); }
.tertiary .tag.src-pub  { color: var(--src-pub); }
.tertiary.urgent .tag { color: var(--magenta); }
.tertiary .hed {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.tertiary.urgent .hed a { border-bottom: 2px solid var(--magenta); padding-bottom: 1px; }
.tertiary .hed a:hover { color: var(--magenta); }
/* Preview image (feed thumbnail) above the tag/hed. 16:9, full column width.
   image-slot renders the author-set src; a hotlink-blocked image flags
   [data-imgerror] and :has() collapses the whole thumb back to text-only. */
.tertiary-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  line-height: 0;
}
.tertiary-thumb image-slot,
.tertiary-thumb x-import {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.tertiary-thumb:has(image-slot[data-imgerror]) { display: none; }

/* ============================================================
   SIGNAL MONITOR — condensed indicator strip
   ============================================================ */
.signal-strip {
  background: var(--paper-card);
  border-bottom: 1px solid var(--rule);
  padding: 11px 22px 13px;
}
.signal-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.signal-strip-head .label { color: var(--ink); }
.signal-strip-head .label::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--magenta);
  margin-right: 8px;
  vertical-align: middle;
  position: relative; top: -1px;
}
.signal-strip-head .sub { color: var(--muted); }
.signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.sig {
  border-right: 1px solid var(--rule);
  min-width: 0;
  position: relative;
  perspective: 1100px;
  background: var(--paper-card);
}
.sig:last-child { border-right: none; }
.sig-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.2, 0.65, 0.2, 1);
}
.sig.has-back { cursor: pointer; }
.sig.has-back:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: -2px;
}
.sig.has-back:not(.is-flipped):hover .sig-inner,
.sig.is-flipped .sig-inner {
  transform: rotateY(180deg);
}
@media (prefers-reduced-motion: reduce) {
  .sig-inner { transition: none; }
}
.sig-front,
.sig-back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 12px 6px;
  min-width: 0;
}
.sig-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  gap: 3px;
}
.sig-flip-hint {
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.sig.has-back:hover .sig-flip-hint { opacity: 1; color: var(--magenta); }
.sig-flip-hint .flip-glyph {
  display: inline-block;
  margin-right: 4px;
  font-size: 10px;
  transform: translateY(1px);
}
.sig-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1px;
}
.sig .code {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.sig-icon {
  width: 18px;
  height: 18px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sig-icon svg { width: 100%; height: 100%; display: block; }
.sig.up .sig-icon   { color: var(--magenta); }
.sig.down .sig-icon { color: var(--src-mid); }
.sig .label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
  white-space: normal;
  line-height: 1.1;
  min-height: 2em;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
}
.sig .val {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  margin-top: 1px;
}
.sig.up   .val { color: var(--ink); }
.sig.down .val { color: var(--ink); }
.sig .delta {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.sig.up   .delta { color: var(--magenta); }
.sig.down .delta { color: var(--src-mid); }
.sig.flat .delta { color: var(--muted); }
.sig.up.hot .val { color: var(--magenta); }
.sig-chart {
  position: relative;
  margin-top: 2px;
  padding-right: 36px;
}
.sig .spark { height: 16px; width: 100%; display: block; }
.sig-yax {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-left: 1px dotted var(--rule);
  padding-left: 4px;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.sig-xax {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
  padding-right: 36px;
}
.sig-xax .axis-rule {
  flex: 1;
  border-top: 1px dotted var(--rule);
}
.sig .note {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
  padding-top: 2px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.sig .note .src { color: var(--ink); }

/* ===== Signal cell — BACK FACE (methodology / poll detail) ===== */
.sig-back-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid #2a2a28;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sig-back-head .back-kind { color: var(--magenta); }
.sig-back-head .back-label {
  color: var(--paper);
  text-align: right;
  max-width: 60%;
  line-height: 1.15;
}
.sig-back .back-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 10px;
  line-height: 1.2;
  color: var(--paper);
  margin: 0 0 1px;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sig-back .back-desc {
  font-family: var(--serif);
  font-size: 10.5px;
  line-height: 1.28;
  color: var(--paper);
  margin: 0;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sig-back .back-responses {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}
.back-resp {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 0 7px;
  align-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.back-resp-pct {
  color: var(--paper);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.back-resp-bar {
  position: relative;
  display: block;
  height: 4px;
  background: #2a2a28;
  overflow: hidden;
}
.back-resp-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--magenta);
}
.back-resp-label {
  grid-column: 3 / 4;
  color: #8A877F;
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sig-back .back-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  row-gap: 1px;
  margin: 0;
  padding-top: 4px;
  border-top: 1px dotted #2a2a28;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  margin-top: auto;
}
.sig-back .back-meta dt {
  color: #8A877F;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 7.5px;
  white-space: nowrap;
}
.sig-back .back-meta dd {
  color: var(--paper);
  margin: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.sig-back .back-note {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: #8A877F;
  margin: 2px 0 0;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   THREE-COLUMN BODY
   ============================================================ */
.cols {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.col {
  padding: 22px 20px 32px;
  min-width: 0;
}
.col + .col { border-left: 1px solid var(--rule); }
.col-head {
  font-family: var(--display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 12px;
  background: var(--bar-fill);
  border-left: 5px solid var(--magenta);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 -20px 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  white-space: nowrap;
}
.col-head .meta {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-left: auto;
}
.col-head.is-ecosystem { border-left-color: var(--orange); }
.col-head.is-reference { border-left-color: var(--teal); }

/* ===== Today's Stacks ===== */
.stack-list { list-style: none; margin: 0; padding: 0; }
.stack-item {
  display: grid;
  grid-template-columns: 28px 36px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.stack-item:last-child { border-bottom: none; }
.stack-rank {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stack-move {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-align: left;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding-top: 4px;
}
.stack-move.up        { color: var(--magenta); }
.stack-move.up.fast   { color: var(--magenta); background: var(--magenta-10); padding: 2px 4px; }
.stack-move.down      { color: var(--muted); }
.stack-move.down.fast { color: var(--muted); text-decoration: line-through; }
.stack-move.flat      { color: var(--sep); }
.stack-move.new       {
  color: #F5F2ED;
  background: var(--magenta);
  padding: 3px 5px 2px;
  letter-spacing: 0.16em;
}
.stack-hed {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.28;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.stack-hed .outlets {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.stack-hed a:hover { color: var(--magenta); }
.stack-item.hot .stack-hed { color: var(--ink); }
.stack-item.hot { background: var(--magenta-05); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }

/* ===== Link wall (center) ===== */
.wall-section { margin-bottom: 22px; }

/* ===== Today's Issue feature block (sandwiched mid-Wire) ===== */
.feature {
  border: 1px solid var(--ink);
  background: var(--paper-card);
  padding: 22px 22px 20px;
  margin: 4px 0 18px;
  position: relative;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--magenta);
}
.feature-flag {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 9px 6px;
  border: 1px solid var(--ink);
  z-index: 2;
  white-space: nowrap;
}
.feature-eyebrow {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 4px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.feature-eyebrow .sep  { color: var(--sep); }
.feature-hed {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 10px;
  text-wrap: balance;
}
.feature-hed a {
  color: var(--ink);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}
.feature-hed a:hover { color: var(--magenta); border-bottom-color: var(--magenta); }
.feature-dek {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.45;
  color: var(--body);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.feature-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s, transform .05s;
}
.btn-primary { background: var(--magenta); color: #F5F2ED; border-color: var(--magenta); }
.btn-primary:hover { filter: brightness(0.92); color: #F5F2ED; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #F5F2ED; }
.btn:active { transform: translateY(1px); }
.feature-meta {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-wrap: balance;
  line-height: 1.7;
}
.feature-meta .sep { color: var(--sep); margin: 0 6px; }
.wall-section-head {
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  white-space: nowrap;
}
.wall-section-head .count {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-left: auto;
}
.wall-list { list-style: none; margin: 0; padding: 0; }
.wall-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dotted var(--rule);
}
.wall-row.wire-row {
  grid-template-columns: 92px 1fr auto;
}
.wire-ago {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 6px;
}
.wall-row:last-child { border-bottom: none; }
.wall-src {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: right;
  border-right: 1px solid var(--rule);
  padding-right: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.wall-src.solo { color: var(--src-solo); }
.wall-src.mid  { color: var(--src-mid); }
.wall-src.pub  { color: var(--src-pub); }
.wall-hed {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.005em;
  line-height: 1.32;
  color: var(--ink);
  text-transform: uppercase;
  text-wrap: pretty;
}
.wall-row a:hover .wall-hed,
.wall-hed a:hover { color: var(--magenta); }
.wall-row.urgent .wall-hed { color: var(--magenta); }
.wall-row.urgent .wall-hed::after {
  content: ' ↯';
  color: var(--magenta);
  font-family: var(--display);
  font-weight: 900;
}
.wall-row.pick { background: var(--magenta-05); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.wall-row.pick .wall-hed::before {
  content: '★ ';
  color: var(--magenta);
  font-family: var(--display);
  font-weight: 900;
}

/* ===== Source Roll — flowing stacks-list (newsletter-style) ===== */
.src-stream {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 4px 0 14px;
}
.src-stream .src,
.src-key .src {
  color: var(--ink);
  border-bottom: none;
}
.src-stream .src.solo,
.src-key   .src.solo { color: var(--src-solo); }
.src-stream .src.mid,
.src-key   .src.mid  { color: var(--src-mid); }
.src-stream .src.pub,
.src-key   .src.pub  { color: var(--src-pub); }
.src-stream a.src:hover { color: var(--magenta); }
.src-stream .sep {
  color: var(--sep);
  margin: 0 3px;
  font-weight: 500;
  display: inline-block;
  padding: 0;
}
.src-key {
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
}
.src-key .sep {
  color: var(--sep);
  margin: 0 6px;
  font-weight: 500;
}

/* ===== Blog roll (right) — legacy, kept for backward compat ===== */
.blog-group { margin-bottom: 22px; }
.blog-group-head {
  font-family: var(--display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  white-space: nowrap;
}
.blog-group-head .what { margin-left: auto; }
.blog-group-head.solo { color: var(--src-solo); border-bottom-color: var(--src-solo); }
.blog-group-head.mid  { color: var(--src-mid);  border-bottom-color: var(--src-mid); }
.blog-group-head.pub  { color: var(--src-pub);  border-bottom-color: var(--src-pub); }
.blog-group-head .what {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.blog-list { list-style: none; margin: 0; padding: 0; }
.blog-item {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 5px 0;
  border-bottom: 1px dotted var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.blog-item:last-child { border-bottom: none; }
.blog-item a {
  color: var(--ink);
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blog-item a:hover { color: var(--magenta); }
.blog-item .arrow {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  color: var(--muted);
  opacity: 0.6;
}
.blog-item:hover .arrow { color: var(--magenta); opacity: 1; }

/* ============================================================
   DARK CTA FOOTER
   ============================================================ */
.cta {
  background: var(--ink);
  color: #F5F2ED;
  padding: 56px 22px 40px;
  text-align: center;
}
.cta-eyebrow {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 18px;
}
.cta-hed {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: #F5F2ED;
  margin: 0 0 14px;
  text-wrap: balance;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.cta-hed .hl {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 6px;
  font-style: italic;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.cta-body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--cta-body);
  max-width: 580px;
  margin: 0 auto 28px;
  text-wrap: pretty;
}
.cta-form {
  display: flex;
  max-width: 540px;
  margin: 0 auto;
  gap: 0;
}
.cta-form input {
  flex: 1; min-width: 0;
  font-family: var(--serif);
  font-size: 17px;
  background: var(--ink-deep);
  border: 1.5px solid #F5F2ED;
  border-right: none;
  color: #F5F2ED;
  padding: 14px 16px;
  outline: none;
}
.cta-form input::placeholder { color: var(--cta-body); }
.cta-form input:focus { border-color: var(--magenta); }
.cta-form button {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #F5F2ED;
  background: var(--magenta);
  border: 1.5px solid var(--magenta);
  padding: 0 22px;
  cursor: pointer;
  white-space: nowrap;
}
.cta-form button:hover { filter: brightness(0.9); }
.cta-fine {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cta-body);
  margin: 18px 0 0;
}
.cta-confirm {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--yellow);
}

/* ============================================================
   FOOTER COLOPHON
   ============================================================ */
.colophon {
  background: var(--ink);
  color: var(--cta-body);
  border-top: 1px solid var(--cta-rule);
  padding: 18px 22px 24px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.colophon .mag { color: var(--magenta); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .cols { grid-template-columns: 280px 1fr 280px; }
  .signals { grid-template-columns: repeat(3, 1fr); }
  .sig { border-right: 1px solid var(--rule); }
  .sig:nth-child(3n) { border-right: none; }
  .sig:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .live-bar .left .dim:nth-of-type(2) { display: none; }
}
@media (max-width: 1080px) {
  /* (EWS banner has its own breakpoint logic now — see top block.) */
}
@media (max-width: 1020px) {
  .live-bar .left .dim { display: none; }
}
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .col + .col { border-left: none; border-top: 1px solid var(--rule); }
  .tertiary { flex: 1 1 45%; min-width: 220px; border-bottom: 1px solid var(--rule); padding-bottom: 14px; }
  .signals { grid-template-columns: repeat(2, 1fr); }
  .sig { border-right: 1px solid var(--rule); }
  .sig:nth-child(2n) { border-right: none; }
  .sig:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 700px) {
  .colophon { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 22px 20px; }
}
@media (max-width: 560px) {
  .live-bar { font-size: 9px; padding: 7px 14px; }
  .live-bar .right .dim { display: none; }
  .wordmark { font-size: clamp(56px, 18vw, 80px); }
  .mast-strip { font-size: 9px; }
  .banner-hed { font-size: 28px; }
  .cta-hed { font-size: 30px; }
  .cta-form { flex-direction: column; gap: 8px; }
  .cta-form input { border-right: 1.5px solid #F5F2ED; }
  .wall-row { grid-template-columns: 70px 1fr; gap: 8px; }
  .wall-src { padding-right: 8px; }
  .feature-flag { position: static; display: inline-block; margin-bottom: 8px; }
  .feature { padding-top: 16px; }
}

/* ============================================================
   Subtle live-feel motion (very restrained)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .stack-item.just-rose {
    animation: stackFlash 1.6s ease-out;
  }
  @keyframes stackFlash {
    0%   { background: var(--magenta-10); }
    100% { background: transparent; }
  }
  .signal-tick {
    animation: tickFlash 0.6s ease-out;
  }
  @keyframes tickFlash {
    0%   { background: var(--magenta-10); }
    100% { background: transparent; }
  }
}


/* ============================================================
   MOBILE LAYOUT (≤ 1024px) — JS-switched via useIsMobile().
   Phones + tablets get a simplified single-column flow with
   swipeable carousels and collapsible bars. These rules only
   target elements that exist in the mobile React tree, so the
   desktop layout is untouched.
   ============================================================ */

/* Root marker — lets us hide chrome that doesn't belong on mobile */
.m-root { background: var(--paper); }

/* ── Mobile masthead ────────────────────────────────────── */
.m-masthead {
  padding: 24px 18px 14px;
}
.m-masthead .wordmark {
  font-size: clamp(56px, 19vw, 104px);
  margin: 2px 0 4px;
}
.m-masthead .mast-strip {
  font-size: 9px;
  letter-spacing: 0.18em;
  padding-top: 8px;
}
.m-masthead .mast-strip .sep { margin: 0 0.3em; }

/* ── Mobile banner hero ─────────────────────────────────── */
.m-banner-wrap .banner-band {
  padding: 28px 18px 32px;
}
.m-banner-wrap .banner-hed {
  font-size: clamp(28px, 6.8vw, 40px);
  line-height: 1.06;
}
.m-banner-wrap .banner-flag {
  font-size: 10px;
  padding: 7px 10px 6px;
  margin-bottom: 18px;
}

/* ── Mobile lead image — same full-bleed knockout, scaled ── */
.m-banner-wrap .banner-band:has(.banner-hero) {
  min-height: 400px;
  padding: 0 18px 24px;
}
.m-banner-wrap .banner-band:has(.banner-hero) .banner-hed {
  font-size: clamp(32px, 8.2vw, 48px);
  line-height: 1.02;
}

/* ── Section header (above carousels) ───────────────────── */
.m-section {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.m-section-head {
  font-family: var(--display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 11px 18px 10px;
  background: var(--bar-fill);
  border-left: 5px solid var(--magenta);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.m-section-tertiary .m-section-head { border-left-color: var(--ink); }
.m-section-signals  .m-section-head { border-left-color: var(--magenta); }
.m-section-title { color: var(--ink); }
.m-section-meta {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-left: auto;
  text-transform: uppercase;
}
.m-section-swipe {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--magenta);
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Horizontal carousel ───────────────────────────────── */
.m-carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 16px 18px 18px;
  gap: 12px;
}
.m-carousel::-webkit-scrollbar { display: none; }
.m-carousel:focus-visible { outline: 2px solid var(--magenta); outline-offset: -2px; }
.m-card {
  flex: 0 0 84%;
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
}
.m-section-signals .m-card { flex-basis: 78%; }
@media (min-width: 640px) {
  .m-card { flex-basis: 60%; }
  .m-section-signals .m-card { flex-basis: 48%; }
}
@media (min-width: 860px) {
  .m-card { flex-basis: 46%; }
  .m-section-signals .m-card { flex-basis: 36%; }
}

/* Tertiary card */
.m-card-tertiary {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-card-tertiary .tag {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.m-card-tertiary .tag.src-solo { color: var(--src-solo); }
.m-card-tertiary .tag.src-mid  { color: var(--src-mid); }
.m-card-tertiary .tag.src-pub  { color: var(--src-pub); }
.m-card-tertiary.urgent .tag { color: var(--magenta); }
.m-card-tertiary .hed {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.24;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.m-card-tertiary.urgent .hed a {
  border-bottom: 2px solid var(--magenta);
  padding-bottom: 1px;
}
.m-card-tertiary .hed a:hover { color: var(--magenta); }

/* Signal card — wraps the desktop SignalCell, keeps tap-to-flip */
.m-card-signal {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  min-height: 210px;
  display: flex;
}
.m-card-signal .sig {
  width: 100%;
  border-right: none;
  background: var(--paper-card);
}
.m-card-signal .sig-front,
.m-card-signal .sig-back {
  padding: 9px 15px 10px;
}

/* Carousel dots */
.m-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 0 0 16px;
}
.m-dot {
  width: 6px;
  height: 6px;
  background: transparent;
  border: 1px solid var(--ink);
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.m-dot.on {
  background: var(--magenta);
  border-color: var(--magenta);
}

/* ── Collapsible bar ───────────────────────────────────── */
.m-col { background: var(--paper); }
.m-col-bar {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 18px;
  background: var(--bar-fill);
  border: none;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-left: 5px solid var(--magenta);
  font-family: var(--display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.m-col-attention .m-col-bar { border-left-color: var(--magenta); }
.m-col-sources   .m-col-bar { border-left-color: var(--teal); }
.m-col-bar:active,
.m-col.is-open .m-col-bar { background: var(--magenta-05); }
.m-col-bar:focus-visible { outline: 2px solid var(--magenta); outline-offset: -2px; }
.m-col-title { color: var(--ink); white-space: nowrap; }
.m-col-meta {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-left: auto;
  margin-right: 8px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.m-col-hint {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta);
  white-space: nowrap;
  margin-left: auto;
  margin-right: 8px;
  flex-shrink: 0;
}
.m-col-chev {
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  color: var(--magenta);
  flex-shrink: 0;
}

/* Scrollable body — sized for ~5 headlines, fades at the bottom */
.m-col-body {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.m-col-body-inner {
  max-height: 340px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 18px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--sep) transparent;
}
.m-col-body-inner::-webkit-scrollbar { width: 4px; }
.m-col-body-inner::-webkit-scrollbar-thumb {
  background: var(--sep);
}
.m-col-body::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 24px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(245,242,237,0), var(--paper));
}

/* Attention panel — tighten stack items */
.m-col-attention .stack-list { margin: 0; }
.m-col-attention .stack-item {
  grid-template-columns: 24px 32px 1fr;
  gap: 8px;
  padding: 9px 0;
}
.m-col-attention .stack-rank { font-size: 18px; }
.m-col-attention .stack-hed { font-size: 14px; line-height: 1.26; }
.m-col-attention .stack-item.hot {
  margin: 0 -18px;
  padding-left: 18px;
  padding-right: 18px;
}

/* ── EWS module (above the Source Roll on mobile) ───────── */
.m-ews {
  background: var(--paper);
  padding: 16px 18px 16px;
  border-bottom: 1px solid var(--rule);
}
.m-ews .ews-module-block.is-module {
  margin: 0;
}
.m-ews .ews-ear.is-module {
  margin: 0;
  max-width: none;
}

/* Source panel — let the inline stream breathe */
.m-col-sources .src-stream {
  font-size: 11.5px;
  line-height: 1.7;
  padding: 6px 0 10px;
}
.m-col-sources .src-key {
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}

/* ── Mobile WireCol (Today's Stack) ─────────────────────── */
.m-wire .col {
  padding: 22px 18px 28px;
  border: none;
}
.m-wire .col-head {
  margin: 0 -18px 14px;
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.m-wire .col-head .meta {
  font-size: 9px;
  letter-spacing: 0.16em;
}
.m-wire .wall-section { margin-bottom: 20px; }
.m-wire .wall-section-head {
  font-size: 11px;
  letter-spacing: 0.16em;
}
.m-wire .wall-section-head .count { font-size: 8.5px; }
.m-wire .wall-row,
.m-wire .wall-row.wire-row {
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 8px 0;
}
.m-wire .wire-ago { display: none; }
.m-wire .wall-src {
  padding-right: 9px;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.m-wire .wall-hed {
  font-size: 12.5px;
  line-height: 1.32;
}
.m-wire .feature {
  padding: 18px 16px 16px;
  margin: 4px 0 16px;
}
.m-wire .feature-flag {
  position: static;
  display: inline-block;
  margin-bottom: 10px;
}
.m-wire .feature-eyebrow { font-size: 9px; }
.m-wire .feature-hed {
  font-size: clamp(22px, 6vw, 28px);
}
.m-wire .feature-dek { font-size: 15px; }
.m-wire .feature-actions .btn {
  font-size: 12px;
  padding: 10px 14px;
}

/* CTA tightens on mobile */
.m-root .cta { padding: 44px 18px 32px; }
.m-root .cta-hed { font-size: clamp(28px, 7vw, 36px); }
.m-root .cta-body { font-size: 16px; margin-bottom: 22px; }
.m-root .cta-form { flex-direction: column; gap: 8px; }
.m-root .cta-form input { border-right: 1.5px solid #F5F2ED; }
.m-root .cta-form button { padding: 14px 22px; }

/* Colophon tightens on mobile */
.m-root .colophon {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 18px 22px;
  font-size: 9px;
  letter-spacing: 0.2em;
}

/* Reduced motion — kill the dot transition flicker */
@media (prefers-reduced-motion: reduce) {
  .m-dot { transition: none; }
  .m-col-bar { transition: none; }
}
