/* MSB INTEL — override.css v2: the excruciating-audit pass (2026-08-19)
   Load AFTER styles.css:  <link rel="stylesheet" href="/override.css?v=2">
   Fully reversible — delete the link tag to roll back.
   Carries forward the structural v6 rules the layout depends on, then kills
   every remaining AI-builder tell: glow, self-drawing rules, staggered
   entrances, pills, rounded glass, gold rings, section numbers, red squares. */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@500;700;800;900&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --sans: "Libre Franklin", -apple-system, "Helvetica Neue", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* ═══ 1. MOTION: content exists on load. No entrances, no self-drawing rules. */
.masthead-title, .masthead-title .ml, .mast-nav, .digest {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.redrule {
  animation: none !important;
  transform: none !important;
  background: var(--red, #E51A22) !important;   /* flat red rule, no gradient, no draw */
}
.masthead::after { display: none !important; content: none !important; }  /* no halo behind a nameplate */
.glow, .scroll-progress { display: none !important; }

/* ═══ 2. EDGES: newspapers have corners. 3px flat, no inset shadows, no glass. */
.tag, .btn-follow, .social-btn, .fcard, .dcard, .contact-cell,
.face-chip, .face-chip img, .wthumb, input, button, .dbl {
  border-radius: 3px !important;
}
.fcard, .dcard, .side-screen, .contact-cell {
  box-shadow: none !important;
  border: 1px solid var(--line) !important;
  background: var(--panel) !important;
}
.masthead-side { box-shadow: none !important; border: none !important; background: none !important; }
.lead-art { border-radius: 3px !important; }
.lead-art::after { display: none !important; }               /* no inset vignette */
.lead-art img, .lead-art:hover img { transform: none !important; }  /* no hover zoom */

/* ═══ 3. PILLS → flat red uppercase text labels (FT style). */
.tag-outline, .fcard-kicker {
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--red, #E51A22) !important;
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: 10.5px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

/* ═══ 4. PORTRAITS: no circles, no gold rings, no glow shadows, no levitate. */
.face-chip img {
  border: none !important;
  box-shadow: none !important;
  transition: none !important;
}
.face-chip:hover img { transform: none !important; box-shadow: none !important; }
.faces-track { animation: none !important; }
.dbl img {
  border-radius: 2px !important;      /* marks uncropped, flat backing */
  border: none !important;
  object-fit: contain !important;
}
.dbl { background: var(--panel) !important; }
.dbl:hover { transform: none !important; }

/* ═══ 5. SECTION FURNITURE: no numbers, no red squares. */
.sec-num, .label-block { display: none !important; }
.section-label { border-bottom: 1px solid var(--line); padding-bottom: 10px; width: 100%; }

/* ═══ 6. FIGURES: tabular numerals everywhere data lives. */
.num, .dtable td, .dtable th, .tape, .g-right, .g-chg, table td, table th,
.glance dd, .dcard b, time[datetime] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ═══ 7. BUTTONS + LINKS: flat hairline buttons, plain underlined links. */
.social-btn, .sb-tg, .sb-x {
  background: none !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  transition: border-color 0.15s !important;
}
.social-btn:hover { transform: none !important; filter: none !important; border-color: var(--ink-dim, #8A877E) !important; }
.briefing-form button { transform: none !important; }        /* no magnetic drift */
.wire-seeall, .wire-more {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: var(--ink) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.wire-seeall:hover, .wire-more:hover { color: var(--red, #E51A22) !important; }
.c-link {
  font-family: var(--sans) !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.fc-dl button {
  background: none !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

/* ═══ 8. TRACKING: cap the AI-label tic. */
.mono, .section-label, .label-block, .tag, .mast-nav a,
.masthead-date, .tape, .fcard-kicker, .dtable th,
.digest, .btn-follow, .social-btn, th {
  letter-spacing: 0.06em !important;
}
.masthead-tag, .masthead-tag em { letter-spacing: 0.02em !important; }
.datadesk-stamp, .fc-meta, .sharebar-label { letter-spacing: 0.04em !important; }

/* ═══ 9. TYPE: newsroom Franklin for nav and labels, not terminal mono. */
.mast-nav a {
  font-family: var(--sans) !important; font-weight: 700;
  font-size: 13.5px; letter-spacing: 0.02em !important; text-transform: none;
}
.section-label, .rail-h {
  font-family: var(--sans) !important; font-weight: 800;
  font-size: 13px; letter-spacing: 0.03em !important; text-transform: none;
}
.dtable th { font-family: var(--sans); font-weight: 700; font-size: 10px; }
.fcard p, .contact-cell p { line-height: 1.55; }
.lead-head { font-weight: 500; letter-spacing: -0.01em; }

/* ═══ 10. BYLINES + WIRE LEDGER (carried from v6, faces dropped). */
.byline { font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  color: #8A877E; letter-spacing: 0.05em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; }
.byline img { display: none; }                    /* desk bylines carry no face */
.wire-list li { border-bottom: 1px solid var(--line); padding: 14px 0 12px;
  border-radius: 0 !important; }
.wire-list li:last-child { border-bottom: none; }
.wire-list .tag { display: block; margin: 0 0 5px; padding: 0; border: none;
  background: none; color: var(--gold); font: 700 10px var(--sans);
  letter-spacing: 0.08em; }

/* ═══ 11. STRUCTURE (carried from v6): flush-left masthead, 7/5 lead, ledger. */
.masthead-grid { grid-template-columns: 1fr auto !important;
  grid-template-areas: "date date" "title side" "tag tag" !important; row-gap: 6px; }
.masthead-title { text-align: left !important; }
.masthead-tag { text-align: left !important; font-family: var(--sans) !important;
  font-style: normal !important; font-size: 15px; color: #8A877E; letter-spacing: 0.02em !important; }
.front-two { grid-template-columns: 7fr 5fr !important; gap: 0 !important; }
.front-two > .lead { order: 1 !important; border-left: none !important; border-right: 1px solid var(--line) !important;
  text-align: left !important; padding-left: 0 !important; padding-right: clamp(24px, 3vw, 44px) !important; }
.front-two > .rail { order: 2 !important; padding-left: clamp(22px, 2.6vw, 36px) !important; }
.front-two .lead-head { text-align: left; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; }
.front-two .kicker, .front-two .lead-deck { text-align: left; }
.wire-full { padding: clamp(28px, 4vw, 44px) 0 clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); }
.wire-full .wire-ledger { padding: 0 !important; }
.wire-full .wire-list { column-count: 2; column-gap: 56px; }
.wire-full .wire-list li { break-inside: avoid; }
.flipwatch { border: 1px solid var(--line); background: var(--panel); padding: 18px 20px 16px; margin-bottom: 22px; }
.flipwatch h4 { color: var(--gold) !important; }
#flipwatch-body { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.deskstrip { padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line); }
.ds-row { display: flex; align-items: center; gap: 22px; padding-top: 16px; flex-wrap: wrap; }
.ds-face { width: 52px; height: 52px; border-radius: 50%; filter: saturate(0.6); }
.ds-who b { display: block; font-size: 14.5px; color: var(--ink); }
.ds-who span { font-size: 12px; color: #8A877E; }
.ds-who + .ds-who { border-left: 1px solid var(--line); padding-left: 22px; }
.ds-link { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--gold); text-decoration: none; letter-spacing: 0.06em; }
@media (max-width: 960px) {
  .front-two { grid-template-columns: 1fr !important; }
  .front-two > .lead { border-right: none !important; padding-right: 0 !important; }
  .front-two > .rail { padding-left: 0 !important; }
  .wire-full .wire-list { column-count: 1; }
  .masthead-grid { grid-template-areas: "date date" "title title" "tag side" !important; }
}
@media (min-width: 961px) {
  .front-two > .rail { position: sticky; top: 18px; align-self: start; }
}
.rail-latest { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.rail-latest ul { list-style: none; margin: 0; padding: 0; }
.rail-latest li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rail-latest li:last-child { border-bottom: none; }
.rail-latest time { font-family: var(--mono); font-size: 11px; color: #8A877E; flex-shrink: 0; min-width: 52px; }
.rail-latest a { font-family: var(--serif, Georgia, serif); font-size: 0.98rem; line-height: 1.35; color: var(--ink); text-decoration: none; }
.rail-latest a:hover { color: var(--red, #E51A22); }

/* ═══ 12. THE WATCHLIST: flat three-column text index, hairline rows. */
.watchlist { padding: clamp(36px, 5vw, 64px) 0; }
.watchlist .names-stand { margin-bottom: 8px; }
.watch-grid {
  columns: 3;
  column-gap: clamp(28px, 4vw, 56px);
  column-rule: 1px solid var(--line);
  padding-top: 10px;
}
.watch-grid p {
  break-inside: avoid;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-dim, #8A877E);
}
.watch-grid p strong { color: var(--ink); font-weight: 700; }
@media (max-width: 960px) { .watch-grid { columns: 2; } }
@media (max-width: 640px) { .watch-grid { columns: 1; } }

/* ═══ 13. WIRE CARDS → RULED LEDGER ROWS at desktop width (§C, FT direction).
   The homepage wire is already a ledger; these rules also convert any
   remaining duo-card grids on inner pages. */
@media (min-width: 900px) {
  .wire-grid { display: block; }
  .duo-card { flex-direction: row; align-items: baseline; gap: 18px;
              border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
  .duo-card .wthumb { width: 72px; height: 48px; flex: none; }
  .duo-card .byline { display: none; }            /* bylines live on the article page */
  .wire-list .byline { display: none; }           /* ledger rows carry no byline */
}

/* ═══════════════════════════════════════════════════════════════════
   BLESSED HYBRID v3 (2026-08-19) — the Broadsheet's editorial front
   page on the Terminal's data spine. Loads after the v2 audit layer
   above and never re-introduces anything the audit killed.
   Editorial surfaces (masthead, lead, standfirst, section heads) go
   broadsheet serif; data surfaces (rail, tables, cards, wire ledger)
   go hairline-ruled terminal panels with bracketed mono labels.
   House gold rule: gold is the positive color everywhere; green is out. */

/* ── H1. TOKENS ── */
:root {
  --gold: #E9B44C;          /* house gold, accent + positive deltas */
  --gold-deep: #9A7B33;     /* muted dark gold, fills + rules */
}
.up, .g-chg.up { color: var(--gold) !important; }
.down, .g-chg.down { color: #FF6B61 !important; }
.briefing-msg.ok { color: var(--gold); }

/* ── H2. MASTHEAD — terminal nameplate, near full-width, tracked-mono tagline ── */
.masthead-title {
  font-size: clamp(3.6rem, 10.6vw, 10.2rem) !important;
  letter-spacing: -0.045em;
  line-height: 0.84;
  font-weight: 900;
}
.masthead-dot { background: var(--red) !important; }
.masthead-tag {
  font-family: var(--mono) !important;
  font-style: normal !important;
  font-size: 11.5px !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
  color: var(--ink-dim, #9C988E) !important;
  margin-top: 10px;
}
.masthead-grid { row-gap: 2px; align-items: end; }
.masthead-side { padding-bottom: 14px; }
/* the double rule: 2px red over a hairline, classic broadsheet */
.redrule { height: 2px; }
.mast-nav { border-top: 1px solid var(--line); margin-top: 3px; padding-top: 14px; }

/* ── H3. LEAD PACKAGE — broadsheet: huge cream serif head, drop-cap standfirst ── */
.front-two .lead-head {
  font-family: var(--serif) !important;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(40px, 4.9vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: none;
  margin: 18px 0 22px;
}
.front-two .lead-head em { font-style: italic; font-weight: 400; color: var(--gold); }
.lead-art {
  border: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
  padding: 7px;
  background: none !important;
}
.lead-art img { border-radius: 0; }
.front-two .lead-deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 20.5px);
  line-height: 1.55;
  color: var(--ink);
  max-width: none;
  margin-top: 20px;
}
.front-two .lead-deck::first-letter {
  font-style: normal;
  font-weight: 500;
  font-size: 3.05em;
  line-height: 0.78;
  float: left;
  color: var(--red);
  padding: 5px 10px 0 0;
}

/* ── H4. DATA SPINE — hairline panels, bracketed flat mono labels ── */
.rail .section-label, .rail-h, .dtable h4, .dcard h4,
.sharebar-label, .fc-label, .dblinks-label, .datadesk .section-label {
  display: block;
  gap: 0;
  font-family: var(--mono) !important;
  font-weight: 500 !important;
  font-size: 10.5px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--ink-dim) !important;
}
.rail .section-label::before, .rail-h::before, .dtable h4::before, .dcard h4::before,
.sharebar-label::before, .datadesk .section-label::before, .dblinks-label::before { content: "["; margin-right: 1px; }
.rail .section-label::after, .rail-h::after, .dtable h4::after, .dcard h4::after,
.sharebar-label::after, .datadesk .section-label::after, .dblinks-label::after { content: "]"; margin-left: 1px; }
.flipwatch h4 { color: var(--gold) !important; }
.datadesk .section-label { border-bottom: none; }

/* panels: label + body share one hairline box */
.rail .section-label {
  border: 1px solid var(--line) !important;
  border-bottom: none !important;
  padding: 14px 16px 0 !important;
  margin: 0;
  width: auto;
}
.rail .glance {
  border: 1px solid var(--line);
  border-top: none;
  padding: 2px 16px 6px;
  margin-top: 0;
}
.glance > div { border-radius: 0; margin: 0; padding: 10px 0; }
.glance > div:hover { background: none; }
.glance dd { color: var(--gold); }
.killed-box, .rail-latest {
  border: 1px solid var(--line);
  padding: 14px 16px 10px;
  margin-top: 0 !important;
}
.rail { gap: 20px; }
.lanes-list a::before { background: var(--red); }
.dtable { border: 1px solid var(--line); padding: 14px 16px 10px; background: var(--panel); }
.dtable h4 { border-bottom: 1px solid var(--line) !important; padding-bottom: 9px; }
.dtable td, .dtable .num { font-family: var(--mono); font-size: 12.5px; }
.dtable td:nth-child(2), #gainers-table td:first-child, #losers-table td:first-child { font-family: var(--sans); font-size: 13px; }
#gainers-table td:first-child, #losers-table td:first-child { width: auto; white-space: nowrap; color: var(--ink); }
.dcard { border-radius: 3px !important; }
.dcard h4 { color: var(--ink-dim) !important; }
.dcard b { color: var(--gold); font-family: var(--mono); }
.dtable .gap { color: var(--gold); }

/* ── H5. SPARKLINE RAIL — tiny live SVGs in a ruled strip under the lead ── */
.spark-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.spark-row:empty { display: none; }
.spark-t {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 13px 9px;
  margin: 0;
}
.spark-t figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--ink-dim); margin-bottom: 4px;
}
.spark-t figcaption b { font-weight: 600; color: var(--ink); }
.spark-t .spark-d { font-size: 10px; }
.spark-t .spark-v { display: block; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.spark-t svg { display: block; width: 100%; height: 26px; }
@media (max-width: 640px) { .spark-row { grid-template-columns: repeat(2, 1fr); } }

/* ── H6. WIRE AS LEDGER — timestamp · flat red tag · headline · small thumb ── */
.wire-list .tag { color: var(--red); }  /* flat red tag at every width */
@media (min-width: 900px) {
  .wire-full .wire-list li {
    grid-template-columns: 62px 1fr 72px;
    grid-template-areas: "time body thumb";
    column-gap: 16px;
    align-items: start;
  }
  .wire-full .wire-list li.nothumb { grid-template-columns: 62px 1fr; grid-template-areas: "time body"; }
  .wire-full .wire-list li time { grid-area: time; padding-top: 3px; }
  .wire-full .wire-list li .wthumb { grid-area: thumb; width: 72px; height: 48px; object-fit: cover; margin-top: 3px; }
  .wire-full .wire-list li > div { grid-area: body; }
  .wire-full .wire-list .tag {
    display: inline !important;
    margin: 0 9px 0 0 !important;
    color: var(--red) !important;
    font: 700 10px var(--sans) !important;
    letter-spacing: 0.08em !important;
  }
  .wire-full .wire-list a { display: inline; }
  .wire-full .wire-list p { margin-top: 4px; }
}

/* ── H7. POLISH ── */
.digest b { color: var(--gold); }
.datadesk-stamp { color: var(--gold); }
.ds-link { color: var(--gold); }
.dbl i { color: var(--gold); }
.dbl img { border: none !important; }
@media (max-width: 640px) {
  .front-two .lead-head { font-size: clamp(30px, 8.6vw, 40px); }
  .front-two .lead-deck::first-letter { font-size: 2.6em; }
  .masthead-title { font-size: clamp(3rem, 13.5vw, 4.4rem) !important; }
}
