/* ===================================================================
   AESDI — Design Tokens
   Palette re-themed to match the official AESDI logo: ochre/gold map +
   green graduation cap & river + white. Variable NAMES are kept the
   same as before so any other page that already uses these tokens
   inherits the new theme automatically — only the values changed.
   =================================================================== */
:root {
  /* Color */
  --indigo:      #16241A;  /* dark green-black — primary text & nav-on-white */
  --indigo-deep: #0E3D1F;  /* deep forest green — header-at-top bg, darkest panels, footer */
  --clay:        #B8860B;  /* GOLD — primary brand accent (buttons, links, eyebrow) */
  --clay-deep:   #8F6A08;  /* darker gold — hover state for clay */
  --gold:        #D4A017;  /* secondary, slightly brighter gold — awards/numbers/stats */
  --forest:      #0B7A2E;  /* GREEN from the logo cap & river — community/growth accent */
  --paper:       #FCFBF6;  /* warm near-white background */
  --sand:        #F2F0E4;  /* alternate section background, warm light neutral */
  --ink-soft:    #4A4F46;  /* secondary text on paper */
  --line:        #E2DFD2;  /* hairline borders on paper */
  --white:       #FFFFFF;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", Menlo, monospace;

  /* Layout */
  --max-width: 1180px;
  --radius: 6px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--indigo);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.6em; color: var(--indigo); font-weight: 600; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-3); }
.section { padding: var(--space-5) 0; }
.section--alt { background: var(--sand); }
.section--dark { background: var(--indigo-deep); color: #E9E5DC; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.visually-hidden { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* Skip link for keyboard users */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--indigo-deep); padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

/* Eyebrow / label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.9em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--clay); display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75em 1.4em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--clay); color: var(--white); }
.btn-primary:hover { background: var(--clay-deep); color: var(--white); }
.btn-gold { background: var(--forest); color: var(--white); }
.btn-gold:hover { background: #075C22; color: var(--white); }
.btn-outline { background: transparent; border-color: var(--indigo); color: var(--indigo); }
.btn-outline:hover { background: var(--indigo); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--indigo-deep); }
.btn-sm { padding: 0.45em 0.9em; font-size: 0.82rem; }
.btn-block { width: 100%; justify-content: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8em; margin-top: 1.4em; }

/* ---------- Header / Nav ----------
   Two visual states:
   - default (page top): deep green background, white logo mark + white text
   - .scrolled (added by JS once user scrolls past threshold): white
     background, full-colour logo mark + dark text
   ------------------------------------------------------------------- */
.site-header {
  background: var(--indigo-deep);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: var(--white);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(22,36,26,0.08);
  color: var(--indigo);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.7em 0; }
/* --- Updated Brand & Logo Styles --- */
/* --- Updated Brand & Logo Styles --- */
.brand { 
  display: flex; 
  align-items: center; 
  color: inherit; 
  position: relative;
  /* Prevent logo from sticking to the screen boundary on mobile */
  margin-left: 0.5em; 
}

.brand-mark { 
  /* This controls the structural space the logo takes up inside the header */
  width: 70px;  
  height: 50px; 
  flex-shrink: 0; 
  position: relative; 
  display: flex; 
  align-items: center; 
  justify-content: center;
}

.mark-img { 
  /* Increase visual size up to 160% without affecting the structural header height */
  transform: scale(3);
  transform-origin: left center;
  
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  display: block; 
}

.mark-scrolled { display: none; }
.site-header.scrolled .mark-top { display: none; }
.site-header.scrolled .mark-scrolled { display: block; }

.mark-scrolled { display: none; }
.site-header.scrolled .mark-top { display: none; }
.site-header.scrolled .mark-scrolled { display: block; }
.brand-text { color: inherit; line-height: 1.15; }
.brand-text b { display: block; font-size: 1.05rem; letter-spacing: 0.02em; color: inherit; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.64rem; letter-spacing: 0.05em; color: inherit; opacity: 0.78; text-transform: uppercase; margin-top: 0.1em; }

.main-nav { display: flex; align-items: center; gap: 1.6em; }
.main-nav ul { display: flex; gap: 1.4em; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-weight: 500; font-size: 0.93rem; color: inherit; }
.main-nav > ul > li > a:hover { color: var(--gold); }
.has-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 280px; padding: 0.5em; box-shadow: 0 12px 28px rgba(22,36,26,0.14); }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 0.55em 0.7em; border-radius: 4px; font-size: 0.88rem; color: var(--indigo); }
.dropdown a:hover { background: var(--sand); color: var(--clay-deep); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: inherit; }

