@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --navy: #0c1c2e;
  --navy-2: #16304a;
  --ink: #16191f;
  --muted: #5a5e66;
  --line: #d5d0c6;
  --paper: #f3f0e8;
  --paper-2: #fffdf8;
  --green: #1b6b45;
  --green-soft: #e5f1ea;
  --red: #9f1d22;
  --gold: #9a7b3c;
  --up: #1b6b45;
  --down: #9f1d22;
  --max: 1120px;
  --measure: 65ch;
  --pad: 1.15rem;
  /* Always-dark surfaces (masthead, footer, skip, consent). Do not flip these in
     prefers-color-scheme: dark — --paper becomes dark there and would hide text. */
  --navy-bar: #0c1c2e;
  --on-navy: #f3f0e8;
  --on-navy-muted: #c9c3b6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #070e16;
    --navy-2: #101c2a;
    --ink: #ece7db;
    --muted: #a9a396;
    --line: #2c3845;
    --paper: #0f161e;
    --paper-2: #16202b;
    --green: #3dab74;
    --green-soft: #143226;
    --red: #e27878;
    --gold: #c4a35a;
    --up: #3dab74;
    --down: #e27878;
  }
}

@view-transition { navigation: auto; }
.wordmark { view-transition-name: wordmark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
@media (prefers-color-scheme: dark) {
  a { color: #d7e4f0; }
}
a:hover { color: var(--green); }
h1, h2, h3 { line-height: 1.18; font-weight: 650; letter-spacing: -0.015em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--pad); top: -3rem; background: var(--navy-bar);
  color: var(--on-navy); padding: 0.5rem 0.8rem; z-index: 20;
}
.skip:focus { top: 0.5rem; }

/* Progress */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--green); z-index: 30; transform-origin: left center;
}

/* Shared centered column: one max-width + inline padding for masthead, ticker, main, footer */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  box-sizing: border-box;
}

