
/* =========================================================
   Global Impact Corps — Professional UI Template
   Matches provided homepage mock layout (desktop-first)
   ========================================================= */

/* Font */
:root{
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Palette (tuned to screenshot) */
  --nav-900: #1f3553;
  --nav-800: #2b466a;
  --nav-700: #355679;

  --blue-900:#0f2741;
  --blue-800:#173a5e;
  --blue-700:#214e78;
  --blue-600:#2b5f8a;
  --blue-500:#3b78a7;

  --teal-600:#1aa7bb;
  --teal-500:#22b8c7;
  --teal-400:#4ed1dd;

  --orange-500:#ff8a3d;
  --red-500:#ff4d5a;
  --indigo-500:#3562ff;

  --text:#16324f;
  --muted:#5a738f;
  --muted-2:#7b8fa7;

  --card: rgba(255,255,255,.92);
  --card-2: rgba(255,255,255,.86);
  --stroke: rgba(31,53,83,.12);

  --shadow: 0 10px 26px rgba(11,34,63,.15);
  --shadow-soft: 0 8px 18px rgba(11,34,63,.12);

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;

  /* Wider, more premium desktop width */
  --container: 1520px;

  /* Subtle animated noise texture (SVG data-uri) */
  --noise-svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='220'%20height='220'%20viewBox='0%200%20220%20220'%3E%0A%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.75'%20numOctaves='3'%20stitchTiles='stitch'/%3E%3C/filter%3E%0A%3Crect%20width='220'%20height='220'%20filter='url(%23n)'%20opacity='.35'/%3E%3C/svg%3E");

}

/* Base */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);

  /* Background tuned closer to the watercolor-map palette (cooler + softer) */
  background:
    radial-gradient(1100px 560px at 52% 8%, rgba(120,190,230,.42), transparent 62%),
    radial-gradient(900px 520px at 18% 26%, rgba(120,190,230,.22), transparent 60%),
    radial-gradient(1000px 680px at 70% 88%, rgba(120,190,230,.16), transparent 62%),
    linear-gradient(180deg, #f9fcff 0%, #eef7ff 42%, #f9fcff 100%);
  overflow-x:hidden;
}

/* subtle dot texture overlay */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.14;
  background-image:
    radial-gradient(rgba(20,60,100,.20) 1px, transparent 1px);
  background-size: 18px 18px;
  mix-blend-mode: multiply;
}

/* Container */
.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* Links */
a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header{
  position: sticky;
  top:0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(31,53,83,.95), rgba(43,70,106,.92));
  box-shadow: 0 8px 18px rgba(9,26,47,.18);
  backdrop-filter: blur(10px);
}

.navbar{
  height: 66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
}


.brand-logo{
  height: 30px;
  width: auto;
  max-width: 240px;
  display:block;
  object-fit: contain;
}

/* Slightly smaller in the mobile drawer */
.mobile-brand .brand-logo{
  height: 28px;
  max-width: 230px;
}

.brand-mark{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 55%),
              linear-gradient(180deg, rgba(78,209,221,.95), rgba(34,184,199,.75));
  box-shadow: 0 8px 18px rgba(34,184,199,.22);
  border: 1px solid rgba(255,255,255,.18);
}
.brand-mark svg{ width: 18px; height: 18px; opacity:.95; }
.brand-name{
  font-size: 16px;
  letter-spacing: .2px;
}

.navlinks{
  display:flex;
  align-items:center;
  gap: 18px;
}
.navlinks a{
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.86);
  opacity: .92;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .15s ease, opacity .15s ease;
}
.navlinks a:hover{
  background: rgba(255,255,255,.08);
  opacity: 1;
}

.nav-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Buttons */
.btn{
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  user-select:none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active{ transform: translateY(0px); }
.btn-primary{
  color:#fff;
  border-color: rgba(34,184,199,.55);
  background: linear-gradient(180deg, rgba(34,184,199,.95), rgba(26,137,186,.95));
  box-shadow: 0 10px 18px rgba(26,137,186,.22);
}
.btn-primary:hover{ transform: translateY(-1px); }
.btn-outline{
  /* Default outline button tuned for light sections (improves contrast) */
  color: var(--blue-800);
  border-color: rgba(31,53,83,.16);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 18px rgba(10,30,55,.10);
}
.btn-outline:hover{
  background: rgba(255,255,255,.90);
  transform: translateY(-1px);
}

/* Keep outline buttons white inside dark navigation surfaces */
.site-header .btn-outline,
.mobile-drawer .btn-outline{
  color:#fff;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  box-shadow: none;
}
.site-header .btn-outline:hover,
.mobile-drawer .btn-outline:hover{
  background: rgba(255,255,255,.14);
}
.btn-light{
  color: var(--blue-800);
  border-color: rgba(31,53,83,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.86));
  box-shadow: 0 10px 18px rgba(10,30,55,.12);
}
.btn-light:hover{ transform: translateY(-1px); }

/* =========================================================
   Hero
   ========================================================= */

@keyframes gicNoiseDriftHero{
  from{ background-position: 0 0, 20% 45%, 85% 25%, 0 0; }
  to{ background-position: 260px 160px, 20% 45%, 85% 25%, 0 0; }
}
@keyframes gicNoiseDrift{
  from{ background-position: 0 0, center; }
  to{ background-position: 240px 140px, center; }
}

.hero{
  position: relative;
  padding: 28px 0 20px;
}

/* Watercolor world map wash behind the hero (matches the render) */
.hero::after{
  content:"";
  position:absolute;
  inset: -24px -36px;
  pointer-events:none;
  background-image: url("../img/world-map-watercolor-hq.webp");
  background-size: cover;
  background-position: center;
  opacity: .36;
  filter: saturate(1.08) contrast(.97) brightness(1.01);
  z-index: 0;
}

/* soft wave + subtle animated noise layer */
.hero::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background:
    var(--noise-svg),
    radial-gradient(800px 240px at 20% 45%, rgba(65,150,210,.40), transparent 60%),
    radial-gradient(900px 260px at 85% 25%, rgba(65,150,210,.28), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.25));
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 240px 240px, auto, auto, auto;
  background-position: 0 0, 20% 45%, 85% 25%, 0 0;
  animation: gicNoiseDriftHero 24s linear infinite;
  opacity:.84;
  z-index: 1;
}

.hero-grid{
  position:relative;
  z-index: 2;
  display:grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
  align-items: stretch;
}

.hero-left{
  padding-top: 22px;
}
.hero-title{
  margin:0;
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: -0.6px;
  color: var(--blue-600);
}
.hero-title strong{
  color: var(--blue-800);
}
.hero-subtitle{
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
  max-width: 64ch;
}

.hero-cta{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-cta .btn{
  min-width: 150px;
  border-radius: 6px;
  padding: 11px 18px;
}

/* Where we work mini-card */
.work-card{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(31,53,83,.12);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 12px;
  backdrop-filter: blur(6px);
}
.work-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.work-title{
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-900);
}
.work-filters{
  display:flex;
  gap: 10px;
  align-items:center;
}
.chip{
  border: 1px solid rgba(31,53,83,.14);
  background: rgba(255,255,255,.72);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--blue-800);
  font-weight: 600;
  display:inline-flex;
  gap: 8px;
  align-items:center;
  cursor:pointer;
  transition: background .12s ease, transform .12s ease, border-color .12s ease;
}
.chip:hover{ transform: translateY(-1px); }
.chip.active{
  border-color: rgba(34,184,199,.55);
  background: rgba(34,184,199,.12);
}
.chip svg{ width: 14px; height: 14px; opacity:.9; }

.stats-row{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.stat{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(31,53,83,.10);
  border-radius: 10px;
  padding: 10px 10px;
  box-shadow: 0 6px 14px rgba(10,30,55,.08);
  text-align:center;
}
.stat-top{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 8px;
}
.stat-top svg{ width: 18px; height: 18px; }
.stat-value{
  font-weight: 800;
  color: var(--blue-800);
  font-size: 14px;
  line-height: 1.1;
}
.stat-label{
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--muted-2);
  font-weight: 600;
}

/* =========================================================
   Map card (Leaflet)
   ========================================================= */
.hero-map{
  position:relative;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(31,53,83,.12);
  background: linear-gradient(180deg, rgba(170,220,245,.32), rgba(255,255,255,.42));
  box-shadow: var(--shadow);
}

/* subtle texture in map container */
.hero-map::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(600px 260px at 65% 18%, rgba(255,255,255,.55), transparent 62%),
    radial-gradient(900px 420px at 70% 80%, rgba(50,120,170,.18), transparent 60%);
  opacity:.75;
  z-index: 1;
}


/* Blue tint overlay moved onto the Leaflet container
   so pins/tooltips remain crisp above it */
.hero-map::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: none;
  opacity: 0;
  z-index: 0;
}

/* Home hero: hide zoom controls for a cleaner "mock" look */
.hero-map--home .leaflet-control-zoom{ display:none; }

/* Home hero map: blend into the hero background like the latest render */
.hero-map--home{
  border: none;
  box-shadow: none;
  background: transparent;
}
.hero-map--home::before{ opacity: 0; }
.hero-map--home .leaflet-control-attribution{ display:none; }

/* Fallback world background (shows instantly while Leaflet initializes) */
.hero-map--home #workMap{
  background-image: url("../img/world-map-watercolor-hq.webp");
  background-size: cover;
  background-position: center;
}

/* Slight tint to match the homepage palette (soft left-to-right wash like the render) */
.hero-map--home #workMap::after{
  opacity: .18;
  background: linear-gradient(90deg, rgba(255,255,255,.40) 0%, rgba(255,255,255,.10) 42%, rgba(120,200,235,.18) 100%);
}

/* Color-tune the image overlay itself (watercolor base layer) */
.gic-world-overlay{
  filter: saturate(1.16) contrast(1.02) brightness(1.03);
}

/* Toolbar overlay */
.map-toolbar{
  position:absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

/* Match the render: toolbar centered within the hero map */
.hero-map--home .map-toolbar{
  top: 18px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(820px, calc(100% - 44px));
  justify-content:flex-start;
}
.hero-map--home .map-search{ flex: 1 1 360px; border-radius: 999px; padding: 10px 14px; }
.hero-map--home .map-tags{ flex: 0 0 auto; }
.hero-map--home .map-tags .chip{ border-radius: 999px; }
.map-search{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(31,53,83,.12);
  box-shadow: 0 8px 14px rgba(10,30,55,.10);
  min-width: 260px;
}
.map-search svg{ width: 16px; height: 16px; opacity:.75; }
.map-search input{
  border:none;
  outline:none;
  background: transparent;
  font-family: var(--font);
  font-weight: 600;
  font-size: 11px;
  width: 100%;
  color: var(--blue-900);
}
.map-search input::placeholder{ color: rgba(22,50,79,.55); }

.map-tags{
  display:flex;
  gap: 10px;
  align-items:center;
}
.map-tags .chip{
  background: rgba(255,255,255,.88);
}

/* Leaflet container */
#workMap,
#projectsMap{
  width: 100%;
  height: 100%;
  min-height: 340px;
  position: relative;
  z-index: 2;
}

#workMap::after,
#projectsMap::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(120,200,235,.22), rgba(35,120,175,.16));
  opacity:.55;
  z-index: 1;
}


/* Image-based map stage (no Leaflet) */
.gic-image-map{
  overflow:hidden;
}
.gic-image-map--active{
  /* Prevent the container's "fallback" background map from bleeding through
     during zoom/pan or while tiles decode. The plane element provides the
     correct base-layer background instead. */
  background-image: none !important;
}
.gic-image-map__stage{
  position:absolute;
  inset:0;
  z-index:2;
  transform-origin: 0 0;
  transform: translate3d(0,0,0) scale(1);
  will-change: transform;
  user-select:none;
}
.gic-image-map__stage.is-animating{
  transition: transform .24s ease;
}
.gic-image-map__stage.is-dragging{
  cursor: grabbing;
}

/* High-quality tiled map plane
   - Avoids large single-texture downscaling on mobile GPUs
   - Keeps the watercolor map crisp at deep zoom (up to 10x)
*/
.gic-image-map__plane{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
  pointer-events:none;
  transform: translate3d(0,0,0);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
}
.gic-image-map__tile{
  position:absolute;
  /* Slight overlap prevents hairline seams at the tile boundaries when
     scaled on mobile GPUs (especially noticeable at deep zoom). */
  width:50.2%;
  height:50.2%;
  object-fit: cover;
  object-position: center;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
  image-rendering:auto;
  backface-visibility:hidden;
  transform: translate3d(0,0,0);
}
.gic-image-map__tile--00{ left:0; top:0; }
.gic-image-map__tile--01{ left:49.9%; top:0; }
.gic-image-map__tile--10{ left:0; top:49.9%; }
.gic-image-map__tile--11{ left:49.9%; top:49.9%; }

.gic-image-map__pins{
  position:absolute;
  inset:0;
  z-index:3;
  /* Allow drag-pan on the basemap.
     The pins layer covers the full map; if it intercepts pointer events,
     desktop drag-pan stops working. We disable hit-testing on the layer
     and re-enable it on individual pin buttons. */
  pointer-events:none;
}
.gic-image-map{
  /* JS updates this as the user zooms (1.000 -> ~0.580 at max zoom).
     Used to reduce marker clutter while keeping the basemap readable. */
  --gic-pin-scale: 1;
}
.gic-pin-btn{
  position:absolute;
  width:24px;
  height:34px;
  padding:0;
  margin:0;
  border:none;
  background: transparent;
  cursor:pointer;
  z-index:5;
  /* Pins are positioned in container coordinates (so they don't drift while
     the stage scales). The visible pin graphic is scaled independently via
     --gic-pin-scale to reduce clutter at deep zoom. */
  transform-origin: 50% 88%;
  transform: translate3d(-50%, -88%, 0);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  will-change: transform;
  pointer-events:auto;
}
.gic-pin-btn:focus-visible{
  outline: 3px solid rgba(255,255,255,.75);
  outline-offset: 2px;
  border-radius: 10px;
}
.gic-pin-btn .map-pin{
  margin-top: 2px;
  /* Scale around the pin tip so it stays perfectly registered to the map
     coordinate even when shrinking at deep zoom. */
  transform-origin: 50% 155%;
  transform: translateZ(0) scale(var(--gic-pin-scale, 1));
  will-change: transform;
}



/* Popover card */
.project-popover{
  position:absolute;
  top: 64px;
  right: 14px;
  z-index: 6;
  width: 340px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(31,53,83,.14);
  box-shadow: 0 12px 26px rgba(10,30,55,.18);
  transition: left .18s ease, top .18s ease;
  will-change: left, top;
  overflow:hidden;
}

/* Render-style sizing/placement for the homepage popover */
.hero-map--home .project-popover{
  top: 76px;
  right: 22px;
  width: 410px;
}
.hero-map--home .popover-inner{ grid-template-columns: 150px 1fr; }
.popover-inner{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
}
.popover-img{
  height: 100%;
  min-height: 98px;
  background: #e7f3ff;
}
.popover-img img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.popover-body{
  padding: 10px 12px 12px;
}
.popover-title{
  margin:0;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.25;
}
.popover-meta{
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.popover-desc{
  margin: 6px 0 8px;
  color: rgba(22,50,79,.78);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}
.progress-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}
.progress{
  height: 8px;
  border-radius: 999px;
  background: rgba(22,50,79,.10);
  overflow:hidden;
  border: 1px solid rgba(22,50,79,.10);
}
.progress > span{
  display:block;
  height:100%;
  width: 72%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34,184,199,.95), rgba(26,137,186,.95));
}
.popover-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 10px;
}
.popover-actions .btn{
  padding: 9px 12px;
  border-radius: 8px;
  min-width: 120px;
}

