@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #14233b;
  --navy: #112847;
  --blue: #17406a;
  --cream: #f8f6ef;
  --paper: #fff;
  --lime: #e8f084;
  --line: #d7dcd9;
  --muted: #536175;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.65 "DM Sans",
    sans-serif;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.05em;
  line-height: 1.14;
}
h1 {
  font-size: clamp(3.25rem, 7vw, 6.6rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(2.3rem, 4.5vw, 4.25rem);
}
h3 {
  font-size: 1.5rem;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #b090ff;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -10000px;
  top: 0;
  z-index: 20;
  background: #fff;
  padding: 0.6rem;
}
.skip:focus {
  left: 1rem;
}
.header {
  height: 88px;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #fff;
  position: relative;
  z-index: 10;
}
.brand {
  text-decoration: none;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-family: Manrope, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--lime);
  font-size: 1.6rem;
  letter-spacing: 0;
}
.brand-em {
  color: #55728b;
}
.brand small {
  display: block;
  font:
    500 0.67rem/1.1 "DM Sans",
    sans-serif;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.33rem;
}
.header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.4vw, 1.6rem);
  font-size: 0.86rem;
  font-weight: 700;
}
.header nav > a {
  text-decoration: none;
  white-space: nowrap;
}
.header nav > a:hover,
.header nav > a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.header nav .nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 0.76rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}
.menu-button {
  display: none;
}
.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 52% 48%;
  background: var(--cream);
}
.hero-copy {
  padding: clamp(4rem, 7vw, 8rem) 7vw 5rem clamp(1.25rem, 7vw, 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  max-width: 760px;
  margin-bottom: 1.65rem;
}
.hero p:not(.eyebrow) {
  font-size: 1.22rem;
  max-width: 560px;
  color: #415268;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.75rem;
  font-weight: 800;
  color: #52738b;
  margin-bottom: 1.5rem;
}
.actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.button {
  display: inline-flex;
  gap: 2.2rem;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.35rem;
  background: var(--navy);
  color: white;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
}
.button:hover {
  background: #244d72;
}
.text-link {
  font-weight: 700;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.hero-image {
  background: #55708a url("../village-landscape.jpg") center/cover;
  min-height: 430px;
  position: relative;
}
.hero-image span {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: #13243aab;
  padding: 0.2rem 0.45rem;
}
.donation-hero {
  min-height: 790px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #13243a;
  background-image:
    linear-gradient(
      90deg,
      rgba(7, 18, 29, 0.88) 0%,
      rgba(7, 18, 29, 0.62) 46%,
      rgba(7, 18, 29, 0.18) 100%
    ),
    url("../village-landscape.jpg");
  background-position:
    center,
    right center;
  background-size:
    cover,
    auto 100%;
  background-repeat: no-repeat;
}
.donation-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 65%, rgba(6, 17, 28, 0.36));
}
.donation-hero-content {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 5rem clamp(1.25rem, 7vw, 7.5rem);
  color: #fff;
}
.donation-hero .eyebrow {
  color: var(--lime);
  margin-bottom: 1rem;
}
.donation-hero h1 {
  max-width: 800px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.3rem, 6.5vw, 6rem);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.3);
}
.donation-hero .hero-description {
  max-width: 650px;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}
