/* KarmaCorps — Annual Report "Document Style"
   Shared stylesheet for the four full annual-report pages (2022–2025).
   Typography and accent colours come from the reports themselves;
   the cream background is matched to the main site's tokens. */

:root {
  --cream: #f7f2ea;
  --cream-alt: #f5efe5;
  --line: #e2d6bd;
  --line-soft: #ece5d3;
  --ink: #1a1917;
  --ink-soft: #4a463e;
  --ink-faint: #6e6960;
  --green: #2f5d46;
  --rust: #a8542c;
  --card-bg: #ffffff;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream); color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  line-height: 1.55;
}
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: "Newsreader", serif; font-weight: 500; }
p { margin: 0; }
a { color: var(--green); }
a:hover { color: var(--rust); }
img { max-width: 100%; }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px) 80px; }
.eyebrow { font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--green); }

/* Top bar */
.report-topbar { display: flex; justify-content: space-between; align-items: center; max-width: 900px; margin: 0 auto; padding: 22px clamp(18px, 4vw, 40px); }
.report-topbar .back { font-family: "IBM Plex Mono", monospace; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); text-decoration: none; }
.report-topbar .back:hover { color: var(--rust); }
.report-topbar .mark { font-family: "Newsreader", serif; font-size: 1.05rem; color: var(--ink); text-decoration: none; }

/* Hero */
.hero-title { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; margin-top: 12px; }
.hero-lede { font-family: "Newsreader", serif; font-size: 1.15rem; line-height: 1.5; color: var(--ink-soft); max-width: 58ch; margin-top: 16px; }
.hero-photo { margin-top: 24px; }
.hero-photo img { width: 100%; max-height: 460px; object-fit: cover; display: block; background: var(--line-soft); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--ink); }
@media (max-width: 640px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-figure { font-family: "Newsreader", serif; font-size: 1.6rem; line-height: 1; }
.stat-caption { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-top: 4px; }

section.report-section { margin-top: clamp(48px, 7vw, 72px); }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 6px; }
.prose { columns: 2; column-gap: 32px; font-size: 1rem; color: var(--ink-soft); margin-top: 18px; }
@media (max-width: 640px) { .prose { columns: 1; } }
.prose p { margin-bottom: 14px; }
.lede { font-size: 1.05rem; line-height: 1.55; color: var(--ink-soft); max-width: 62ch; margin-top: 18px; }

h3.sub { font-family: "Newsreader", serif; font-weight: 600; font-size: 1.2rem; margin-top: 34px; }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 640px) { .mini-stats { grid-template-columns: 1fr; } }
.mini-stat { background: var(--cream-alt); padding: 16px; }
.mini-stat .n { font-family: "Newsreader", serif; font-size: 1.5rem; }
.mini-stat p { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }

.rtable-wrap { overflow-x: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 540px; font-size: 0.92rem; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; }
thead th { border-bottom: 1px solid var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 500; }
th:last-child, td:last-child { text-align: right; white-space: nowrap; }
tbody td { border-bottom: 1px solid var(--line); color: var(--ink-soft); }
tbody td:first-child { font-weight: 600; color: var(--ink); }
tbody td:last-child { font-family: "IBM Plex Mono", monospace; }
tr.total td { border-top: 1px solid var(--ink); border-bottom: none; background: var(--cream-alt); font-weight: 700; color: var(--ink); }
.table-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 10px; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; border-bottom: 1px solid var(--ink); padding: 0 4px; margin-top: 24px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.bar-col .fill { width: 100%; background: var(--green); }
.bar-col .fill.hi { background: var(--rust); }
.bar-labels { display: flex; gap: 10px; padding: 8px 4px 0; }
.bar-labels span { flex: 1; text-align: center; font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; color: var(--ink-faint); }
.chart-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 10px; }

