/* ============================================================
   Treasury Conditions Monitor — Styles
   Aesthetic: trevtrack.com — near-black bg, gold accents,
   editorial serif headings, DM Mono data labels
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Lora:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Tokens ── */
:root {
  --bg-base:         #0c0e12;
  --bg-surface:      #111318;
  --bg-card:         #13161c;
  --bg-card-inner:   #0e1016;
  --border:          #1f2530;
  --border-light:    #252c38;

  --gold:            #c9a84c;
  --gold-dim:        rgba(201,168,76,0.18);
  --gold-faint:      rgba(201,168,76,0.07);

  --blue:            #4a9eff;
  --blue-dim:        rgba(74,158,255,0.14);
  --red:             #f26b6b;
  --red-dim:         rgba(242,107,107,0.14);
  --teal:            #4ac9b8;

  --text-primary:    #dde3ed;
  --text-secondary:  #7a8fa8;
  --text-muted:      #3d4f63;
  --text-gold:       var(--gold);

  --shadow:          0 4px 24px rgba(0,0,0,0.55);
  --r-sm:            3px;
  --r-md:            6px;
  --r-lg:            10px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 2rem 2rem 1.75rem;
  text-align: left;
}

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.header-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
}

header h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

header .subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ── Main ── */
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
}

/* ── Section titles ── */
.section-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* ── Latest card ── */
#latest-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 1rem;
}

.axis-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.axis-block {
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
}

.axis-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.axis-block.instability .axis-label { color: rgba(74,158,255,0.6); }
.axis-block.constraint  .axis-label { color: rgba(242,107,107,0.6); }

.value-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.value {
  font-family: 'DM Mono', monospace;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18em 0.6em;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 500;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.07em;
  border: 1px solid;
}

.badge.low      { background: rgba(74,201,184,0.10); color: var(--teal);  border-color: rgba(74,201,184,0.25); }
.badge.typical  { background: var(--blue-dim);        color: var(--blue);  border-color: rgba(74,158,255,0.25); }
.badge.raised   { background: var(--gold-dim);        color: var(--gold);  border-color: rgba(201,168,76,0.3);  }
.badge.high     { background: var(--red-dim);         color: var(--red);   border-color: rgba(242,107,107,0.3); }