.donation-box {
  width: min(100%, 520px);
  padding: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 20px 55px rgba(2, 13, 23, 0.36);
}
.frequency-options,
.amount-options {
  display: grid;
  gap: 0.75rem;
}
.frequency-options {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1rem;
  padding: 0.25rem;
  border: 1px solid #d9e0e3;
  border-radius: 999px;
}
.amount-options {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 1rem;
}
.frequency-button,
.amount-button {
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #506175;
  font:
    700 1rem "DM Sans",
    sans-serif;
  cursor: pointer;
}
.amount-button {
  border-color: #d8dfe2;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(19, 36, 55, 0.08);
}
.frequency-button:hover,
.frequency-button.active,
.amount-button:hover,
.amount-button.active {
  border-color: #0d6b58;
  background: #e4f3ef;
  color: #075747;
}
.donate-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 4px;
  background: #0b6a55;
  color: #fff;
  font:
    700 1.12rem "DM Sans",
    sans-serif;
  cursor: pointer;
}
.donate-button:hover {
  background: #075644;
}
.donation-program {
  margin: 1rem 0 0.2rem;
  text-align: center;
  font-weight: 700;
}
.donation-note {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}
.image-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.2rem 0.45rem;
  background: rgba(7, 18, 29, 0.7);
  color: #fff;
  font-size: 0.7rem;
}
.band {
  background: var(--navy);
  color: #fff;
}
.intro {
  padding: 6rem max(7vw, 1.5rem);
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 3rem;
}
.intro .eyebrow {
  color: var(--lime);
}
.intro h2 {
  grid-column: 2;
  max-width: 820px;
  margin-bottom: 1rem;
}
.intro > p:last-child {
  grid-column: 2;
  max-width: 780px;
  color: #d8e0e9;
  font-size: 1.12rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6rem clamp(1.25rem, 7vw, 8rem);
  gap: 1.4rem;
  background: #f1f5f3;
}
.cards article {
  background: #fff;
  padding: 2.5rem;
  min-height: 235px;
  border-top: 4px solid var(--lime);
}
.cards p {
  color: var(--muted);
}
.number {
  display: inline-block;
  font-weight: 800;
  color: #618199;
  border-bottom: 2px solid var(--lime);
  margin-bottom: 3rem;
}
.split {
  padding: 8rem clamp(1.25rem, 7vw, 8rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.split p:not(.eyebrow) {
  font-size: 1.22rem;
  color: var(--muted);
}
.founder-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 8vw, 8rem);
  padding: 7rem clamp(1.5rem, 8vw, 9rem);
  background: #f4f0e8;
}
.founder-story h2 {
  max-width: 620px;
  font-size: clamp(2.8rem, 5vw, 5rem);
}
.founder-story p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}
.photo-gallery {
  padding: 6rem clamp(1.25rem, 7vw, 8rem);
  background: #fff;
}
.photo-gallery-intro {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.photo-gallery-intro h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}
.photo-gallery-intro > p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
}
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1180px;
  margin: auto;
}
.photo-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  background: #f1f5f3;
  box-shadow: 0 16px 38px rgba(17, 40, 71, 0.12);
}
.photo-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
}
.photo-gallery figcaption {
  position: relative;
  z-index: 1;
  width: calc(100% - 1.5rem);
  margin: -3.9rem auto 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 0.82rem;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 6px 20px rgba(17, 40, 71, 0.12);
}
.photo-disclaimer {
  max-width: 1180px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.cta {
  background: #dce9eb;
  padding: 6rem clamp(1.25rem, 7vw, 8rem);
  text-align: center;
}
.cta h2 {
  max-width: 750px;
  margin: 0 auto 2rem;
}
.cta .light {
  background: var(--navy);
}
.page-head {
  padding: 7rem clamp(1.25rem, 10vw, 10rem) 6rem;
  background: var(--cream);
}
.page-head h1 {
  max-width: 1080px;
}
.page-head > p:last-child {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 730px;
}
.prose {
  max-width: 850px;
  margin: auto;
  padding: 5rem 1.5rem 8rem;
}
.prose h2 {
  margin-top: 3.2rem;
}
.prose p {
  font-size: 1.2rem;
  color: var(--muted);
}
.prose blockquote {
  margin: 3rem 0;
  padding: 2.25rem;
  border-left: 5px solid var(--lime);
  background: var(--navy);
  color: #fff;
  font: 600 clamp(1.35rem, 2.4vw, 2rem) Manrope;
  line-height: 1.45;
}
.prose blockquote cite {
  display: block;
  margin-top: 1.25rem;
  color: #c9da83;
  font: 700 0.85rem "DM Sans";
  font-style: normal;
}
.steps {
  padding: 4rem clamp(1.25rem, 10vw, 10rem);
}
.steps article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 3rem;
  border-top: 1px solid var(--line);
  padding: 2.7rem 0;
}
.steps article:last-child {
  border-bottom: 1px solid var(--line);
}
.steps span {
  font: 700 1.5rem Manrope;
  color: #6b8599;
}
.steps h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.steps p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.1rem;
}
.note {
  margin: 2rem auto 7rem;
  padding: 3.5rem;
  max-width: 1000px;
  background: #edf2f2;
}
.note h2 {
  font-size: 2rem;
}
.note p {
  max-width: 720px;
  color: var(--muted);
}
.program-card {
  margin: 5rem clamp(1.25rem, 10vw, 10rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--navy);
  color: white;
}
.program-card > div {
  padding: 3rem;
}
.program-card h2 {
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.program-card p {
  max-width: 620px;
  color: #d4e0ea;
  font-size: 1.12rem;
}
.program-aside {
  background: #204263;
}
.program-aside h3 {
  margin: 0.25rem 0 0;
  font-size: 1.6rem;
}
.demo-label,
.mini-label {
  display: block;
  margin: 1.5rem 0 0;
  color: #c9da83 !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.program-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.14);
}
.program-metrics div {
  padding: 1.2rem;
  background: #173553;
}
.program-metrics strong {
  display: block;
  color: #d7ea78;
  font: 700 clamp(1.55rem, 2.7vw, 2.3rem) Manrope;
}
.program-metrics span {
  display: block;
  margin-top: 0.2rem;
  color: #c7d5e1;
  font-size: 0.82rem;
}
.allocation-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
}
.allocation-heading > strong {
  color: #d7ea78;
  white-space: nowrap;
}
.allocation-track {
  display: flex;
  height: 12px;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 20px;
  background: #8ba0b4;
}
.allocation-track span {
  display: block;
}
.cash-share {
  width: 72%;
  background: #d7ea78;
}
.delivery-share {
  width: 6%;
  background: #70c9b3;
}
.allocation-list {
  display: grid;
  gap: 1rem;
}
.allocation-list > div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 0.8rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.allocation-list p {
  margin: 0;
  color: #fff;
  font-size: 0.94rem;
  line-height: 1.4;
}
.allocation-list p strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
}
.allocation-list > div > span:last-child {
  color: #c7d5e1;
  font-size: 0.85rem;
}
.allocation-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.3rem;
  border-radius: 50%;
}
.allocation-dot.cash {
  background: #d7ea78;
}
.allocation-dot.delivery {
  background: #70c9b3;
}
.allocation-dot.reserve {
  background: #8ba0b4;
}
.figure-note {
  margin: 1.5rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #d4e0ea !important;
  font-size: 0.78rem !important;
  line-height: 1.5;
}
.tag {
  display: inline-block;
  border: 1px solid #a7c3cf;
  border-radius: 30px;
  padding: 0.3rem 0.8rem;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.empty {
  text-align: center;
  max-width: 760px;
  margin: 5rem auto 8rem;
  padding: 0 1.5rem;
}
.empty-mark {
  font: 700 7rem Georgia;
  color: #b4c9cb;
  height: 110px;
}
.empty h2 {
  font-size: 2.7rem;
}
.empty p {
  color: var(--muted);
}
.faq {
  max-width: 900px;
  margin: 4rem auto 8rem;
  padding: 0 1.5rem;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font: 700 1.25rem Manrope;
  padding: 1.5rem 2rem 1.5rem 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  font-size: 1.5rem;
}
.faq details[open] summary:after {
  content: "−";
}
.faq details p {
  max-width: 720px;
  color: var(--muted);
  padding-bottom: 1.5rem;
}
footer {
  background: #101f34;
  color: #fff;
  padding: 5rem clamp(1.25rem, 7vw, 8rem) 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
}
.footer-brand {
  text-decoration: none;
  font: 800 2rem Manrope;
  letter-spacing: -0.08em;
}
.footer-brand span:first-child {
  color: #acc6d1;
}
.footer-brand .dot {
  color: var(--lime);
  margin-left: 0.4rem;
}
footer p {
  color: #b7c5d2;
  max-width: 310px;
}
.footer-links {
  display: flex;
  gap: 5rem;
}
.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links strong {
  color: #c9da83;
  margin-bottom: 0.55rem;
}
.footer-links a {
  text-decoration: none;
  color: #d0dbe4;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid #3d4b5e;
  margin-top: 5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: #b7c5d2;
  font-size: 0.78rem;
}
@media (max-width: 1100px) {
  .header nav {
    gap: 0.7rem;
    font-size: 0.76rem;
  }
  .header {
    padding: 0 1.5rem;
  }
  .hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
  }
}
@media (max-width: 820px) {
  .donation-hero {
    min-height: 760px;
    background-position:
      center,
      72% center;
    background-size:
      cover,
      auto 100%;
  }
  .donation-hero-content {
    padding: 4rem 1.5rem;
  }
  .donation-hero h1 {
    font-size: clamp(3rem, 11vw, 4.5rem);
  }
  .header {
    height: 76px;
  }
  .menu-button {
    display: block;
    background: var(--navy);
    color: #fff;
    border: 0;
    padding: 0.65rem 1rem;
    font: 700 0.9rem "DM Sans";
    border-radius: 3px;
  }
  .header nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 18px #101f3424;
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
    font-size: 1rem;
  }
  .header nav.open {
    display: flex;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 5rem 1.5rem;
  }
  .hero-image {
    min-height: 360px;
  }
  .intro {
    display: block;
    padding: 4rem 1.5rem;
  }
  .cards {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
  }
  .cards article {
    min-height: auto;
  }
  .number {
    margin-bottom: 1rem;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 5rem 1.5rem;
  }
  .founder-story {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 5rem 1.5rem;
  }
  .photo-gallery {
    padding: 4rem 1.5rem;
  }
  .photo-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-links {
    gap: 3rem;
  }
  .program-card {
    grid-template-columns: 1fr;
  }
  .page-head {
    padding: 5rem 1.5rem;
  }
  .steps {
    padding: 3rem 1.5rem;
  }
  .steps article {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }
  .steps h2 {
    font-size: 2rem;
  }
  .note {
    margin: 2rem 1.5rem 5rem;
    padding: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .hero h1 {
    font-size: clamp(3.4rem, 11vw, 5rem);
  }
}
@media (max-width: 470px) {
  .donation-box {
    padding: 1rem;
  }
  .amount-options {
    grid-template-columns: 1fr 1fr;
  }
  .brand {
    font-size: 1.25rem;
  }
  .brand-icon {
    width: 33px;
    height: 33px;
  }
  .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  .program-card {
    margin: 3rem 1rem;
  }
  .program-card > div {
    padding: 2rem;
  }
  .page-head h1 {
    font-size: 3.1rem;
  }
}