/* Masthead */
.masthead {
  background: var(--navy-bar);
  color: var(--on-navy);
  padding: 0.7rem 0 0;
  -webkit-tap-highlight-color: rgba(255,255,255,0.18);
}
.masthead a,
.masthead a:link,
.masthead a:visited,
.masthead a:any-link {
  color: var(--on-navy);
  text-decoration: none;
}
.masthead a:hover,
.masthead a:focus-visible,
.masthead a:active {
  color: #fff;
}
.masthead a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.masthead-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; font-family: var(--font-sans); font-size: 0.75rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-navy-muted);
}
.masthead-top .eyebrow { margin: 0; }
.utility { display: flex; gap: 0.9rem; }
.wordmark,
.wordmark:link,
.wordmark:visited,
.wordmark:any-link {
  display: block; text-align: center; font-size: 1.85rem;
  font-weight: 650; letter-spacing: -0.03em; padding: 0.45rem 0 0.55rem;
  line-height: 1;
  color: #fff;
}
.wordmark:hover,
.wordmark:focus-visible,
.wordmark:active {
  color: #fff;
  opacity: 0.88;
}
.wordmark-the {
  display: inline-block; font-style: italic; font-weight: 400;
  letter-spacing: 0; margin-right: 0.15em;
}
.sections { border-top: 1px solid rgba(255,255,255,0.14); }
.sections ul {
  display: flex; gap: 0.15rem; list-style: none; margin: 0;
  padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Center the item group; 'safe' falls back to start if the row overflows so the first items aren't clipped. */
  justify-content: center;
  justify-content: safe center;
}
@supports not (justify-content: safe center) {
  .sections ul { justify-content: flex-start; }
  @media (min-width: 768px) {
    .sections ul { justify-content: center; }
  }
}
.sections ul::-webkit-scrollbar { display: none; }
.sections a {
  display: block; padding: 0.7rem 0.7rem 0.75rem;
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.sections a[aria-current="page"],
.sections a:hover { border-bottom-color: var(--gold); }

/* Ticker — two panels (Gainers | Losers), 3-row tables, live clock */
.ticker {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.875rem; /* 14px — data cells stay at least this size */
}
.ticker-inner { padding-block: 0.55rem 0.65rem; }
.ticker-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: 0.2rem 0.8rem; margin-bottom: 0.4rem;
}
.ticker-title {
  margin: 0; font-family: var(--font-sans); font-size: 0.62rem;
  font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink); line-height: 1.25;
}
.ticker-status {
  display: inline-flex; flex-wrap: wrap; align-items: center;
  gap: 0.3rem 0.55rem; margin: 0; color: var(--muted);
  font-size: 0.68rem;
}
.ticker-live {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 0.68rem; color: var(--up);
}
.ticker-live[hidden] { display: none; }
.ticker-live-dot {
  position: relative; width: 0.5rem; height: 0.5rem; flex: 0 0 auto;
  border-radius: 50%; background: var(--up);
}
.ticker-live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--up); animation: tmh-live-pulse 1.6s ease-out infinite;
}
@keyframes tmh-live-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-live-dot::after { animation: none; opacity: 0; }
}
.ticker-boards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 0.75rem; align-items: start;
}
.ticker-panel { min-width: 0; }
.ticker-panel-up {
  border-right: 1px solid var(--line);
  padding-right: 0.7rem;
}
.ticker-table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
}
.ticker-table caption {
  caption-side: top; text-align: left; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  font-size: 0.62rem; color: var(--ink); margin: 0 0 0.15rem; padding: 0;
}
.ticker-panel-up caption { color: var(--up); }
.ticker-panel-down caption { color: var(--down); }
/* Column headers are implicit (symbol, $, %); hide the row to shrink height. */
.ticker-table thead {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ticker-table th,
.ticker-table td {
  padding: 0.18rem 0.3rem 0.18rem 0;
  text-align: left; vertical-align: baseline;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 400;
  font-size: 0.875rem; /* 14px floor */
}
.ticker-table tbody tr:last-child th,
.ticker-table tbody tr:last-child td { border-bottom: 0; }
.ticker-table .rank {
  width: 1.15rem; color: var(--muted); font-variant-numeric: tabular-nums;
  padding-right: 0.25rem; font-size: 0.75rem;
}
.ticker-table .sym {
  width: 26%; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink); text-transform: uppercase;
}
.ticker-table .px {
  width: 28%; text-align: right; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ticker-table .pct {
  width: 36%; text-align: right; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  font-size: 0.9375rem; /* ~15px — most prominent figure */
}
.ticker-table .pct.up { color: var(--up); }
.ticker-table .pct.down { color: var(--down); }
.ticker-arrow { display: inline-block; font-size: 0.7em; margin-right: 0.08em; }
.ticker-fallback {
  margin: 0.35rem 0 0; color: var(--muted); font-size: 0.78rem;
}
.ticker-fallback[hidden] { display: none; }
.ticker-table .px { border-radius: 2px; transition: background-color 0s; }
.ticker-table .px.ticker-tick-up {
  animation: tmh-tick-up 0.7s ease-out;
}
.ticker-table .px.ticker-tick-down {
  animation: tmh-tick-down 0.7s ease-out;
}
@keyframes tmh-tick-up {
  0% { background-color: var(--green-soft); }
  100% { background-color: transparent; }
}
@keyframes tmh-tick-down {
  0% { background-color: color-mix(in srgb, var(--down) 22%, transparent); }
  100% { background-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-table .px.ticker-tick-up,
  .ticker-table .px.ticker-tick-down { animation: none; }
}

/* At 375, two side-by-side panels: wrap price under the symbol so 14px type fits. */
@media (max-width: 719px) {
  .ticker-table,
  .ticker-table tbody { display: block; width: 100%; }
  .ticker-table tbody tr {
    display: grid;
    grid-template-columns: 1.05rem minmax(0, 1fr) auto;
    column-gap: 0.28rem;
    align-items: baseline;
    padding: 0.22rem 0;
    border-bottom: 1px solid var(--line);
  }
  .ticker-table tbody tr:last-child { border-bottom: 0; }
  .ticker-table tbody th,
  .ticker-table tbody td {
    display: block; width: auto; border: 0; padding: 0;
  }
  .ticker-table .rank { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: auto; }
  .ticker-table .sym { grid-column: 2; grid-row: 1; }
  .ticker-table .px { grid-column: 2; grid-row: 2; text-align: left; font-size: 0.875rem; }
  .ticker-table .pct { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 0.875rem; }
}

@media (min-width: 720px) {
  /* Stacked boards: a row of 3 gainer cards, then a row of 3 loser cards. */
  .ticker-boards {
    display: flex; flex-direction: column; gap: 0.65rem; align-items: stretch;
  }
  .ticker-panel { min-width: 0; }
  .ticker-panel-up {
    border-right: 0;
    padding-right: 0;
  }
  .ticker-table { display: block; width: 100%; max-width: 100%; table-layout: auto; }
  .ticker-table caption {
    display: block; text-align: left; margin: 0 0 0.3rem;
  }
  .ticker-table tbody {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem 0.7rem;
    width: 100%;
  }
  .ticker-table tbody tr {
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr) auto;
    column-gap: 0.4rem;
    align-items: baseline;
    min-width: 0;
    padding: 0.34rem 0.65rem 0.36rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--paper);
  }
  .ticker-table tbody th,
  .ticker-table tbody td {
    display: block; width: auto; border: 0; padding: 0; white-space: nowrap;
  }
  .ticker-table .rank {
    grid-column: 1; grid-row: 1 / span 2; align-self: center; width: auto;
    font-size: 0.8125rem; /* 13px */
  }
  .ticker-table .sym {
    grid-column: 2; grid-row: 1;
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    line-height: 1.2;
  }
  .ticker-table .px {
    grid-column: 2; grid-row: 2; text-align: left; padding-left: 0;
    font-size: 0.9375rem; /* 15px */
    line-height: 1.25;
  }
  .ticker-table .pct {
    grid-column: 3; grid-row: 1 / span 2; align-self: center;
    text-align: right; padding-left: 0.45rem;
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    line-height: 1.2;
  }
}