/* Mobile off-canvas drawer — always deep-green themed regardless of
   header scroll state, with its own brand mark + explicit close button */
.mobile-nav-head { display: none; }
.nav-close { display: none; }
.nav-overlay { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: 86%; max-width: 360px;
    background: var(--indigo-deep); color: var(--white);
    flex-direction: column; align-items: flex-start;
    padding: 1.6em 1.6em 2em; transform: translateX(100%);
    transition: transform 0.3s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    overflow-y: auto; z-index: 200;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; width: 100%; gap: 0.2em; }
  .main-nav a { color: var(--white); }
  .main-nav > ul > li > a:hover { color: var(--gold); }
  .dropdown { position: static; display: none; box-shadow: none; border: none; background: transparent; padding-left: 0.8em; }
  .dropdown a { color: rgba(255,255,255,0.78); }
  .dropdown a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
  .has-dropdown.open .dropdown { display: block; }
  .main-nav .btn { margin-top: 1.2em; }

  .mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding-bottom: 1.4em; margin-bottom: 1.2em;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }
  .mobile-brand .brand-text b { font-size: 0.95rem; }
  .nav-close {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: none; border: 1px solid rgba(255,255,255,0.3);
    color: var(--white); font-size: 1.3rem; line-height: 1; cursor: pointer;
    flex-shrink: 0; transition: background 0.25s, border-color 0.25s, transform 0.25s;
  }
  .nav-close:hover { background: var(--clay); border-color: var(--clay); transform: rotate(90deg); }

  .nav-overlay {
    display: block; position: fixed; inset: 0; background: rgba(14,18,12,0.55);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 150;
  }
  .nav-overlay.open { opacity: 1; visibility: visible; }
}

/* ---------- Hero Slider ----------
   Three slides, each with its own photo referenced directly in the
   page markup (an <img> inside .slide-bg), a green-tinted gradient
   overlay, and its own heading / copy / CTA that slide in on .active.
   ------------------------------------------------------------------- */
.hero { position: relative; height: 86vh; min-height: 600px; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; display: flex; height: 100%; transition: transform 0.8s cubic-bezier(.22,.61,.36,1); }
.hero-slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; color: var(--white); }
.slide-bg { position: absolute; inset: 0; z-index: 0; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,20,12,0.85) 0%, rgba(10,20,12,0.70) 50%, rgba(10,20,12,0.4) 100%);
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 82% 18%, rgba(212,160,23,0.22), transparent 55%);
}
.hero-inner { position: relative; z-index: 3; padding-top: 2em; max-width: 640px; text-align: left; margin-left: 0; }
.hero-inner .eyebrow { color: var(--gold); text-align: left; }
.hero-inner .eyebrow::before { background: var(--gold); }
.hero-inner h1 { color: var(--white); text-align: left; }
.hero-inner .lead { color: rgba(255,255,255,0.88); text-align: left; }
.cta-row { display: flex; justify-content: flex-start; gap: 1rem; }

.hero-slide .eyebrow, .hero-slide h1, .hero-slide .lead, .hero-slide .cta-row {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-slide.active .eyebrow, .hero-slide.active h1, .hero-slide.active .lead, .hero-slide.active .cta-row {
  opacity: 1; transform: translateY(0);
}
.hero-slide.active h1 { transition-delay: 0.1s; }
.hero-slide.active .lead { transition-delay: 0.22s; }
.hero-slide.active .cta-row { transition-delay: 0.34s; }

.slider-nav { position: absolute; bottom: 28px; right: 28px; display: flex; gap: 10px; z-index: 10; }
.slider-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06); color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.slider-nav button:hover { background: var(--clay); border-color: var(--clay); transform: scale(1.06); }
.slider-dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); cursor: pointer; padding: 0; transition: background 0.25s, transform 0.2s; }
.slider-dots button.active { background: var(--gold); transform: scale(1.25); }

