:root {
  color-scheme: light;
  --bg: #f4f5f2;
  --paper: #ffffff;
  --ink: #111315;
  --muted: #5d6670;
  --line: #d9ddd4;
  --soft: #eef0ea;
  --accent: #b12f27;
  --teal: #0e6f68;
  --gold: #b87923;
  --shadow: 0 14px 32px rgba(17, 19, 21, .07);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.front-page {
  background: #f2f2ef;
}
.news-header,
.news-shell,
.news-footer {
  max-width: 1320px;
  margin: 0 auto;
  background: #fff;
}
.news-header {
  margin-top: 22px;
  border: 1px solid #d7d7d2;
  border-bottom: 0;
  box-shadow: 0 18px 50px rgba(17, 19, 21, .1);
}
.news-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid #d7d7d2;
  color: #30343a;
  font-size: 13px;
  font-weight: 750;
}
.news-topbar .visitor-slot {
  justify-self: end;
}
.news-topbar i,
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d71920;
  margin-left: 8px;
}
.news-date-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 20px 8px;
}
.news-date-row > span,
.news-date-row a {
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.news-date-row a {
  justify-self: end;
}
.news-date-row h1 {
  margin: 0;
  font: 900 clamp(58px, 8vw, 96px)/.9 Georgia, "Times New Roman", serif;
  letter-spacing: -1px;
}
.news-date-row h1 span { color: #111315; }
.news-date-row h1 { color: #d12424; }
.news-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 12px 20px 0;
  border-top: 3px solid #111315;
  border-bottom: 1px solid #d7d7d2;
}
.news-nav a {
  position: relative;
  padding: 0 0 12px;
  text-decoration: none;
  font-weight: 850;
  font-size: 14px;
}
.news-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #d12424;
}
.news-shell {
  padding: 14px 20px 18px;
  border-left: 1px solid #d7d7d2;
  border-right: 1px solid #d7d7d2;
  box-shadow: 0 18px 50px rgba(17, 19, 21, .1);
}
.front-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 390px;
  gap: 14px;
}
.front-lead,
.economy-board,
.dash-card {
  background: #fff;
  border: 1px solid #deded8;
}
.front-lead {
  padding: 18px 16px;
  border-left: 0;
  border-top: 0;
}
.red-label {
  margin: 0 0 8px;
  color: #d12424;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.front-lead h2 {
  margin: 0;
  font: 900 34px/1.01 Georgia, "Times New Roman", serif;
}
.front-lead p {
  color: #3b4249;
  font-size: 14px;
}
.front-actions {
  display: flex;
  gap: 10px;
  margin: 18px 0 12px;
}
.front-actions a {
  padding: 10px 16px;
  border: 1px solid #111315;
  background: #d12424;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.front-actions a.secondary {
  background: #fff;
  color: #111315;
}
.story-list {
  border-top: 1px solid #deded8;
  padding-top: 12px;
  font-size: 13px;
}
.story-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.story-list li { margin: 6px 0; }
.market-visual {
  margin: 0;
  border: 1px solid #111315;
  background: #07141a;
}
.market-visual img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}
.economy-board {
  padding: 12px 14px;
  border-top: 0;
  border-right: 0;
}
.board-head,
.dash-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.board-head h2,
.dash-title h2 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.board-head a,
.dash-title a {
  color: #30343a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.economy-board table,
.dash-card table {
  min-width: 0;
  box-shadow: none;
}
.economy-board th,
.economy-board td,
.dash-card th,
.dash-card td {
  padding: 9px 8px;
  font-size: 12px;
}
.economy-board td span {
  color: #67717a;
  font-weight: 500;
}
.economy-board svg {
  width: 90px;
  height: 18px;
}
.economy-board polyline {
  fill: none;
  stroke: #d12424;
  stroke-width: 2.3;
}
.economy-board svg.green polyline { stroke: #23824a; }
.economy-board svg.orange polyline { stroke: #f08a24; }
.dot.green { background: #23824a; }
.dot.orange { background: #f08a24; }
.briefs {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #deded8;
}
.briefs h3 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
}
.briefs p {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  margin: 8px 0;
  color: #30343a;
  font-size: 12px;
}
.briefs span { color: #67717a; }
.ticker-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: center;
  border: 1px solid #deded8;
  border-top: 0;
}
.ticker-rail div,
.ticker-rail a {
  padding: 10px 14px;
  border-right: 1px solid #deded8;
  text-decoration: none;
}
.ticker-rail span {
  color: #30343a;
  font-size: 12px;
  font-weight: 800;
}
.ticker-rail strong {
  margin-left: 14px;
  color: #d12424;
  font: 900 21px/1 Georgia, "Times New Roman", serif;
}
.ticker-rail a {
  border-right: 0;
  font-size: 12px;
  font-weight: 850;
}
.dashboard-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.dash-card { padding: 12px; }
.table-scroll.compact {
  box-shadow: none;
  border-radius: 0;
}
.up { color: #23824a; font-weight: 900; }
.down { color: #d12424; font-weight: 900; }
.flat { color: #f08a24; font-weight: 900; }
.news-footer {
  margin-bottom: 30px;
  padding: 16px 20px 22px;
  border: 1px solid #d7d7d2;
  border-top: 0;
  color: #68717a;
  font-size: 13px;
  box-shadow: 0 18px 50px rgba(17, 19, 21, .1);
}

.masthead {
  background: var(--paper);
  border-top: 5px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px 14px;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font: 700 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.visit-counter {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  background: var(--soft);
  white-space: nowrap;
}
.brand-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  padding: 16px 0 13px;
  border-bottom: 3px solid var(--ink);
}
.wordmark {
  display: flex;
  align-items: end;
  gap: 14px;
}
.logo-mark {
  width: 60px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--soft);
  font: 900 28px/.95 Georgia, "Times New Roman", serif;
}
.logo-mark sup { font-size: .42em; }
.brand {
  margin: 0;
  font: 900 clamp(48px, 8vw, 96px)/.86 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}
.section-name {
  margin: 8px 0 0;
  color: var(--accent);
  font: 800 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.deck {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.edition-stamp {
  min-width: 190px;
  padding: 12px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbf8;
  color: var(--muted);
  font: 700 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.edition-stamp strong {
  display: block;
  color: var(--ink);
  font: 900 25px/1 Georgia, "Times New Roman", serif;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
}
.nav a {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.nav a:hover, .nav a[aria-current="page"] {
  border-color: var(--line);
  background: var(--soft);
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 72px;
}
.market-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.fx-card {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.fx-card span, .fx-card small {
  display: block;
  color: var(--muted);
  font: 800 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fx-card strong {
  display: block;
  margin: 6px 0 4px;
  font: 900 28px/1 Georgia, "Times New Roman", serif;
}
.fx-card small {
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: none;
}
.hero-grid, .two-col, .daily-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr);
  gap: 18px;
  align-items: start;
}
.article, .panel, .signal-panel, .visual-frame, .archive-item, .data-card, .note-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article { padding: clamp(24px, 4vw, 42px); }
.panel, .signal-panel, .data-card, .note-box { padding: 20px; }

.label {
  margin: 0 0 10px;
  color: var(--accent);
  font: 800 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.article h1, .article h2, .panel h2, .section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.03;
  letter-spacing: 0;
}
.article h1 { font-size: clamp(36px, 5.1vw, 68px); }
.article h2, .panel h2, .section-head h2 { font-size: clamp(26px, 3vw, 38px); }
.article h3 { margin: 24px 0 8px; font-size: 20px; }
.article p, .panel p, .note-box p {
  color: #303842;
  font-size: 17px;
}
.standfirst {
  margin: 16px 0 0;
  max-width: 780px;
  color: #303842;
  font-size: 19px;
}
.button-row, .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 850;
}
.button.secondary {
  background: var(--paper);
  color: var(--ink);
}

.visual-frame {
  margin: 18px 0 0;
  overflow: hidden;
}
.visual-frame img { width: 100%; }
figcaption {
  padding: 9px 12px;
  color: var(--muted);
  background: #fbfbf8;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.section { margin-top: 24px; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 12px;
}
.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.signal-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.signal-title h2, .signal-title h3 {
  margin: 0;
  font: 900 24px/1.05 Georgia, "Times New Roman", serif;
}
.pulse {
  width: 18px;
  height: 18px;
  border: 5px solid #f0d1cd;
  border-radius: 999px;
  background: var(--accent);
}
.metric {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.metric:last-child { border-bottom: 0; }
.bar {
  height: 8px;
  background: #ece5d8;
}
.bar span { display: block; height: 100%; background: var(--teal); }
.bar.red span { background: var(--accent); }
.bar.gold span { background: var(--gold); }

.scoreboard, .data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.score {
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfbf8;
  border-radius: var(--radius);
}
.score span {
  display: block;
  color: var(--muted);
  font: 800 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.score strong {
  display: block;
  margin-top: 4px;
  font: 900 26px/1 Georgia, "Times New Roman", serif;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: var(--paper);
}
th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: #f7f7f2;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
td { color: #2f3740; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
.status {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfbf8;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.archive-list {
  display: grid;
  gap: 10px;
}
.archive-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  text-decoration: none;
}
.archive-date {
  color: var(--accent);
  font: 800 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.archive-title {
  display: block;
  font: 900 21px/1.1 Georgia, "Times New Roman", serif;
}
.archive-summary {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.archive-tag {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.source-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #303842;
}
.source-list li { margin: 6px 0; }
.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 860px) {
  .news-header { margin-top: 0; }
  .news-topbar,
  .news-date-row,
  .front-grid,
  .dashboard-pair,
  .ticker-rail {
    grid-template-columns: 1fr;
  }
  .news-topbar .visitor-slot,
  .news-date-row a {
    justify-self: start;
  }
  .news-date-row h1 {
    font-size: 58px;
  }
  .news-nav {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }
  .market-visual img {
    min-height: 280px;
  }
  .ticker-rail div,
  .ticker-rail a {
    border-right: 0;
    border-bottom: 1px solid #deded8;
  }
  .brand-row, .hero-grid, .two-col, .daily-grid, .section-head {
    grid-template-columns: 1fr;
  }
  .market-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edition-stamp { text-align: left; }
  .scoreboard, .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { grid-template-columns: 62px 1fr; }
  .metric span:last-child { grid-column: 2; }
  .archive-item { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .masthead-inner, .shell { padding-left: 14px; padding-right: 14px; }
  .wordmark { align-items: center; }
  .logo-mark { width: 48px; font-size: 22px; }
  .brand { font-size: 46px; }
  .article, .panel, .signal-panel, .data-card, .note-box { padding: 16px; }
  .article h1 { font-size: 34px; }
  .scoreboard, .data-grid { grid-template-columns: 1fr; }
  .market-strip { grid-template-columns: 1fr; }
  .topline { align-items: flex-start; flex-direction: column; }
}