/* Leaflet styling to match */
.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom{
  z-index: 7;
}
.leaflet-control-attribution{
  font-size: 9px;
  opacity: .75;
}
.leaflet-control-zoom{
  border-radius: 10px;
  overflow:hidden;
  box-shadow: 0 10px 18px rgba(10,30,55,.12);
}
.leaflet-control-zoom a{
  background: rgba(255,255,255,.92) !important;
  color: var(--blue-900) !important;
}

/* Custom pin marker */
.map-pin{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 18px rgba(10,30,55,.22);
  position: relative;
}

/* Inner “hole/ring” like the render pins */
.map-pin::before{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  border: 2px solid rgba(10,30,55,.08);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.map-pin::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -2px);
  width: 9px;
  height: 9px;
  background: inherit;
  border-radius: 2px;
  rotate: 45deg;
  border-left: 2px solid rgba(255,255,255,.92);
  border-bottom: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 18px rgba(10,30,55,.22);
}



/* Hover preview pin */
.map-pin.hovered{
  transform-origin: 50% 155%;
  transform: translateY(-2px) scale(calc(var(--gic-pin-scale, 1) * 1.16));
  box-shadow: 0 18px 28px rgba(10,30,55,.30);
  outline: 3px solid rgba(255,255,255,.70);
  outline-offset: 1px;
}
.map-pin.selected.hovered{
  transform-origin: 50% 155%;
  transform: translateY(-2px) scale(calc(var(--gic-pin-scale, 1) * 1.18));
}

/* Marker clusters (Leaflet.markercluster) — keeps the map readable at world zoom */
.gic-cluster-icon{
  background: transparent !important;
  border: none !important;
}
.gic-cluster{
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 12px;
  color: rgba(255,255,255,.96);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), transparent 58%),
    linear-gradient(180deg, var(--cluster, rgba(26,167,187,.95)), rgba(15,39,65,.92));
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 16px 28px rgba(10,30,55,.26);
  text-shadow: 0 10px 18px rgba(0,0,0,.28);
  transition: transform .12s ease, box-shadow .12s ease;
}
.gic-cluster::after{
  content:"";
  position:absolute;
  inset: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  pointer-events:none;
}
.leaflet-marker-icon.gic-cluster-icon:hover .gic-cluster{
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 20px 36px rgba(10,30,55,.30);
}
/* Leaflet tooltip (project hover details) */
.leaflet-tooltip.gic-tooltip{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(31,53,83,.16);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(10,30,55,.18);
  color: var(--blue-900);
  font-family: var(--font);
  padding: 8px 10px;
}
.leaflet-tooltip.gic-tooltip .gic-tooltip-title{
  font-weight: 900;
  font-size: 11px;
  line-height: 1.2;
}
.leaflet-tooltip.gic-tooltip .gic-tooltip-meta{
  margin-top: 2px;
  font-weight: 700;
  font-size: 10px;
  color: rgba(22,50,79,.62);
}
.leaflet-tooltip.gic-tooltip.leaflet-tooltip-top:before{ border-top-color: rgba(255,255,255,.95); }
.leaflet-tooltip.gic-tooltip.leaflet-tooltip-bottom:before{ border-bottom-color: rgba(255,255,255,.95); }
.leaflet-tooltip.gic-tooltip.leaflet-tooltip-left:before{ border-left-color: rgba(255,255,255,.95); }
.leaflet-tooltip.gic-tooltip.leaflet-tooltip-right:before{ border-right-color: rgba(255,255,255,.95); }


/* =========================================================
   Main content section (Featured + Right rail)
   ========================================================= */
.home-main{
  padding: 18px 0 34px;
}

/* Home — mission intro band (fits new GIC purpose copy) */
.home-intro{ margin: 0 0 18px; }
.home-intro-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  /* Stretch columns so the section reads as a single cohesive block */
  align-items: stretch;
}
.home-intro-title{
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
  color: var(--blue-900);
  line-height: 1.15;
  letter-spacing: .2px;
}
.home-intro-sub{
  margin: 0;
  font-size: 12.6px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 74ch;
}
@media (max-width: 980px){
  .home-intro-grid{ grid-template-columns: 1fr; }
}

.home-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;

  /* Visually group the two columns so unequal heights don't create “holes” */
  background:
    radial-gradient(520px 240px at 10% 18%, rgba(34,184,199,.10), transparent 60%),
    radial-gradient(520px 240px at 88% 22%, rgba(53,98,255,.08), transparent 62%),
    rgba(255,255,255,.20);
  border: 1px solid rgba(31,53,83,.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 34px rgba(10,30,55,.07);
  backdrop-filter: blur(7px);
}

/* Ensure column wrappers in the home grid behave like vertical stacks */
.home-grid > div{
  display:flex;
  flex-direction: column;
  min-height: 0;
}

.section-title{
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: .2px;
}

/* Program grid */
.program-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card{
  background: var(--card);
  border: 1px solid rgba(31,53,83,.12);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(11,34,63,.18);
  border-color: rgba(31,53,83,.16);
}

.program-feature{
  padding: 14px 14px 14px;
  background: linear-gradient(180deg, rgba(45,120,175,.92), rgba(27,90,150,.88));
  color: #fff;
  border-color: rgba(20,60,100,.12);
}
.program-feature h3{
  margin:0 0 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}
.program-feature p{
  margin:0 0 10px;
  font-size: 10px;
  color: rgba(255,255,255,.88);
  line-height: 1.35;
}
.program-feature .btn{
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.20);
  color: #fff;
  box-shadow: none;
}
.program-feature .btn:hover{ background: rgba(255,255,255,.22); }

.program-image{
  overflow:hidden;
  position:relative;
  display:block;
  min-height: 140px;
}
.program-image img{
  width:100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
}
.program-image::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(12,35,60,.05) 0%, rgba(12,35,60,.65) 100%);
}
.program-caption{
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 10.5px;
  z-index: 2;
  text-shadow: 0 6px 16px rgba(0,0,0,.35);
}

/* Right column top area */
.right-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.legend-chips{
  display:flex;
  gap: 10px;
  align-items:center;
}
.check-chip{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.86);
  font-size: 10px;
  font-weight: 700;
  color: var(--blue-800);
  box-shadow: 0 8px 14px rgba(10,30,55,.08);
}
.check-chip input{ width: 14px; height: 14px; accent-color: var(--teal-600); }

/* Right grid of three cards */
.right-cards{
  display:grid;
  grid-template-columns: 1.05fr 1.10fr .85fr;
  gap: 14px;
  align-items: stretch;
}

.card-pad{ padding: 12px; }
.card-head{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--blue-900);
  font-weight: 800;
  font-size: 11px;
}
.card-head svg{ width: 14px; height: 14px; opacity:.85; }

.event-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.event{
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(31,53,83,.10);
}
.event:last-child{ border-bottom:none; padding-bottom: 0; }
.event .when{
  font-size: 9px;
  font-weight: 700;
  color: var(--muted-2);
}
.event .name{
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--blue-900);
}
.event .meta{
  margin-top: 2px;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
}

.metric-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.metric{
  border: 1px solid rgba(31,53,83,.10);
  background: rgba(255,255,255,.80);
  border-radius: 10px;
  padding: 10px;
}
.metric .label{
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
}
.metric .value{
  margin-top: 4px;
  font-size: 14px;
  font-weight: 900;
  color: var(--blue-800);
}
.metric .sub{
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted-2);
}

/* Donut chart */
.chart-wrap{
  height: 100%;
  display:flex;
  flex-direction:column;
}
.chart-canvas{
  position:relative;
  flex:1;
  min-height: 160px;
}

/* Bottom right: Partners + Financial Transparency */
.right-bottom{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
}

.partner-logos{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 12px;
}
.logo-pill{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.82);
  font-size: 9px;
  font-weight: 800;
  color: var(--blue-800);
}
.logo-pill svg{ width: 16px; height: 16px; opacity:.8; }

.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.input{
  width:100%;
  border: 1px solid rgba(31,53,83,.14);
  border-radius: 8px;
  padding: 9px 10px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  outline:none;
  background: rgba(255,255,255,.88);
}
.input::placeholder{ color: rgba(22,50,79,.50); }
.form-actions{
  margin-top: 10px;
}
.form-actions .btn{
  width:100%;
  border-radius: 8px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  margin-top: 28px;
  background: linear-gradient(180deg, rgba(31,53,83,.08), rgba(31,53,83,.02));
  border-top: 1px solid rgba(31,53,83,.10);
  padding: 26px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 18px;
}
.footer-title{
  font-size: 12px;
  font-weight: 900;
  color: var(--blue-900);
  margin:0 0 10px;
}
.footer-links a{
  display:block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
}
.footer-links a:hover{ color: var(--blue-800); }
.footer-note{
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
}
.subfooter{
  margin-top: 16px;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  color: rgba(22,50,79,.60);
  font-size: 10px;
  font-weight: 600;
}

/* =========================================================
   Inner pages
   ========================================================= */
.page-hero{
  position: relative;
  overflow: hidden;
  padding: 26px 0 18px;
}
.page-hero::before{
  content:"";
  position:absolute;
  inset:-70px 0 -50px;
  pointer-events:none;
  opacity:.22;
  background-image:
    var(--noise-svg),
    url("../img/world-map-watercolor-hq.webp");
  background-size: 260px 260px, cover;
  background-repeat: repeat, no-repeat;
  background-position: 0 0, center;
  filter: saturate(1.04) contrast(1.01);
  animation: gicNoiseDrift 30s linear infinite;
}
.page-hero > .container{
  position: relative;
  z-index: 2;
}
.page-head{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(31,53,83,.12);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.page-kicker{
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.page-title{
  margin: 6px 0 6px;
  font-size: 28px;
  font-weight: 900;
  color: var(--blue-800);
  letter-spacing: -0.4px;
}
.page-subtitle{
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.65;
  max-width: 76ch;
}
.page-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  padding: 18px 0 10px;

  /* Backdrop panel to prevent “gaps” when side content is shorter */
  background:
    radial-gradient(520px 240px at 12% 18%, rgba(34,184,199,.10), transparent 62%),
    radial-gradient(520px 240px at 86% 22%, rgba(53,98,255,.07), transparent 64%),
    rgba(255,255,255,.16);
  border: 1px solid rgba(31,53,83,.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 14px 30px rgba(10,30,55,.06);
  backdrop-filter: blur(7px);
}
.page-card{
  padding: 16px;
}
.page-card h2{
  margin:0 0 10px;
  font-size: 13px;
  font-weight: 900;
  color: var(--blue-900);
}
.page-card p{
  margin:0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* Donation layout */
.donation-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  padding: 18px 0 10px;
}
.amount-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.amount-btn{
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(31,53,83,.14);
  background: rgba(255,255,255,.86);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  color: var(--blue-800);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.amount-btn:hover{ transform: translateY(-1px); }
.amount-btn.active{
  border-color: rgba(34,184,199,.55);
  background: rgba(34,184,199,.12);
}

/* Project list */
.project-list{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: 10px;
}
.project-row{
  display:grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items:center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 18px rgba(10,30,55,.08);
}
.project-row img{
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
}
.project-row h3{
  margin:0;
  font-size: 12px;
  font-weight: 900;
  color: var(--blue-900);
}
.project-row .meta{
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}
.project-row .small{
  margin-top: 6px;
  font-size: 10px;
  color: rgba(22,50,79,.78);
  font-weight: 600;
}


/* =========================================================
   About Page Enhancements (polished + image-forward)
   ========================================================= */
.about-hero{
  position: relative;
  padding: 26px 0 10px;
}
.about-hero::before{
  content:"";
  position:absolute;
  inset:-60px 0 -40px;
  pointer-events:none;
  opacity:.55;
  background-image: url("../img/world-map-watercolor-hq.webp");
  background-size: cover;
  background-repeat:no-repeat;
  background-position: center;
  filter: saturate(1.05) contrast(1.02);
}

.about-hero-grid{
  position: relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  /* Match media height to adjacent content for a more fluent layout */
  align-items: stretch;
}

.about-title{
  font-size: 34px;
  line-height: 1.08;
}
.about-subtitle{
  font-size: 12.5px;
  max-width: 68ch;
}

.about-metrics{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.about-metric{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(31,53,83,.12);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 12px 12px;
}
.about-metric .kpi{
  font-weight: 900;
  font-size: 16px;
  color: var(--blue-800);
  letter-spacing: -0.2px;
}
.about-metric .label{
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}

.about-hero-note{
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(22,50,79,.72);
}

.about-hero-media{
  padding: 0;
  overflow:hidden;
  position: relative;
  height: 100%;
  min-height: 0;
  align-self: stretch;
}
.about-hero-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
}
.about-hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(12,35,60,.02) 0%, rgba(12,35,60,.58) 100%);
}
.about-hero-caption{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color:#fff;
  z-index: 2;
}
.about-hero-caption .cap-title{
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .2px;
}
.about-hero-caption .cap-sub{
  margin-top: 4px;
  font-weight: 700;
  font-size: 11px;
  color: rgba(255,255,255,.86);
}

.about-section{
  padding: 10px 0 6px;
}
.about-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin: 4px 0 12px;
}
.about-lead{
  margin:0;
  max-width: 90ch;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.7;
}

.about-grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.about-grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  /* Keep images/cards the same height as the adjacent column */
  align-items: stretch;
}
.about-card{
  padding: 16px;
}
.about-card h3{
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--blue-900);
}
.about-card p{
  margin:0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
}
.about-card-icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.70);
  margin-bottom: 10px;
}
.about-card-icon svg{
  width: 20px;
  height: 20px;
}

.muted-small{
  font-size: 10.5px !important;
  color: rgba(22,50,79,.65) !important;
  font-weight: 700;
}

/* Values chips (reuse .chip but slightly tighter) */
.value-chips{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
}

/* Step list */
.step-list{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}
.step{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(31,53,83,.12);
}
.step-num{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  background: linear-gradient(180deg, rgba(34,184,199,1), rgba(27,135,170,1));
  box-shadow: 0 10px 20px rgba(34,184,199,.20);
  flex: 0 0 auto;
}
.step-body strong{
  display:block;
  font-size: 11.5px;
  color: var(--blue-900);
}
.step-body div{
  margin-top: 2px;
  font-size: 10.8px;
  color: rgba(22,50,79,.76);
  font-weight: 600;
  line-height: 1.55;
}

.about-note{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.68);
  color: rgba(22,50,79,.70);
  font-size: 10.8px;
  font-weight: 700;
  line-height: 1.65;
}

/* Photos */
.about-photo{
  padding: 0;
  overflow:hidden;
  position: relative;
  height: 100%;
  min-height: 0;
  align-self: stretch;
}
.about-photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.about-photo::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(12,35,60,.05) 0%, rgba(12,35,60,.55) 100%);
}
.photo-caption{
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  color: rgba(255,255,255,.94);
  font-weight: 900;
  font-size: 12px;
  letter-spacing:.2px;
}