/* ---------- Impact dashboard: progress bars & charts ---------- */
.impact-dash {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.4rem;
  padding: 4rem clamp(1.25rem, 10vw, 10rem) 1.4rem;
}
.round-card,
.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: 0 10px 30px rgba(17, 40, 71, 0.07);
}
.urgent {
  margin: 0 0 0.6rem;
  color: #a5331c;
  font-size: 0.9rem;
  font-weight: 700;
}
.round-card h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}
.round-desc {
  color: var(--muted);
}
.raise-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.4rem 0 0.8rem;
  color: var(--muted);
}
.raise-row strong {
  font: 800 2.4rem/1 Manrope, sans-serif;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.raise-row b {
  margin-left: auto;
  font: 800 1.25rem Manrope, sans-serif;
  color: var(--ink);
}
.segbar {
  position: relative;
  height: 28px;
  border: 1px solid #cfd8d3;
  border-radius: 6px;
  background: #e9eeea;
  overflow: hidden;
}
.segbar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #f2a900;
  transition: width 1s ease;
}
.segbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(25% - 1px),
    rgba(20, 35, 59, 0.22) calc(25% - 1px),
    rgba(20, 35, 59, 0.22) 25%
  );
}
.togo {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.togo strong {
  color: var(--ink);
}
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  padding: 0 clamp(1.25rem, 10vw, 10rem) 4rem;
}
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.donut-box {
  position: relative;
  width: 190px;
  flex: none;
}
.donut-box svg {
  display: block;
  width: 100%;
  transform: none;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.donut-center strong {
  font: 800 1.5rem Manrope, sans-serif;
}
.donut-center span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.legend {
  flex: 1;
  min-width: 200px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legend li {
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.legend li:last-child {
  border: 0;
}
.legend .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.4rem;
}
.legend .lg-val {
  grid-column: 2;
  color: var(--muted);
}
.legend em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
  height: 240px;
  margin-top: 1.4rem;
}
.bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.bar-val {
  min-height: 1.2em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.bar-track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  border-bottom: 2px solid #cfd8d3;
}
.bar-fill {
  width: 100%;
  min-height: 0;
  border-radius: 6px 6px 0 0;
  background: var(--blue);
  transition: height 0.9s ease;
}
.bar-label {
  font-size: 0.8rem;
  color: var(--muted);
}
.chart-empty {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .impact-dash,
  .charts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 470px) {
  .round-card,
  .chart-card {
    padding: 1.5rem;
  }
  .raise-row strong {
    font-size: 1.9rem;
  }
}

/* ---------- Demo mode: badge and sample-donation pop-ups ---------- */
.demo-badge {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  max-width: calc(100vw - 2rem);
  padding: 0.5rem 0.9rem;
  border-radius: 30px;
  background: #fff0b8;
  color: #6b3f00;
  border: 1px solid #d7b34a;
  font-size: 0.78rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.demo-toast {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1200;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.9rem 1.1rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid #f2a900;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17, 40, 71, 0.2);
  font-size: 0.92rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.demo-toast.show {
  opacity: 1;
  transform: none;
}
.demo-toast small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.demo-toast-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fdf1cc;
  color: #c98a00;
}
@media (max-width: 600px) {
  .demo-badge {
    bottom: auto;
    top: 0.6rem;
    right: 0.6rem;
    font-size: 0.7rem;
  }
  .demo-toast {
    bottom: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-toast,
  .segbar-fill,
  .bar-fill {
    transition: none;
  }
}

/* ---------- Stories: blog list and editor ---------- */
.story-tools {
  padding: 2.5rem clamp(1.25rem, 10vw, 10rem) 0;
}
.button.ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.button.ghost:hover {
  background: #edf2f2;
}
.story-editor {
  margin: 1.5rem clamp(1.25rem, 10vw, 10rem) 0;
  padding: 2.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(17, 40, 71, 0.07);
}
.story-editor h2 {
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
}
.story-editor label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.story-editor input[type="text"],
.story-editor input[type="date"],
.story-editor textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #b9c4c0;
  border-radius: 6px;
  font: 400 1rem/1.5 "DM Sans", sans-serif;
  color: var(--ink);
  background: #fff;
}
.story-editor textarea {
  resize: vertical;
}
.story-editor #story-code {
  font: 0.8rem/1.4 monospace;
  background: #f4f6f5;
}
.story-editor input:focus,
.story-editor textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.story-editor label.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 500;
  line-height: 1.45;
}
.check input {
  margin-top: 0.25rem;
}
.editor-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 0.6rem;
}
.story-status {
  min-height: 1.4em;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}