/* ---------- Mobile Responsive Fixes ---------- */
@media (max-width: 700px) {
  .hero { height: 75vh; min-height: 460px; }
  .hero-slides { position: absolute; display: flex; height: 100%; transition: transform 0.8s cubic-bezier(.22,.61,.36,1); }
  .hero-slide { flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: flex-start; }
  .hero-inner h1 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 0.5rem; }
  .hero-inner .lead { font-size: 0.9rem; line-height: 1.4; margin-bottom: 1.25rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .cta-row { flex-direction: column; gap: 8px; width: 100%; }
  .cta-row .btn { width: 100%; text-align: center; padding: 10px; font-size: 0.9rem; }
  .hero-stats { display: flex; gap: 12px; margin-top: 1rem; }
  .hero-stat .num { font-size: 1.2rem; }
  .hero-stat .label { font-size: 0.75rem; }
  .slider-nav { bottom: 12px; right: 12px; transform: scale(0.8); }
  .slider-dots { bottom: 16px; }
}

.page-hero { background: var(--indigo-deep); color: var(--white); padding: var(--space-4) 0; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { background: var(--gold); }
.page-hero h1 { color: var(--white); }
.breadcrumb { font-size: 0.82rem; color: #C9C4B8; margin-bottom: 1em; }
.breadcrumb a { color: #C9C4B8; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Image-break sections (text + photo, alternating) ----------
   Used to interrupt long write-up sections with real photography.
   ------------------------------------------------------------------- */
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: center; }
.split-media.reverse { direction: rtl; }
.split-media.reverse > * { direction: ltr; }
.split-media .media-frame { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; position: relative; box-shadow: 0 22px 44px rgba(22,36,26,0.16); }
.split-media .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.split-media .media-frame::after {
  content: ""; position: absolute; inset: 0; border: 2px solid var(--gold); border-radius: 14px;
  transform: translate(14px, 14px); z-index: -1;
}
@media (max-width: 800px) {
  .split-media { grid-template-columns: 1fr; }
  .split-media.reverse { direction: ltr; }
}

.media-banner { position: relative; min-height: 360px; display: flex; align-items: center; overflow: hidden; border-radius: 14px; }
.media-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.media-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(14,61,31,0.88), rgba(14,61,31,0.4)); z-index: 1; }
.media-banner-content { position: relative; z-index: 2; color: var(--white); padding: var(--space-4); max-width: 560px; }
.media-banner-content .eyebrow { color: var(--gold); }
.media-banner-content .eyebrow::before { background: var(--gold); }
.media-banner-content h2 { color: var(--white); }
.media-banner-content p { color: rgba(255,255,255,0.85); }
@media (max-width: 700px) { .media-banner { min-height: 300px; } .media-banner-content { padding: var(--space-3); } }

/* ---------- Cards & Grids ---------- */
.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); height: 100%; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(22,36,26,0.1); }
.card h3 { font-size: 1.15rem; }
.card .eyebrow { margin-bottom: 0.5em; }
.card-img { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); margin-bottom: 1em; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

/* Numbered model cards — numbering is meaningful here: AESDI's five distinct strategic models */
.model-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.model-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.model-row .model-index { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold); }
.model-row h3 { margin-bottom: 0.2em; }
.model-row p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 700px) { .model-row { grid-template-columns: 50px 1fr; } .model-row .btn { grid-column: 1 / -1; justify-self: start; margin-top: 0.5em; } }