/* Mini cards */
.about-mini{
  padding: 14px;
}
.about-mini h3{
  margin:0 0 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--blue-900);
}
.about-mini p{
  margin:0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

/* Timeline */
.timeline{
  display:grid;
  gap: 10px;
  margin-top: 4px;
}
.timeline-item{
  position: relative;
  padding-left: 18px;
  border-left: 2px solid rgba(34,184,199,.35);
}
.timeline-item::before{
  content:"";
  position:absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(34,184,199,1);
  box-shadow: 0 10px 18px rgba(34,184,199,.20);
}
.time-year{
  font-weight: 900;
  font-size: 11px;
  color: var(--blue-800);
}
.time-text{
  margin-top: 3px;
  font-size: 11px;
  color: rgba(22,50,79,.76);
  font-weight: 650;
  line-height: 1.55;
}
.time-text strong{
  color: var(--blue-900);
}

/* Team */
.team-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.team-card{
  padding: 14px;
}
.team-avatar{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(31,53,83,.12);
  box-shadow: var(--shadow-soft);
  display:block;
  margin-bottom: 10px;
}
.team-name{
  font-weight: 900;
  font-size: 12px;
  color: var(--blue-900);
}
.team-role{
  margin-top: 2px;
  font-weight: 800;
  font-size: 10.8px;
  color: var(--muted);
}
.team-bio{
  margin-top: 8px;
  font-size: 10.8px;
  color: rgba(22,50,79,.72);
  font-weight: 650;
  line-height: 1.6;
}

/* Quotes */
.quote-card{
  padding: 14px;
}
.quote-card .quote{
  margin:0;
  color: rgba(22,50,79,.82);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.75;
}
.quote-card .quote-by{
  margin-top: 10px;
  color: var(--muted);
  font-weight: 900;
  font-size: 10.8px;
}

/* CTA band */
.about-cta{
  margin: 10px 0 24px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(31,53,83,.12);
  background:
    radial-gradient(640px 220px at 20% 30%, rgba(34,184,199,.22), transparent 62%),
    radial-gradient(760px 320px at 86% 30%, rgba(53,98,255,.18), transparent 60%),
    rgba(255,255,255,.80);
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.cta-title{
  margin:0 0 6px;
  font-size: 16px;
  font-weight: 900;
  color: var(--blue-900);
}
.cta-text{
  margin:0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.6;
}
.cta-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}





/* Founder letter — readable long-form typography */
.founder-letter{
  padding: 18px;
}

.founder-letter .prose p{
  margin: 0 0 10px;
  line-height: 1.75;
  font-size: 13px;
}
.founder-letter .prose p:last-of-type{
  margin-bottom: 0;
}


.founder-letter .prose{
  max-width: 86ch;
  margin: 0 auto;
}
.prose p{
  margin: 0 0 12px;
  font-size: 12.7px;
  line-height: 1.9;
  color: var(--text);
}
.prose p strong{
  color: var(--blue-900);
}
.prose .signature{
  margin-top: 16px;
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: .2px;
}

/* Founder statement — tighter letter rhythm */
.founder-letter .prose p{
  margin: 0 0 10px;
  line-height: 1.72;
}
.founder-letter .prose .signature{
  margin-top: 14px;
  line-height: 1.35;
}
.prose .signature .sig-title{
  font-weight: 750;
  color: var(--blue-800);
}

/* Founder statement — header + lists */
.founder-letter .letter-kicker{
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-900);
}
.founder-letter .letter-subkicker{
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--blue-800);
  opacity: .92;
}
.founder-letter .prose ul{
  margin: 6px 0 12px 18px;
  padding: 0;
}
.founder-letter .prose li{
  margin: 0 0 6px;
  line-height: 1.68;
  font-size: 12.7px;
  color: var(--text);
}
.founder-letter .prose li::marker{
  color: rgba(26,167,187,.95);
}
.founder-letter .prose .vision-line{
  margin-top: 10px;
  font-weight: 650;
}
.founder-letter .prose .pull-lines{
  margin: 12px 0 12px;
  padding: 10px 12px;
  background: rgba(26,167,187,.08);
  border: 1px solid rgba(26,167,187,.18);
  border-left: 3px solid rgba(26,167,187,.65);
  border-radius: 12px;
}
.founder-letter .prose .closing-lines{
  margin-top: 10px;
  font-weight: 750;
  color: var(--blue-900);
}
.founder-letter .prose .signature-sep{
  margin: 12px 0 8px;
  font-weight: 900;
  color: rgba(22,50,79,.75);
  letter-spacing: .2px;
}

@media (max-width: 720px){
  .founder-letter{ padding: 14px; }
  .prose p{ font-size: 12.4px; }
}


/* About — responsive */
@media (max-width: 980px){
  .about-hero-grid{ grid-template-columns: 1fr; }
  .about-metrics{ grid-template-columns: repeat(2, 1fr); }
  .about-grid-2{ grid-template-columns: 1fr; }
  .about-grid-3{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
  /* When stacked, keep media visually consistent and prevent percentage-height quirks */
  .about-hero-media{ height:auto; aspect-ratio: 16 / 11; max-height: 440px; }
  .about-photo{ height:auto; aspect-ratio: 16 / 11; max-height: 380px; }
}
@media (max-width: 560px){
  .about-metrics{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr; }
}
/* =========================================================
   Donate Page Enhancements (polished + image-forward)
   ========================================================= */

.donate-hero{
  position: relative;
  padding: 26px 0 10px;
}
.donate-hero::before{
  content:"";
  position:absolute;
  inset:-60px 0 -40px;
  pointer-events:none;
  opacity:.52;
  background-image:
    var(--noise-svg),
    url("../img/world-map-watercolor-hq.webp");
  background-size: 260px 260px, cover;
  background-repeat: repeat, no-repeat;
  background-position: 0 0, center;
  filter: saturate(1.05) contrast(1.02);
  animation: gicNoiseDrift 28s linear infinite;
}
.donate-hero-grid{
  position: relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  /* Keep columns visually aligned to avoid uneven “dead space” */
  align-items: stretch;
}
.donate-title{
  font-size: 30px;
  letter-spacing: -0.6px;
}
.donate-subtitle strong{ color: rgba(22,50,79,.85); }

.donate-badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 12px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 14px rgba(10,30,55,.08);
  font-size: 10px;
  font-weight: 850;
  color: var(--blue-800);
}
.badge-ic{
  width: 18px;
  height: 18px;
  display:grid;
  place-items:center;
}
.badge-ic svg{ width: 18px; height: 18px; }

.donate-hero-note{
  margin-top: 12px;
  font-size: 10px;
  font-weight: 650;
  color: var(--muted-2);
  line-height: 1.6;
}

.donate-hero-media{
  padding: 0;
  overflow:hidden;
}
.donate-hero-media img{
  width:100%;
  height: 100%;
  display:block;
  object-fit: cover;
}
.donate-hero-caption{
  padding: 12px;
  border-top: 1px solid rgba(31,53,83,.12);
  background:
    radial-gradient(420px 160px at 20% 30%, rgba(34,184,199,.16), transparent 60%),
    rgba(255,255,255,.78);
}


/* Project donation campaign strip (donate-project.html) */
.campaign-strip{
  position: relative;
  padding: 2px 0 10px;
}
.campaign-strip-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(520px 220px at 10% 10%, rgba(34,184,199,.14), transparent 60%),
    radial-gradient(520px 220px at 90% 90%, rgba(53,98,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
}
.campaign-strip-left{
  min-width: 260px;
}
.campaign-name{
  margin-top: 8px;
  font-size: 14px;
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: -0.2px;
}
.campaign-meta{
  margin-top: 4px;
  font-size: 10px;
  font-weight: 750;
  color: rgba(22,50,79,.66);
}
.campaign-strip-right{
  flex: 1;
  max-width: 440px;
}
.campaign-nums{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.campaign-raised{
  font-weight: 950;
  color: var(--blue-900);
  font-size: 12px;
}
.campaign-goal{
  font-weight: 850;
  color: rgba(22,50,79,.70);
  font-size: 11px;
}
.campaign-progress{
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(20,45,73,.10);
  overflow: hidden;
}
.campaign-progress span{
  display:block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34,184,199,.96), rgba(53,98,255,.72));
  box-shadow: 0 14px 24px rgba(34,184,199,.16);
}

.campaign-supporting{
  margin: 10px 0 12px;
  padding: 12px 12px 11px;
  border-radius: 14px;
  border: 1px solid rgba(31,53,83,.12);
  background:
    radial-gradient(320px 120px at 10% 20%, rgba(34,184,199,.14), transparent 60%),
    rgba(255,255,255,.82);
}
.campaign-supporting-kicker{
  font-size: 9px;
  font-weight: 950;
  color: rgba(22,50,79,.62);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.campaign-supporting-title{
  margin-top: 4px;
  font-size: 12px;
  font-weight: 950;
  color: var(--blue-900);
}
.campaign-supporting-sub{
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(22,50,79,.66);
}


/* Sections */
.donate-section{
  padding: 10px 0 6px;
}

/* Donation form layout improvements */
.donate-grid{
  /* Let the rail feel connected to the main form (reduces awkward gaps) */
  align-items: stretch;
}
.donate-summary{
  position: sticky;
  top: 92px;
}

/* Right rail wrapper (summary + support card) */
.donate-rail{
  display:flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

/* If the form is taller than the rail, fill the remaining space with a subtle backdrop */
.donate-rail::after{
  content:none;
  flex: 1 1 auto;
  border-radius: 14px;
  border: 1px solid rgba(31,53,83,.08);
  background:
    radial-gradient(520px 240px at 18% 18%, rgba(34,184,199,.10), transparent 62%),
    url("../img/world-map-watercolor-hq.webp"),
    rgba(255,255,255,.12);
  background-size: cover;
  background-position: center;
  opacity: .55;
}

.donate-support-card{
  padding: 16px;
}

/* Panel backdrop for the donate form + rail so mismatched heights don't look like holes */
.donation-grid{
  position: relative;
  background:
    radial-gradient(520px 240px at 12% 18%, rgba(34,184,199,.10), transparent 62%),
    radial-gradient(520px 240px at 86% 22%, rgba(53,98,255,.07), transparent 64%),
    rgba(255,255,255,.18);
  border: 1px solid rgba(31,53,83,.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 34px rgba(10,30,55,.07);
  backdrop-filter: blur(7px);
}

/* Make the summary card fill the panel height gracefully (avoid empty-looking bottoms) */
.donate-summary{
  display:flex;
  flex-direction: column;
}
.donate-summary .trust-stack{
  margin-top: auto;
}

.donate-form-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.donate-form-head h2{
  margin:0;
}

.step-chips{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.step-chip{
  font-size: 9.5px;
  font-weight: 900;
  color: var(--muted);
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.84);
}
.step-chip.is-active{
  color: var(--blue-800);
  border-color: rgba(34,184,199,.35);
  background: rgba(34,184,199,.12);
}

.donate-block{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(31,53,83,.10);
}
.donate-block:first-of-type{
  margin-top: 10px;
}
.donate-block-title{
  font-size: 11px;
  font-weight: 900;
  color: var(--blue-900);
  margin-bottom: 8px;
}
.help-text{
  margin-top: 8px;
  font-size: 10px;
  font-weight: 650;
  color: rgba(22,50,79,.66);
  line-height: 1.6;
}

/* Segmented control */
.segmented{
  display:flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 18px rgba(10,30,55,.08);
}
.seg-btn{
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 10px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 900;
  color: var(--blue-800);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.seg-btn:hover{ transform: translateY(-1px); }
.seg-btn.is-active{
  background: linear-gradient(180deg, rgba(34,184,199,.92), rgba(26,167,187,.88));
  color: #fff;
  box-shadow: 0 10px 18px rgba(10,30,55,.20);
}

/* Amount grid: 6 columns on desktop */
.amount-grid-6{
  grid-template-columns: repeat(6, 1fr);
}

/* Input wrappers */
.input-wrap{
  display:flex;
  flex-direction:column;
  gap: 6px;

  width:100%;
}
.input-label{
  font-size: 10px;
  font-weight: 850;
  color: rgba(22,50,79,.70);
}

/* Checkbox row */
.check-row{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.check{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 10.2px;
  font-weight: 700;
  color: rgba(22,50,79,.74);
}
.check input{
  width: 14px;
  height: 14px;
  accent-color: var(--teal-600);
}

/* Secure note */
.secure-note{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 10px;
  font-weight: 750;
  color: rgba(22,50,79,.64);
}
.secure-note svg{ width: 16px; height: 16px; opacity:.95; }

.micro-note{
  margin: 10px 0 0;
  font-size: 10px;
  font-weight: 650;
  color: rgba(22,50,79,.66);
  line-height: 1.7;
}
.micro-note a{
  color: var(--blue-700);
  font-weight: 900;
  text-decoration:none;
}
.micro-note a:hover{ text-decoration: underline; }

/* Summary KPI */
.summary-kpi{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(31,53,83,.12);
  background:
    radial-gradient(520px 220px at 18% 35%, rgba(34,184,199,.18), transparent 62%),
    radial-gradient(520px 220px at 88% 35%, rgba(53,98,255,.12), transparent 62%),
    rgba(255,255,255,.86);
  box-shadow: 0 10px 18px rgba(10,30,55,.08);
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
}
.summary-amount{
  font-size: 22px;
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: -0.4px;
}
.summary-frequency{
  font-size: 10.5px;
  font-weight: 850;
  color: rgba(22,50,79,.66);
}

/* Impact list */
.impact-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 12px;
}
.impact-item{
  display:grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items:flex-start;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 18px rgba(10,30,55,.06);
}
.impact-icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.10);
  background:
    radial-gradient(22px 22px at 35% 30%, rgba(34,184,199,.16), transparent 60%),
    rgba(255,255,255,.86);
  display:grid;
  place-items:center;
}
.impact-icon svg{ width: 20px; height: 20px; }
.impact-title{
  font-size: 11px;
  font-weight: 900;
  color: var(--blue-900);
}
.impact-sub{
  margin-top: 2px;
  font-size: 10px;
  font-weight: 650;
  color: rgba(22,50,79,.70);
  line-height: 1.6;
}

/* Allocation bars */
.alloc-head{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.alloc-title{
  font-size: 11px;
  font-weight: 900;
  color: var(--blue-900);
}
.alloc-link{
  font-size: 10px;
  font-weight: 900;
  color: var(--blue-700);
  text-decoration:none;
}
.alloc-link:hover{ text-decoration: underline; }

.alloc-bars{
  margin-top: 8px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.alloc-row{
  display:grid;
  grid-template-columns: 88px 1fr 38px;
  gap: 10px;
  align-items:center;
  font-size: 10px;
}
.alloc-label{
  font-weight: 850;
  color: rgba(22,50,79,.70);
}
.alloc-val{
  text-align:right;
  font-weight: 900;
  color: var(--blue-900);
}
.alloc-bar{
  height: 9px;
  border-radius: 999px;
  overflow:hidden;
  background: rgba(31,53,83,.08);
  border: 1px solid rgba(31,53,83,.10);
}
.alloc-fill{
  display:block;
  height:100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34,184,199,.92), rgba(53,98,255,.92));
}

/* Trust stack */
.trust-stack{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.trust-item{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 18px rgba(10,30,55,.06);
}
.trust-ic{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.10);
  background:
    radial-gradient(22px 22px at 35% 30%, rgba(34,184,199,.16), transparent 60%),
    rgba(255,255,255,.86);
  display:grid;
  place-items:center;
}
.trust-ic svg{ width: 20px; height: 20px; }
.trust-title{
  font-size: 11px;
  font-weight: 900;
  color: var(--blue-900);
}
.trust-sub{
  margin-top: 2px;
  font-size: 10px;
  font-weight: 650;
  color: rgba(22,50,79,.70);
  line-height: 1.6;
}

/* Split sections (image + copy) */
.split-grid{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
  align-items:center;
}
.split-grid.split-reverse{
  grid-template-columns: 1.05fr .95fr;
}
.split-media{
  padding:0;
  overflow:hidden;
}
.split-media img{
  width:100%;
  height: 100%;
  display:block;
  object-fit: cover;
}

/* Bullet grid */
.bullet-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bullet{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 18px rgba(10,30,55,.06);
}
.bullet-ic{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(34,184,199,.32);
  background: rgba(34,184,199,.12);
  color: var(--blue-800);
  font-weight: 900;
  font-size: 11px;
  display:grid;
  place-items:center;
}
.bullet-title{
  font-size: 10.8px;
  font-weight: 900;
  color: var(--blue-900);
}
.bullet-sub{
  margin-top: 2px;
  font-size: 10px;
  font-weight: 650;
  color: rgba(22,50,79,.70);
  line-height: 1.6;
}

/* Giving options cards */
.give-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.give-card{ padding: 14px; }
.give-ic{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.10);
  background:
    radial-gradient(22px 22px at 35% 30%, rgba(34,184,199,.18), transparent 60%),
    rgba(255,255,255,.86);
  display:grid;
  place-items:center;
  margin-bottom: 10px;
}
.give-ic svg{ width: 20px; height: 20px; }
.give-card h3{
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  color: var(--blue-900);
}
.give-card p{
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 650;
  color: rgba(22,50,79,.72);
  line-height: 1.65;
}
.give-card .btn{
  border-radius: 10px;
  padding: 9px 12px;
}

/* FAQ */
.faq-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
details.faq{
  border-radius: 14px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 18px rgba(10,30,55,.06);
  padding: 10px 12px;
}
details.faq summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 900;
  color: var(--blue-900);
}
details.faq summary::-webkit-details-marker{ display:none; }
details.faq summary::after{
  content:"+";
  font-weight: 900;
  color: rgba(22,50,79,.55);
}
details.faq[open] summary::after{ content:"–"; }
details.faq .faq-body{
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 650;
  color: rgba(22,50,79,.72);
  line-height: 1.7;
}
details.faq[open]{
  border-color: rgba(34,184,199,.28);
  box-shadow: 0 14px 26px rgba(10,30,55,.10);
}