/* Main */
main { padding: 1.4rem 0 3rem; }
.kicker {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
  margin: 0 0 0.4rem;
}
.kicker a { color: inherit; text-decoration: none; }
.sample-flag {
  display: inline-block; background: var(--green-soft); color: var(--green);
  padding: 0.1rem 0.4rem; margin-right: 0.45rem; border-radius: 2px;
  letter-spacing: 0.06em;
}
.dek {
  font-family: var(--font-serif); font-style: italic; font-size: 1.2rem;
  line-height: 1.4; color: var(--ink); margin: 0.6rem 0 0;
}
.dek.small { font-size: 1.05rem; color: var(--muted); }
.meta {
  font-family: var(--font-sans); font-size: 0.82rem; color: var(--muted);
  margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.85rem;
}
.meta time { color: var(--ink); }

/* Home */
.home { display: grid; gap: 2rem; }
.lead { padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.lead-title {
  font-size: 2.05rem; margin: 0; letter-spacing: -0.03em; line-height: 1.12;
}
.lead-title a { color: inherit; text-decoration: none; }
.lead-title a:hover { color: var(--green); }
.latest h2, .rails h2, .related h2, .toc h2, .takeaways h2 {
  font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin: 0 0 0.8rem; color: var(--muted); font-weight: 700;
}
.story-list { list-style: none; margin: 0; padding: 0; }
.story-list li {
  padding: 0.9rem 0; border-top: 1px solid var(--line);
}
.story-title {
  display: block; font-size: 1.25rem; font-weight: 650; line-height: 1.25;
  color: inherit; text-decoration: none;
}
.story-title:hover { color: var(--green); }
.rails {
  display: grid; gap: 1.4rem; margin-top: 2.2rem;
  padding-top: 1.6rem; border-top: 2px solid var(--navy);
}
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail li { padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 1.02rem; }
.rail a { color: inherit; text-decoration: none; }
.rail a:hover { color: var(--green); }
.rail h2 a { color: var(--green); text-decoration: none; }
.empty { color: var(--muted); font-style: italic; }

/* Home / list cards */
.lead-hero, .story-hero, .card-thumb {
  margin: 0 0 1rem;
}
.lead-hero { margin-bottom: 1.1rem; }
.story-hero, .lead-hero, .card-thumb {
  background: var(--paper-2);
}
.story-hero img, .lead-hero img, .card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.lead-hero a, .card-thumb a, .story-hero a { display: block; }
.story-hero figcaption, .lead-hero figcaption, .card-thumb figcaption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}
.card-thumb figcaption { display: none; }
.story-card {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: start;
}
.story-card .card-thumb { margin: 0; }
.story-card-body .kicker { margin-bottom: 0.25rem; }

/* Article */
.page, .section-page { max-width: 42rem; margin-inline: auto; }
.story-layout {
  display: grid;
  gap: 2.4rem;
}
.story { min-width: 0; }
.story-head, .page-head { margin-bottom: 1.3rem; }
.story-head h1, .page-head h1, .error-page h1 {
  font-size: 2.05rem; margin: 0; letter-spacing: -0.03em;
}
.takeaways {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  padding: 1rem 1.1rem;
  margin: 0 0 1.4rem;
}
.takeaways ul { margin: 0; padding-left: 1.1rem; }
.takeaways li { margin: 0.3rem 0; }
.toc {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0 1rem;
  margin: 0 0 1.5rem;
}
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { color: inherit; }
.article-body { font-size: 1.125rem; }
.article-body p { margin: 0 0 1rem; }
.article-body h2 {
  font-size: 1.45rem; margin: 1.8rem 0 0.7rem; letter-spacing: -0.02em;
  font-family: var(--font-serif); color: var(--ink); text-transform: none;
}
.article-body h3 { font-size: 1.2rem; margin: 1.4rem 0 0.5rem; }
.article-body ul { padding-left: 1.2rem; }
.related { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.related a { color: inherit; font-weight: 650; text-decoration: none; font-size: 1.15rem; }
.related a:hover { color: var(--green); }

/* Sidebar */
.story-sidebar {
  min-width: 0;
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}
.side-block { margin: 0 0 1.7rem; }
.side-block h2,
.story-sidebar .side-more {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.side-block h2 {
  margin: 0 0 0.7rem;
  color: var(--muted);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.side-list, .side-sections { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 0.65rem 0; border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; padding-top: 0; }
.side-list a {
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.3;
  display: block;
}
.side-list a:hover { color: var(--green); }
.side-list .meta { margin-top: 0.3rem; }
.side-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
}
.side-sections a {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
  border: 1px solid var(--line);
  padding: 0.28rem 0.5rem;
  background: var(--paper-2);
}
.side-sections a:hover,
.side-sections a[aria-current="page"] {
  border-color: var(--green);
  background: var(--green-soft);
}
.side-more { margin: 0.7rem 0 0; }
.side-more a { color: var(--green); text-decoration: none; }
.side-more a:hover { text-decoration: underline; }
.side-newsletter {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 0.95rem 1rem 1.1rem;
}
.side-newsletter h2 {
  border-bottom: 0;
  padding-bottom: 0;
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-transform: none;
  font-weight: 700;
}
.side-newsletter .nl-kicker {
  margin: 0 0 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-newsletter .nl-dek {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.side-newsletter .nl-field { margin: 0 0 0.65rem; }
.side-newsletter .nl-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.side-newsletter .nl-form input[type="email"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.7rem;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
  border-radius: 0;
}
.side-newsletter .nl-form input[type="email"]:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.side-newsletter .nl-actions { margin: 0 0 0.7rem; }
.side-newsletter .nl-form button {
  display: block;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--navy-bar);
  color: var(--on-navy);
  border: 0;
  padding: 0.65rem 1rem;
  cursor: pointer;
}
.side-newsletter .nl-form button:hover,
.side-newsletter .nl-form button:focus-visible {
  background: var(--green);
  color: #fff;
}
.side-newsletter .nl-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.side-newsletter .nl-consent {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.side-newsletter .nl-consent a { color: var(--green); text-decoration: underline; white-space: nowrap; }
.side-newsletter .nl-status { margin: 0 0 0.75rem; font-size: 0.92rem; }
.side-newsletter .nl-staging-links,
.nl-staging-links {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.8rem;
  border: 1px dashed var(--gold);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

/* Footer */
.site-foot {
  background: var(--navy-bar);
  color: var(--on-navy-muted);
  padding: 2.2rem 0 2.4rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}
.site-foot a,
.site-foot a:link,
.site-foot a:visited { color: var(--on-navy); text-decoration: none; }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--gold); }
.foot-grid h2 { color: var(--on-navy-muted); }
.foot-grid { display: grid; gap: 1.6rem; }
.foot-brand { text-align: center; }
.site-foot .foot-wordmark {
  color: var(--on-navy);
  font-family: var(--font-serif);
  font-size: 1.85rem;
  margin: 0 auto 0.45rem;
  padding: 0;
  text-align: center;
  display: block;
}
.foot-tagline {
  margin: 0 auto;
  max-width: 28ch;
  text-align: center;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 0.25rem 0; }
.copyright {
  margin: 1.8rem 0 0;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.14);
  color: #9a958c; font-size: 0.8rem;
}


/* Mobile: center the masthead + movers; keep article body left-aligned. */
@media (max-width: 719px) {
  .masthead-top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
  }
  .masthead-top .eyebrow {
    max-width: 22rem;
  }
  .utility {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.95rem;
  }
  .sections {
    /* Right-edge fade so the horizontal section scroller looks intentional. */
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.6rem), transparent 100%);
            mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.6rem), transparent 100%);
  }
  .sections ul {
    padding-inline-end: 1.6rem;
  }
  .ticker-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ticker-status { justify-content: center; }
  .ticker-table caption { text-align: left; }
}