.story-status.ok {
  color: #1f6b3a;
}
.story-status.err {
  color: #a5331c;
}
.story-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
  padding: 2.5rem clamp(1.25rem, 10vw, 10rem) 5rem;
}
.story-list:empty {
  display: none;
}
.story-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--lime);
  border-radius: 6px;
  overflow: hidden;
  align-self: start;
}
.story-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.story-body {
  padding: 1.6rem;
}
.story-meta {
  margin-bottom: 0.5rem;
  color: #52738b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.story-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.story-body p {
  color: var(--muted);
}
.story-more,
.story-del {
  padding: 0;
  border: 0;
  background: none;
  font: 700 0.95rem "DM Sans", sans-serif;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.story-local {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.story-del {
  color: #a5331c;
  font-size: 0.8rem;
}
@media (max-width: 700px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .story-editor {
    padding: 1.4rem;
  }
  .story-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Stories: live-newsfeed layout ---------- */
.story-list.feed {
  display: block;
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}
.feed-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.feed-head h3 {
  margin: 0;
  font-size: 1.6rem;
}
.feed-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.feed-update {
  margin: 0.5rem 0 0;
  font-weight: 700;
  color: var(--ink);
}
.feed-loc {
  margin: 0.15rem 0 0;
  color: #52738b;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.feed-img {
  display: block;
  width: 100%;
  max-height: 360px;
  margin-top: 1rem;
  border-radius: 8px;
  object-fit: cover;
}
.feed-quote {
  margin: 1rem 0 0;
  padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 4px solid var(--lime);
}
.feed-quote p {
  margin: 0 0 0.9rem;
  color: #2d3d54;
  font-size: 1.05rem;
  line-height: 1.7;
}
.feed-quote p:last-child {
  margin-bottom: 0;
}
.feed-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.7rem;
  border-radius: 30px;
  background: #fff0b8;
  color: #6b3f00;
  border: 1px solid #d7b34a;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Admin panel ---------- */
.admin-head {
  padding-top: 4rem;
  padding-bottom: 3rem;
}
.admin-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.admin-box {
  max-width: 920px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.admin-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.admin-box input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #b9c4c0;
  border-radius: 6px;
  font: 1rem "DM Sans", sans-serif;
}
.admin-editor {
  max-width: 920px;
  margin: 2rem auto;
}
.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.admin-row span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.admin-row-actions {
  display: flex;
  gap: 1.2rem;
  flex: none;
}
.admin-empty {
  color: var(--muted);
}
.story-editor input[type="file"] {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
@media (max-width: 700px) {
  .admin-box,
  .admin-editor {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}


.donation-payment-note {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.82;
}

/* ---------- Blog CMS and public blog ---------- */
.story-editor select {
  width: 100%;
  border: 1px solid #d8d4cb;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  background: #fff;
  color: inherit;
  font: inherit;
}
.blog-page-head { max-width: 900px; }
.blog-grid {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid #e8e3d8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(25, 33, 28, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.blog-card-image-link { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f1efe9; }
.blog-card-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.blog-card:hover .blog-card-image { transform: scale(1.025); }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #6f756f; font-size: .86rem; margin-bottom: 12px; }
.blog-category { color: #2d6b4d; font-weight: 700; }
.blog-card-title { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; margin: 0 0 12px; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-card-excerpt { color: #555d57; line-height: 1.65; margin: 0 0 16px; }
.blog-card-byline { color: #7a7f7b; font-size: .9rem; margin: auto 0 12px; }
.blog-read-more { font-weight: 700; color: #205f42; text-decoration: none; }
.blog-read-more:hover { text-decoration: underline; }
.blog-detail-wrap { width: min(900px, calc(100% - 40px)); margin: 44px auto 90px; }
.blog-back { display: inline-block; margin-bottom: 30px; color: #32634d; text-decoration: none; font-weight: 700; }
.blog-detail-head { max-width: 820px; margin: 0 auto 34px; }
.blog-detail-head h1 { font-size: clamp(2.25rem, 6vw, 4.5rem); line-height: .99; letter-spacing: -.035em; margin: 10px 0 18px; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #6f756f; font-size: .93rem; margin: 0 0 20px; }
.blog-lead { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; color: #4f5751; margin: 0; }
.blog-hero-img { width: 100%; max-height: 600px; object-fit: cover; border-radius: 18px; margin: 0 0 38px; display: block; }
.blog-article-body { max-width: 760px; margin: 0 auto; font-size: 1.08rem; line-height: 1.82; color: #303732; }
.blog-article-body p { margin: 0 0 1.45em; }
.blog-admin-row { align-items: flex-start; }
.blog-admin-info { min-width: 0; flex: 1; }
.blog-admin-titleline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.blog-admin-titleline strong { font-size: 1.04rem; }
.admin-excerpt { margin: 6px 0 0; color: #68706a; line-height: 1.45; max-width: 750px; }
.post-status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.post-status-badge.published { background: #e8f4ed; color: #1e6a45; }
.post-status-badge.draft { background: #f0f0ed; color: #5e625f; }
.post-status-badge.scheduled { background: #fff3d6; color: #8a5c00; }
.blog-preview-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(20,24,21,.72); padding: 28px; overflow: auto; }
.blog-preview-dialog { width: min(900px, 100%); margin: 0 auto; background: #fff; border-radius: 18px; padding: clamp(28px, 5vw, 64px); position: relative; min-height: 300px; }
.blog-preview-close { position: absolute; right: 18px; top: 12px; border: 0; background: transparent; font-size: 2rem; cursor: pointer; color: #394039; }
body.modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .blog-grid { width: min(100% - 28px, 560px); grid-template-columns: 1fr; gap: 20px; margin-bottom: 60px; }
  .blog-card-body { padding: 20px; }
  .blog-detail-wrap { width: min(100% - 28px, 900px); margin-top: 28px; }
  .blog-preview-modal { padding: 12px; }
  .blog-preview-dialog { padding: 44px 20px 26px; }
}

/* ---------- Admin dashboard refinements ---------- */
.admin-help {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d9d5c8;
  border-radius: 10px;
  background: #faf8f1;
  color: #445064;
  line-height: 1.55;
}
.admin-help p { margin: .45rem 0 0; }
.admin-help code {
  padding: .12rem .35rem;
  border-radius: 4px;
  background: #ece9df;
  font-size: .88em;
}
.admin-dashboard {
  max-width: 1120px;
  margin: 2.4rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.admin-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.35rem;
  box-shadow: 0 7px 22px rgba(17,40,71,.045);
}
.admin-stat span { display: block; color: var(--muted); font-size: .82rem; font-weight: 700; }
.admin-stat strong { display: block; margin-top: .25rem; font: 800 2rem/1.1 Manrope, sans-serif; color: var(--ink); }
.admin-content-bar { gap: 1rem; align-items: end; }
.admin-search { margin: 0; min-width: min(310px, 100%); }
.admin-search input {
  width: 100%;
  border: 1px solid #b9c2c9;
  border-radius: 7px;
  padding: .72rem .85rem;
  font: inherit;
}
.admin-filter-row { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.35rem; }
.admin-filter {
  border: 1px solid #c9d1d5;
  background: #fff;
  color: #314157;
  padding: .48rem .8rem;
  border-radius: 999px;
  cursor: pointer;
  font: 700 .8rem Manrope, sans-serif;
}
.admin-filter.is-active { background: #122a49; color: #fff; border-color: #122a49; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 820px) {
  .admin-dashboard { grid-template-columns: 1fr 1fr; }
  .admin-content-bar { align-items: stretch; flex-direction: column; }
  .admin-search { min-width: 0; width: 100%; }
}
@media (max-width: 470px) {
  .admin-dashboard { grid-template-columns: 1fr; }
}


/* Footer link accessibility */
.footer-links a {
  cursor: pointer;
}
.footer-links a:focus-visible,
.footer-brand:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}


/* ---------- Payment options ---------- */
.payment-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.crypto-donate-button {
  background: #122a45;
}
.crypto-donate-button:hover {
  background: #0a1e34;
}
.crypto-donate-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  background: #637180;
}
.custom-amount-wrap {
  margin: -0.15rem 0 1rem;
}
.custom-amount-wrap label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.custom-amount-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #d8dfe2;
  border-radius: 7px;
  padding: 0 0.85rem;
  background: #fff;
}
.custom-amount-field input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  font: inherit;
}
.donation-status {
  min-height: 1.25rem;
  margin: 0.6rem 0 0;
  text-align: center;
  color: #23435c;
  font-size: 0.84rem;
  font-weight: 600;
}
@media (max-width: 560px) {
  .payment-buttons { grid-template-columns: 1fr; }
}