/* Donate responsive */
@media (max-width: 1100px){
  .donate-hero-grid{ grid-template-columns: 1fr; }
  .donation-grid.donate-grid{ grid-template-columns: 1fr; }
  .donate-summary{ position: relative; top: auto; }
  .campaign-strip-card{ flex-direction: column; align-items: flex-start; }
  .campaign-strip-right{ max-width: none; width: 100%; }
  .split-grid{ grid-template-columns: 1fr; }
  .give-grid{ grid-template-columns: repeat(2, 1fr); }
  .faq-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .amount-grid-6{ grid-template-columns: repeat(2, 1fr); }
  .give-grid{ grid-template-columns: 1fr; }
  .bullet-grid{ grid-template-columns: 1fr; }
}


/* Responsive */
@media (max-width: 1100px){
  .container{ width: min(var(--container), calc(100% - 36px)); }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-map{ min-height: 360px; }
  .home-grid{ grid-template-columns: 1fr; }
  .right-cards{ grid-template-columns: 1fr; }
  .right-bottom{ grid-template-columns: 1fr; }
  .program-grid{ grid-template-columns: repeat(2, 1fr); }
  .stats-row{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .navlinks{ display:none; }
  .program-grid{ grid-template-columns: 1fr; }
  .map-toolbar{ flex-direction:column; align-items:stretch; }
  .map-search{ min-width: auto; }
  .project-popover{ width: calc(100% - 28px); left: 14px; right: 14px; }
  .amount-grid{ grid-template-columns: repeat(2, 1fr); }
}
/* =========================================================
   Polished UX Enhancements (v2)
   ========================================================= */

/* Smooth anchor scrolling with sticky header offset */
html{
  scroll-behavior: smooth;
  scroll-padding-top: 86px; /* header height + breathing room */
}

/* Accessible skip link */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 2000;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(31,53,83,.18);
  box-shadow: var(--shadow-soft);
  color: var(--blue-900);
  font-weight: 800;
  font-size: 12px;
}
.skip-link:focus{
  left: 16px;
}

/* Better focus rings */
:where(a, button, input, select, textarea):focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(34,184,199,.22),
    0 0 0 1px rgba(31,53,83,.18);
  border-radius: 10px;
}

/* Make cards feel more interactive */
.card{
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(31,53,83,.16);
}

/* Buttons: unified hover/active behavior */
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

/* Active nav state (JS adds .is-active) */
.navlinks a.is-active{
  background: rgba(255,255,255,.10);
  opacity: 1;
}

/* Inputs: clearer focus */
.input:focus{
  border-color: rgba(34,184,199,.55);
  box-shadow: 0 0 0 3px rgba(34,184,199,.14);
}

/* =========================================================
   Mobile navigation drawer
   ========================================================= */

/* Lock page scroll when the mobile drawer is open */
html.gic-drawer-open,
body.gic-drawer-open{
  overflow: hidden;
}

.nav-toggle{
  display:none;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.nav-toggle svg{ width: 18px; height: 18px; opacity: .95; }

.drawer-overlay{
  position: fixed;
  inset: 0;
  /* Darker overlay for better legibility behind the drawer */
  background: rgba(10,20,35,.58);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 9500;
}
.drawer-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 92vw);
  height: 100%;
  z-index: 9600;
  transform: translateX(110%);
  transition: transform .22s ease;
  padding: 14px;
  /* Darken the drawer surface so links remain readable over any page background */
  background: linear-gradient(180deg, rgba(16,30,50,1), rgba(28,55,85,1));
  border-left: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 44px rgba(9,26,47,.45);
}
.mobile-drawer.open{
  transform: translateX(0);
}
.mobile-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 10px;
}
.mobile-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
}
.drawer-close{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  cursor:pointer;
}
.drawer-close svg{ width: 18px; height: 18px; }
.mobile-links a{
  display:block;
  padding: 12px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 13px;
}
.mobile-links a:hover{
  background: rgba(255,255,255,.10);
}
.mobile-actions{
  display:flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 10px;
}
.mobile-actions .btn{
  flex: 1;
}

/* =========================================================
   Map polish
   ========================================================= */
/* Make basemap a bit more vibrant (closer to mock) */
.hero-map .leaflet-tile{
  filter: saturate(1.18) contrast(1.06) brightness(1.02);
}
/* Selected pin */
.map-pin.selected{
  transform-origin: 50% 155%;
  transform: translateY(-1px) scale(calc(var(--gic-pin-scale, 1) * 1.12));
  box-shadow: 0 14px 22px rgba(10,30,55,.26);
}
/* Popover micro-animation */
.project-popover .popover-inner{
  animation: popFade .18s ease;
}
@keyframes popFade{
  from{ opacity: .7; transform: translateY(-2px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Toast (replaces alert)
   ========================================================= */
.toast{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  width: min(360px, calc(100% - 32px));
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(31,53,83,.16);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(10,30,55,.22);
  padding: 12px 12px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.toast-title{
  font-weight: 900;
  font-size: 12px;
  color: var(--blue-900);
}
.toast-body{
  margin-top: 2px;
  font-weight: 600;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.toast-actions{
  margin-top: 10px;
  display:flex;
  justify-content:flex-end;
}
.toast-actions button{
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(31,53,83,.14);
  background: rgba(34,184,199,.10);
  font-weight: 900;
  font-family: var(--font);
  cursor:pointer;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation: none !important; transition: none !important; }
}

/* Mobile behavior */
@media (max-width: 640px){
  /* Slightly more opaque header on mobile for clarity */
  .site-header{
    background: linear-gradient(180deg, rgba(16,30,50,1), rgba(28,55,85,1));
  }
  .nav-toggle{ display:inline-flex; }
  .nav-actions{ display:none; }
}


/* =========================================================
   Project Detail Pages
   Layout inspired by the provided project mock (Clean Water page),
   polished to match the current GIC site build.
   ========================================================= */

.project-hero{
  padding: 26px 0 14px;
  position: relative;
}

.project-hero-banner{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: var(--shadow);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  min-height: 240px;
}

.project-hero-banner::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(15,39,65,.88) 0%, rgba(15,39,65,.74) 42%, rgba(15,39,65,.28) 68%, rgba(15,39,65,.00) 100%),
    radial-gradient(880px 360px at 22% 40%, rgba(34,184,199,.24), transparent 60%),
    radial-gradient(900px 420px at 86% 18%, rgba(53,98,255,.14), transparent 60%);
  z-index: 1;
}

.project-hero-banner::after{
  /* premium texture + subtle animated noise */
  content:"";
  position:absolute;
  inset:0;
  background-image:
    var(--noise-svg),
    radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 260px 260px, 18px 18px;
  background-repeat: repeat, repeat;
  background-position: 0 0, 0 0;
  opacity:.16;
  z-index: 1;
  animation: gicNoiseDrift 34s linear infinite;
}

.project-hero-content{
  position: relative;
  z-index: 2;
  padding: 38px 38px 34px;
  max-width: 720px;
  color: #fff;
}

.project-kicker{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.project-hero-title{
  margin: 12px 0 10px;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.2px;
  text-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.project-hero-sub{
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,.90);
  max-width: 560px;
}

.project-hero-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.crumbs{
  padding: 10px 0 6px;
  font-size: 10.5px;
  color: var(--muted);
}
.crumbs a{
  color: var(--blue-700);
  font-weight: 800;
}
.crumbs a:hover{ text-decoration: underline; }
.crumb-sep{
  margin: 0 8px;
  color: rgba(22,50,79,.35);
}
.crumb-current{
  color: var(--text);
  font-weight: 800;
}

.project-shell{
  position: relative;
  padding: 14px 0 54px;
}
.project-shell::before{
  content:"";
  position:absolute;
  inset:-40px -40px 0 -40px;
  pointer-events:none;
  background-image: url("../img/world-map-watercolor-hq.webp");
  background-size: cover;
  background-position: center;
  opacity: .08;
  filter: saturate(1.08) contrast(.98);
}
.project-shell > .container{
  position: relative;
  z-index: 1;
}

.project-intro-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  /* Stretch so the intro band reads as one unit (prevents uneven gaps) */
  align-items: stretch;
  margin-bottom: 22px;
}

/* Light panel behind the intro band to keep the section cohesive */
.project-intro-grid{
  background:
    radial-gradient(520px 240px at 12% 18%, rgba(34,184,199,.10), transparent 62%),
    radial-gradient(520px 240px at 86% 22%, rgba(53,98,255,.07), transparent 64%),
    rgba(255,255,255,.16);
  border: 1px solid rgba(31,53,83,.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 14px 30px rgba(10,30,55,.06);
  backdrop-filter: blur(7px);
}

.project-intro-copy h2{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: -.2px;
}
.project-intro-copy p{
  margin:0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.project-metrics{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-card{
  background: var(--card);
  border: 1px solid rgba(31,53,83,.12);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 14px;
  min-height: 96px;
  display:flex;
  flex-direction: column;
  justify-content: flex-start;
}

.metric-ic{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(34,184,199,.12);
  border: 1px solid rgba(31,53,83,.10);
  margin-bottom: 8px;
}
.metric-ic svg{ width: 18px; height: 18px; }

.metric-val{
  font-weight: 900;
  font-size: 14px;
  color: var(--blue-900);
  margin-bottom: 2px;
}

.metric-lbl{
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}

/* main two-column layout */
.project-detail-grid{
  display:grid;
  grid-template-columns: 1.55fr .95fr;
  gap: 22px;

  /* Unified backdrop so mismatched column heights don't expose empty background */
  background:
    radial-gradient(520px 240px at 10% 18%, rgba(34,184,199,.10), transparent 62%),
    radial-gradient(520px 240px at 90% 22%, rgba(53,98,255,.07), transparent 64%),
    rgba(255,255,255,.16);
  border: 1px solid rgba(31,53,83,.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 34px rgba(10,30,55,.07);
  backdrop-filter: blur(7px);
}
.project-left,
.project-right{
  display:flex;
  flex-direction: column;
  gap: 22px;
}

.project-section-title{
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  color: var(--blue-900);
}

/* Donate / funding progress card */
.project-donate-card{
  position: relative;
  overflow:hidden;
}
.project-donate-card::before{
  content:"";
  position:absolute;
  inset:-60px -70px;
  pointer-events:none;
  background-image: url("../img/world-map-watercolor-hq.webp");
  background-size: cover;
  background-position: center;
  opacity: .12;
  filter: saturate(1.08) contrast(.98);
}
.project-donate-card > *{
  position: relative;
  z-index: 1;
}

.donate-top{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 10px;
}
.raised{
  display:flex;
  align-items: baseline;
  gap: 6px;
}
.raised-amt{
  font-size: 22px;
  font-weight: 900;
  color: var(--blue-900);
}
.raised-lbl{
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}
.donate-goal{
  font-size: 10.5px;
  color: var(--muted);
}
.donate-goal strong{ color: var(--blue-900); }

.progress-track{
  height: 10px;
  border-radius: 999px;
  background: rgba(31,53,83,.14);
  overflow:hidden;
  margin-top: 10px;
}
.progress-bar{
  display:block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34,184,199,.96), rgba(26,137,186,.96) 55%, rgba(255,138,61,.86));
  box-shadow: 0 10px 18px rgba(34,184,199,.18);
}

.donate-row{
  display:flex;
  align-items:flex-start;
  gap: 14px;
  margin-top: 12px;
}
.donate-btn{
  white-space: nowrap;
  padding: 11px 14px;
  border-radius: 10px;
}

.donate-bullets{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 6px;
}
.donate-bullets li{
  display:flex;
  align-items:flex-start;
  gap: 8px;
  font-size: 10.5px;
  color: var(--blue-800);
  font-weight: 700;
}
.bullet-ic svg{
  width: 16px;
  height: 16px;
}

.share-row{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-top: 12px;
}
.share-label{
  font-size: 10px;
  color: var(--muted);
  font-weight: 800;
  margin-right: 2px;
}
.share-btn{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  background: linear-gradient(180deg, rgba(31,53,83,.92), rgba(43,70,106,.86));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 18px rgba(10,30,55,.12);
  transition: transform .12s ease, filter .12s ease;
}
.share-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.share-btn svg{ width: 16px; height: 16px; }

/* Timeline */
.timeline-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.timeline-item{
  display:flex;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.70);
}
.timeline-ic{
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(34,184,199,.12);
  border: 1px solid rgba(31,53,83,.10);
  flex: 0 0 auto;
}
.timeline-ic svg{ width: 18px; height: 18px; }
.timeline-title{
  font-weight: 900;
  font-size: 11px;
  color: var(--blue-900);
  margin-bottom: 4px;
}
.timeline-desc{
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Solution */
.solution-media{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 12px;
}
.solution-media img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.12);
  box-shadow: 0 10px 20px rgba(10,30,55,.10);
}
.solution-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 10px;
}
.solution-list li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.65;
}
.solution-list strong{ color: var(--blue-900); }
.solution-ic svg{
  width: 18px;
  height: 18px;
}

/* Problem */
.problem-img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.12);
  box-shadow: 0 10px 20px rgba(10,30,55,.10);
}
.problem-list{
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}
.problem-list li{ margin: 6px 0; }
.problem-list strong{ color: var(--blue-900); }

/* Updates */
.updates-list{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}
.update-item{
  display:flex;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.70);
}
.update-item img{
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(31,53,83,.12);
  flex: 0 0 auto;
}
.update-title{
  font-size: 10.8px;
  font-weight: 900;
  color: var(--blue-900);
  margin-bottom: 2px;
}
.update-desc{
  font-size: 10.2px;
  color: var(--muted);
  line-height: 1.45;
}


/* Updates (accordion enhancement) */
.updates-accordion{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}