/* At tablet the 9 section labels (~831px at default padding) would overflow
   a 768px wrap; tighten only this range so the group can sit on one centered row. */
@media (min-width: 768px) and (max-width: 1023px) {
  .sections ul { gap: 0; }
  .sections a {
    padding-inline: 0.4rem;
    letter-spacing: 0.04em;
  }
}

@media (min-width: 720px) {
  .wordmark { font-size: 2.6rem; padding: 0.55rem 0 0.7rem; }
  .site-foot .foot-wordmark { font-size: 1.85rem; padding: 0; }
  .lead-title, .story-head h1, .page-head h1 { font-size: 2.75rem; }
  .home { grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
  .lead { border-bottom: 0; padding-right: 1.5rem; border-right: 1px solid var(--line); padding-bottom: 0; }
  .rails { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2rem; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  body { font-size: 1.1875rem; }
  .article-body { font-size: 1.1875rem; }
  .story-card { grid-template-columns: 11.25rem minmax(0, 1fr); gap: 1rem 1.15rem; }
}

@media (min-width: 1024px) {
  :root { --pad: 1.6rem; }
  .wordmark { font-size: 3rem; }
  .site-foot .foot-wordmark { font-size: 2rem; padding: 0; }
}

/* Two-column article: 680px reading column + 300px sticky sidebar, centered as a unit */
@media (min-width: 1080px) {
  .story-layout {
    grid-template-columns: minmax(0, 680px) 300px;
    justify-content: center;
    column-gap: 2.75rem;
    align-items: start;
  }
  .story-sidebar {
    position: sticky;
    top: 0.85rem;
    border-top: 0;
    padding-top: 0;
  }
}

/* Legal tables and draft pages */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; }
.article-body table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
  font-family: var(--font-sans);
}
.article-body th, .article-body td {
  border: 1px solid var(--line); padding: 0.45rem 0.6rem; text-align: left; vertical-align: top;
}
.article-body thead th { background: var(--paper-2); }
.draft-banner {
  background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  padding: 0.8rem 1rem; margin: 0 0 1.4rem; font-family: var(--font-sans); font-size: 0.95rem;
}