.callout { background: var(--green); color: #f7f4ed; padding: 20px 24px; margin-top: 24px; }
.callout .tag { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.callout .swing { display: flex; align-items: baseline; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.callout .was { font-family: "Newsreader", serif; font-size: 1.5rem; text-decoration: line-through; opacity: 0.7; }
.callout .arrow { font-family: "IBM Plex Mono", monospace; font-size: 1rem; }
.callout .now { font-family: "Newsreader", serif; font-size: 2rem; }
.callout .big { font-family: "Newsreader", serif; font-size: 2rem; margin-top: 12px; }
.callout p { font-family: "Newsreader", serif; font-size: 1.02rem; line-height: 1.5; margin-top: 12px; max-width: 60ch; }

.toc-box { background: var(--cream-alt); padding: 20px 24px; margin-top: 24px; }
.toc-box ol { columns: 2; column-gap: 32px; margin: 12px 0 0; padding-left: 20px; font-size: 0.92rem; line-height: 1.8; color: var(--ink-soft); }
@media (max-width: 640px) { .toc-box ol { columns: 1; } }

.timeline-row { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.timeline-row .when { font-family: "IBM Plex Mono", monospace; font-size: 0.76rem; color: var(--ink-faint); white-space: nowrap; padding-top: 2px; }
.timeline-row .what { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
@media (max-width: 640px) { .photo-pair { grid-template-columns: 1fr; } }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; height: 220px; object-fit: cover; display: block; background: var(--line-soft); }
.photo-pair figcaption { font-size: 0.82rem; color: var(--ink-faint); margin-top: 6px; }

.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 640px) { .prog-grid { grid-template-columns: 1fr; } }
.prog-card { border-top: 1px solid var(--ink); padding-top: 12px; }
.prog-card .tag { font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.prog-card .amount { font-family: "Newsreader", serif; font-size: 1.35rem; margin-top: 6px; }
.prog-card p { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }

.hbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hbar-row .lbl { flex: 0 0 190px; font-size: 0.88rem; }
.hbar-row .track { flex: 1; height: 16px; background: var(--cream-alt); }
.hbar-row .fill { display: block; height: 100%; background: var(--green); }
.hbar-row .val { flex: 0 0 92px; text-align: right; font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; }
@media (max-width: 640px) { .hbar-row .lbl { flex-basis: 120px; font-size: 0.8rem; } .hbar-row .val { flex-basis: 70px; } }
.hbar-block { margin-top: 20px; }

.attend-col .cap { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.attend-col .hbar-row .lbl { flex-basis: 84px; font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; }
.attend-col .note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 20px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.two-col h4 { font-family: "Newsreader", serif; font-weight: 600; font-size: 1.02rem; margin-bottom: 8px; }
.two-col ol, .two-col ul { margin: 0; padding-left: 20px; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }
.two-col li { margin-bottom: 8px; }

.side-note { background: var(--cream-alt); padding: 18px 22px; margin-top: 24px; }
.side-note h3 { font-family: "Newsreader", serif; font-weight: 600; font-size: 1.05rem; }
.side-note p { font-size: 0.92rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.55; }

.card-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin-top: 20px; }
@media (max-width: 640px) { .card-facts { grid-template-columns: 1fr; } }
.card-facts > div { border-top: 1px solid var(--ink); padding-top: 10px; }
.card-facts h4 { font-family: "Newsreader", serif; font-weight: 600; font-size: 0.98rem; margin-bottom: 4px; }
.card-facts p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; }

.pull-list { columns: 2; column-gap: 32px; margin-top: 4px; padding-left: 20px; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 640px) { .pull-list { columns: 1; } }
.pull-list li { margin-bottom: 6px; }

.mono-tag-row { font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; line-height: 1.9; color: var(--green); margin-top: 8px; }

blockquote.report-quote { border-left: 2px solid var(--green); padding: 2px 0 2px 20px; margin: 24px 0 0; }
blockquote.report-quote p { font-size: 0.98rem; line-height: 1.55; color: var(--ink-soft); }

.pdf-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--cream); text-decoration: none; padding: 11px 20px; font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 22px; }
.pdf-btn:hover { background: var(--rust); color: #fff; }

.report-close { margin-top: 56px; }
.report-close img { width: 100%; height: 320px; object-fit: cover; display: block; background: var(--line-soft); }
.report-close .sign { border-top: 1px solid var(--ink); margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.report-close .sign .name { font-family: "Newsreader", serif; font-size: 1.15rem; }
.report-close .sign .meta { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }

.report-footer-nav { max-width: 900px; margin: 0 auto; padding: 24px clamp(18px, 4vw, 40px) 64px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; border-top: 1px solid var(--line); margin-top: 8px; }
.report-footer-nav a { text-decoration: none; }