.update-acc{
  border: 1px solid rgba(31,53,83,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  overflow:hidden;
  box-shadow: 0 10px 20px rgba(10,30,55,.08);
}

.update-acc summary{
  list-style: none;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  user-select:none;
}
.update-acc summary::-webkit-details-marker{ display:none; }

.update-thumb img{
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(31,53,83,.12);
  background: #e7f3ff;
}

.update-sum-body{ flex: 1; min-width: 0; }

.update-sum-top{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  gap: 10px;
  margin-bottom: 2px;
}

.update-badges{
  display:flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2px;
  border: 1px solid rgba(31,53,83,.12);
}

.badge-soft{
  background: rgba(34,184,199,.14);
  color: var(--blue-900);
}

.badge-date{
  background: rgba(31,53,83,.08);
  color: rgba(22,50,79,.78);
}

.update-summary{
  font-size: 10.2px;
  color: var(--muted);
  line-height: 1.45;
  overflow:hidden;
  text-overflow: ellipsis;
}

.update-chevron{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(31,53,83,.12);
  flex: 0 0 auto;
}
.update-chevron svg{ width: 18px; height: 18px; transition: transform .16s ease; }

.update-acc[open] .update-chevron svg{ transform: rotate(90deg); }
.update-acc[open] summary{ background: rgba(255,255,255,.88); }

.update-panel{
  padding: 0 12px 12px 86px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}
.update-panel p{ margin: 8px 0 0; }

/* Related projects */
.project-related-card .related-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.project-related-card .related-head .small{ margin:0; max-width: 520px; }

.related-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rel-card{
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.74);
  box-shadow: var(--shadow-soft);
  display:flex;
  flex-direction: column;
}
.rel-cover img{
  width:100%;
  height: 132px;
  object-fit: cover;
  display:block;
  background: #e7f3ff;
}

.rel-body{
  padding: 12px 12px 12px;
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.rel-kicker{
  font-size: 10px;
  font-weight: 900;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: .25px;
}

.rel-body h4{
  margin: 0;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--blue-900);
  line-height: 1.2;
}

.rel-body p{
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.rel-meta{
  font-size: 10px;
  color: rgba(22,50,79,.66);
  font-weight: 800;
}

.rel-progress{
  margin-top: 4px;
}
.rel-progress-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  color: rgba(22,50,79,.70);
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 6px;
}
.rel-progress-track{
  height: 8px;
  border-radius: 999px;
  background: rgba(31,53,83,.14);
  overflow:hidden;
}
.rel-progress-track span{
  display:block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34,184,199,.96), rgba(26,137,186,.96) 55%, rgba(255,138,61,.86));
}

.rel-actions{
  display:flex;
  gap: 8px;
  margin-top: 8px;
}
.btn-sm{
  padding: 8px 12px;
  font-size: 11px;
  border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 980px){
  .related-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .related-grid{ grid-template-columns: 1fr; }
  .update-panel{ padding-left: 12px; }
}

/* =========================================================
   Projects page — Directory grids (Current / Completed / Funding)
   - 5-up on wide desktop
   - compact card variant for higher density
   ========================================================= */

.section-toolbar,
.funding-toolbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
}
.section-toolbar .section-search,
.funding-toolbar .funding-search{
  flex: 1 1 420px;
  min-width: 260px;
}
.section-toolbar .section-tags,
.funding-toolbar .funding-tags{
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.section-sort{
  flex: 0 0 auto;
  min-width: 210px;
  display:flex;
  justify-content:flex-end;
}
.section-sort select{
  width: 100%;
}

.projects-grid-5,
.funding-grid{
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.projects-grid-5 .rel-cover img,
.funding-grid .rel-cover img{ height: 110px; }
.projects-grid-5 .rel-body,
.funding-grid .rel-body{ padding: 10px; gap: 5px; }
.projects-grid-5 .rel-body h4,
.funding-grid .rel-body h4{ font-size: 11.5px; }
.projects-grid-5 .rel-body p,
.funding-grid .rel-body p{ font-size: 10px; }
.projects-grid-5 .rel-meta,
.funding-grid .rel-meta{ font-size: 9.5px; }
.projects-grid-5 .rel-progress-track,
.funding-grid .rel-progress-track{ height: 7px; }
.projects-grid-5 .rel-actions,
.funding-grid .rel-actions{ gap: 6px; margin-top: 6px; }
.projects-grid-5 .btn-sm,
.funding-grid .btn-sm{ padding: 7px 10px; font-size: 10.5px; border-radius: 9px; }

@media (max-width: 1200px){
  .projects-grid-5,
  .funding-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px){
  .section-toolbar,
  .funding-toolbar{ flex-direction: column; align-items: stretch; }

  .section-toolbar .section-tags,
  .funding-toolbar .funding-tags{
    justify-content:flex-start;
    overflow-x:auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .section-sort{
    flex: 0 0 auto;
    min-width: 210px;
    display:flex;
    justify-content:flex-end;
  }
  .section-sort .select,
  .section-sort select{
    width: 100%;
  }

  .projects-grid-5,
  .funding-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  .projects-grid-5,
  .funding-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .projects-grid-5,
  .funding-grid{ grid-template-columns: 1fr; }
}

/* Guarantee */
.guarantee-row{
  display:flex;
  gap: 12px;
  align-items:center;
}
.seal{
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(31,53,83,.14);
  box-shadow: 0 10px 18px rgba(10,30,55,.10);
  display:grid;
  place-items:center;
}
.seal svg{ width: 56px; height: 56px; }

.guarantee-big{
  font-weight: 900;
  color: var(--blue-900);
  font-size: 12px;
}
.guarantee-big span{ color: var(--teal-600); }
.guarantee-sub{
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 700;
}
.guarantee-actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.mini-links{
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap: wrap;
}
.mini-links a{ color: var(--blue-700); font-weight: 800; }
.mini-links a:hover{ text-decoration: underline; }

/* Photo */
.photo-img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.12);
}
.project-photo-card{
  position: relative;
  overflow:hidden;
}
.project-photo-card .photo-caption{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(31,53,83,.10);
}
.project-photo-card .cap-title{
  font-weight: 900;
  font-size: 11px;
  color: var(--blue-900);
}
.project-photo-card .cap-sub{
  font-size: 10.2px;
  color: var(--muted);
  margin-top: 2px;
}

/* Impact */
.impact-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.impact-metric{
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.70);
}
.impact-ic{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(34,184,199,.12);
  border: 1px solid rgba(31,53,83,.10);
  margin-bottom: 8px;
}
.impact-ic svg{ width: 18px; height: 18px; }
.impact-val{
  font-weight: 900;
  color: var(--blue-900);
  font-size: 13px;
}
.impact-lbl{
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
}
.impact-cta{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:flex-start;
  margin-top: 12px;
  flex-wrap: wrap;
}


/* =========================================================
   Contact page (polished + image-forward)
   ========================================================= */

.contact-section{
  padding: 14px 0 10px;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin: 6px 0 12px;
}
.section-note{
  margin: 0;
  max-width: 90ch;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.7;
}

/* Hero */
.contact-hero{
  position: relative;
  padding: 26px 0 10px;
}
.contact-hero::before{
  content:"";
  position:absolute;
  inset:-60px 0 -30px;
  pointer-events:none;
  opacity:.50;
  background-image: url("../img/world-map-watercolor-hq.webp");
  background-size: cover;
  background-repeat:no-repeat;
  background-position: center;
  filter: saturate(1.10) contrast(1.04);
}
.contact-hero-grid{
  position: relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  /* Align hero columns for a more polished, cohesive header */
  align-items: stretch;
}
.contact-title{
  font-size: 32px;
  letter-spacing: -0.6px;
}
.contact-subtitle strong{ color: rgba(22,50,79,.88); }

.contact-chip-row{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.chip-link{
  appearance:none;
  border: 1px solid rgba(31,53,83,.14);
  background: rgba(255,255,255,.72);
  color: var(--blue-800);
  font: inherit;
  line-height: 1;
}
.chip-ic{
  width: 16px;
  height: 16px;
  display:grid;
  place-items:center;
}
.chip-ic svg{ width: 16px; height: 16px; }

.contact-hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 14px;
}
.contact-badges{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

.contact-hero-media{
  padding: 0;
  overflow: hidden;
}
.contact-hero-media img{
  width:100%;
  height: 100%;
  display:block;
  object-fit: cover;
}
.contact-hero-caption{
  padding: 12px;
  border-top: 1px solid rgba(31,53,83,.12);
  background:
    radial-gradient(420px 160px at 20% 30%, rgba(34,184,199,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.76));
}
.caption-title{
  font-weight: 900;
  font-size: 12px;
  color: var(--blue-900);
}
.caption-body{
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 650;
  color: rgba(22,50,79,.72);
  line-height: 1.65;
}

/* Route cards */
.contact-route-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.contact-route{
  padding: 16px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.contact-route:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10,30,55,.14);
  border-color: rgba(31,53,83,.16);
}
.contact-route-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.contact-card-icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(31,53,83,.12);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), rgba(255,255,255,.20) 60%),
    linear-gradient(180deg, rgba(34,184,199,.20), rgba(53,98,255,.10));
  color: var(--blue-800);
  box-shadow: 0 10px 18px rgba(10,30,55,.06);
}
.contact-card-icon svg{ width: 20px; height: 20px; }

.contact-route-title{
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 900;
  color: var(--blue-900);
}
.contact-route-text{
  margin:0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.contact-route-actions{
  display:flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap:wrap;
}

/* Form + side rail */
.contact-main-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  /* Reduce “holes” when one side is taller than the other */
  align-items: stretch;

  /* Subtle panel background so uneven column heights still look intentional */
  background:
    radial-gradient(520px 240px at 12% 18%, rgba(34,184,199,.10), transparent 62%),
    radial-gradient(520px 240px at 86% 22%, rgba(53,98,255,.07), transparent 64%),
    rgba(255,255,255,.18);
  border: 1px solid rgba(31,53,83,.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 34px rgba(10,30,55,.07);
  backdrop-filter: blur(7px);
}
.contact-form-card{
  padding: 16px;
}
.contact-card-head{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  margin-bottom: 12px;
}
.contact-card-head h2{
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  color: var(--blue-900);
}
.contact-card-head p{ margin: 4px 0 0; }

.contact-inline-note{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.78);
}
.contact-inline-ic{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.88);
  color: var(--blue-800);
  flex: 0 0 auto;
}
.contact-inline-ic svg{ width: 18px; height: 18px; }
.contact-inline-title{
  font-weight: 900;
  font-size: 11px;
  color: var(--blue-900);
}
.contact-inline-text{
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 650;
  color: rgba(22,50,79,.72);
  line-height: 1.65;
}

.contact-side{
  /* Treat the rail as a vertical stack so it stretches cleanly */
  display:flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

/* If the form column is taller, fill the remaining rail height with a subtle backdrop */
.contact-side::after{
  content:none;
  flex: 1 1 auto;
  border-radius: 14px;
  border: 1px solid rgba(31,53,83,.08);
  background:
    radial-gradient(520px 240px at 18% 18%, rgba(34,184,199,.10), transparent 62%),
    url("../img/world-map-watercolor-hq.webp"),
    rgba(255,255,255,.12);
  background-size: cover;
  background-position: center;
  opacity: .55;
}
.contact-details-card{
  padding: 16px;
}

.detail-list{
  display:grid;
  gap: 10px;
  margin-top: 8px;
}
.detail-row{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.82);
}
.detail-ic{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.88);
  color: var(--blue-800);
  flex: 0 0 auto;
}
.detail-ic svg{ width: 18px; height: 18px; }
.detail-body{ flex: 1; }
.detail-title{
  font-weight: 900;
  font-size: 11px;
  color: var(--blue-900);
}
.detail-text{
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 750;
  color: rgba(22,50,79,.82);
  line-height: 1.5;
}
.detail-text a{ color: rgba(22,50,79,.86); }
.detail-sub{
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(22,50,79,.55);
}

.contact-side-actions{
  display:grid;
  gap: 10px;
  margin-top: 12px;
}
.contact-side-media{
  padding: 0;
  overflow:hidden;
}
.contact-side-media img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display:block;
}