/* Contact + staff */
.contact-hub, .staff-list { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.contact-card, .staff-desk {
  background: var(--paper-2); border: 1px solid var(--line); padding: 1rem 1.1rem;
}
.contact-card h2, .staff-desk h2, .staff-desk h3 {
  font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 0 0 0.45rem; color: var(--ink);
}
.staff-mail { font-family: var(--font-sans); margin: 0.35rem 0 0; }

/* Staff personas */
.staff-note {
  font-family: var(--font-sans); font-size: 0.92rem; color: var(--muted);
  margin: 0 0 1.2rem; max-width: 46rem;
}
.staff-people {
  display: grid; gap: 1.25rem; margin: 0 0 2.4rem;
}
.staff-card {
  background: var(--paper-2); border: 1px solid var(--line); margin: 0;
}
.staff-card figure { margin: 0; }
.staff-card img {
  width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: cover;
  background: #d4d4d4;
}
.staff-meta { padding: 0.95rem 1.05rem 1.1rem; }
.staff-card h2 {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600;
  letter-spacing: 0; text-transform: none; margin: 0 0 0.2rem; color: var(--ink);
}
.staff-role {
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem;
}
.staff-bio { margin: 0; font-size: 0.98rem; }
.staff-mailboxes { margin: 0 0 1.5rem; }
.staff-mailboxes > h2 {
  font-family: var(--font-serif); font-size: 1.6rem; margin: 0 0 0.7rem;
}

/* Tips form */
.tips-form label { display: block; font-family: var(--font-sans); font-weight: 650; margin-bottom: 0.3rem; }
.tips-form textarea, .tips-form input[type="text"] {
  width: 100%; font: inherit; padding: 0.55rem 0.65rem; border: 1px solid var(--line);
  background: var(--paper-2); color: inherit;
}
.tips-form .hint, .tips-form .opt, .tips-form .req {
  display: block; font-family: var(--font-sans); font-size: 0.82rem; color: var(--muted); font-weight: 400;
}
.tips-form button, .consent-actions button, .cookie-settings {
  font-family: var(--font-sans); font-weight: 650; cursor: pointer;
}
.tips-form button {
  background: var(--navy-bar); color: var(--on-navy); border: 0; padding: 0.6rem 1.1rem;
}
.form-success, .form-error { padding: 0.8rem 1rem; border: 1px solid var(--line); }
.form-success { border-left: 3px solid var(--green); background: var(--green-soft); }
.form-error { border-left: 3px solid var(--red); }
.hp {
  position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;
}

/* Footer legal row + notice */
.legal-nav {
  display: flex; flex-wrap: wrap; gap: 0.55rem 1.1rem; align-items: center;
  margin: 1.6rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.82rem;
}
.legal-nav a, .legal-nav button { color: var(--on-navy); text-decoration: none; background: none; border: 0; padding: 0; font-size: inherit; }
.legal-nav a:hover, .legal-nav button:hover { color: var(--gold); }
.privacy-choices { display: inline-flex; align-items: center; gap: 0.35rem; }
.privacy-icon { display: inline-block; flex: 0 0 auto; }
.foot-notice { margin: 1rem 0 0; color: var(--on-navy-muted); font-size: 0.85rem; }
.foot-notice a { color: var(--on-navy); }

/* Consent banner: compact bottom sheet. JS sets body padding-bottom to the banner height
   so page content (including /alerts/* forms) can scroll clear of it. */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--navy-bar); color: var(--on-navy); padding: 0.85rem 0;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
  font-family: var(--font-sans);
}
.consent-banner[hidden] { display: none; }
.consent-inner { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: flex-start; justify-content: space-between; }
.consent-inner p { margin: 0; max-width: 50rem; font-size: 0.92rem; line-height: 1.45; }
.consent-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.consent-accept, .consent-reject {
  border: 1px solid rgba(255,255,255,0.3); background: var(--on-navy); color: var(--navy-bar);
  padding: 0.5rem 0.8rem; min-height: 44px;
}
.consent-reject { background: transparent; color: var(--on-navy); }
html.has-consent-banner, body.has-consent-banner { scroll-padding-bottom: var(--tmh-consent-offset, 0px); }
@media (max-width: 720px) {
  .consent-banner { padding: 0.65rem 0 calc(0.65rem + env(safe-area-inset-bottom, 0px)); }
  .consent-inner { flex-direction: column; gap: 0.55rem; }
  .consent-inner p { font-size: 0.85rem; line-height: 1.4; }
  .consent-actions { width: 100%; }
  .consent-accept, .consent-reject { flex: 1; text-align: center; }
}
@media (min-width: 720px) {
  .contact-hub, .staff-list { grid-template-columns: 1fr 1fr; }
  .staff-people { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .staff-people { grid-template-columns: 1fr 1fr 1fr; }
}


/* Bylines, tickers, tweet embeds, author and quote pages */
.byline { font-family: var(--font-sans); }
.byline a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.byline-role { color: var(--muted); font-weight: 400; }
a.ticker, .ticker-lg {
  font-family: var(--font-sans); font-weight: 650; letter-spacing: 0.02em;
  white-space: nowrap; text-decoration: none;
}
a.ticker:hover { color: var(--navy); text-decoration: underline; }
.ticker-lg { font-size: 0.7em; color: var(--muted); margin-left: 0.25rem; }

.tmh-tweet {
  margin: 1.25rem 0;
  min-height: 10rem;
  max-width: 34rem;
}
.tmh-tweet-media { min-height: 18rem; }
.tmh-tweet blockquote.twitter-tweet {
  margin: 0; padding: 0.9rem 1rem; border: 1px solid var(--line);
  background: var(--paper-2); font-size: 0.95rem;
}
.tmh-tweet-fallback { margin: 0.4rem 0 0; font-family: var(--font-sans); font-size: 0.82rem; }
.tmh-tweet twitter-widget { margin: 0 auto !important; }

.author-head {
  display: grid; gap: 1.2rem; margin-bottom: 2rem; align-items: start;
}
.author-photo { margin: 0; max-width: 16rem; }
.author-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #d4d4d4; }
.author-bio { max-width: 42rem; }
.author-stories h2 { font-family: var(--font-serif); margin: 0 0 1rem; }
.quote-notice {
  background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  padding: 0.8rem 1rem; max-width: 42rem;
}
@media (min-width: 720px) {
  .author-head { grid-template-columns: 16rem minmax(0, 1fr); gap: 1.8rem; }
}

/* Article quote chips (top) and cards (bottom).
   Phone (<720px): one tight row per ticker (symbol, price, change) with a
   required "Stocks in this story" header and as-of / "Price · change today"
   subline. Company names hide on phones so ten rows stay on one line.
   Desktop (>=720px): keep the denser two-line cells with names in a
   multi-column grid; only the header is added. */
.story-quotes {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  min-width: 0;
}
.story-quotes-chip {
  margin: 0.75rem 0 0;
  padding: 0.45rem 0.65rem 0.5rem;
}
.story-quotes-card {
  margin: 1.6rem 0 0;
  padding: 0.7rem 0.8rem 0.75rem;
}
.story-quotes-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.15rem 0.8rem;
  margin: 0 0 0.3rem;
}
.story-quotes-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.25;
}
.story-quotes-chip .story-quotes-title {
  font-size: 0.62rem;
  letter-spacing: 0.07em;
}
.story-quotes-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
  margin: 0;
  min-height: 0;
}
.story-quotes-asof {
  color: var(--muted);
  font-size: 0.68rem;
}
.story-quotes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Phone default: ticker and price on one line, change on the right. */
.story-quote {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  grid-template-areas: "sym px . chg";
  column-gap: 0.5rem;
  row-gap: 0;
  align-items: baseline;
  min-width: 0;
  min-height: 0;
  padding: 0.3rem 0;
  border-top: 1px solid var(--line);
}
.story-quote:first-child {
  border-top: 0;
  padding-top: 0.08rem;
}
.story-quote-sym {
  grid-area: sym;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.story-quote-sym:hover { color: var(--green); }
.story-quote-name {
  display: none;
  grid-area: name;
  color: var(--ink);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.story-quote-px {
  grid-area: px;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 500;
  line-height: 1.25;
  border-radius: 2px;
  white-space: nowrap;
}
.story-quote-chg {
  grid-area: chg;
  justify-self: end;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
  line-height: 1.2;
  color: var(--ink);
}
.story-quote-chg.up { color: var(--up); }
.story-quote-chg.down { color: var(--down); }
.story-quote-px.ticker-tick-up { animation: tmh-tick-up 0.7s ease-out; }
.story-quote-px.ticker-tick-down { animation: tmh-tick-down 0.7s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .story-quote-px.ticker-tick-up,
  .story-quote-px.ticker-tick-down { animation: none; }
}

.story-quotes-chip .story-quote { padding: 0.26rem 0; }
.story-quotes-chip .story-quote-sym { font-size: 0.875rem; }
.story-quotes-chip .story-quote-px { font-size: 0.875rem; }
.story-quotes-chip .story-quote-chg { font-size: 0.875rem; }

.story-quotes-card .story-quote { padding: 0.34rem 0; }
.story-quotes-card .story-quote-sym { font-size: 0.9375rem; font-weight: 700; }
.story-quotes-card .story-quote-px { font-size: 0.875rem; }
.story-quotes-card .story-quote-chg { font-size: 0.9375rem; }

@media (min-width: 720px) {
  /* Desktop keeps the existing two-line cells with company names. */
  .story-quote {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "sym name"
      "px chg";
    column-gap: 0.55rem;
    row-gap: 0.05rem;
    min-height: 2.35rem;
    border-top: 0;
    padding: 0;
  }
  .story-quote:first-child { padding-top: 0; }
  .story-quote-name { display: block; }
  .story-quotes-chip .story-quotes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
    gap: 0.35rem 1.1rem;
  }
  .story-quotes-chip .story-quote-sym { font-size: 1rem; }
  .story-quotes-chip .story-quote-name { font-size: 0.8125rem; }
  .story-quotes-chip .story-quote-px { font-size: 0.9375rem; }
  .story-quotes-chip .story-quote-chg { font-size: 1rem; }
  .story-quotes-card .story-quotes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
    gap: 0.5rem 1.2rem;
  }
  .story-quotes-card .story-quote {
    min-height: 3.1rem;
    padding: 0.15rem 0;
  }
  .story-quotes-card .story-quote + .story-quote {
    border-top: 0;
    padding-top: 0.15rem;
  }
  .story-quotes-card .story-quote-sym { font-size: 1.125rem; font-weight: 700; }
  .story-quotes-card .story-quote-name { font-size: 0.9375rem; }
  .story-quotes-card .story-quote-px { font-size: 0.9375rem; }
  .story-quotes-card .story-quote-chg { font-size: 1.125rem; }
}

