/* ── Accent palette (extends :root) ────────────────────── */
:root {
  --accent:       #2553ab;   /* matches your --link */
  --accent-soft:  rgba(37, 83, 171, 0.08);
  --accent-mid:   rgba(37, 83, 171, 0.18);
  --challenge-bg: rgba(255, 180, 0, 0.08);
  --challenge-bar:#d97706;
  --outcomes-bg:  rgba(22, 163, 74, 0.07);
  --outcomes-bar: #16a34a;
  --impact-bg:    rgba(37, 83, 171, 0.06);
  --impact-bar:   #2553ab;
  --info-bg:      rgba(100, 116, 139, 0.07);
  --info-bar:     #64748b;
  --metric-bg:    var(--bg);
  --metric-border:var(--border);
  --radius:       4px;
}

html[data-theme="dark"] {
  --accent-soft:  rgba(137, 183, 255, 0.10);
  --accent-mid:   rgba(137, 183, 255, 0.20);
  --challenge-bg: rgba(255, 180, 0, 0.07);
  --challenge-bar:#f59e0b;
  --outcomes-bg:  rgba(74, 222, 128, 0.07);
  --outcomes-bar: #4ade80;
  --impact-bg:    rgba(137, 183, 255, 0.07);
  --impact-bar:   #89b7ff;
  --info-bg:      rgba(148, 163, 184, 0.08);
  --info-bar:     #94a3b8;
  --accent: #60a5fa;
}

h2, h3, h4 {
  font-weight: 500;
}

/* ── Shared callout base ─────────────────────────────────────── */
.callout-base {
  border-left: 3px solid var(--border);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--info-bg);
  font-size: 15px;
}
.callout-base p:first-child { margin-top: 0; }
.callout-base p:last-child  { margin-bottom: 0; }

/* ── Tagline ─────────────────────────────────────────────────── */
.container-tagline {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: -8px 0 24px;
}

/* ── Lead paragraph ──────────────────────────────────────────── */
.container-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  margin: 24px 0 32px;
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.container-lead p { margin: 0; }

/* ── Meta row table ──────────────────────────────────────────── */
.container-meta-row table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 18px 0 28px;
}
.container-meta-row td {
  padding: 6px 12px 6px 0;
  border: none;
  vertical-align: top;
}
.container-meta-row tr + tr td {
  border-top: 1px solid var(--border);
}
.container-meta-row td:first-child {
  color: var(--muted);
  width: 120px;
  white-space: nowrap;
}

html[data-theme="dark"] .container-meta-row {
  background: var(--accent-soft);
  border-radius: var(--radius);
}


/* ── Metrics grid ────────────────────────────────────────────── */
.container-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: 12px;
  margin: 24px 0 32px;
}
.container-metric {
  border: 1px solid var(--metric-border);
  border-top: 3px solid var(--accent);
  background: var(--metric-bg);
  padding: 16px 18px;
  border-radius: var(--radius);
}

html[data-theme="dark"] .container-metric {
  background: var(--accent-soft);
}

.container-metric p:first-child {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.container-metric p:first-child strong {
  font-weight: 500;
  color: var(--accent);
}
.container-metric:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.container-metric p:last-child {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  line-height: 1.4;
}

/* ── Two-column layout ───────────────────────────────────────── */
.container-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 28px;
}
.container-col {
  font-size: 14px;
}
.container-col p:first-child {
  margin-top: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.container-col ul {
  padding-left: 16px;
  margin: 0;
}
.container-col li {
  margin: 5px 0;
  color: var(--text);
  font-size: 14px;
}

/* ── Challenge callout ───────────────────────────────────────── */
.container-challenge {
  border-left: 3px solid var(--challenge-bar);
  font-size: 14px;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--challenge-bg);
}
.container-challenge p:first-child {
  margin-top: 0;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--challenge-bar);
}
.container-challenge p:last-child { margin-bottom: 0; }

/* ── Outcomes box ────────────────────────────────────────────── */
.container-outcomes {
  border-left: 3px solid var(--outcomes-bar);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--outcomes-bg);
}
.container-outcomes p:first-child {
  margin-top: 0;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--outcomes-bar);
}
.container-outcomes ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.container-outcomes li {
  margin: 5px 0;
  font-size: 14px;
}
.container-outcomes p:last-child { margin-bottom: 0; }

/* ── Impact callout ──────────────────────────────────────────── */
.container-impact {
  border: 1px solid var(--border);
  border-left: 4px solid var(--impact-bar);
  padding: 18px 20px;
  margin: 16px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--impact-bg);
}
.container-impact p:first-child {
  margin-top: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.container-impact p:first-child strong {
  color: var(--accent);
}
.container-impact p:last-child { margin-bottom: 0; }

/* ── Info callout ────────────────────────────────────────────── */
.container-callout-info {
  border-left: 3px solid var(--info-bar);
  padding: 12px 18px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--info-bg);
  font-size: 14px;
  color: var(--text);
}
.container-callout-info p { margin: 0; }

/* ── Process grid ────────────────────────────────────────────── */
.container-process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: 12px;
  margin: 20px 0 28px;
}
.container-process-card {
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 200ms ease;
}
.container-process-card:hover {
  border-color: var(--accent);
}
.container-process-card p:first-child {
  margin-top: 0;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}
.container-process-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Footer note ─────────────────────────────────────────────── */
.container-footer-note {
  margin-top: 32px;
  padding-top: 16px;
  /*border-top: 1px solid var(--border);*/
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.container-footer-note p { margin: 0; }

/* ── Before/After table ──────────────────────────────────────── */
.container > table,
.container-callout-info + table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0 24px;
}
table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--border);
  color: var(--muted);
}
table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 14px;
}
table tr:last-child td { border-bottom: none; }
table tr:nth-child(even) td { background: rgba(128,128,128,0.03); }

/* ── Responsive: stack 2-col at narrow widths ────────────────── */
@media (max-width: 560px) {
  .container-metrics,
  .container-two-col,
  .container-process-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Border ──────────────────────────────────────────────────── */
hr {
  border: none;
  height: 1px;
  background: #999; /* line color */
}