/* Locations */
.locations-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.location-card{
  padding: 0;
  overflow:hidden;
}
.location-card img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  display:block;
}
.location-body{
  padding: 14px;
}
.location-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.location-top h3{
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  color: var(--blue-900);
}
.location-note{
  margin: 8px 0 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.location-meta{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  font-size: 10px;
  font-weight: 700;
  color: rgba(22,50,79,.58);
}
.location-actions{
  display:flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap:wrap;
}

/* Volunteer */
.volunteer-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.volunteer-media{
  padding: 0;
  overflow:hidden;
}
.volunteer-media img{
  width:100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display:block;
}
.volunteer-card{
  padding: 16px;
}

/* Responsive (contact page) */
@media (max-width: 980px){
  .contact-hero-grid{ grid-template-columns: 1fr; }
  .contact-route-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-main-grid{ grid-template-columns: 1fr; }
  .locations-grid{ grid-template-columns: repeat(2, 1fr); }
  .volunteer-grid{ grid-template-columns: 1fr; }
  .volunteer-media img{ min-height: 220px; }
}

@media (max-width: 640px){
  .contact-route-grid{ grid-template-columns: 1fr; }
  .locations-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   Project Detail Page — spacing refinements + steward card
   ========================================================= */
.project-shell .page-card{ padding: 18px; }
.project-shell .card.page-card{ border-radius: 14px; }

.project-related-card{ margin-top: 22px; }

/* Project steward card */
.project-steward-card{
  position: relative;
  overflow: hidden;
}
.project-steward-card::before{
  content:"";
  position:absolute;
  inset:-60px -80px;
  pointer-events:none;
  background-image: url("../img/world-map-watercolor-hq.webp");
  background-size: cover;
  background-position: center;
  opacity: .10;
  filter: saturate(1.05) contrast(.98);
}
.project-steward-card > *{
  position: relative;
  z-index: 1;
}


/* Project volunteer card */

/* Project detail — shared framework card */
.project-framework-card{
  position: relative;
  overflow: hidden;
}
.project-framework-card::before{
  content:"";
  position:absolute;
  inset:-60px -80px;
  pointer-events:none;
  background-image: url("../img/world-map-watercolor-hq.webp");
  background-size: cover;
  background-position: center;
  opacity: .08;
  filter: saturate(1.05) contrast(.98);
}
.project-framework-card > *{ position: relative; z-index: 1; }
.project-volunteer-card{
  position: relative;
  overflow: hidden;
}
.project-volunteer-card::before{
  content:"";
  position:absolute;
  inset:-60px -80px;
  pointer-events:none;
  background-image: url("../img/world-map-watercolor-hq.webp");
  background-size: cover;
  background-position: center;
  opacity: .10;
  filter: saturate(1.05) contrast(.98);
}
.project-volunteer-card > *{ position: relative; z-index: 1; }

.volunteer-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.volunteer-tag{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .25px;
  text-transform: uppercase;
  color: var(--blue-900);
  background: rgba(53,98,255,.10);
  border: 1px solid rgba(31,53,83,.12);
  box-shadow: 0 10px 18px rgba(10,30,55,.06);
}

.volunteer-media{
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(31,53,83,.12);
  background: #e7f3ff;
  box-shadow: 0 12px 22px rgba(10,30,55,.08);
}
.volunteer-img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  display:block;
}

.volunteer-note{
  margin: 12px 0 0;
  font-size: 10.6px;
  color: var(--muted);
  line-height: 1.8;
}

.volunteer-roles{
  margin-top: 12px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}
.volunteer-roles::-webkit-scrollbar{ width: 10px; }
.volunteer-roles::-webkit-scrollbar-track{ background: transparent; }
.volunteer-roles::-webkit-scrollbar-thumb{ background: rgba(22,50,79,.18); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
.volunteer-roles:hover::-webkit-scrollbar-thumb{ background: rgba(22,50,79,.26); border: 3px solid transparent; background-clip: padding-box; }
@media (max-width: 520px){
  .volunteer-roles{ max-height: 460px; }
}

.vol-role{
  display:flex;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(31,53,83,.12);
  box-shadow: 0 10px 18px rgba(10,30,55,.06);
  align-items:flex-start;
}

.vol-role-ic{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(34,184,199,.12);
  border: 1px solid rgba(31,53,83,.12);
  flex: 0 0 auto;
}
.vol-role-ic svg{ width: 18px; height: 18px; }

.vol-role-body{ min-width: 0; }
.vol-role-head{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap: 6px;
}
.vol-role-head strong{
  font-size: 11px;
  font-weight: 900;
  color: var(--blue-900);
}

.vol-chip{
  font-size: 9px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(31,53,83,.08);
  border: 1px solid rgba(31,53,83,.10);
  color: rgba(22,50,79,.76);
}

.vol-role-desc{
  margin-top: 4px;
  font-size: 10.4px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.volunteer-actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}
.volunteer-actions .btn{
  flex: 1;
  justify-content:center;
}

.project-volunteer-card .mini-links{
  margin-top: 10px;
  font-size: 10.2px;
  color: rgba(22,50,79,.55);
  display:flex;
  gap: 8px;
  align-items:center;
}
.project-volunteer-card .mini-links a{
  color: rgba(22,50,79,.72);
  font-weight: 800;
}
.project-volunteer-card .mini-links a:hover{ text-decoration: underline; }
/* Inline volunteer quick-apply (project pages) */
.volunteer-apply-block{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(31,53,83,.12);
  box-shadow: 0 12px 22px rgba(10,30,55,.06);
}

.volunteer-apply-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.volunteer-apply-title strong{
  display:block;
  font-size: 11.4px;
  font-weight: 950;
  color: var(--blue-900);
  letter-spacing: .10px;
}

.volunteer-apply-title span{
  display:block;
  margin-top: 2px;
  font-size: 10px;
  color: rgba(22,50,79,.60);
  line-height: 1.45;
}

.volunteer-mini{
  font-size: 9px;
  font-weight: 950;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34,184,199,.14);
  border: 1px solid rgba(31,53,83,.12);
  color: rgba(22,50,79,.72);
  white-space:nowrap;
  box-shadow: 0 10px 18px rgba(10,30,55,.06);
}

.volunteer-inline-form{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.volunteer-inline-form textarea.input{
  min-height: 84px;
  resize: vertical;
  line-height: 1.55;
}

.volunteer-form-actions{
  display:flex;
  gap: 10px;
  margin-top: 2px;
}

.volunteer-form-actions .btn{
  flex: 1;
  justify-content:center;
}

.volunteer-fineprint{
  font-size: 10px;
  color: rgba(22,50,79,.55);
}

.volunteer-fineprint a{
  color: rgba(22,50,79,.78);
  font-weight: 950;
}

.volunteer-fineprint a:hover{ text-decoration: underline; }

@media (max-width: 560px){
  .volunteer-actions{ flex-direction: column; }
  .volunteer-form-actions{ flex-direction: column; }
  .volunteer-inline-form .form-row{ grid-template-columns: 1fr; }
  .volunteer-img{ height: 130px; }
}

.steward-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.steward-tag{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .25px;
  text-transform: uppercase;
  color: var(--blue-900);
  background: rgba(34,184,199,.14);
  border: 1px solid rgba(31,53,83,.12);
  box-shadow: 0 10px 18px rgba(10,30,55,.06);
}

.steward-profile{
  display:flex;
  align-items:center;
  gap: 12px;
}
.steward-photo{
  width: 74px;
  height: 74px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(31,53,83,.14);
  box-shadow: 0 12px 22px rgba(10,30,55,.10);
  background: #e7f3ff;
  flex: 0 0 auto;
}
.steward-meta{ min-width: 0; }
.steward-name{
  font-size: 12.5px;
  font-weight: 900;
  color: var(--blue-900);
  line-height: 1.2;
}
.steward-role{
  margin-top: 3px;
  font-size: 10.5px;
  color: rgba(22,50,79,.78);
  font-weight: 800;
}
.steward-location{
  margin-top: 2px;
  font-size: 10.2px;
  color: var(--muted);
  font-weight: 700;
}

/* Project steward social links */
.steward-social{
  margin-top: 8px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.steward-social-btn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(31,53,83,.12);
  color: rgba(22,50,79,.78);
  box-shadow: 0 10px 18px rgba(10,30,55,.06);
  text-decoration: none;
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
}

.steward-social-btn svg{ width: 18px; height: 18px; }

.steward-social-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 24px rgba(10,30,55,.10);
}

.steward-social-btn:active{ transform: translateY(0px); }

.steward-about-title{
  margin: 12px 0 6px;
  font-size: 10px;
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: .22px;
  text-transform: uppercase;
}
.steward-bio{
  margin: 0;
  font-size: 10.6px;
  color: var(--muted);
  line-height: 1.8;
}

.steward-quote{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(31,53,83,.12);
  box-shadow: 0 10px 18px rgba(10,30,55,.06);
  display:flex;
  gap: 10px;
  align-items:flex-start;
}
.steward-quote .qic{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(34,184,199,.12);
  border: 1px solid rgba(31,53,83,.12);
  flex: 0 0 auto;
}
.steward-quote .qic svg{ width: 18px; height: 18px; }
.steward-quote-text{
  margin:0;
  font-size: 10.6px;
  color: rgba(22,50,79,.78);
  line-height: 1.75;
  font-style: italic;
}

.steward-actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}
.steward-actions .btn{
  flex: 1;
  justify-content:center;
}

@media (max-width: 560px){
  .steward-profile{ align-items:flex-start; }
  .steward-photo{ width: 68px; height: 68px; border-radius: 18px; }
  .steward-actions{ flex-direction: column; }
}


/* Responsive */
@media (max-width: 980px){
  .project-intro-grid{ grid-template-columns: 1fr; }
  .project-metrics{ grid-template-columns: 1fr; }
  .project-detail-grid{ grid-template-columns: 1fr; }
  .timeline-grid{ grid-template-columns: 1fr; }
  .solution-media img{ height: 170px; }
}

@media (max-width: 560px){
  .project-hero-content{ padding: 22px 18px; }
  .project-hero-title{ font-size: 28px; }
  .donate-row{ flex-direction: column; }
  .donate-btn{ width: 100%; justify-content: center; }
  .impact-grid{ grid-template-columns: 1fr; }
}

/* Projects list rows act as links */
a.project-row{ color: inherit; text-decoration: none; }
a.project-row:hover{ transform: translateY(-1px); box-shadow: 0 12px 26px rgba(10,30,55,.14); border-color: rgba(31,53,83,.16); }


/* =========================================================
   Projects directory (Projects Map page)
   ========================================================= */
.projects-directory-card .directory-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 14px;
}
.directory-toolbar{
  display:flex;
  gap: 12px;
  align-items:center;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 14px;
}
.directory-search{
  flex: 1 1 420px;
  min-width: 260px;
}
.directory-select{
  flex: 0 0 auto;
}
.select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(22,50,79,.65) 50%),
    linear-gradient(135deg, rgba(22,50,79,.65) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) calc(1em + 2px),
    calc(100% - 13px) calc(1em + 2px),
    0 0;
  background-size: 5px 5px, 5px 5px, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.projects-block .block-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

/* Projects directory — “View more” row */
.view-more-row{
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.view-more-row .btn{
  min-width: 160px;
}
.count-pill{
  font-size: 11px;
  font-weight: 800;
  color: var(--blue-800);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(31,53,83,.12);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: var(--shadow-soft);
}

.rel-card--interactive{
  cursor: pointer;
}
.rel-card--interactive:focus{
  outline: 3px solid rgba(29,78,216,.22);
  outline-offset: 3px;
}
.rel-card--interactive:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(10,30,55,.16);
  border-color: rgba(29,78,216,.24);
}

/* Mobile refinements */
@media (max-width: 640px){
  .directory-toolbar{ gap: 10px; }
  .directory-select{ width: 100%; }
  .directory-select .select{ width: 100%; }
}


/* =========================================================
   Contact page — Connect + social
   ========================================================= */
.connect-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: stretch;
}
.connect-media{
  padding: 0;
  overflow:hidden;
}
.connect-media img{
  width:100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display:block;
}
.social-row{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.social-btn{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(31,53,83,.12);
  color: var(--blue-800);
  font-weight: 700;
  text-decoration:none;
  box-shadow: var(--shadow-soft);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.social-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(10,30,55,.14);
  border-color: rgba(29,78,216,.24);
}
.social-ic{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: linear-gradient(180deg, rgba(120,200,235,.32), rgba(255,255,255,.62));
  border: 1px solid rgba(31,53,83,.12);
}
.social-ic svg{ width: 18px; height: 18px; }

.connect-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.connect-note{
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  background: rgba(255,255,255,.55);
  border: 1px dashed rgba(31,53,83,.16);
  border-radius: 12px;
  padding: 12px;
}
.pill-inline{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.66);
  font-weight: 800;
  font-size: 11px;
  color: var(--blue-800);
}

.verify-card{
  overflow:hidden;
  position: relative;
}
.verify-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: stretch;
}
.verify-copy{
  padding: 18px;
}
.verify-kicker{
  font-size: 11px;
  font-weight: 900;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.verify-list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--blue-800);
}
.verify-list li{
  margin: 6px 0;
}
.verify-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.verify-media{
  padding: 0;
  overflow:hidden;
  border-radius: 12px;
}
.verify-media img{
  width:100%;
  height:100%;
  min-height: 280px;
  object-fit: cover;
  display:block;
}

@media (max-width: 980px){
  .connect-grid, .verify-grid{ grid-template-columns: 1fr; }
  .connect-media img{ min-height: 240px; }
}
@media (max-width: 520px){
  .social-row{ grid-template-columns: 1fr; }
}


/* Footer contact line */
.footer-contact{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-contact a{
  color: var(--blue-800);
  font-weight: 700;
  text-decoration:none;
}
.footer-contact a:hover{ text-decoration: underline; }
.footer-dot{
  opacity: .7;
}


/* =========================================================
   Submit an Idea Page (professional, consistent with site)
   ========================================================= */

.idea-hero{
  position: relative;
  padding: 26px 0 10px;
}

.idea-hero::before{
  content:"";
  position:absolute;
  inset:-60px 0 -40px;
  pointer-events:none;
  opacity:.52;
  background-image: url("../img/world-map-watercolor-hq.webp");
  background-size: cover;
  background-repeat:no-repeat;
  background-position: center;
  filter: saturate(1.10) contrast(1.04);
}

.idea-hero-grid{
  position: relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  /* Match hero column heights for a cleaner, premium feel */
  align-items: stretch;
}

.idea-title{
  font-size: 30px;
  letter-spacing: -0.6px;
}

.idea-subtitle strong{ color: rgba(22,50,79,.86); }

.idea-badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 12px;
}

.idea-hero-note{
  margin-top: 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(22,50,79,.72);
  line-height: 1.6;
}

.idea-hero-media{
  overflow:hidden;
  padding: 0;
}

.idea-hero-media img{
  width:100%;
  height: 300px;
  object-fit: cover;
  display:block;
}

.idea-hero-caption{
  padding: 12px 14px 14px;
}

.idea-hero-caption .cap-title{
  font-size: 11px;
  font-weight: 900;
  color: var(--blue-900);
  margin-bottom: 4px;
}

.idea-hero-caption .cap-text{
  font-size: 10px;
  font-weight: 700;
  color: rgba(22,50,79,.70);
  line-height: 1.55;
}

/* Steps */
.idea-steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.step-card{
  padding: 14px;
  border-radius: 16px;
}

.step-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}

.step-icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(31,53,83,.10);
  display:flex;
  align-items:center;
  justify-content:center;
}

.step-icon svg{ width: 22px; height: 22px; }

.step-num{
  font-size: 10px;
  font-weight: 900;
  color: rgba(22,50,79,.65);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(31,53,83,.10);
  border-radius: 999px;
  padding: 6px 10px;
}

.step-title{
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 900;
  color: var(--blue-900);
}

.step-text{
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(22,50,79,.70);
  line-height: 1.55;
}

/* Process grid */
.idea-process-grid{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.idea-process-media{
  padding: 0;
  overflow:hidden;
  border-radius: 16px;
}

.idea-process-media img{
  width:100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display:block;
}

.idea-process-notes{
  padding: 14px;
  border-radius: 16px;
}

.mini-title{
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--blue-900);
}

.mini-muted{
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(22,50,79,.72);
  line-height: 1.55;
}

.mini-list{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.mini-item{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(31,53,83,.10);
  background: rgba(255,255,255,.72);
}

.mini-ic{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(31,53,83,.10);
  background: rgba(255,255,255,.78);
  flex: 0 0 auto;
}
.mini-ic svg{ width: 18px; height: 18px; }

.mini-h{
  font-size: 11px;
  font-weight: 900;
  color: var(--blue-900);
  margin-bottom: 2px;
}

.mini-p{
  font-size: 10.2px;
  font-weight: 700;
  color: rgba(22,50,79,.68);
  line-height: 1.5;
}

.mini-callout{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(31,53,83,.12);
  background:
    radial-gradient(520px 160px at 25% 35%, rgba(34,184,199,.20), transparent 60%),
    rgba(255,255,255,.80);
  font-size: 10.5px;
  font-weight: 800;
  color: rgba(22,50,79,.74);
  line-height: 1.55;
}

.link{
  color: var(--blue-800);
  font-weight: 900;
  text-decoration: none;
}
.link:hover{ text-decoration: underline; }

/* Form */
.idea-form-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;

  /* Cohesive panel so the guidance rail doesn't leave visible gaps */
  background:
    radial-gradient(520px 240px at 12% 18%, rgba(34,184,199,.10), transparent 62%),
    radial-gradient(520px 240px at 86% 22%, rgba(53,98,255,.07), transparent 64%),
    rgba(255,255,255,.16);
  border: 1px solid rgba(31,53,83,.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 14px 30px rgba(10,30,55,.06);
  backdrop-filter: blur(7px);
}

.idea-form-card{
  padding: 14px;
  border-radius: 16px;
}

.idea-form-card textarea.input{
  padding: 10px 10px;
  resize: vertical;
  min-height: 92px;
}

.idea-check{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(31,53,83,.10);
  background: rgba(255,255,255,.72);
}

.idea-check input{
  margin-top: 3px;
}

.btn-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-row .btn{
  width: auto;
  border-radius: 10px;
}

.form-footnote{
  margin: 10px 0 0;
  font-size: 9.8px;
  font-weight: 700;
  color: rgba(22,50,79,.64);
  line-height: 1.5;
}

.idea-after{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(31,53,83,.12);
  background:
    radial-gradient(520px 160px at 30% 30%, rgba(34,184,199,.22), transparent 60%),
    rgba(255,255,255,.85);
}

.idea-after-title{
  font-size: 12px;
  font-weight: 900;
  color: var(--blue-900);
  margin-bottom: 6px;
}

.idea-after-text{
  font-size: 10.5px;
  font-weight: 800;
  color: rgba(22,50,79,.72);
  line-height: 1.6;
}

.idea-side{
  padding: 14px;
  border-radius: 16px;
}

@media (max-width: 980px){
  .idea-hero-grid{ grid-template-columns: 1fr; }
  .idea-steps{ grid-template-columns: 1fr; }
  .idea-process-grid{ grid-template-columns: 1fr; }
  .idea-form-grid{ grid-template-columns: 1fr; }
  .idea-hero-media img{ height: 280px; }
}

@media (max-width: 520px){
  .btn-row{ flex-direction: column; }
  .btn-row .btn{ width: 100%; }
}

/* =========================================================
   Corps Application Page
   ========================================================= */

/* Compact, readable grid for "What Corps Members do" */
.programs-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.program-card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 14px;
}