.story-sources, .story-author-bio, .story-corrections {
  max-width: 42rem;
  margin: 1.75rem 0 0;
}
.story-sources h2, .story-author-bio h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}
.story-sources ul { margin: 0; padding-left: 1.2rem; }
.story-sources li { margin: 0.25rem 0; }
.story-author-bio {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.story-author-name { margin: 0 0 0.15rem; font-family: var(--font-sans); font-weight: 650; }
.story-author-role { margin: 0 0 0.6rem; color: var(--muted); font-family: var(--font-sans); font-size: 0.92rem; }
.story-author-text { margin: 0 0 0.6rem; }
.story-author-more { margin: 0; font-family: var(--font-sans); font-size: 0.92rem; }
.story-corrections { font-family: var(--font-sans); font-size: 0.92rem; }
.story-dates .updated { margin-left: 0.15rem; }
.contact-form-block { margin: 2rem 0 0; max-width: 42rem; }
.tmh-form { margin-top: 1rem; }

/* ==========================================================================
   Front page (WSJ-style cluster, auto lead, breaking, latest, most read)
   Desktop (>=720px, including 768/1024/1440): movers sit directly under the
   section nav, then lead, then the rest of the page.
   Phone placement is a separate max-width 719px rule so it can be omitted.
   The breaking banner is not sticky and must not cover content.
   ========================================================================== */

.tmh-staging-banner {
  background: #9a7b3c;
  color: #0c1c2e;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.4rem 0.8rem;
}

.badge-new,
.badge-breaking {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.08rem 0.38rem;
  margin-right: 0.4rem;
  border-radius: 2px;
  line-height: 1.3;
}
.badge-new {
  background: var(--green-soft);
  color: var(--green);
}
.badge-breaking {
  background: var(--red);
  color: #fffdf8;
}
.kicker .badge-new,
.kicker .badge-breaking { vertical-align: 0.05em; }

.front {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.front .lead {
  padding-bottom: 0;
  border-bottom: 0;
}
.front .lead-title { font-size: 2.05rem; }

.breaking-banner {
  position: static;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: 0.7rem 0.9rem;
}
.breaking-banner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.breaking-banner li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
}
.breaking-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fffdf8;
  background: var(--red);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  flex: 0 0 auto;
}
.breaking-banner a {
  color: inherit;
  font-weight: 650;
  text-decoration: none;
  flex: 1 1 12rem;
  line-height: 1.3;
}
.breaking-banner a:hover { color: var(--red); }
.breaking-banner time {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
  flex: 0 0 auto;
}

