/* =========================================================
   MACRO/SIGNAL — design tokens
   A financial-terminal-inspired theme: ink-navy base,
   amber ticker accent, teal data accent, functional
   red/green for bearish/bullish states.
   ========================================================= */
:root{
  --bg: #0a0e13;
  --bg-elevated: #10151c;
  --card: #141a22;
  --card-hover: #182029;
  --border: #232c37;
  --border-soft: #1b232c;
  --text: #e9edf1;
  --text-strong: #ffffff;   /* headings, key figures — brightest tier */
  --text-body: #dbe3ea;     /* emphasis blocks (trader-brief etc.) */
  --text-prose: #cfd8e0;    /* long-form paragraph + table copy */
  --text-muted: #8fa0af;
  --text-dim: #5d6d7a;
  --amber: #f2b84b;
  --amber-dim: #a8843a;
  --teal: #35d0b8;
  --red: #f2635a;
  --green: #4cc38a;

  /* Logo mark. Defaults to the semantic up/down colours so the brand and the
     data on the page speak the same language. Override these two if the mark
     should read differently from the numbers — nothing else depends on them. */
  --logo-green: var(--green);
  --logo-red: var(--red);
  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before{
  content:"";
  position: fixed; inset:0;
  background:
    radial-gradient(circle at 15% 0%, rgba(242,184,75,0.06), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(53,208,184,0.05), transparent 40%);
  pointer-events:none;
  z-index:0;
}
img{ max-width:100%; display:block; }
a{ color: var(--teal); text-decoration:none; }
a:hover{ text-decoration: underline; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight:600; line-height:1.15; margin:0 0 .5em; color:var(--text-strong); letter-spacing:-0.01em; }
p{ margin:0 0 1.1em; color: var(--text); }
.container{ max-width: var(--container); margin:0 auto; padding:0 24px; position:relative; z-index:1; }
:focus-visible{ outline: 2px solid var(--amber); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce){ *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; } }

/* ---------- eyebrow / mono labels ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom: 14px;
}
.eyebrow::before{ content:"//"; color: var(--text-dim); }
.tag{
  font-family: var(--font-mono);
  font-size:11px;
  letter-spacing:.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display:inline-block;
  min-width: 96px;
  text-align:center;
  flex: none;
}
.tag.leading{ color:var(--teal); border-color: rgba(53,208,184,.35); background: rgba(53,208,184,.06); }
.tag.lagging{ color:var(--red); border-color: rgba(242,99,90,.35); background: rgba(242,99,90,.06); }
.tag.coincident{ color:var(--amber); border-color: rgba(242,184,75,.35); background: rgba(242,184,75,.06); }
.tag.mixed{ color:var(--text-muted); }

/* ---------- header ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(10,14,19,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 24px; max-width: var(--container); margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; font-family: var(--font-display); font-weight:700; font-size: 20px; color:var(--text-strong); }
.brand .brand-mark{ width:34px; height:34px; flex:none; display:block; overflow:visible; }
.site-footer .brand .brand-mark{ width:30px; height:30px; }
@media (max-width: 620px){ .brand .brand-mark{ width:28px; height:28px; } }
.brand small{ display:block; font-family: var(--font-mono); font-weight:400; font-size:10px; letter-spacing:.14em; color: var(--text-dim); }
nav.main-nav{ display:flex; gap: 28px; align-items:center; margin-left:auto; margin-right:24px; }
nav.main-nav a{
  color: var(--text-muted); font-size: 14px; font-weight:500; position:relative;
}
nav.main-nav a:hover{ color: var(--text); text-decoration:none; }
nav.main-nav a.active{ color: var(--amber); }
.nav-toggle{ display:none; background:none; border:1px solid var(--border); color:var(--text); border-radius:6px; padding:8px 10px; font-family: var(--font-mono); }

/* ---------- ticker ---------- */
.ticker-wrap{
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #0d1319, #0a0e13);
  overflow:hidden;
  white-space: nowrap;
}
.ticker-track{
  display:inline-flex;
  animation: ticker 42s linear infinite;
  padding: 9px 0;
}
.ticker-wrap:hover .ticker-track{ animation-play-state: paused; }
.ticker-item{
  font-family: var(--font-mono); font-size:12.5px; color: var(--text-muted);
  padding: 0 26px; border-right: 1px solid var(--border-soft); display:inline-flex; gap:8px; align-items:center;
}
.ticker-item b{ color:var(--text-strong); font-weight:600; }
.ticker-item .up{ color: var(--green); }
.ticker-item .down{ color: var(--red); }
@keyframes ticker{ 0%{ transform: translateX(0);} 100%{ transform: translateX(-50%);} }