.program-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}

.program-tag{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .25px;
  color: rgba(22,50,79,.78);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31,53,83,.12);
  background: rgba(255,255,255,.72);
}

.program-card h3{
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: .1px;
}

.program-card p{
  margin: 0;
  font-size: 11.3px;
  font-weight: 650;
  color: rgba(22,50,79,.74);
  line-height: 1.65;
}

.program-icons{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}

.program-icons .ic{
  width: 34px;
  height: 34px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  border: 1px solid rgba(31,53,83,.10);
  background:
    radial-gradient(220px 120px at 30% 30%, rgba(34,184,199,.16), transparent 60%),
    rgba(255,255,255,.80);
}

.program-icons .ic svg{
  width: 18px;
  height: 18px;
}

/* More compact "in action" card (prevents the section from feeling overly tall) */
.corps-snapshot{
  padding: 0;
  overflow:hidden;
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: stretch;
}

.corps-snapshot-media{
  min-height: 240px;
}

.corps-snapshot-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.corps-snapshot-body{
  padding: 18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.corps-snapshot-body h3{
  margin: 0 0 8px;
}

.corps-snapshot-body .muted{
  margin: 0;
  max-width: 70ch;
}

@media (max-width: 980px){
  .programs-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .corps-snapshot{ grid-template-columns: 1fr; }
  .corps-snapshot-media{ min-height: 220px; }
}

@media (max-width: 620px){
  .programs-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   Layout polish — reduce awkward "holes" + keep panels tidy on small screens
   ========================================================= */

@media (max-width: 820px){
  .home-grid,
  .donation-grid,
  .contact-main-grid,
  .page-grid,
  .idea-form-grid,
  .project-intro-grid,
  .project-detail-grid{
    padding: 12px;
    border-radius: 16px;
  }
}

@media (max-width: 520px){
  .home-grid,
  .donation-grid,
  .contact-main-grid,
  .page-grid,
  .idea-form-grid,
  .project-intro-grid,
  .project-detail-grid{
    padding: 10px;
    border-radius: 14px;
  }
}

/* =========================================================
   Professional polish pass (site-wide)
   ========================================================= */

html{ scroll-behavior: smooth; }

/* Strong, consistent keyboard focus (accessible + premium) */
:where(a, button, input, select, textarea, .btn, .chip):focus-visible{
  outline: 3px solid rgba(34,184,199,.45);
  outline-offset: 2px;
}

/* Improve card focus for keyboard navigation */
.card:focus-within{
  box-shadow: 0 12px 30px rgba(11,34,63,.18), 0 0 0 3px rgba(34,184,199,.22);
  border-color: rgba(34,184,199,.26);
}

/* Slightly more readable form fields on desktop */
.input{
  font-size: 12px;
  padding: 10px 12px;
}

/* Improve long-form readability */
.page-card p{ font-size: 12px; }
.footer-note{ font-size: 12px; }
.footer-links a{ font-size: 12px; }

/* Footer utility links */
.subfooter a{ color: inherit; text-decoration: none; }
.subfooter a:hover{ text-decoration: underline; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* ============================================================
   Premium cleanup utilities (remove inline spacers / widths)
   ============================================================ */

.spacer{ display:block; width:100%; }
.spacer-10{ height:10px; }
.spacer-12{ height:12px; }
.spacer-14{ height:14px; }
.spacer-18{ height:18px; }

.mt-8{ margin-top:8px !important; }
.mt-10{ margin-top:10px !important; }
.mt-12{ margin-top:12px !important; }
.mt-14{ margin-top:14px !important; }

.btn-block{ width:100%; justify-content:center; }

.textarea-tall{ min-height:120px; resize:vertical; }
.textarea-med{ min-height:110px; resize:vertical; }

/* Used for inline collage-style media cards (Transparency, etc.) */
.card-media{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(31,53,83,.12);
  box-shadow:0 12px 26px rgba(10,30,55,.10);
  margin:4px 0 12px;
}

/* Map blocks: moved from inline styles into CSS */
.hero-map{ height:460px; }
.hero-map--home{ height:470px; }

@media (max-width: 980px){
  .hero-map{ height:420px; }
  .hero-map--home{ height:440px; }
}

@media (max-width: 640px){
  .hero-map{ height:360px; }
  .hero-map--home{ height:380px; }
}

/* --- Utility: horizontal spacing --- */
.ml-10{ margin-left:10px !important; }

/* --- Transparency downloads row --- */
.download-row{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }


/* ============================================================
   Brand consistency pass — section headers + subtitles
   (standardizes spacing, divider rules, and supporting copy)
   ============================================================ */

/* Margin-bottom utilities (used to remove inline styles) */
.mb-0{ margin-bottom:0 !important; }
.mb-6{ margin-bottom:6px !important; }
.mb-10{ margin-bottom:10px !important; }
.mb-12{ margin-bottom:12px !important; }

/* Shared small/secondary copy */
.small,
.section-sub,
.section-note,
.about-lead{
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.75;
}

/* Unified section-head layout across pages */
.section-head,
.about-section-head,
.project-related-card .related-head,
.projects-directory-card .directory-head{
  position: relative;
  padding-bottom: 12px;
  margin: 0 0 14px;
}

.section-head::after,
.about-section-head::after,
.project-related-card .related-head::after,
.projects-directory-card .directory-head::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: linear-gradient(
    90deg,
    rgba(31,53,83,.18) 0%,
    rgba(31,53,83,.10) 40%,
    rgba(31,53,83,.00) 88%
  );
}

/* Title typography inside section heads */
.section-head h2,
.section-head h3,
.about-section-head h2,
.about-section-head h3,
.project-related-card .related-head h2,
.projects-directory-card .directory-head h2{
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: .2px;
}

/* Home page: treat column headers as section heads */
.home-grid > div > .section-title{
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 900;
  color: var(--blue-900);
}
.home-grid > div > .section-title::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: linear-gradient(
    90deg,
    rgba(31,53,83,.18) 0%,
    rgba(31,53,83,.10) 40%,
    rgba(31,53,83,.00) 88%
  );
}

/* Home page: Upcoming Events header row */
.right-top{
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.right-top::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: linear-gradient(
    90deg,
    rgba(31,53,83,.18) 0%,
    rgba(31,53,83,.10) 40%,
    rgba(31,53,83,.00) 88%
  );
}
.right-top .section-title{ margin: 0; }

/* Donate pages: split-copy headers get a rule for consistency */
.split-copy > .section-title{
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 900;
  color: var(--blue-900);
}
.split-copy > .section-title::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: linear-gradient(
    90deg,
    rgba(31,53,83,.18) 0%,
    rgba(31,53,83,.10) 40%,
    rgba(31,53,83,.00) 88%
  );
}

/* Projects Map blocks: align headings + subtitle spacing */
.projects-block .block-head{
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.projects-block .block-head::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: linear-gradient(
    90deg,
    rgba(31,53,83,.18) 0%,
    rgba(31,53,83,.10) 40%,
    rgba(31,53,83,.00) 88%
  );
}
.projects-block .block-head h3{
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: .2px;
}

/* Project pages: tighten section title spacing (more consistent rhythm) */
.project-section-title{
  margin-bottom: 10px;
}

/* =========================================================
   Premium Card Consistency Pass (v14)
   - Standardize card header rows, badge rows, and CTA strips
   - Keeps overall design; improves internal rhythm and alignment
   ========================================================= */

:root{
  --card-head-gap: 10px;
  --card-head-mb: 12px;
  --card-head-pb: 10px;
  --card-head-rule: 1px solid rgba(31,53,83,.10);

  --badge-row-gap: 10px;
  --cta-row-gap: 10px;
}

/* Card header rows: consistent spacing + subtle divider */
.card :is(.card-head,
          .contact-card-head,
          .donate-form-head,
          .alloc-head,
          .volunteer-apply-head,
          .work-head,
          .steward-top,
          .volunteer-top,
          .program-top,
          .step-top){
  gap: var(--card-head-gap);
  margin-bottom: var(--card-head-mb);
  padding-bottom: var(--card-head-pb);
  border-bottom: var(--card-head-rule);
}

/* Ensure titles inside header rows don't bring extra margins */
.donate-form-head h2,
.work-head h2,
.contact-card-head h2{
  margin:0;
}

/* Contact card head has title + small description; tighten it slightly */
.contact-card-head h2{ margin:0 0 6px; }
.contact-card-head .muted-small{ margin:0; }

