/* =========================================================
   DSVSF — Domestic and Sexual Violence Survivors Foundation
   Shared stylesheet for all pages
   ========================================================= */

/* Google Fonts are loaded via <link> tags in the HTML head (faster, non-render-blocking)
   rather than @import here — see build.py's head() function. */

:root {
  --purple: #3B1E68;
  --purple-dark: #2A1550;
  --orange: #A44C14;
  --orange-dark: #8F420E;
  --green: #2C7A46;
  --green-dark: #1F5C34;
  --navy: #1C2A4A;
  --cream: #F8F1E1;
  --tan: #EEE1C6;
  --white: #FFFFFF;
  --max-width: 1280px;
  --radius: 12px;
  --shadow: 0 4px 14px rgba(28, 42, 74, 0.08);
  --shadow-md: 0 8px 24px rgba(28, 42, 74, 0.14);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--navy);
  line-height: 1.25;
}

img { max-width: 100%; display: block; }
picture { display: block; max-width: 100%; }
picture img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 0; left: 0;
  transform: translateY(-100%);
  background: var(--orange);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--purple-dark);
  color: #fff;
  font-size: 0.875rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.topbar a.hotline-link { font-weight: 600; text-decoration: underline; }
.topbar a.hotline-link:hover { color: var(--orange); }
.social-icons { display: flex; gap: 0.65rem; }
.social-icons a {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-icons a:hover { background: #fff; color: var(--purple-dark); }
.social-icons svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo .brand { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--purple); letter-spacing: -0.02em; }
.logo .tagline { font-size: 0.6rem; color: rgba(28,42,74,0.7); margin-top: 2px; max-width: 190px; }

.primary-nav { display: none; gap: 1.35rem; font-size: 0.92rem; flex-wrap: wrap; row-gap: 0.5rem; }
.primary-nav a { font-weight: 600; color: var(--navy); transition: color 0.2s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--orange); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-emergency-nav {
  display: none;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.btn-emergency-nav:hover { background: var(--purple-dark); }

.menu-toggle {
  width: 44px; height: 44px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--tan);
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--tan);
  font-weight: 600;
  color: var(--navy);
}
.mobile-menu a:hover { background: var(--cream); }
.mobile-menu a[aria-current="page"] { color: var(--orange); }
.mobile-menu .btn-emergency-mobile {
  display: block;
  margin: 1rem 1.25rem;
  text-align: center;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem;
  border-radius: 8px;
}

@media (min-width: 992px) {
  .primary-nav { display: flex; }
  .btn-emergency-nav { display: inline-block; }
  .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero .hero-bg {
  position: absolute; inset: 0;
  display: block;
}
.hero .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(59,30,104,0.96) 10%, rgba(59,30,104,0.82) 45%, rgba(59,30,104,0.35) 100%);
}
.hero .container { position: relative; padding-top: 3.5rem; padding-bottom: 4.5rem; }
.hero-content { max-width: 560px; }
.hero h1 { font-size: 2.4rem; font-weight: 800; }
.hero p { margin-top: 1.1rem; font-size: 1.1rem; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
}