.top-stories h2,
.front .latest h2,
.most-read h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-weight: 700;
}
.top-stories ol,
.most-read ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-story {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.7rem 0.85rem;
  align-items: start;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.top-story:first-child { padding-top: 0; border-top: 0; }
.top-story .card-thumb { margin: 0; }
.top-story-body .kicker { margin-bottom: 0.2rem; }
.top-story .story-title { font-size: 1.12rem; }
.top-story .meta { margin-top: 0.35rem; }

.front-alerts:empty { display: none; }

.front-river {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}
.front .latest { min-width: 0; }
.front .story-list li:first-child { border-top: 0; padding-top: 0; }

.most-read {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.95rem 1rem 1.05rem;
}
.most-read ol {
  counter-reset: mostread;
}
.most-read li {
  counter-increment: mostread;
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  column-gap: 0.55rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.most-read li:first-child { border-top: 0; padding-top: 0; }
.most-read li::before {
  content: counter(mostread);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
  line-height: 1.2;
}
.most-read .kicker { grid-column: 2; margin: 0 0 0.15rem; }
.most-read .story-title {
  grid-column: 2;
  font-size: 1.05rem;
}
.most-read .story-title:hover { color: var(--green); }

.rail .badge-new { margin-right: 0.35rem; }

@media (min-width: 720px) {
  .front {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-areas:
      "movers movers"
      "lead lead"
      "breaking breaking"
      "tops tops"
      "alerts alerts"
      "river river";
    column-gap: 2rem;
    row-gap: 1.6rem;
    align-items: start;
  }
  .front .lead {
    grid-area: lead;
    border-right: 0;
    padding-right: 0;
    padding-bottom: 0;
  }
  .front .lead-title { font-size: 2.55rem; }
  .breaking-banner { grid-area: breaking; }
  .top-stories { grid-area: tops; }
  .front-alerts { grid-area: alerts; }
  .ticker-below-lead { grid-area: movers; margin: 0; border-top: 0; }
  /* Sit flush under the section nav (homepage only). */
  main:has(#tmh-movers) { padding-top: 0; }
  .front-river {
    grid-area: river;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.75fr);
    gap: 2rem;
    align-items: start;
    border-top: 2px solid var(--navy);
    padding-top: 1.5rem;
  }
  .top-story { grid-template-columns: 7.25rem minmax(0, 1fr); }
  .top-story .story-title { font-size: 1.18rem; }
  .most-read { position: sticky; top: 0.85rem; }
}

@media (min-width: 1024px) {
  .front .lead-title { font-size: 2.75rem; }
  .top-story { grid-template-columns: 8rem minmax(0, 1fr); }
  /* Two-up top stories once the lead/movers band is full width. */
  .top-stories ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    align-items: start;
  }
  .top-stories .top-story:nth-child(-n+2) {
    padding-top: 0;
    border-top: 0;
  }
}

/* Alerts signup — mobile-first */
.alerts-block {
  margin: 1.6rem 0;
  padding: 1.15rem 1rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
  max-width: 36rem;
}
.alerts-block--compact { margin: 1.8rem 0; }
.story .alerts-block--compact { max-width: none; }
.alerts-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}
.alerts-intro {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 1rem;
}
.alerts-form .alerts-field { margin: 0 0 0.85rem; }
.alerts-form input[type="email"],
.alerts-form input[type="tel"] {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.7rem 0.75rem;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
  border-radius: 2px;
}
.alerts-toggles {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}
.alerts-toggles legend {
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 0.95rem;
  margin: 0 0 0.55rem;
  padding: 0;
}
.tips-form label.alerts-toggle,
.alerts-form .alerts-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  margin: 0 0 0.25rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
}
.alerts-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.alerts-switch {
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--line);
  position: relative;
  transition: background 0.15s ease;
}
.alerts-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}
.alerts-toggle input:checked + .alerts-switch {
  background: var(--green);
}
.alerts-toggle input:checked + .alerts-switch::after {
  transform: translateX(18px);
}
.alerts-toggle input:focus-visible + .alerts-switch {
  outline: 2px solid var(--navy-2);
  outline-offset: 2px;
}
.alerts-consent {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.45;
}
.alerts-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
  cursor: pointer;
}
.alerts-consent-label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--navy-bar);
}
.alerts-submit button {
  min-height: 44px;
  min-width: 8rem;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
}
.alerts-staging-links {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--gold);
  font-family: var(--font-sans);
  font-size: 0.92rem;
}
.alerts-staging-banner {
  background: var(--gold);
  color: #1a1408;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.8rem;
}
.home .alerts-block { margin: 1.8rem 0 0; }
@media (min-width: 720px) {
  .alerts-block { padding: 1.4rem 1.3rem 1.45rem; }
  .alerts-heading { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .alerts-switch, .alerts-switch::after { transition: none; }
}

.alerts-legal {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}

/* Fit the compact signup into the live homepage alerts slot (tmh-homepage-1127). */
.front-alerts .alerts-block {
  margin: 0;
  max-width: none;
}

/* Read-full cue + reading time (staging follow-up; keep cards as they are) */
.read-full {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0.1rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--green);
  text-decoration: none;
}
.read-full:hover,
.read-full:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.read-full:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.front .lead .read-full { margin-top: 0.15rem; }
.top-story .dek {
  font-size: 0.95rem;
  margin-top: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.top-story .read-full { margin-top: 0; }
@media (min-width: 720px) {
  .read-full {
    min-height: auto;
    padding: 0.15rem 0;
  }
}


/* Article share bars */
.share-bar {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid var(--line, #d5d0c6);
  font-family: var(--font-sans);
}
.share-bar[data-share-placement="bottom"] {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
}
.share-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #5a5e66);
  font-weight: 650;
}
.share-native {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  margin: 0 0 0.55rem;
  border: 0;
  border-radius: 4px;
  background: var(--navy-bar, #0c1c2e);
  color: var(--on-navy, #f3f0e8);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.share-native[hidden] { display: none; }
.share-native:hover, .share-native:focus-visible { opacity: 0.92; }
.share-fallback {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.25rem;
}
.share-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line, #d5d0c6);
  border-radius: 4px;
  background: var(--paper-2, #fffdf8);
  color: inherit;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
}
.share-link:hover, .share-link:focus-visible { border-color: var(--navy, #0c1c2e); }
.share-toast {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--green, #1b6b45);
  font-weight: 650;
}
.share-toast[hidden] { display: none; }

/* Branded error pages */
.error-page .error-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; margin: 1rem 0 1.5rem; }
.error-page .error-home {
  display: inline-block;
  background: var(--navy-bar, #0c1c2e);
  color: var(--on-navy, #f3f0e8);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  font-weight: 650;
  font-family: var(--font-sans);
}
.error-sections ul, .error-latest ul { list-style: none; margin: 0; padding: 0; }
.error-sections ul {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.9rem;
}
.error-latest li { margin: 0.45rem 0; }
.error-latest .meta { display: block; color: var(--muted, #5a5e66); font-size: 0.85rem; }
.error-page h2 { font-size: 1.15rem; margin: 1.4rem 0 0.6rem; }


/* Homepage movers box (not in the global header). Desktop placement is
   handled in the min-width: 720px .front grid (under the nav, above the lead). */
.ticker-below-lead {
  border-bottom: 1px solid var(--line);
}

/* -------------------------------------------------------------------------
   Phone-only (375/393, and any viewport <=719px): same placement as desktop —
   movers directly under the nav, above the lead. Source order stays
   lead-then-movers, so dropping this whole block ships desktop-only and
   leaves phones as they are on live today (lead, then movers).
   ------------------------------------------------------------------------- */
@media (max-width: 719px) {
  main:has(#tmh-movers) { padding-top: 0; }
  .front > .ticker-below-lead {
    order: -1;
    margin: 0;
    border-top: 0;
  }
  .ticker-below-lead .ticker-boards { gap: 0 0.55rem; }
  .ticker-below-lead .ticker-panel-up { padding-right: 0.45rem; }
}


/* Keep focused form controls clear of the fixed cookie banner. */
#main button,
#main label,
#main input,
#main [type="submit"] {
  scroll-margin-bottom: calc(var(--tmh-consent-offset, 0px) + 16px);
}