/* "Mini" card headers (icon + label) */
.card-head{
  margin-bottom: var(--card-head-mb);
  padding-bottom: var(--card-head-pb);
  border-bottom: var(--card-head-rule);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2px;
  text-transform: none;
  color: rgba(22,50,79,.78);
}
.card-head svg{
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Project steward + volunteer headers use project-section-title; remove bottom margin in row layout */
.steward-top .project-section-title,
.volunteer-top .project-section-title{
  margin:0;
}

/* Badge rows / chip rows: consistent gaps and alignment */
:where(.map-tags,
       .donate-badges,
       .idea-badges,
       .contact-badges,
       .contact-chip-row,
       .value-chips,
       .step-chips,
       .legend-chips){
  gap: var(--badge-row-gap);
  align-items:center;
}

/* CTA strips inside cards: consistent alignment and gaps */
:where(.rel-actions,
       .steward-actions,
       .verify-actions,
       .volunteer-actions,
       .volunteer-form-actions,
       .guarantee-actions,
       .popover-actions,
       .contact-route-actions){
  align-items:center;
  gap: var(--cta-row-gap);
}

/* Button rows should wrap nicely on smaller widths without breaking rhythm */
:where(.rel-actions,
       .steward-actions,
       .verify-actions,
       .volunteer-actions,
       .popover-actions,
       .contact-route-actions){
  flex-wrap: wrap;
}

/* Standardize tiny label rows used in some cards */
.alloc-title{
  font-size: 11px;
  font-weight: 900;
  color: rgba(22,50,79,.78);
  letter-spacing: .10em;
  text-transform: uppercase;
}

/* Small text inside cards: consistent leading */
.card p.small,
.card .small{
  line-height: 1.6;
}
/* Include additional card header rows used across the site */
.card :is(.donate-top, .location-top){
  gap: var(--card-head-gap);
  margin-bottom: var(--card-head-mb);
  padding-bottom: var(--card-head-pb);
  border-bottom: var(--card-head-rule);
}


/* =========================================================
   Card Body Stack Consistency Pass (v15)
   - Standardize internal vertical rhythm inside cards
   - Pattern: kicker → title → paragraph → meta → progress → actions
   ========================================================= */

:root{
  --stack-1: 4px;   /* micro */
  --stack-2: 6px;   /* tight */
  --stack-3: 10px;  /* standard */
  --stack-4: 12px;  /* roomy */
}

/* Generic stack utility (optional; safe to add in markup where helpful) */
.card-stack{
  display:flex;
  flex-direction:column;
  gap: var(--stack-3);
}
.card-stack--tight{ gap: var(--stack-2); }
.card-stack--roomy{ gap: var(--stack-4); }
.card-stack > :is(h1,h2,h3,h4,h5,h6,p){ margin:0; }
.card-stack > :is(ul,ol){ margin:0; }

/* PROJECT MAP POPOVERS — match project cards (title/meta/desc/progress/actions) */
.popover-body{
  display:flex;
  flex-direction:column;
  gap: var(--stack-2);
}
.popover-meta{ margin:0; }
.popover-desc{ margin:0; }

.popover-progress{
  margin-top: 4px; /* aligns with .rel-progress */
  display:flex;
  flex-direction:column;
  gap: var(--stack-2);
}
.popover-progress .progress-row{ margin:0; }
.popover-actions{ margin-top: 0; }

/* CONTACT ROUTE CARDS — consistent internal stack */
.contact-route{
  display:flex;
  flex-direction:column;
  gap: var(--stack-3);
}
.contact-route-title{ margin:0; }
.contact-route-actions{ margin-top:0; }

/* LOCATION CARDS — body stack */
.location-body{
  display:flex;
  flex-direction:column;
  gap: var(--stack-3);
}
/* location-top is treated as a header row elsewhere; let parent gap control spacing */
.location-body .location-top{ margin-bottom:0; }
.location-note{ margin:0; }
.location-meta{ margin-top:0; }
.location-actions{ margin-top:0; }

/* CONTACT SIDE CARDS — consistent rhythm */
.contact-details-card,
.connect-card{
  display:flex;
  flex-direction:column;
  gap: var(--stack-3);
}
/* contact-card-head is treated as a header row elsewhere; let parent gap control spacing */
.contact-details-card .contact-card-head,
.connect-card .contact-card-head{ margin-bottom:0; }

.detail-list{ margin-top:0; }
.contact-side-actions{ margin-top:0; }

/* Connect card inner blocks previously used margin-top for spacing; parent gap now handles it */
.connect-card .social-row{ margin-top:0; }
.connect-actions{ margin-top:0; }
.connect-note{ margin-top:0; }

/* VERIFY CARD — left column stack */
.verify-copy{
  display:flex;
  flex-direction:column;
  gap: var(--stack-3);
}
.verify-copy > :is(h3,p){ margin:0; }
.verify-list{ margin:0; }
.verify-actions{ margin-top:0; }

/* DONATION SUMMARY — stack and remove manual offsets so rhythm matches other cards */
.donate-summary{
  display:flex;
  flex-direction:column;
  gap: var(--stack-3);
}
.donate-summary > :is(h2,p){ margin:0; }
.donate-summary .summary-kpi{ margin-top:0; }
.donate-summary .impact-list{ margin-top:0; }
.donate-summary .alloc-head{ margin-top:0; }
.donate-summary .alloc-bars{ margin-top:0; }

/* TRANSPARENCY POLICY/REPORT TILES — text column stack */
.project-row > div{
  display:flex;
  flex-direction:column;
  gap: var(--stack-1);
}
.project-row .meta,
.project-row .small{ margin-top:0; }

/* PROJECT STEWARD + VOLUNTEER CARDS — stack blocks (header/body/actions) */
.project-steward-card,
.project-volunteer-card{
  display:flex;
  flex-direction:column;
  gap: var(--stack-3);
}

/* Remove legacy margins (parent gap now controls rhythm) */
.project-steward-card .steward-top,
.project-volunteer-card .volunteer-top{ margin-bottom:0; }

.steward-meta{
  display:flex;
  flex-direction:column;
  gap: var(--stack-1);
}
.steward-role,
.steward-location{ margin-top:0; }
.steward-social{ margin-top:0; }

.steward-about{
  display:flex;
  flex-direction:column;
  gap: var(--stack-1);
}
.steward-about-title{ margin:0; }

.steward-quote,
.steward-actions{ margin-top:0; }

.volunteer-note,
.volunteer-roles,
.project-volunteer-card .mini-links,
.volunteer-apply-block{ margin-top:0; }


/* =========================================================
   Card Micro‑Typography Pass (v16)
   - Standardize line-height, letter-spacing, and weight ramps
   - Improves readability + consistency across compact UI cards
   ========================================================= */

:root{
  --type-title-lh: 1.22;
  --type-body-lh: 1.60;
  --type-meta-lh: 1.45;

  --type-title-ls: .01em;
  --type-meta-ls: .02em;
  --type-kicker-ls: .12em;

  --fw-title: 900;
  --fw-kicker: 900;
  --fw-meta: 700;
  --fw-body: 500;
  --fw-small: 600;
}

/* Subtle font smoothing for a cleaner, more premium feel */
body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Kicker / label rows (uppercase chips + tiny titles) */
.rel-kicker,
.steward-tag,
.verify-kicker,
.alloc-title,
.steward-about-title,
.campaign-supporting-kicker{
  letter-spacing: var(--type-kicker-ls);
  font-weight: var(--fw-kicker);
}

/* Titles inside compact cards */
.rel-body h4,
.popover-title,
.contact-route-title,
.steward-name,
.location-top h3,
.detail-title,
.impact-title,
.update-title,
details.faq summary,
.project-row h3{
  letter-spacing: var(--type-title-ls);
  line-height: var(--type-title-lh);
  font-weight: var(--fw-title);
  text-wrap: balance;
}

/* Meta lines (location / role / status / small KPI labels) */
.rel-meta,
.popover-meta,
.steward-role,
.steward-location,
.project-row .meta,
.rel-progress-row,
.progress-row,
.location-meta,
.detail-sub,
.summary-frequency,
.secure-note,
.pill-inline{
  letter-spacing: var(--type-meta-ls);
  line-height: var(--type-meta-lh);
  font-weight: var(--fw-meta);
}

/* Body copy inside compact cards */
.rel-body p,
.popover-desc,
.contact-route-text,
.steward-bio,
.connect-note,
.impact-sub,
.update-desc,
.location-note,
.detail-text,
details.faq .faq-body,
.project-row .small{
  line-height: var(--type-body-lh);
  font-weight: var(--fw-body);
  text-wrap: pretty;
}

/* Keep standardized small copy readable within cards */
.card .small{ font-weight: var(--fw-small); }

/* Numeric alignment in KPIs and progress rows */
.stat-value,
.summary-amount,
.count-pill,
.pill-inline,
.rel-progress-row span:last-child,
.progress-row span:last-child{
  font-variant-numeric: tabular-nums;
}




/* =========================================================
   Premium UX Additions (v17)
   - Active nav indicator
   - Sticky mini-header
   - Breadcrumb bar
   - Process stepper
   - Trust badges
   - Sticky donate bar (mobile)
   - Map legend
   ========================================================= */

/* Active nav link */
.navlinks a.nav-link,
.mobile-links a.nav-link{
  position: relative;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}
.navlinks a.nav-link.is-active{
  color: rgba(255,255,255,.98);
  opacity: 1;
}
.navlinks a.nav-link.is-active::after{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: -10px;
  height: 2px;
  border-radius: 2px;
  background: rgba(20,184,199,.92);
  box-shadow: 0 8px 18px rgba(20,184,199,.25);
}
.mobile-links a.nav-link.is-active{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.nav-actions a.is-active-cta{
  box-shadow: 0 14px 26px rgba(16,185,199,.18);
  transform: translateY(-1px);
}

/* Sticky mini-header */
.site-header.is-scrolled{
  background: linear-gradient(180deg, rgba(19,34,55,.98), rgba(24,44,70,.95));
  box-shadow: 0 10px 22px rgba(9,26,47,.22);
}
.site-header.is-scrolled .navbar{
  height: 58px;
}
.site-header.is-scrolled .brand-logo{
  height: 28px;
}

/* Breadcrumb bar */
.breadcrumb-bar{
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(22,50,79,.10);
  backdrop-filter: blur(10px);
}
.breadcrumb{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 0;
  font-size: 13px;
  color: rgba(22,50,79,.72);
}
.breadcrumb a{
  color: rgba(22,50,79,.78);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover{ text-decoration: underline; }
.breadcrumb .sep{
  color: rgba(22,50,79,.45);
  font-weight: 700;
  user-select: none;
}
.breadcrumb .current{
  color: rgba(22,50,79,.85);
  font-weight: 700;
  letter-spacing: .01em;
}

/* Process stepper (home) */
.process-card .process-head{
  display:flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.process-stepper{
  list-style: none;
  margin: 0;
  padding: 0;
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.process-step{
  border: 1px solid rgba(22,50,79,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.74));
  border-radius: 14px;
  padding: 12px 12px 12px 12px;
  box-shadow: 0 10px 22px rgba(9,26,47,.06);
  display:flex;
  gap: 10px;
  min-height: 88px;
}
.process-num{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: rgba(22,50,79,.9);
  background: rgba(20,184,199,.18);
  border: 1px solid rgba(20,184,199,.22);
  flex: 0 0 auto;
}
.process-title{
  font-weight: 800;
  color: rgba(22,50,79,.92);
  font-size: 13.5px;
  line-height: 1.25;
  margin-bottom: 4px;
}
.process-text{
  font-size: 12.5px;
  color: rgba(22,50,79,.74);
  line-height: 1.35;
}

@media (max-width: 980px){
  .process-stepper{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .process-stepper{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step{ min-height: 96px; }
}

/* Trust badges */
.trust-badges{
  display:flex;
  align-items:center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.trust-badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22,50,79,.10);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 22px rgba(9,26,47,.06);
  font-size: 12px;
  font-weight: 700;
  color: rgba(22,50,79,.82);
  white-space: nowrap;
}
.trust-badge svg{
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display:block;
}
.trust-badges--compact{
  margin-top: 10px;
}
.trust-badges--compact .trust-badge{
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 700;
}

/* Sticky donate bar (mobile only) */
.sticky-donate-bar{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1200;
  background: rgba(13,27,48,.92);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
  padding: 10px 12px;
  display: none;
}
.sticky-donate-bar .bar-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.sticky-donate-bar .bar-title{
  font-weight: 900;
  color: rgba(255,255,255,.95);
  font-size: 13.5px;
  line-height: 1.2;
  max-width: 44vw;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sticky-donate-bar .bar-sub{
  color: rgba(255,255,255,.74);
  font-size: 12px;
  margin-top: 2px;
  letter-spacing: .01em;
}
.sticky-donate-bar .bar-actions{
  display:flex;
  gap: 8px;
  align-items:center;
  flex: 0 0 auto;
}

@media (max-width: 760px){
  body.has-sticky-donate{ padding-bottom: 88px; }
  body.has-sticky-donate .sticky-donate-bar{ display: block; }
}

/* Map legend */
.map-legend{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
  justify-content: flex-start;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(22,50,79,.10);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
}
.legend-item{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22,50,79,.10);
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 22px rgba(9,26,47,.06);
  font-size: 12px;
  font-weight: 800;
  color: rgba(22,50,79,.82);
}
.legend-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--dot, rgba(22,50,79,.55));
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
}
.legend-count{
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  color: rgba(22,50,79,.62);
  margin-left: 2px;
}
.legend-item--all{
  background: rgba(255,255,255,.86);
}


/* Anchor scroll offset for sticky header */
section[id], div[id], main[id]{
  scroll-margin-top: 92px;
}

/* Desktop: keep donate summary visible while reading project details */
@media (min-width: 980px){
  .project-left .project-donate-card{
    position: sticky;
    top: 92px;
  }
}


/* Verification checklist */
.check-list{
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.check-list li{
  position: relative;
  padding-left: 22px;
  color: rgba(22,50,79,.78);
  font-size: 13px;
  line-height: 1.35;
}
.check-list li::before{
  content:"";
  position:absolute;
  left:0;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: rgba(20,184,199,.18);
  border: 1px solid rgba(20,184,199,.22);
}
.check-list li::after{
  content:"✓";
  position:absolute;
  left:3px;
  top: -1px;
  font-weight: 900;
  color: rgba(20,184,199,.95);
  font-size: 12px;
}
.project-verification-card .btn{
  margin-top: 2px;
}






/* =========================================================
   Section seam fix: prevent background pseudo-elements from
   bleeding into adjacent sections (removes dark/black gaps)
   ========================================================= */

/* Clip hero background washes that used negative insets */
.donate-hero,
.about-hero,
.contact-hero,
.idea-hero{
  overflow: hidden;
  isolation: isolate;
}

/* The homepage hero contains interactive map popovers; avoid clipping that UI
   by stopping the background wash from bleeding instead of hiding overflow. */
.hero{ isolation: isolate; }
.hero::after{ inset: 0; } /* previously negative inset could show dark seams */

/* Reduce oversized background insets that could create dark seams */
.about-hero::before,
.contact-hero::before,
.idea-hero::before,
.donate-hero::before{
  inset: 0;
}



/* Accessibility utilities (v22) */
.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;
}


/* =========================================================
   Mobile + Tablet Layout Cleanup
   - Prevents cramped multi-column layouts
   - Improves map toolbar + popover usability on touch devices
   - Ensures navigation collapses before links wrap
   ========================================================= */

/* Navigation: collapse earlier (tablets + phones) */
@media (max-width: 980px){
  .navlinks{ display:none; }
  .nav-toggle{ display:inline-flex; }
  /* Keep primary Donate visible; hide outline CTA to reduce crowding */
  .nav-actions{ display:none; }
}

/* Mobile drawer: allow scrolling and respect safe areas */
.mobile-drawer{
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

/* Hero + Map UI on small screens */
@media (max-width: 720px){
  /* Map toolbar stacks cleanly */
  .map-toolbar{
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }
  .hero-map--home .map-toolbar{
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
  }
  .map-search{ width: 100%; }
  .map-tags{
    width: 100%;
    justify-content:flex-start;
    overflow-x:auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .map-tags .chip{ flex: 0 0 auto; }

  /* Popover becomes a bottom sheet so it never overflows the map */
  .project-popover{
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    max-width: none;
    border-radius: 14px;
  }
  .hero-map--home .project-popover{
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
  }
  .popover-inner{
    grid-template-columns: 110px 1fr;
  }
  .hero-map--home .popover-inner{
    grid-template-columns: 110px 1fr;
  }

  /* Slightly larger tap targets */
  .chip{ padding: 9px 12px; }
  .btn, .btn-sm{ min-height: 42px; }
  .btn-sm{ padding: 10px 12px; font-size: 11px; }
}

@media (max-width: 520px){
  .popover-inner{ grid-template-columns: 96px 1fr; }
  .popover-desc{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Global grids: stack or reduce columns on smaller screens */
@media (max-width: 980px){
  .home-grid{ grid-template-columns: 1fr; gap: 18px; }
  .program-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-row{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }

  .page-grid,
  .donation-grid,
  .contact-main-grid,
  .idea-form-grid,
  .project-detail-grid{
    grid-template-columns: 1fr;
  }

  .project-metrics{ grid-template-columns: repeat(2, 1fr); }
  .timeline-grid,
  .solution-media,
  .metric-row,
  .form-row,
  .bullet-grid{
    grid-template-columns: 1fr;
  }

  .give-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programs-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px){
  .program-grid{ grid-template-columns: 1fr; }
  .stats-row{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid{ grid-template-columns: 1fr; }
  .give-grid{ grid-template-columns: 1fr; }
  .programs-grid{ grid-template-columns: 1fr; }
  .project-metrics{ grid-template-columns: 1fr; }
}

/* Sticky donate bar: account for iOS safe area so it never overlaps system UI */
.sticky-donate-bar{
  bottom: calc(14px + env(safe-area-inset-bottom));
}
@media (max-width: 760px){
  body.has-sticky-donate{
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}


/* Donation amount buttons: avoid cramped 4-across on phones */
@media (max-width: 640px){
  .amount-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px){
  .amount-grid{ grid-template-columns: 1fr; }
}


/* =========================================================
   Mobile Map Hint (first visit)
   - Shown on touch + small screens to explain map interaction
========================================================= */
.gic-map-hint{
  position:absolute;
  left: 14px;
  top: 78px;
  z-index: 1006; /* above Leaflet controls */
  max-width: 320px;
  transition: opacity .18s ease, transform .18s ease;
  will-change: opacity, transform;
  pointer-events: none;
}
.hero-map--home .gic-map-hint{ top: 88px; }
.gic-map-hint__inner{
  pointer-events: auto;
  display:flex;
  align-items:flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 24, 40, .86);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 26px rgba(0,0,0,.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.gic-map-hint__icon{
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  flex: 0 0 auto;
  margin-top: 1px;
}
.gic-map-hint__text{ min-width: 0; }
.gic-map-hint__title{
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 2px;
  line-height: 1.1;
}
.gic-map-hint__body{
  font-size: 11.6px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  line-height: 1.25;
}
.gic-map-hint__body strong{ color: #ffffff; font-weight: 900; }
.gic-map-hint__close{
  width: 26px;
  height: 26px;
  border-radius: 10px;
  border: 0;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 26px;
  cursor: pointer;
  flex: 0 0 auto;
  margin-left: 2px;
}
.gic-map-hint__close:active{ transform: translateY(1px); }
.gic-map-hint.is-dismissed{
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
@media (max-width: 520px){
  .gic-map-hint{
    left: 12px;
    right: 12px;
    max-width: none;
  }
  .gic-map-hint__inner{ width: 100%; }
}
@media (prefers-reduced-motion: reduce){
  .gic-map-hint{ transition: none; }
  .gic-map-hint__close:active{ transform: none; }
}


/* --- Rail filler cards (donate/contact/project) --- */
.donate-fill-card,
.contact-fill-card,
.project-sidefill-card{
  position: relative;
  overflow: hidden;
}

.donate-fill-card{
  flex: 1 1 auto;
  padding: 16px;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
}
.donate-fill-card::before{
  content:"";
  position:absolute;
  inset:-80px -90px;
  background:
    radial-gradient(520px 240px at 18% 18%, rgba(34,184,199,.12), transparent 62%),
    radial-gradient(620px 260px at 80% 20%, rgba(53,98,255,.10), transparent 64%),
    url("../img/world-map-watercolor-hq.webp");
  background-size: cover;
  background-position: center;
  opacity: .18;
  pointer-events:none;
  filter: saturate(1.05) contrast(.98);
}
.donate-fill-card > *{ position: relative; z-index: 1; }
.donate-fill-text{ margin-top: 10px; }
.donate-fill-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.donate-fill-actions .btn{ flex: 1 1 auto; }

.contact-fill-card{
  flex: 1 1 auto;
  padding: 16px;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-fill-card::before{
  content:"";
  position:absolute;
  inset:-90px -110px;
  background:
    radial-gradient(520px 240px at 18% 18%, rgba(34,184,199,.10), transparent 62%),
    radial-gradient(680px 300px at 84% 26%, rgba(53,98,255,.10), transparent 64%),
    url("../img/world-map-watercolor-hq.webp");
  background-size: cover;
  background-position: center;
  opacity: .16;
  pointer-events:none;
  filter: saturate(1.04) contrast(.98);
}
.contact-fill-card > *{ position: relative; z-index: 1; }
.contact-fill-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.contact-fill-actions .btn{ flex: 1 1 auto; }

.social-row--mini .social-btn{
  padding: 10px 10px;
  font-size: 12px;
}
.social-row--mini .social-ic{ width: 28px; height: 28px; }

.project-sidefill-card{
  flex: 1 1 auto;
  padding: 16px;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-sidefill-card::before{
  content:"";
  position:absolute;
  inset:-120px -140px;
  background:
    radial-gradient(520px 260px at 20% 20%, rgba(34,184,199,.12), transparent 62%),
    radial-gradient(680px 300px at 84% 26%, rgba(53,98,255,.10), transparent 64%),
    url("../img/world-map-watercolor-hq.webp");
  background-size: cover;
  background-position: center;
  opacity: .14;
  pointer-events:none;
  filter: saturate(1.06) contrast(.98);
}
.project-sidefill-card > *{ position: relative; z-index: 1; }
.sidefill-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.sidefill-title{
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: .01em;
}
.sidefill-form{ margin-top: 12px; }
.sidefill-form .form-row{ gap: 10px; }
.sidefill-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.sidefill-actions .btn{ flex: 1 1 auto; }