/* ── Interpretation ── */
.interpretation {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.interpretation .headline {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.interpretation .body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.episode {
  margin-top: 0.6rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── How to Read ── */
.how-to-read .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.info-pill {
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.info-pill strong {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.info-pill.blue strong { color: rgba(74,158,255,0.7); }
.info-pill.red  strong { color: rgba(242,107,107,0.7); }

.how-to-read .note {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Chart section ── */
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.chart-controls {
  display: flex;
  gap: 0.35rem;
}

.range-btn {
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.28em 0.7em;
  font-size: 0.68rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.06em;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.range-btn:hover {
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.range-btn.active {
  background: var(--gold-dim);
  border-color: rgba(201,168,76,0.3);
  color: var(--gold);
}

/* Chart custom legend */
.chart-legend {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 0.65rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.legend-item { display: flex; align-items: center; gap: 0.4rem; }
.legend-swatch {
  width: 18px;
  height: 2px;
  border-radius: 1px;
  flex-shrink: 0;
}
.legend-swatch.inst  { background: var(--blue); }
.legend-swatch.const { background: var(--red);  }


.main-overlay-controls {
  margin-bottom: 0.9rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card-inner);
}

.main-overlay-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.main-overlay-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.overlay-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(15,18,25,0.92);
  color: var(--text-secondary);
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.overlay-chip input {
  accent-color: var(--gold);
}

.main-overlay-note {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Main chart canvas wrapper */
.chart-wrap {
  position: relative;
  height: 320px;
  margin-bottom: 0.6rem;
}

#trendChart { width: 100% !important; height: 100% !important; }

/* ── Joint elevation strip ── */
.joint-strip-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.28rem;
}

.joint-strip-wrap {
  height: 14px;
  width: 100%;
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 1rem;
}

#jointStrip { width: 100%; height: 100%; display: block; }

/* ── Chart explanatory note ── */
.chart-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--gold-faint);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
}

.chart-note-icon {
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.chart-note p {
  font-size: 0.775rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.chart-note p em {
  font-style: italic;
  color: var(--text-primary);
}

/* ── Mini chart section ── */
.mini-chart-section {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.mini-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.mini-chart-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,107,107,0.55);
}

.mini-legend {
  display: flex;
  gap: 0.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  color: var(--text-muted);
}

.mini-legend-item { display: flex; align-items: center; gap: 0.3rem; }
.mini-legend-swatch {
  width: 12px; height: 1.5px; border-radius: 1px;
}
.mini-legend-swatch.c { background: rgba(242,107,107,0.75); }
.mini-legend-swatch.i { background: rgba(74,158,255,0.30);  }

.mini-chart-wrap {
  position: relative;
  height: 100px;
  margin-bottom: 0.6rem;
}

#miniConstraintChart { width: 100% !important; height: 100% !important; }

/* Mini chart caveat note */
.mini-chart-caveat {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ── Downloads / Docs ── */
.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-family: 'DM Mono', monospace;
  padding: 0.3em 0.75em;
  text-decoration: none;
  transition: all 0.15s ease;
  letter-spacing: 0.03em;
}

.doc-link:hover {
  border-color: rgba(201,168,76,0.3);
  color: var(--gold);
  background: var(--gold-faint);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ── Responsive ── */
@media (max-width: 620px) {
  .axis-values,
  .how-to-read .info-grid { grid-template-columns: 1fr; }
  header h1               { font-size: 1.5rem; }
  .chart-header           { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  main                    { padding: 1rem 0.9rem 2.5rem; }
}

/* ── Project 2 overlay/context card ── */
.overlay-card {
  background: linear-gradient(180deg, rgba(201,168,76,0.03), rgba(19,22,28,1) 18%);
}

.overlay-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.overlay-toggle-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.overlay-subtitle {
  margin-top: -0.4rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.55;
  max-width: 680px;
}

.toggle-wrap {
  justify-content: flex-start;

  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card-inner);
  white-space: nowrap;
}

.toggle-wrap input {
  accent-color: var(--gold);
}

.overlay-note-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.overlay-note-box p {
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.overlay-note-box strong {
  color: var(--text-primary);
}

.overlay-panel {
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--r-md);
  background: rgba(14,16,22,0.9);
  padding: 0.95rem 1rem 1rem;
  margin-bottom: 1rem;
}

.overlay-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.overlay-panel-label,
.context-card-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.overlay-panel-caption,
.context-card-caption {
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.55;
}

.overlay-latest-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.overlay-latest-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.overlay-latest-value {
  font-family: 'DM Mono', monospace;
  font-size: 1.2rem;
  color: var(--gold);
}

.overlay-mini-tag {
  font-size: 0.58rem;
}

.overlay-carry-wrap {
  position: relative;
  height: 250px;
}

#carryOverlayChart { width: 100% !important; height: 100% !important; }

.context-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.context-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card-inner);
  padding: 0.9rem 1rem 0.95rem;
}

.context-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.context-card-value {
  font-family: 'DM Mono', monospace;
  color: var(--text-primary);
  font-size: 0.82rem;
  white-space: nowrap;
}

.context-chart-wrap {
  position: relative;
  height: 110px;
}

.context-chart-wrap canvas { width: 100% !important; height: 100% !important; }

.overlay-footnote {
  margin-top: 0.9rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .overlay-header,
  .overlay-panel-header,
  .context-card-header,
  .mini-chart-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .toggle-wrap {
  justify-content: flex-start;

    white-space: normal;
  }

  .overlay-note-box,
  .context-grid {
    grid-template-columns: 1fr;
  }

  .overlay-latest-box {
    align-items: flex-start;
  }
}


/* ── Overlay assessment box ── */
.overlay-assessment-box {
  margin: 1rem 0 1.15rem;
  background: rgba(14,16,22,0.78);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.95rem 1rem;
}

.overlay-assessment-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.overlay-assessment-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.overlay-assessment-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.assessment-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: 'DM Mono', monospace;
  font-size: 0.61rem;
  letter-spacing: 0.04em;
}

.assessment-badge.helpful { background: rgba(201,168,76,0.14); color: var(--gold); border-color: rgba(201,168,76,0.24); }
.assessment-badge.qc { background: rgba(181,134,255,0.13); color: rgba(208,184,255,0.95); border-color: rgba(181,134,255,0.26); }
.assessment-badge.context { background: rgba(74,201,184,0.12); color: rgba(111,225,208,0.95); border-color: rgba(74,201,184,0.22); }
.assessment-badge.limited { background: rgba(122,143,168,0.12); color: rgba(177,193,212,0.95); border-color: rgba(122,143,168,0.22); }

.overlay-assessment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.assessment-item {
  background: rgba(17,19,24,0.82);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--r-sm);
  padding: 0.7rem 0.8rem;
  display: grid;
  gap: 0.22rem;
}

.assessment-item strong {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.assessment-item span {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.assessment-item.helpful { border-left-color: var(--gold); }
.assessment-item.helpful strong { color: var(--gold); }
.assessment-item.qc { border-left-color: rgba(181,134,255,0.9); }
.assessment-item.qc strong { color: rgba(208,184,255,0.95); }
.assessment-item.context { border-left-color: var(--teal); }
.assessment-item.context strong { color: rgba(111,225,208,0.95); }
.assessment-item.limited { border-left-color: rgba(122,143,168,0.9); }
.assessment-item.limited strong { color: rgba(177,193,212,0.95); }

/* ── Carry chart helpers ── */
.carry-legend-row {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.carry-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17,19,24,0.72);
  color: var(--text-secondary);
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  opacity: 0.65;
}

.carry-legend-item.active,
.carry-legend-item.visible {
  opacity: 1;
}

.carry-legend-item.visible {
  border-color: rgba(181,134,255,0.26);
  color: rgba(208,184,255,0.95);
}

.carry-line-swatch {
  width: 20px;
  height: 0;
  border-top: 2px solid currentColor;
}

.carry-line-swatch.bgcr { color: var(--gold); }
.carry-line-swatch.qc { color: rgba(181,134,255,0.92); border-top-style: dashed; }

.overlay-mini-note {
  margin-top: 0.28rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.overlay-mini-note.active {
  color: rgba(208,184,255,0.95);
}

@media (max-width: 760px) {
  .overlay-assessment-header { flex-direction: column; }
  .overlay-assessment-key { justify-content: flex-start; }
  .overlay-assessment-grid { grid-template-columns: 1fr; }
}


.latest-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.latest-meta-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.latest-freeze-note {
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: rgba(17,19,24,0.72);
}

.overlay-read-strip {
  margin-top: 0.85rem;
  margin-bottom: 0.95rem;
  padding: 0.85rem 0.95rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(17,19,24,0.78);
}

.overlay-read-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.overlay-read-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
}

.overlay-read-pill {
  border: 1px solid var(--border);
  border-left: 3px solid rgba(122,143,168,0.85);
  border-radius: var(--r-sm);
  background: rgba(12,15,22,0.78);
  padding: 0.55rem 0.65rem;
  display: grid;
  gap: 0.22rem;
}

.overlay-read-pill.good { border-left-color: var(--gold); }
.overlay-read-pill.context { border-left-color: var(--teal); }
.overlay-read-pill.neutral { border-left-color: rgba(122,143,168,0.85); }
.overlay-read-pill.warn { border-left-color: rgba(242,107,107,0.85); }

.overlay-read-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.overlay-read-value {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.overlay-read-note {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .overlay-read-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .overlay-read-grid { grid-template-columns: 1fr; }
  .latest-header-row { align-items: flex-start; }
}