/* ---------- Simple page header (non-homepage) ---------- */
.page-header { background: var(--purple); color: #fff; padding: 3rem 0; text-align: center; }
.page-header h1 { color: #fff; font-size: 2.2rem; font-weight: 800; }
.page-header p { margin-top: 0.75rem; color: rgba(255,255,255,0.88); max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-dark); }
.btn-white { background: #fff; color: var(--purple); }
.btn-white:hover { background: var(--cream); }
.btn-block { display: block; width: 100%; }

/* ---------- Sections & layout helpers ---------- */
.section { padding: 4rem 0; }
.section-tan { background: rgba(238,225,198,0.45); }
.section-white { background: #fff; }
.section-title { font-size: 1.9rem; font-weight: 700; text-align: center; }
.section-title.underline { position: relative; padding-bottom: 0.75rem; display: inline-block; }
.section-title.underline::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64px; height: 4px; background: var(--orange); border-radius: 4px;
}
.section-title-wrap { text-align: center; }
.section-subtitle { text-align: center; color: rgba(28,42,74,0.7); margin-top: 0.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; font-size: 0.8rem; color: var(--orange); }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.two-col { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 992px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: rgba(238,225,198,0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card .icon { width: 40px; height: 40px; fill: var(--green); margin: 0 auto; }
.card p.card-label { font-family: 'Poppins', sans-serif; font-weight: 600; margin-top: 0.75rem; }

.stat { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.stat .icon { width: 36px; height: 36px; fill: var(--green); }
.stat .stat-number { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.9rem; }
.stat .stat-number.is-text { font-size: 1.2rem; color: var(--orange); }
.stat .stat-label { color: rgba(28,42,74,0.7); font-weight: 500; }

.news-card { background: rgba(238,225,198,0.4); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s ease, transform 0.15s ease; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card img { width: 100%; height: 160px; object-fit: cover; }
.news-card .body { padding: 1.25rem; }
.news-card .date { font-size: 0.75rem; color: rgba(28,42,74,0.6); }
.news-card h3 { font-size: 1rem; font-weight: 600; margin-top: 0.3rem; }

.value-item { text-align: center; }
.value-item .icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(44,122,70,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.value-item .icon-circle svg { width: 28px; height: 28px; fill: var(--green); }
.value-item p.title { font-family: 'Poppins', sans-serif; font-weight: 600; margin-top: 0.75rem; }
.value-item p.desc { font-size: 0.9rem; color: rgba(28,42,74,0.7); margin-top: 0.25rem; }

.team-member { text-align: center; }
.team-member img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto; box-shadow: var(--shadow); }
.team-member p.name { font-family: 'Poppins', sans-serif; font-weight: 600; margin-top: 0.75rem; }
.team-member p.role { font-size: 0.9rem; color: rgba(28,42,74,0.6); }

/* ---------- Testimonial ---------- */
.testimonial { text-align: center; max-width: 720px; margin: 0 auto; }
.testimonial blockquote { color: var(--orange); font-style: italic; font-size: 1.3rem; font-weight: 500; }
.testimonial cite { display: block; margin-top: 1rem; font-family: 'Poppins', sans-serif; font-weight: 600; font-style: normal; }
.testimonial cite span { font-weight: 400; color: rgba(28,42,74,0.6); font-family: 'Inter', sans-serif; }

/* ---------- Campaign banner ---------- */
.campaign-banner {
  background: rgba(238,225,198,0.5);
  border-radius: 16px;
  padding: 2.25rem;
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
}
.campaign-banner img { border-radius: var(--radius); width: 100%; height: 220px; object-fit: cover; }
@media (min-width: 768px) { .campaign-banner { grid-template-columns: 1fr 1fr; } }

/* ---------- Story cards ---------- */
.story-card { background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border: 1px solid rgba(238,225,198,0.7); }
.story-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.story-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(59,30,104,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--purple);
}
.story-head .story-name { font-family: 'Poppins', sans-serif; font-weight: 600; }
.story-head .story-meta { font-size: 0.75rem; color: rgba(28,42,74,0.5); }
.story-card blockquote { color: var(--orange); font-style: italic; }
.story-card .story-note { font-size: 0.9rem; color: rgba(28,42,74,0.7); margin-top: 0.75rem; }

/* ---------- Role cards (get-involved) ---------- */
.role-card {
  background: rgba(238,225,198,0.4); border-radius: var(--radius);
  padding: 1.5rem; text-align: left;
}
.role-card h4 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--navy); margin-bottom: 0.5rem; }
.role-card p { font-size: 0.92rem; color: rgba(28,42,74,0.8); line-height: 1.6; }

/* ---------- Spotlight quote cards (get-involved) ---------- */
.spotlight-card {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid rgba(238,225,198,0.7);
}
.spotlight-card p { color: var(--orange); font-style: italic; line-height: 1.6; }
.spotlight-card cite { display: block; margin-top: 0.75rem; font-family: 'Poppins', sans-serif; font-weight: 600; font-style: normal; color: var(--navy); }

/* ---------- Accordion (services) ---------- */
.accordion-item { background: rgba(238,225,198,0.4); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.1rem; }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; text-align: left;
}
.accordion-trigger .icon { width: 36px; height: 36px; fill: var(--green); flex-shrink: 0; }
.accordion-trigger .label { flex: 1; }
.accordion-trigger .label .title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.05rem; }
.accordion-trigger .label .summary { font-size: 0.9rem; color: rgba(28,42,74,0.7); margin-top: 0.15rem; }
.accordion-trigger .chevron { width: 20px; height: 20px; stroke: var(--navy); fill: none; stroke-width: 2; transition: transform 0.2s ease; flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.accordion-panel { display: none; padding: 0 1.5rem 1.5rem; border-top: 1px solid rgba(238,225,198,0.9); padding-top: 1rem; color: rgba(28,42,74,0.8); }
.accordion-panel.is-open { display: block; }

/* ---------- Hotline cards (resources) ---------- */
.hotline-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid rgba(238,225,198,0.9); display: flex; flex-direction: column; }
.hotline-card .name { font-family: 'Poppins', sans-serif; font-weight: 600; }
.hotline-card .number { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--orange); margin-top: 0.5rem; }
.hotline-card .number:hover { color: var(--orange-dark); }
.hotline-card .note { font-size: 0.9rem; color: rgba(28,42,74,0.7); margin-top: 0.5rem; }
.info-note { background: rgba(238,225,198,0.5); border-radius: var(--radius); padding: 1.25rem; font-size: 0.9rem; color: rgba(28,42,74,0.8); margin-top: 1.5rem; }
.link-card { display: block; background: #fff; border-radius: var(--radius); padding: 1.5rem; transition: box-shadow 0.2s ease; }
.link-card:hover { box-shadow: var(--shadow); }
.link-card .title { font-family: 'Poppins', sans-serif; font-weight: 600; }
.link-card .desc { font-size: 0.9rem; color: rgba(28,42,74,0.7); margin-top: 0.25rem; }

/* ---------- Forms ---------- */
.form-panel { background: rgba(238,225,198,0.45); border-radius: var(--radius); padding: 1.75rem; }
.form-panel.white { background: #fff; box-shadow: var(--shadow); }
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(28,42,74,0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--orange);
}
.form-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.span-2 { grid-column: 1 / -1; }

.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .amount-grid { grid-template-columns: repeat(4, 1fr); } }
.amount-option input { position: absolute; opacity: 0; pointer-events: none; }
.amount-option span {
  display: block; text-align: center; border: 2px solid rgba(28,42,74,0.2);
  border-radius: 8px; padding: 0.65rem; font-weight: 600; cursor: pointer; transition: all 0.15s ease;
}
.amount-option input:checked + span { border-color: var(--orange); background: rgba(226,127,53,0.1); }
.form-note { font-size: 0.75rem; color: rgba(28,42,74,0.5); margin-top: 0.75rem; }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); height: 280px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(248,241,225,0.9); }
.footer-grid { display: grid; gap: 2.5rem; padding: 3rem 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h3 { color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; margin-bottom: 0.9rem; font-size: 1rem; }
.footer-brand { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.3rem; color: #fff; }
.footer-desc { font-size: 0.9rem; color: rgba(248,241,225,0.7); margin-top: 0.75rem; line-height: 1.6; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; transition: 0.2s ease; }
.footer-social a:hover { background: #fff; color: var(--navy); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.footer-links a:hover { color: var(--orange); }
.footer-list { font-size: 0.9rem; color: rgba(248,241,225,0.8); }
.footer-list li { margin-bottom: 0.5rem; }
.footer-list a { text-decoration: underline; }
.footer-list a:hover { color: var(--orange); }
.footer-address { font-size: 0.9rem; color: rgba(248,241,225,0.8); line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 1rem 1.25rem; font-size: 0.78rem; color: rgba(248,241,225,0.6); }
.footer-bottom .hotline { font-weight: 600; color: rgba(248,241,225,0.85); }

/* ---------- Quick Exit button (victim safety feature) ---------- */
#escape-btn {
  position: fixed;
  left: 1.25rem;
  bottom: 84px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 999999;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E4002B;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
#escape-icon {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
#escape-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
#escape-btn:hover,
#escape-btn:active {
  background: #b8001f;
  transform: scale(1.06);
}
@media (max-width: 360px) {
  #escape-btn {
    width: 56px;
    height: 56px;
  }
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed; bottom: 1.25rem; left: 1.25rem;
  width: 52px; height: 52px; border-radius: 50%;
  background: #158A3E; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 50;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.25rem;
  transform: translate(-50%, 120%);
  background: var(--green); color: #fff; font-weight: 600;
  padding: 0.85rem 1.4rem; border-radius: 10px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 60;
  max-width: 90vw;
  text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Article pages ---------- */
.article-hero img { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; max-height: 420px; object-fit: cover; }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { font-size: 1.4rem; margin-top: 2.25rem; margin-bottom: 0.85rem; }
.article-body p { margin-bottom: 1.1rem; line-height: 1.75; color: rgba(28,42,74,0.85); }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.5rem; }
.article-body li { margin-bottom: 0.6rem; line-height: 1.6; color: rgba(28,42,74,0.85); }
.article-meta { color: rgba(28,42,74,0.55); font-size: 0.85rem; margin-bottom: 0.5rem; }
.article-source {
  font-size: 0.85rem; color: rgba(28,42,74,0.55);
  margin-top: 2rem; border-top: 1px solid var(--tan); padding-top: 1.25rem;
}
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; color: var(--purple); }
.back-link:hover { color: var(--orange); }

