/* ─── Blog & Research ──────────────────────────────────────── */

.blog-hero {
  padding: 9rem 0 3.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.blog-hero h1 { margin: 0.75rem 0 1.25rem; max-width: 20ch; }

.blog-hero .hero-sub {
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--text-mid);
}

.updated-label {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ─── Index listing ────────────────────────────────────────── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 820px;
}

.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-light);
}

.post-meta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.post-meta .dot { color: var(--text-light); }
.post-meta .muted { color: var(--text-light); }

.post-card h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 0.75rem 0 0.75rem;
}

.post-card p { margin-bottom: 1.25rem; }

.post-more {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sage-deep);
}
.post-more::after { content: ' →'; }

.blog-empty {
  color: var(--text-light);
  font-size: 0.95rem;
  padding-top: 1rem;
}

/* ─── Article ──────────────────────────────────────────────── */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.article > * + * { margin-top: 1.15rem; }

.article h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-top: 3.75rem;
  margin-bottom: 0.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-top: 2.75rem;
  margin-bottom: 0.15rem;
}

.article h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 1.75rem;
  margin-bottom: 0.35rem;
}

.article p { font-size: 1.02rem; }

.article a:not(.post-more):not(.back-link) {
  color: var(--sage-deep);
  border-bottom: 1px solid var(--sage-light);
  transition: border-color 0.2s ease;
}
.article a:not(.post-more):not(.back-link):hover { border-bottom-color: var(--sage-deep); }

.article ul, .article ol { padding-left: 1.25rem; color: var(--text-mid); }
.article li { margin-bottom: 0.4rem; }
.article li::marker { color: var(--sage); }

.lede {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text);
}

.ticker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sage-deep);
  background: var(--sage-light);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  vertical-align: middle;
}

/* Company block */
.co {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-top: 1.75rem;
}

.co h3 { margin-top: 0; }

.co-sub {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.co p { font-size: 0.97rem; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 520px;
}

th, td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--bg-alt);
}

td { color: var(--text-mid); }
td:first-child { color: var(--text); font-weight: 500; }
tbody tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.neg { color: #a8543f; }

.table-note {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Callouts */
.note {
  background: var(--bg-alt);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  font-size: 0.93rem;
}
.note p { font-size: 0.93rem; }
.note strong { color: var(--text); }

.takeaway {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  font-size: 0.97rem;
}
.takeaway strong { color: var(--text); }

.disclaimer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-light);
}
.disclaimer p { font-size: 0.82rem; color: var(--text-light); }

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}
.back-link::before { content: '← '; }
.back-link:hover { color: var(--sage-deep); }

@media (max-width: 768px) {
  .blog-hero { padding: 7rem 0 2.5rem; }
  .post-card { padding: 1.75rem; }
  .article { padding: 2.5rem 1.5rem 3.5rem; }
  .co { padding: 1.5rem 1.25rem; }
}

/* ─── Charts (static SVG — the site ships no JavaScript) ────── */
.chart {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
}

.chart-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chart svg {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
  font-family: var(--font-sans);
}

.chart-grid line { stroke: var(--border); stroke-width: 1; }
.chart-baseline { stroke: var(--text-light); stroke-width: 1; }
.chart-area { fill: var(--sage-light); opacity: 0.32; }
.chart-line { fill: none; stroke: var(--sage-deep); stroke-width: 2; stroke-linejoin: round; }
.chart-dot { stroke: var(--surface); stroke-width: 1.5; }

.chart-axis { font-size: 10px; fill: var(--text-light); font-variant-numeric: tabular-nums; }
.chart-axis-title {
  font-size: 9px;
  fill: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chart-value { font-size: 9px; fill: var(--text-light); font-variant-numeric: tabular-nums; }
.chart-tick { font-size: 10.5px; fill: var(--text-mid); font-weight: 500; }
.chart-legend { font-size: 10.5px; fill: var(--text-mid); }

.chart figcaption {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-light);
}
.chart figcaption strong { color: var(--text-mid); }

@media (max-width: 768px) {
  .chart { padding: 1rem 1rem 0.9rem; }
}
