/* Shared styles for NonprofitWorth guide pages */
:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --surface-2: #f2f5f2;
  --fg: #17201b;
  --muted: #56615a;
  --accent: #2f7a5b;
  --accent-strong: #235f46;
  --accent-soft: #e3f0e9;
  --border: #e1e6e2;
  --shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 8px 24px rgba(16, 24, 20, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111513;
    --surface: #181d1a;
    --surface-2: #1d2420;
    --fg: #e9eeea;
    --muted: #9eaaa3;
    --accent: #5fbf93;
    --accent-strong: #7fd3ab;
    --accent-soft: #1f3329;
    --border: #29312c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.brand svg { flex: none; }
nav.links { display: none; gap: 28px; }
nav.links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav.links a:hover, nav.links a[aria-current] { color: var(--fg); }
@media (min-width: 860px) { nav.links { display: flex; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; transition: background .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0d1a13; } }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Breadcrumb */
.crumbs { font-size: 14px; color: var(--muted); margin: 32px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; line-height: 1.5; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

/* Article */
.article { max-width: 760px; margin: 0 auto; padding: 0 0 64px; }
.article header.intro { padding: 24px 0 8px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.article h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; letter-spacing: -.025em; margin: 12px 0 16px; }
.article .lede { font-size: 1.2rem; color: var(--muted); margin: 0 0 16px; }
.byline { font-size: 14px; color: var(--muted); margin: 0; }
.article h2 { font-size: 1.6rem; line-height: 1.25; letter-spacing: -.015em; margin: 48px 0 12px; scroll-margin-top: 80px; }
.article h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.article p, .article li { color: var(--fg); }
.article ul, .article ol { padding-left: 22px; }
.article li + li { margin-top: 6px; }

.takeaways {
  background: var(--accent-soft); border-radius: 14px; padding: 20px 24px; margin: 32px 0 8px;
}
.takeaways h2 { font-size: 1rem; margin: 0 0 8px; letter-spacing: 0; text-transform: uppercase; color: var(--accent); }
.takeaways ul { margin: 0; }

.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; padding: 14px 16px 0; font-weight: 600; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { font-size: 14px; color: var(--muted); margin: -8px 0 20px; }

.callout {
  border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0;
  padding: 16px 20px; margin: 24px 0; box-shadow: var(--shadow);
}
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

.cta {
  margin: 48px 0 0; padding: 28px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.cta h2 { margin: 0 0 8px; font-size: 1.35rem; }
.cta p { color: var(--muted); margin: 0 0 20px; }

.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 15px; }
.sources h2 { font-size: 1.1rem; margin: 0 0 8px; }
.sources li { color: var(--muted); }

.related { margin-top: 32px; }
.related h2 { font-size: 1.1rem; margin: 0 0 12px; }

/* Guide cards */
.guide-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.guide-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px; text-decoration: none; color: var(--fg); transition: border-color .15s, box-shadow .15s;
}
.guide-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.guide-card .kicker { display: block; margin-bottom: 8px; }
.guide-card h3 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.35; }
.guide-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--fg); }