/* ---------- Safety notice / TOC boxes (privacy policy, FAQ) ---------- */
.safety-notice {
  background: #fdf1f1; border-left: 4px solid #c0392b;
  padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 8px;
  font-size: 0.95rem; color: rgba(28,42,74,0.85);
}
.safety-notice strong { color: #c0392b; }
.toc-box {
  background: rgba(238,225,198,0.5); border-radius: 12px;
  padding: 1.25rem 1.5rem; margin: 1.5rem 0 2rem; font-size: 0.95rem;
}
.toc-box ul { margin: 0.6rem 0 0 1.2rem; columns: 2; column-gap: 1.5rem; }
.toc-box li { margin-bottom: 0.4rem; break-inside: avoid; }
.toc-box a { text-decoration: underline; }
.article-body h3 { font-size: 1.05rem; margin-top: 1.6rem; margin-bottom: 0.4rem; color: var(--navy); }

/* ---------- Donate page components ---------- */
.impact-strip {
  max-width: 720px; margin: 0 auto; padding: 1.5rem 1.25rem;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1.5rem; text-align: center;
}
.impact-item { display: flex; flex-direction: column; align-items: center; flex: 1 1 140px; }
.impact-icon { font-size: 1.6rem; color: var(--green); margin-bottom: 0.4rem; }
.impact-number { font-size: 2rem; font-weight: 800; color: var(--purple); line-height: 1.1; font-family: 'Poppins', sans-serif; }
.impact-label { color: rgba(28,42,74,0.7); font-size: 0.9rem; margin-top: 0.15rem; }

.donate-section { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }
.donate-impact {
  font-weight: 600; color: var(--purple); background: var(--cream);
  border-left: 3px solid var(--orange); padding: 0.75rem 1rem; border-radius: 4px; margin: 1rem 0 1.5rem;
}
.donate-card { background: #fff; border-radius: 16px; padding: 1.75rem 1.5rem; box-shadow: var(--shadow); }

.currency-toggle, .freq-toggle { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.cur-btn {
  border: 2px solid var(--tan); background: #fff; padding: 0.45rem 0.9rem; border-radius: 999px;
  font-weight: 700; color: rgba(28,42,74,0.7); cursor: pointer; font-size: 0.9rem;
}
.cur-btn.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }

.freq-toggle { background: var(--cream); padding: 0.35rem; border-radius: 999px; width: fit-content; }
.freq-btn { border: none; background: transparent; padding: 0.5rem 1.25rem; border-radius: 999px; font-weight: 600; color: rgba(28,42,74,0.7); cursor: pointer; font-size: 0.95rem; }
.freq-btn.is-active { background: var(--purple); color: #fff; }

.tier-label { font-weight: 700; color: var(--navy); margin: 0 0 0.75rem; font-size: 1.05rem; }
.tier-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1rem; }
@media (min-width: 480px) {
  .tier-grid { grid-template-columns: 1fr 1fr; }
}
.tier-btn {
  text-align: left; border: 2px solid var(--tan); background: #fff; border-radius: 12px;
  padding: 0.85rem 0.9rem; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.tier-btn:hover { border-color: var(--orange); }
.tier-btn.is-selected { border-color: var(--purple); background: var(--cream); }
.tier-amount { display: block; font-weight: 700; color: var(--purple); font-size: 1.1rem; font-family: 'Poppins', sans-serif; }
.tier-desc { display: block; font-size: 0.85rem; color: rgba(28,42,74,0.7); margin-top: 0.2rem; }
.tier-btn--custom .tier-amount { color: var(--orange); }

.custom-amount-row { display: flex; align-items: center; border: 2px solid var(--tan); border-radius: 10px; padding: 0.6rem 0.9rem; margin-bottom: 1rem; }
.custom-currency { font-weight: 700; color: var(--purple); margin-right: 0.4rem; }
.custom-amount-row input { border: none; outline: none; font-size: 1.05rem; width: 100%; font-family: inherit; }

.pay-btn {
  display: block; width: 100%; text-align: center; font-weight: 700; font-size: 1.05rem;
  padding: 1rem; border-radius: 12px; border: none; cursor: pointer; margin-bottom: 0.85rem; color: #fff;
  text-decoration: none;
}
.pay-btn--paystack { background: var(--purple); }
.pay-btn--paystack:hover { background: var(--purple-dark); }
.pay-btn--flutterwave { background: var(--orange); }
.pay-btn--flutterwave:hover { background: var(--orange-dark); }

.donate-trust { font-size: 0.85rem; color: rgba(28,42,74,0.7); text-align: center; margin-top: 0.75rem; line-height: 1.5; }
.selected-amount-note {
  text-align: center; font-weight: 600; color: var(--green); background: rgba(44,122,70,0.08);
  border-radius: 8px; padding: 0.6rem 1rem; margin-bottom: 1rem; font-size: 0.9rem;
}

.project-card { margin-top: 2rem; background: var(--purple); color: #fff; border-radius: 16px; padding: 1.75rem 1.5rem; }
.project-eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; font-weight: 700; color: #d4c7ea; margin-bottom: 0.5rem; }
.project-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.6rem; font-family: 'Poppins', sans-serif; }
.project-copy { color: #e5dcf5; line-height: 1.6; margin-bottom: 1rem; }
.project-link { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.muted { color: rgba(28,42,74,0.7); }
.small { font-size: 0.9rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.italic-link { text-decoration: underline; }