/* ---------- hero ---------- */
.hero{ padding: 84px 0 32px; position:relative; }
.hero-grid{ display:grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items:stretch; margin-top:34px; }
.hero h1{ font-size: clamp(34px, 4.6vw, 58px); }
.hero h1 .accent{ color: var(--amber); }
.hero-full-h1{ max-width: 1000px; margin-bottom:0; }
.hero-lede{ font-size:18px; color: var(--text-muted); max-width: 52ch; }
.hero-cta{ display:flex; gap:14px; margin-top: 28px; flex-wrap:wrap; }
.btn{
  font-family: var(--font-mono); font-size:13px; letter-spacing:.04em; text-transform:uppercase;
  padding: 13px 22px; border-radius: var(--radius-sm); font-weight:600; display:inline-flex; align-items:center; gap:8px;
  border:1px solid transparent; cursor:pointer;
}
.btn-primary{ background: var(--amber); color:#0a0e13; }
.btn-primary:hover{ background:#ffcb6b; text-decoration:none; }
.btn-ghost{ border-color: var(--border); color: var(--text); }
.btn-ghost:hover{ border-color: var(--teal); color: var(--teal); text-decoration:none; }

.hero-panel{
  background: var(--card); border:1px solid var(--border); border-radius: 14px; padding: 22px;
  font-family: var(--font-mono); font-size: 13px;
  display:flex; flex-direction:column; height:100%;
}
.hero-panel .panel-head{ display:flex; justify-content:space-between; color:var(--text-strong); font-weight:600; border-bottom:1px solid var(--border-soft); padding-bottom:12px; margin-bottom:12px; }
.panel-row{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:9px 0; border-bottom: 1px dashed var(--border-soft);
  flex:1 1 auto; min-height:0; color:inherit;
}
.panel-row:hover{ text-decoration:none; }
.panel-row:hover .lbl{ color: var(--text-strong); }
.panel-row:last-child{ border-bottom:none; }
.panel-row .lbl{ color: var(--text-muted); }
.panel-row .val{ color:var(--text-strong); font-weight:600; }
.panel-row .val.up{ color: var(--green); }
.panel-row .val.down{ color: var(--red); }

/* ---------- sections / grids ---------- */
.section{ padding: 64px 0; border-top: 1px solid var(--border-soft); }
.section-head{ display:flex; flex-direction:column; align-items:flex-start; gap: 10px; margin-bottom: 34px; }
.section-head h2{ font-size: clamp(24px,3vw,34px); margin:0; }
.section-head p{ color:var(--text-muted); margin:0; max-width:900px; }

.grid{ display:grid; gap: 18px; }
.grid.cols-4{ grid-template-columns: repeat(4, 1fr); }
.grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.grid.cols-2{ grid-template-columns: repeat(2, 1fr); }

.card{
  background: var(--card); border:1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color .15s, transform .15s, background .15s;
}
.card:hover{ border-color: var(--amber-dim); background: var(--card-hover); transform: translateY(-2px); }
.card .card-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.card .num{ font-family: var(--font-mono); color: var(--text-dim); font-size:12px; }
.card h3{ font-size:18px; margin-bottom:8px; }
.card p{ color: var(--text-muted); font-size:14.5px; margin-bottom:0; }
.card a.card-link{ color: var(--text); }
.card a.card-link:hover{ text-decoration:none; }

/* index / hub row list */
.row-list{ display:flex; flex-direction:column; border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; }
.row-item{
  display:grid; grid-template-columns: 60px 1fr 155px 110px 26px;
  align-items:center; gap:18px; padding:18px 20px;
  border-bottom:1px solid var(--border-soft); background: var(--card);
}
.row-item:last-child{ border-bottom:none; }
.row-item:hover{ background: var(--card-hover); }
.row-item .code{ font-family: var(--font-mono); color: var(--text-dim); font-size:12px; }
.row-item .rt{ display:flex; flex-direction:column; gap:2px; }
.row-item .rt h3{ font-size:16.5px; margin:0; }
.row-item .rt span{ color: var(--text-muted); font-size:13.5px; line-height:1.5; min-height:3em; display:block; }
.row-item .arrow{ color: var(--text-dim); font-family:var(--font-mono); text-align:right; }
.row-item:hover .arrow{ color: var(--amber); }

/* ---------- ad slots ---------- */
.ad-slot{
  margin: 40px auto; max-width: var(--container); padding: 0 24px;
}
.ad-slot .ad-inner{
  border:1px dashed var(--border); border-radius: var(--radius-sm);
  min-height: 100px; display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.015);
}
.ad-label{
  font-family: var(--font-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--text-dim); text-align:center; margin-bottom:8px;
}
.ad-slot.ad-leaderboard .ad-inner{ min-height: 90px; }
.ad-slot.ad-incontent .ad-inner{ min-height: 250px; }

/* ---------- article ---------- */
.breadcrumb{ font-family: var(--font-mono); font-size:12px; color: var(--text-dim); padding: 22px 0 0; }
.breadcrumb a{ color: var(--text-dim); }
.breadcrumb a:hover{ color: var(--teal); }
.article-head{ padding: 24px 0 20px; border-bottom:1px solid var(--border-soft); }
.article-head h1{ font-size: clamp(28px,4vw,44px); margin-bottom:14px; }
.article-meta{ display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.article-meta .dim{ color: var(--text-dim); font-family: var(--font-mono); font-size:12px; }
.article-body{ padding: 40px 0; max-width: 100%; }
.article-body h2{ font-size: 26px; margin-top: 2.2em; padding-top: .2em; }
.article-body h2:first-child{ margin-top:0; }
.article-body h3{ font-size:19px; margin-top: 1.8em; color: var(--amber); }
.article-body p{ font-size: 16.5px; color: var(--text-prose); }
.article-body ul, .article-body ol{ color:var(--text-prose); padding-left: 22px; font-size:16.5px; }
.article-body li{ margin-bottom: .5em; }
.article-body strong{ color:var(--text-strong); }

.callout{
  background: var(--card); border:1px solid var(--border); border-left:3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 20px; margin: 1.8em 0;
}
.callout .cl-label{ font-family: var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color: var(--amber); margin-bottom:8px; display:block; }
.callout p:last-child{ margin-bottom:0; }
.callout.teal{ border-left-color: var(--teal); }
.callout.teal .cl-label{ color: var(--teal); }

.callout.warn{
  background: rgba(242,99,90,.10); border:1px solid rgba(242,99,90,.45); border-left:4px solid var(--red);
  border-radius: var(--radius-sm); padding: 20px 22px 22px; margin: 2em 0;
}
.callout.warn .cl-label{
  color:#fff; background: var(--red); font-size:11.5px; letter-spacing:.08em;
  display:inline-flex; align-items:center; gap:7px; padding:5px 12px; border-radius:100px; margin-bottom:12px;
}
.callout.warn .cl-label::before{ content:"\26A0"; font-size:12px; }
.callout.warn p{ color:var(--warn-text, #f2e4e2); font-size:15px; }
.callout.warn p:last-child{ margin-bottom:0; }

.data-table{ width:100%; border-collapse: collapse; margin: 1.6em 0; font-size:14.5px; }
.data-table th, .data-table td{ border:1px solid var(--border); padding:10px 12px; text-align:left; }
.data-table th{ background: var(--bg-elevated); font-family: var(--font-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color: var(--text-muted); }
.data-table td{ color:var(--text-prose); }

.related{ margin-top: 44px; padding-top: 32px; border-top:1px solid var(--border-soft); }
.related h3{ font-size:15px; font-family: var(--font-mono); text-transform:uppercase; letter-spacing:.08em; color: var(--text-muted); margin-bottom:18px; }

.disclaimer-box{
  margin: 60px auto 0; max-width: var(--container); padding: 22px 24px; border-top:1px solid var(--border-soft);
}
.disclaimer-box p{ font-size:12.5px; color: var(--text-dim); margin-bottom:6px; }

/* ---------- footer ---------- */
footer.site-footer{ border-top:1px solid var(--border-soft); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid{
  display:grid; grid-template-columns: 1.6fr repeat(4, minmax(0,1fr));
  gap: 40px 28px; margin-bottom: 36px; align-items:start;
}
.footer-brand{ padding-right: 20px; }
/* Footer brand sits in the same `align-items:start` grid row as the five link
   columns, so with the logo removed the wordmark shares a top edge with their
   <h4> headings. The leading is tightened from the inherited 1.65 (loose for a
   logotype) so the block measures ~35px + 14px margin = 49px — which is where
   the first link in each column starts (18.2 + 10 + 1 + 14 + 6). That puts the
   paragraph level with the first row of links. */
.footer-brand .brand{ font-size:18px; margin-bottom:14px; line-height:1.25; align-items:flex-start; }
.footer-brand .brand small{ line-height:1.25; margin-top:2px; }
.footer-brand p{ color: var(--text-dim); font-size:13.5px; line-height:1.65; margin:0 0 10px; max-width: 34ch; }
.footer-brand .fb-note{
  font-family: var(--font-mono); font-size:11px; letter-spacing:.04em;
  text-transform:uppercase; color: var(--text-dim); opacity:.8; margin:0;
}
.footer-grid h4{
  font-size:11px; text-transform:uppercase; letter-spacing:.07em; color: var(--text-muted);
  font-family: var(--font-mono); margin-bottom:14px; padding-bottom:10px;
  border-bottom:1px solid var(--border-soft);
}
.footer-grid a{ display:block; color: var(--text-dim); font-size:13.5px; line-height:1.4; padding:6px 0; }
.footer-grid a:hover{ color: var(--teal); text-decoration:none; }
.footer-grid a.fg-all{
  color: var(--amber); font-family: var(--font-mono); font-size:11px;
  letter-spacing:.05em; text-transform:uppercase; margin-top:6px; padding-top:10px;
  border-top:1px solid var(--border-soft);
}
.footer-grid a.fg-all:hover{ color: var(--amber); opacity:.75; }
.footer-bottom{ display:flex; justify-content:space-between; padding-top:22px; border-top:1px solid var(--border-soft); color: var(--text-dim); font-size:12.5px; flex-wrap:wrap; gap:10px; }

/* The 6-column footer only has room for the longest heading ("Economic
   Indicators", ~140px at 11px mono) once the container hits its 1180px cap,
   which gives each column 150px. Below that the columns narrow fast — 127px at
   a 1024px viewport — and the heading would wrap to two lines, dropping that
   column's links out of line with the other four. Drop to 3 columns instead;
   the link labels ("ISM Manufacturing PMI") were already wrapping awkwardly at
   those widths anyway. */
@media (max-width: 1179px){
  .footer-grid{ grid-template-columns: 1fr 1fr 1fr; gap:32px 22px; }
  .footer-brand{ grid-column: 1 / -1; padding-right:0; }
  .footer-brand p{ max-width: 60ch; }
}

/* ---------- policy pages ---------- */
.policy-body{ max-width: 760px; padding: 40px 0 60px; }
.policy-body h2{ margin-top:1.6em; font-size:22px; }
.policy-body p, .policy-body li{ color:var(--text-prose); font-size:15.5px; }

/* ---------- responsive ---------- */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; }
  .grid.cols-4{ grid-template-columns: repeat(2,1fr); }
  .grid.cols-3{ grid-template-columns: repeat(2,1fr); }
  .grid.cols-2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr 1fr; gap:32px 22px; }
  .footer-brand{ grid-column: 1 / -1; padding-right:0; }
  .footer-brand p{ max-width: 60ch; }
  nav.main-nav{ display:none; }
  .nav-toggle{ display:inline-block; }
  /* Keep the readings on tablet — just narrow the columns rather than
     hiding the numbers, which are the point of the page. */
  .row-item{ grid-template-columns: 42px 1fr 118px 100px 20px; gap:12px; }
  .reading .r-actual{ font-size:13.5px; }
  .dropdown-panel{ display:none !important; }
  nav.main-nav.open{ display:flex; position:absolute; top:100%; left:0; right:0; background: var(--bg-elevated); flex-direction:column; padding:16px 24px; gap:14px; border-bottom:1px solid var(--border); }
}
@media (max-width: 620px){
  .grid.cols-4, .grid.cols-3{ grid-template-columns: 1fr; }
  /* Phone: stack it. Title and description across the top, then a footer
     line with the category tag on the left and the reading facing it on the
     right. Previously the readings were display:none and the tag was forced
     into a 20px column, so it clipped mid-word. */
  .row-item{
    grid-template-columns: auto 1fr;
    grid-template-areas: "title title" "tag reading";
    gap:12px 12px; padding:16px;
    align-items:center;
  }
  .row-item .code{ display:none; }
  .row-item .arrow{ display:none; }
  .row-item .rt{ grid-area:title; }
  .row-item .rt span{ min-height:0; }
  .row-item .tag{ grid-area:tag; justify-self:start; }
  .row-item .reading{
    grid-area:reading; display:flex; flex-wrap:wrap; align-items:baseline;
    justify-content:flex-end; gap:4px 10px; text-align:right;
  }
  .reading .r-actual{ display:inline; font-size:15px; }
  .reading .r-line{ display:inline; font-size:10.5px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap:28px 18px; }
}

/* =========================================================
   ADDED: nav dropdowns, reading/calendar badges, scroll rows
   ========================================================= */

/* ---- nav dropdown (mega menu) ---- */
.has-dropdown{ position:relative; display:inline-block; padding-bottom: 22px; margin-bottom: -22px; }
.has-dropdown > a::after{ content:" \25BE"; font-size:10px; color:var(--text-dim); }
.dropdown-panel{
  display:none;
  position:absolute; top: 100%; right:0; left:auto;
  width: 440px; max-width: 92vw; background: var(--bg-elevated); border:1px solid var(--border);
  border-radius: var(--radius); padding: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.5);
  z-index: 60;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel{ display:block; }
.dropdown-scroll{
  max-height: 252px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.dropdown-scroll::-webkit-scrollbar{ width: 6px; }
.dropdown-scroll::-webkit-scrollbar-track{ background: transparent; }
.dropdown-scroll::-webkit-scrollbar-thumb{ background: var(--border); border-radius: 3px; }
.dropdown-scroll::-webkit-scrollbar-thumb:hover{ background: var(--text-dim); }
.dropdown-panel a.dd-row{
  display:flex; justify-content:space-between; align-items:center; gap:14px;
  padding: 11px 12px; border-radius: var(--radius-sm); color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.dropdown-scroll a.dd-row:last-of-type{ border-bottom:none; }
.dropdown-panel a.dd-row:hover{ background: var(--card-hover); text-decoration:none; }
.dropdown-panel a.dd-row span.dd-title{
  font-size:13.5px; line-height:1.4; flex:1; min-width:0;
  white-space:normal; word-break:break-word;
}
.dropdown-panel a.dd-row span.tag{ flex:none; }
.dropdown-panel .dd-viewall{
  display:block; text-align:center; margin-top:6px; padding:9px; font-family: var(--font-mono);
  font-size:11px; letter-spacing:.06em; text-transform:uppercase; color: var(--amber);
  border-top:1px solid var(--border-soft);
}
.dropdown-panel .dd-viewall:hover{ text-decoration:none; color:var(--amber-hover, #ffcb6b); }

/* ---- reading / calendar badges ---- */
.reading{
  font-family: var(--font-mono); font-size:11px; color: var(--text-muted); text-align:right;
  line-height:1.6; min-width:140px;
}
.reading .r-actual{ display:block; color:var(--text-strong); font-weight:600; font-size:14.5px; white-space:nowrap; }
.reading .r-line{ display:block; color: var(--text-dim); font-size:10.5px; white-space:nowrap; }
.reading .r-line b{ color: var(--text-muted); font-weight:500; }

.calendar-panel{
  display:grid; grid-template-columns: repeat(3,1fr); gap:1px; background: var(--border);
  border:1px solid var(--border); border-radius: var(--radius-sm); overflow:hidden; margin: 1.6em 0;
  font-family: var(--font-mono);
}
.calendar-panel > div{ background: var(--bg-elevated); padding: 12px 14px; }
.calendar-panel .cp-label{ font-size:10px; text-transform:uppercase; letter-spacing:.08em; color: var(--text-dim); margin-bottom:6px; }
.calendar-panel .cp-value{ font-size:16px; color:var(--text-strong); font-weight:600; }
.calendar-panel .cp-value.hi{ color: var(--amber); }

/* ---- horizontal scroll rows (homepage tabs, related reading) ---- */
.scroll-row{
  display:flex; gap:16px; overflow-x:auto; padding: 6px 2px 18px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar{ height:6px; }
.scroll-row::-webkit-scrollbar-thumb{ background: var(--border); border-radius:6px; }
.scroll-row .card-link{ flex: 0 0 270px; scroll-snap-align:start; }
.scroll-row .card{ height:100%; }
.scroll-hint{ font-family: var(--font-mono); font-size:11px; color: var(--text-dim); text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px; display:flex; align-items:center; gap:6px; }

/* ---- section head: description below heading (stacked variant) ---- */

/* ---- homepage intro / thesis block ---- */
.thesis{ padding: 10px 0 20px; }
.thesis .thesis-inner{ max-width: 820px; }
.thesis h2{ font-size: clamp(24px,3.4vw,36px); }
.thesis p{ font-size:17.5px; color:var(--text-prose); }
.thesis .stat-row{ display:flex; gap:28px; flex-wrap:wrap; margin: 26px 0 6px; }
.thesis .stat{ min-width:150px; }
.thesis .stat .stat-num{ font-family: var(--font-display); font-size: 34px; color: var(--amber); font-weight:700; line-height:1; }
.thesis .stat .stat-lbl{ font-family: var(--font-mono); font-size:11.5px; color: var(--text-muted); text-transform:uppercase; letter-spacing:.05em; margin-top:6px; }

/* ---- credit box (about page) ---- */
.credit-box{
  display:flex; gap:16px; align-items:flex-start; background: var(--card); border:1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; margin: 1.8em 0;
}
.credit-box .dot2{ width:8px; height:8px; border-radius:50%; background: var(--teal); margin-top:8px; flex:none; }

@media (max-width: 620px){
  .article-body .data-table{ display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; white-space:nowrap; }
  .article-body .data-table tr{ display:table-row; }
  .calendar-panel{ grid-template-columns: 1fr; }
  .dropdown-panel{ position:fixed; left:16px; right:16px; width:auto; top:auto; }
}

/* =========================================================
   ADDED: "Latest Analysis" release-reaction content type
   ========================================================= */

/* ---- distinct tag for breaking/release-reaction pieces ---- */
.tag.release{
  color:var(--text-strong); border-color: rgba(242,99,90,.5); background: rgba(242,99,90,.14);
  display:inline-flex; align-items:center; gap:6px;
}
.tag.release::before{
  content:""; width:6px; height:6px; border-radius:50%; background: var(--red);
  box-shadow: 0 0 6px var(--red); flex:none;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }

/* ---- release meta: published timestamp + as-of note ---- */
.release-meta{
  font-family: var(--font-mono); font-size:12px; color: var(--text-dim);
  display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:2px;
}
.release-meta b{ color: var(--text-muted); font-weight:500; }

/* ---- pre-release / post-release framing blocks inside an article ---- */
.release-split{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; margin: 1.6em 0; }
.release-split > div{
  background: var(--card); border:1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.release-split .rs-label{
  font-family: var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:.08em;
  color: var(--text-dim); margin-bottom:10px; display:block;
}
.release-split .rs-label.before{ color: var(--text-muted); }
.release-split .rs-label.after{ color: var(--amber); }
@media (max-width: 700px){ .release-split{ grid-template-columns: 1fr; } }

/* ---- reaction table: how each asset class moved ---- */
.reaction-table td:nth-child(3){ font-family: var(--font-mono); }

/* ---- homepage "Latest Analysis" featured teaser ---- */
.latest-analysis{
  background: linear-gradient(180deg, rgba(242,99,90,.05), transparent);
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  padding: 44px 0;
}
.latest-card{
  display:grid; grid-template-columns: auto 1fr auto; align-items:center; gap:22px;
  background: var(--card); border:1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; transition: border-color .15s, background .15s;
}
.latest-card:hover{ border-color: rgba(242,99,90,.4); background: var(--card-hover); text-decoration:none; }
.latest-card .lc-badge{
  font-family: var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:.08em;
  color:#fff; background: rgba(242,99,90,.18); border:1px solid rgba(242,99,90,.5);
  border-radius:100px; padding:6px 12px; display:inline-flex; align-items:center; gap:6px; white-space:nowrap;
}
.latest-card .lc-badge::before{
  content:""; width:6px; height:6px; border-radius:50%; background: var(--red);
  box-shadow: 0 0 6px var(--red); animation: pulse-dot 1.6s ease-in-out infinite;
}
.latest-card h3{ font-size:19px; margin:0 0 4px; color:var(--text-strong); }
.latest-card p{ margin:0; color: var(--text-muted); font-size:14px; }
.latest-card .lc-arrow{ color: var(--text-dim); font-family: var(--font-mono); }
.latest-card:hover .lc-arrow{ color: var(--red); }
@media (max-width: 700px){
  .latest-card{ grid-template-columns: 1fr; text-align:left; }
  .latest-card .lc-arrow{ display:none; }
}

/* =========================================================
   ADDED: release history timeline + COT asset-class widget
   ========================================================= */

/* ---- generic 12-month release timeline ---- */
.rel-timeline-wrap{ margin: 1.8em 0 2.2em; }
.rel-timeline-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:12px; }
.rel-timeline-head h4{ font-family: var(--font-mono); font-size:12px; text-transform:uppercase; letter-spacing:.08em; color: var(--text-muted); margin:0; }
.rel-readout{ font-family: var(--font-mono); font-size:12px; color: var(--text-dim); }
.rel-readout b{ color: var(--amber); font-size:15px; }
.rel-timeline{ display:flex; gap:8px; overflow-x:auto; padding-bottom:6px; }
.rel-pill{
  flex: 0 0 auto; font-family: var(--font-mono); font-size:11px; text-align:center;
  border:1px solid var(--border); border-radius: var(--radius-sm); padding:9px 12px; cursor:pointer;
  background: var(--card); color: var(--text-muted); min-width:64px;
}
.rel-pill .rp-date{ display:block; color: var(--text-dim); font-size:10px; margin-bottom:4px; }
.rel-pill .rp-val{ display:block; color:var(--text-strong); font-weight:600; font-size:12.5px; }
.rel-pill:hover{ border-color: var(--amber-dim); }
.rel-pill.active{ border-color: var(--amber); background: rgba(242,184,75,.08); }
.rel-pill.active .rp-val{ color: var(--amber); }
.rel-pill.locked{ cursor:not-allowed; opacity:.45; background:none; }
.rel-pill.locked .rp-val{ color: var(--text-dim); }
.rel-pill.locked::after{ content:"\1F512"; display:block; font-size:9px; margin-top:2px; }

/* ---- COT asset-class widget ---- */
.cot-widget{ margin: 1.8em 0 2.4em; border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; background: var(--card); }
.cot-tabs{ display:flex; background: var(--bg); border-bottom:1px solid var(--border); }
.cot-tab{
  appearance:none; -webkit-appearance:none; background:transparent; border:none; margin:0;
  flex:1; text-align:center; padding:14px 10px; font-family: var(--font-mono); font-size:12px;
  text-transform:uppercase; letter-spacing:.06em; color: var(--text-dim); cursor:pointer;
  border-bottom:2px solid transparent; transition: color .15s, border-color .15s, background .15s;
}
.cot-tab:hover{ color: var(--text); background: rgba(255,255,255,.02); }
.cot-tab.active{ color: var(--amber); border-bottom-color: var(--amber); background: rgba(242,184,75,.05); }
.cot-tab:focus-visible{ outline: 2px solid var(--amber); outline-offset: -2px; }
.cot-body{ padding: 18px; }
.cot-table{ width:100%; border-collapse:collapse; font-size:13px; margin-bottom:16px; }
.cot-table th, .cot-table td{ padding:9px 10px; border-bottom:1px solid var(--border-soft); text-align:center; }
.cot-table th{ font-family: var(--font-mono); font-size:10.5px; text-transform:uppercase; color: var(--text-dim); text-align:center; }
.cot-table td:first-child, .cot-table th:first-child{ text-align:left; color:var(--text-strong); font-weight:600; }
.cot-cell{ font-family: var(--font-mono); }
.cot-cell .l{ color: var(--green); }
.cot-cell .s{ color: var(--red); }
.cot-week-label{ font-family: var(--font-mono); font-size:11px; color: var(--text-dim); margin: 14px 0 8px; text-transform:uppercase; letter-spacing:.06em; }

@media (max-width: 700px){
  .cot-table{ font-size:11.5px; }
  .cot-table th, .cot-table td{ padding:7px 5px; }
  .cot-tab{ font-size:10.5px; padding:11px 4px; }
}

.cot-legend{ display:flex; gap:20px; padding:10px 18px; background: var(--bg-elevated); border-bottom:1px solid var(--border); font-family: var(--font-mono); font-size:11px; color: var(--text-muted); }
.cot-legend span{ display:flex; align-items:center; gap:6px; }
.cot-legend i{ width:9px; height:9px; border-radius:50%; display:inline-block; }
.cot-legend i.dot-l{ background: var(--green); }
.cot-legend i.dot-s{ background: var(--red); }

/* =========================================================
   ADDED: "why this matters" brief + soft metered paywall
   ========================================================= */

/* ---- trader-relevance brief (sits at the top of every article) ---- */
.trader-brief{
  background: linear-gradient(180deg, rgba(242,184,75,.08), rgba(242,184,75,.02));
  border:1px solid rgba(242,184,75,.28); border-radius: var(--radius);
  padding: 20px 22px; margin: 0 0 2em;
}
.trader-brief .tb-label{
  font-family: var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  color: var(--amber); display:flex; align-items:center; gap:8px; margin-bottom:10px;
}
.trader-brief .tb-label::before{ content:"\26A1"; font-size:12px; }
.trader-brief p{ font-size:15.5px; color:var(--text-body); margin-bottom:0; }
.trader-brief p + p{ margin-top:.6em; }
.trader-brief ul{ margin:.4em 0 0; padding-left:20px; }
.trader-brief li{ font-size:15px; color:var(--text-body); margin-bottom:.35em; }

/* ---- free-article meter (small status strip above the fold) ---- */
.free-meter{
  display:inline-flex; align-items:center; gap:8px; font-family: var(--font-mono);
  font-size:11.5px; color: var(--text-dim); border:1px solid var(--border-soft);
  border-radius:100px; padding:6px 14px; margin-bottom:18px;
}
.free-meter b{ color: var(--teal); font-weight:600; }
.free-meter.low b{ color: var(--amber); }

/* ---- soft paywall: fades content, never fully blocks the page ---- */
.paywall-wrap{ position:relative; }
.paywall-wrap.is-gated .paywall-fade{
  max-height: 360px; overflow:hidden; position:relative;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 94%);
          mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 94%);
  user-select:none;
}
.paywall-cta{ display:none; }
.paywall-wrap.is-gated .paywall-cta{
  display:block; position:relative; margin-top:-70px; padding: 50px 20px 10px;
  background: linear-gradient(180deg, transparent, var(--bg) 42%);
  text-align:center;
}
.paywall-card{
  max-width: 440px; margin:0 auto; background: var(--card); border:1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px 24px; box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.paywall-card .pc-lock{ font-size:20px; margin-bottom:8px; }
.paywall-card h3{ font-size:19px; margin-bottom:8px; }
.paywall-card p{ color: var(--text-muted); font-size:13.5px; margin-bottom:18px; }
.paywall-form{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.paywall-form input[type=email]{
  flex:1; min-width:180px; background: var(--bg-elevated); border:1px solid var(--border); color:var(--text-strong);
  padding:11px 14px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size:14px;
}
.paywall-form input[type=email]:focus{ outline:2px solid var(--amber); outline-offset:1px; border-color:transparent; }
.paywall-form button{ flex:none; }
.paywall-note{ margin-top:12px; font-size:11px; color: var(--text-dim); }
.paywall-success{ display:none; color: var(--teal); font-size:13.5px; margin-top:12px; }
.hp-field{ position:absolute; left:-9999px; }

@media (max-width: 480px){
  .paywall-form{ flex-direction:column; }
  .paywall-form button{ width:100%; justify-content:center; }
}

/* =========================================================
   LIGHT THEME
   Research-backed default for long-form reading.
   Nielsen Norman Group: positive polarity (dark-on-light)
   outperforms dark mode on visual-acuity and proofreading
   tasks across all age groups, and the advantage grows as
   font size shrinks. All values below verified at WCAG AA
   or better against the #FAFAF8 background.
   ========================================================= */
html[data-theme="light"]{
  /* ---- surfaces: white page, tinted cards ---- */
  --bg: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --card: #F4F6F9;
  --card-hover: #E9EFF6;
  --border: #D2DAE3;
  --border-soft: #E3E9F0;

  /* ---- text: near-black across the board.
     Only true labels/timestamps step down.
     strong 19.6:1 · text 18.0:1 · prose 15.5:1 · muted 12.0:1 · dim 6.1:1 ---- */
  --text-strong: #0A0C0F;
  --text: #14171C;
  --text-prose: #1F2430;
  --text-body: #1F2430;
  --text-muted: #262C36;
  --text-dim: #14171C;   /* small labels/timestamps — full black, no grey */

  /* ---- accents darkened to clear AA on white ---- */
  --amber: #8A5A00;
  --amber-dim: #9C7024;
  --amber-hover: #6E4800;
  --teal: #06695A;
  --red: #AE2F26;
  --green: #0C6449;

  /* The text tokens above are tuned for AA body-copy contrast, which is a
     stricter bar than a logo needs and renders the mark muddy at 34px. These
     sit brighter while still clearing 4:1 on white — well past the 3:1
     non-text minimum. Set them to var(--green)/var(--red) to match exactly. */
  --logo-green: #12885C;
  --logo-red: #C4372D;

  --warn-text: #5C2018;
}

html[data-theme="light"] body::before{ opacity: 0; }

/* ---- header ---- */
html[data-theme="light"] .site-header{ background: rgba(255,255,255,.95); border-bottom-color: var(--border); }
html[data-theme="light"] .main-nav > a,
html[data-theme="light"] .main-nav .has-dropdown > a{ color: var(--text-muted); }
html[data-theme="light"] .main-nav > a:hover,
html[data-theme="light"] .main-nav .has-dropdown > a:hover,
html[data-theme="light"] .main-nav a.active{ color: var(--text-strong); }

/* ---- ticker: white, separated from the page by borders alone ---- */
html[data-theme="light"] .ticker-wrap{
  background: #FFFFFF; border-top-color: var(--border); border-bottom-color: var(--border);
}
html[data-theme="light"] .ticker-item{ color: var(--text); border-right-color: var(--border); }
html[data-theme="light"] .ticker-item b{ color: var(--text-strong); }
html[data-theme="light"] .ticker-item .up{ color: var(--green); }
html[data-theme="light"] .ticker-item .down{ color: var(--red); }

/* ---- hero: lede is body copy, not a caption — full near-black ---- */
html[data-theme="light"] .hero h1{ color: var(--text-strong); }
html[data-theme="light"] .hero h1 .accent{ color: var(--amber); }
html[data-theme="light"] .hero-lede{ color: var(--text); }
html[data-theme="light"] .hero-panel{ background: var(--card); border-color: var(--border); }
html[data-theme="light"] .article-head > p{ color: var(--text); }

/* ---- descriptive copy in cards/rows: darker than a label ---- */
html[data-theme="light"] .card p,
html[data-theme="light"] .row-item .rt span,
html[data-theme="light"] .latest-card p,
html[data-theme="light"] .policy-body p,
html[data-theme="light"] .policy-body li{ color: var(--text-prose); }

/* ---- tags ---- */
html[data-theme="light"] .tag.leading{ color: var(--teal); background: rgba(6,105,90,.11); border-color: rgba(6,105,90,.34); }
html[data-theme="light"] .tag.coincident{ color: var(--amber); background: rgba(138,90,0,.11); border-color: rgba(138,90,0,.34); }
html[data-theme="light"] .tag.lagging{ color: var(--red); background: rgba(174,47,38,.10); border-color: rgba(174,47,38,.34); }
html[data-theme="light"] .tag.mixed{ color: var(--text-dim); background: rgba(89,99,111,.10); border-color: rgba(89,99,111,.30); }
html[data-theme="light"] .tag.release{ color: var(--red); background: rgba(174,47,38,.12); border-color: rgba(174,47,38,.40); }

/* ---- cards & panels ---- */
html[data-theme="light"] .card{ background: var(--card); box-shadow: 0 1px 2px rgba(16,25,35,.06); }
html[data-theme="light"] .card:hover{ background: var(--card-hover); box-shadow: 0 4px 14px rgba(16,25,35,.10); }
html[data-theme="light"] .row-item:hover{ background: var(--card-hover); }
html[data-theme="light"] .calendar-panel{ background: var(--card); border-color: var(--border); }
html[data-theme="light"] .cp-value.hi{ color: var(--amber); }
html[data-theme="light"] .dropdown-panel{ background:#FFFFFF; box-shadow: 0 18px 40px rgba(16,25,35,.16); }
html[data-theme="light"] .ad-slot .ad-inner{ background:#F4F6F9; border-color: var(--border); }

/* ---- emphasis blocks: SOLID fills, no fade-to-transparent ---- */
html[data-theme="light"] .trader-brief{
  background: #FCF3E0; border-color: rgba(138,90,0,.34);
}
html[data-theme="light"] .callout{ background:#FCF3E0; border-color: rgba(138,90,0,.24); border-left-color: var(--amber); }
html[data-theme="light"] .callout.teal{ background:#E4F4F0; border-color: rgba(6,105,90,.24); border-left-color: var(--teal); }
html[data-theme="light"] .callout.warn{ background:#FBE6E3; border-color: rgba(174,47,38,.38); border-left-color: var(--red); }
html[data-theme="light"] .callout.warn .cl-label{ background: var(--red); color:#fff; }
html[data-theme="light"] .release-split > div{ background: var(--card); border-color: var(--border); }

/* ---- tables ---- */
html[data-theme="light"] .data-table th{ color: var(--text-muted); border-bottom-color: var(--border); }
html[data-theme="light"] .data-table td{ border-bottom-color: var(--border-soft); }
html[data-theme="light"] .cot-table tbody tr:nth-child(even){ background:#F4F6F9; }
html[data-theme="light"] .cot-tab:hover{ background: rgba(16,25,35,.05); }
html[data-theme="light"] .rel-pill{ background: var(--card); border-color: var(--border); }
html[data-theme="light"] .rel-pill.active{ border-color: var(--amber); background:#FAEFD8; }
html[data-theme="light"] .rel-pill.locked{ opacity:.45; }

/* ---- latest-analysis: solid red-tint band, not a fade ---- */
html[data-theme="light"] .latest-analysis{
  background:#FBE6E3; border-top:1px solid rgba(174,47,38,.22); border-bottom:1px solid rgba(174,47,38,.22);
}
html[data-theme="light"] .latest-card{ background:#FFFFFF; border-color: rgba(174,47,38,.28); }
html[data-theme="light"] .latest-card:hover{ background:#FFF7F6; border-color: var(--red); }
html[data-theme="light"] .latest-card .lc-badge{ color:#fff; background: var(--red); border-color: var(--red); }
html[data-theme="light"] .latest-card .lc-arrow{ color: var(--red); }

/* ---- footer & controls ---- */
html[data-theme="light"] .site-footer{ background:#F1F4F8; border-top-color: var(--border); }
html[data-theme="light"] .site-footer a{ color: var(--text-muted); }
html[data-theme="light"] .site-footer a:hover{ color: var(--text-strong); }
html[data-theme="light"] .btn-primary{ color:#fff; }
html[data-theme="light"] .btn-ghost{ color: var(--text); border-color: var(--border); }
html[data-theme="light"] .btn-ghost:hover{ border-color: var(--text-dim); background: var(--card); }
html[data-theme="light"] .paywall-card{ background:#fff; box-shadow: 0 24px 60px rgba(16,25,35,.18); }
html[data-theme="light"] .paywall-cta{ background: linear-gradient(180deg, rgba(255,255,255,0), #FFFFFF 42%); }
html[data-theme="light"] .breadcrumb{ color: var(--text-dim); }

/* ---- theme toggle button ---- */
.theme-toggle{
  background: transparent; border:1px solid var(--border); color: var(--text-muted);
  font-family: var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  padding:7px 12px; border-radius:100px; cursor:pointer; white-space:nowrap;
  display:inline-flex; align-items:center; gap:6px; transition: color .15s, border-color .15s;
}
.theme-toggle:hover{ color: var(--text); border-color: var(--text-dim); }
.theme-toggle .tt-icon{ font-size:12px; line-height:1; }
@media (max-width: 900px){ .theme-toggle{ display:none; } }

/* =========================================================
   READING HIERARCHY
   von Restorff (isolation effect): emphasis only works while
   it stays rare. Anything marked here is deliberately scarce
   so that what IS marked still registers as distinctive.
   ========================================================= */

/* H2 — section anchors. Largest contrast jump on the page. */
.article-body h2{ color: var(--text); letter-spacing:-0.01em; }

/* H3 — subordinate, deliberately quieter than H2 so the
   scanning hierarchy stays obvious at a glance. */
.article-body h3{ color: var(--text-muted); }

/* Inline bold — reserved for terms and figures that change
   the meaning of the sentence. Weight carries the emphasis;
   colour is NOT used here, to avoid competing with links. */
.article-body strong{ color: var(--text); font-weight:600; }

/* Links inside prose — the one place colour signals action. */
.article-body a{ color: var(--teal); text-decoration: underline; text-underline-offset:2px; text-decoration-thickness:1px; }
.article-body a:hover{ color: var(--text); }

/* =========================================================
   AGED RELEASE BADGES
   A piece is "Just In" (red, pulsing) for its first 24 hours,
   then decays to a neutral grey timestamp. Driven entirely by
   data-published, so it stays honest as new pieces land.
   ========================================================= */
.tag.release.aged{
  color: var(--text-dim); background: transparent; border-color: var(--border);
}
.tag.release.aged::before{
  background: var(--text-dim); box-shadow: none; animation: none; opacity:.65;
}
.latest-card .lc-badge.aged{
  color: var(--text-dim); background: transparent; border-color: var(--border);
}
.latest-card .lc-badge.aged::before{
  background: var(--text-dim); box-shadow: none; animation: none; opacity:.65;
}
.latest-card.aged{ border-color: var(--border); }
.latest-card.aged:hover{ border-color: var(--text-dim); }
.latest-card.aged .lc-arrow{ color: var(--text-dim); }
.latest-card.aged:hover .lc-arrow{ color: var(--text); }

html[data-theme="light"] .tag.release.aged{
  color: var(--text-dim); background: transparent; border-color: var(--border);
}
html[data-theme="light"] .latest-card .lc-badge.aged{
  color: var(--text-dim); background: transparent; border-color: var(--border);
}
html[data-theme="light"] .latest-card.aged{ border-color: var(--border); }
html[data-theme="light"] .latest-card.aged .lc-arrow{ color: var(--text-dim); }
/* the red wash on the homepage band only belongs to genuinely fresh items */
html[data-theme="light"] .latest-analysis.aged{
  background:#F4F6F9; border-top-color: var(--border); border-bottom-color: var(--border);
}
.latest-analysis.aged{ background: linear-gradient(180deg, rgba(143,160,175,.05), transparent); }
