/* i4Gambia: the flag's colours (red for the sun, blue for the river, green for the land), on warm paper. */
:root {
  --red: #ce1126; --blue: #0c1c8c; --green: #3a7728; --sand: #f6efe2; --paper: #fffdf8; --ink: #1d1b16; --muted: #6a645a; --line: #e4dccb;
  --river: #e8ecfb; --leaf: #e9f2e4; --sun: #fbe6e8; --card: #ffffff; --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 6px 24px rgba(40, 30, 10, .06);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #15140f; --sand: #1d1b15; --ink: #f2ede2; --muted: #b3ab9c; --line: #34302a; --card: #1f1d17; --river: #1a2040; --leaf: #1b2a17; --sun: #34171b; --blue: #8fa0ff; --green: #7fc06a; --red: #ff6b7d; --shadow: none; }
}
:root[data-theme="dark"] { --paper: #15140f; --sand: #1d1b15; --ink: #f2ede2; --muted: #b3ab9c; --line: #34302a; --card: #1f1d17; --river: #1a2040; --leaf: #1b2a17; --sun: #34171b; --blue: #8fa0ff; --green: #7fc06a; --red: #ff6b7d; --shadow: none; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--blue); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.flag { height: 6px; background: linear-gradient(var(--red) 0 33%, #fff 33% 38%, var(--blue) 38% 62%, #fff 62% 67%, var(--green) 67%); }
header.top { position: sticky; top: 0; z-index: 1000; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.brand .mark { width: 30px; height: 30px; }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
nav.main a { text-decoration: none; color: var(--ink); padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--sand); }
nav.main a.cta { background: var(--green); color: #fff; }
.hero { padding: 56px 0 32px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--muted); font-weight: 600; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
section { padding: 36px 0; }
section.band { background: var(--sand); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin-bottom: .3em; }
.card.red { border-top: 4px solid var(--red); } .card.blue { border-top: 4px solid var(--blue); } .card.green { border-top: 4px solid var(--green); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); margin: 20px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .88rem; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font: inherit; }
.btn.ghost { background: transparent; color: var(--blue); border: 1px solid var(--line); }
.btn.green { background: var(--green); }
.tag { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--sand); color: var(--muted); font-weight: 600; }
.tag.health { background: var(--sun); color: var(--red); } .tag.education { background: var(--river); color: var(--blue); } .tag.income { background: var(--leaf); color: var(--green); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr.me td { background: var(--sun); font-weight: 600; }
.scroll { overflow-x: auto; max-width: 100%; }
ol.goals { counter-reset: g; list-style: none; padding: 0; display: grid; gap: 10px; }
ol.goals li { counter-increment: g; position: relative; padding: 12px 14px 12px 52px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
ol.goals li::before { content: counter(g); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.note { font-size: .85rem; color: var(--muted); }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 30px; font-size: .9rem; color: var(--muted); }
footer.site .wrap { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
footer.site a { color: inherit; display: inline-block; padding: 4px 0; }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: s; }
.steps div { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.steps div::before { content: "Step " counter(s); display: block; font-size: .75rem; font-weight: 700; color: var(--red); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); }
input[type=range] { width: 100%; accent-color: var(--green); }
.muted { color: var(--muted); }
@media (max-width: 640px) { header.top .wrap { padding-top: 8px; padding-bottom: 8px; } nav.main { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; } nav.main a { white-space: nowrap; } .hero { padding-top: 32px; } }
.skip { position: absolute; left: 16px; top: -100px; z-index: 2000; background: var(--paper); padding: 12px; } .skip:focus { top: 8px; }