/* Timeline (real chronological sequence — events) */
.timeline { position: relative; padding-left: 2.2em; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding-bottom: var(--space-3); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content:""; position: absolute; left: -2.45em; top: 0.2em; width: 12px; height: 12px; border-radius: 50%; background: var(--clay); border: 3px solid var(--paper); }
.timeline-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--clay); letter-spacing: 0.04em; text-transform: uppercase; }

/* Stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.stat-band .stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); }
.stat .label { font-size: 0.85rem; color: #C9C4B8; text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 700px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }

/* Values list */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2) var(--space-4); }
.value-item { display: flex; gap: 0.9em; align-items: flex-start; }
.value-letter { font-family: var(--font-display); font-size: 1.4rem; color: var(--forest); flex-shrink: 0; }
@media (max-width: 700px) { .values-grid { grid-template-columns: 1fr; } }

/* Quote / pull */
.pull-quote { border-left: 3px solid var(--gold); padding-left: 1.2em; font-family: var(--font-display); font-size: 1.3rem; color: var(--indigo); margin: var(--space-3) 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4em; color: var(--indigo); }
.field .hint { font-size: 0.78rem; color: var(--ink-soft); display: block; margin-top: 0.3em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7em 0.85em; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--white); color: var(--indigo);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; border-color: var(--clay); }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.6em; }
.checkbox-row input { width: auto; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: var(--space-4); }

.alert { padding: 0.9em 1.1em; border-radius: var(--radius); margin-bottom: var(--space-2); font-size: 0.92rem; }
.alert-success { background: #E5F1EA; color: #1F5436; border: 1px solid #BFE0CC; }
.alert-error { background: #FBEAE6; color: #8A2E1A; border: 1px solid #F1C3B5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-deep); color: #C9C4B8; padding: var(--space-5) 0 var(--space-2); overflow-hidden: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--space-3); }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55em; }
.footer-grid a { color: #C9C4B8; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }
.footer-social { display: flex; gap: 0.7em; margin-top: 1em; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }

/* Flex-wrap safety net for form elements on tiny viewports */
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.5em; margin-top: 0.8em; }
.newsletter-form input { flex: 1; min-width: 180px; padding: 0.6em 0.8em; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: var(--white); }
.newsletter-form input::placeholder { color: #9893a0; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: var(--space-4); padding-top: var(--space-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8em; font-size: 0.8rem; }
.footer-bottom a { color: #C9C4B8; margin-left: 1em; }

/* Responsive Adjustments */
@media (max-width: 900px) { 
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); } 
}

/* Added specific fix to stack links cleanly on smartphones */
@media (max-width: 500px) { 
  .footer-grid { grid-template-columns: 1fr; } 
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom a { margin: 0 0.5em; }
}

/* ---------- Misc ---------- */
.badge { display: inline-block; padding: 0.25em 0.7em; border-radius: 999px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-gold { background: rgba(212,160,23,0.16); color: #8a611c; }
.badge-forest { background: rgba(11,122,46,0.14); color: var(--forest); }
.badge-clay { background: rgba(184,134,11,0.14); color: var(--clay-deep); }
.divider { height: 1px; background: var(--line); margin: var(--space-4) 0; border: none; }
.table-simple { width: 100%; border-collapse: collapse; }
.table-simple th, .table-simple td { text-align: left; padding: 0.7em 0.6em; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.pagination { display: flex; gap: 0.4em; justify-content: center; margin-top: var(--space-3); }
.pagination a, .pagination span { padding: 0.5em 0.9em; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.88rem; }
.pagination .current { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.donation-amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
@media (max-width: 700px) { .donation-amount-grid { grid-template-columns: 1fr 1fr; } }
.amount-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-2); background: var(--white); }
.amount-card .amt { font-family: var(--font-display); font-size: 1.4rem; color: var(--clay); }
details.faq-item { border-bottom: 1px solid var(--line); padding: 1em 0; }
details.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--indigo); }
details.faq-item p { margin-top: 0.7em; color: var(--ink-soft); }
.back-to-top { position: fixed; bottom: 24px; right: 24px; background: var(--clay); color: var(--white); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(0,0,0,0.2); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 90; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }