/* ==========================================================================
   Finance For Your Future: site styles
   Brand: forest greens from the logo + gold accent, on a warm cream base.
   ========================================================================== */

:root {
  --forest-950: #11211a;
  --forest-900: #182d22;
  --forest-800: #213b2d;
  --forest-700: #2b4a37;
  --forest-600: #3a6b4f;
  --forest-500: #4f8a66;
  --leaf: #5b8f36;          /* coin green from the logo */
  --leaf-600: #4a7a2a;
  --leaf-soft: #e4eed8;
  --gold: #d9b45a;
  --gold-600: #c29a3c;
  --gold-soft: #f5e8c4;
  --cream: #f8f4e9;
  --cream-200: #f0e8d4;
  --white: #fffdf8;
  --ink: #1c2a21;
  --ink-soft: #4b5b50;
  --line: #e4dbc4;
  --line-strong: #d3c6a6;

  --font-display: "Paytone One", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1160px;
  --gutter: 24px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(17, 33, 26, 0.35);
  --shadow-lg: 0 24px 60px -20px rgba(17, 33, 26, 0.35);
  --header-h: 78px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  color: var(--forest-800);
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--forest-600);
}

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

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--forest-800);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  flex-shrink: 0;
}

/* Gold brush stroke under a word, echoing the original site. */
.swoosh {
  position: relative;
  white-space: nowrap;
}

.swoosh::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -10%;
  bottom: -0.26em;
  height: 0.3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C 40 6, 120 3, 196 6' stroke='%23d9b45a' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-600);
  margin-bottom: 14px;
}

.eyebrow--gold {
  color: var(--gold);
}

/* ---------- Buttons ---------- */

.btn {
  --btn-edge: var(--forest-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border: 2px solid var(--btn-edge);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--btn-edge);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-edge);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--btn-edge);
}

.btn--gold {
  background: var(--gold);
  color: var(--forest-950);
}

.btn--gold:hover {
  background: #e2c06a;
}

.btn--forest {
  background: var(--forest-700);
  color: var(--cream);
}

.btn--forest:hover {
  background: var(--forest-600);
}

.btn--outline {
  background: transparent;
  color: var(--forest-800);
}

.btn--outline:hover {
  background: var(--white);
}

.btn--cream {
  --btn-edge: var(--forest-950);
  background: var(--cream);
  color: var(--forest-900);
}

.btn--small {
  padding: 0.6em 1.1em;
  font-size: 0.85rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--forest-600);
  text-decoration: none;
}

.text-link .icon {
  transition: transform 0.2s ease;
}

.text-link:hover .icon {
  transform: translateX(4px);
}

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 233, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 58px;
  transition: transform 0.25s ease;
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.05);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--forest-800);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest-800);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nav-link:hover {
  background: var(--cream-200);
}

.nav-link[aria-current="page"],
.nav-item.is-active > .nav-link {
  background: var(--gold-soft);
  color: var(--forest-900);
}

.menu-trigger .icon {
  transition: transform 0.2s ease;
}

.has-menu {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 320px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* Invisible bridge so the menu doesn't close while the pointer crosses the gap. */
.submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.submenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.has-menu:hover .submenu,
.has-menu:focus-within .submenu,
.has-menu.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.has-menu:hover .menu-trigger .icon,
.has-menu.is-open .menu-trigger .icon {
  transform: rotate(180deg);
}

.submenu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.submenu-link:hover,
.submenu-link[aria-current="page"] {
  background: var(--cream);
}

.submenu-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--leaf-soft);
  color: var(--forest-600);
  flex-shrink: 0;
}

.submenu-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.submenu-text strong {
  font-size: 0.95rem;
  color: var(--forest-800);
}

.submenu-text small {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 2px solid var(--forest-800);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  place-items: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--forest-800);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 28px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  /* On small screens the Programs menu is always expanded, with a small label. */
  .menu-trigger {
    pointer-events: none;
    padding-bottom: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .menu-trigger .icon {
    display: none;
  }

  .nav-item.is-active > .menu-trigger {
    background: none;
  }

  .submenu {
    position: static;
    min-width: 0;
    padding: 0 0 8px;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-menu:hover .submenu,
  .has-menu:focus-within .submenu,
  .has-menu.is-open .submenu {
    transform: none;
  }

  .submenu::before {
    display: none;
  }

  .nav-cta {
    align-self: flex-start;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 46px;
  }

  .brand-name {
    font-size: 1.02rem;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 9vw, 112px) 0;
}

/* Follows another white section, so it doesn't need its own top spacing. */
.section--flush-top {
  padding-top: 0;
}

.section--sand {
  background: var(--cream-200);
}

.section--forest {
  background: var(--forest-800);
  color: var(--cream);
}

.section--deep {
  background: var(--forest-900);
  color: var(--cream);
}

.section--forest h2,
.section--deep h2,
.section--forest h3,
.section--deep h3 {
  color: var(--cream);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2,
.section-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.section-head p {
  margin-top: 16px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(43, 74, 55, 0.09) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.75rem);
  line-height: 1.02;
  color: var(--forest-800);
}

.hero-lead {
  margin-top: clamp(40px, 4vw, 52px); /* room for the gold underline under "Future" */
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--leaf-600);
}

.hero-text {
  margin-top: 14px;
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

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

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: min(480px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fff 0%, #fbf4e0 48%, var(--gold-soft) 72%);
  box-shadow: 0 30px 70px -30px rgba(17, 33, 26, 0.45), inset 0 0 0 10px rgba(255, 255, 255, 0.6);
}

.hero-disc::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 2px dashed rgba(91, 143, 54, 0.45);
  border-radius: 50%;
}

.hero-disc img {
  width: 80%;
  margin-top: -4%;
  filter: drop-shadow(0 14px 18px rgba(17, 33, 26, 0.18));
}

.coin {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--forest-800);
  color: var(--forest-800);
  font-family: var(--font-display);
  box-shadow: 0 4px 0 var(--forest-800);
  animation: bob 5s ease-in-out infinite;
}

.coin--1 {
  width: 54px;
  height: 54px;
  font-size: 1.5rem;
  top: 6%;
  right: 6%;
}

.coin--2 {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  bottom: 12%;
  left: 2%;
  animation-delay: -2s;
  background: var(--leaf);
  color: var(--cream);
}

.coin--3 {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
  bottom: 4%;
  right: 18%;
  animation-delay: -3.5s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(8deg);
  }
}

/* ---------- Home: mission band ---------- */

.mission {
  padding: clamp(56px, 7vw, 84px) 0;
  background: var(--forest-800);
  color: var(--cream);
  text-align: center;
}

.mission p.mission-quote {
  max-width: 880px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.35;
}

.mission .highlight {
  color: var(--gold);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.pill-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(248, 244, 233, 0.22);
  border-radius: 999px;
  background: rgba(248, 244, 233, 0.06);
  font-size: 0.9rem;
  font-weight: 600;
}

.pill-row .icon {
  color: var(--gold);
}

/* ---------- Home: offer cards ---------- */

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

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.offer-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--leaf-soft);
  color: var(--forest-600);
}

.offer-card--featured .offer-icon {
  background: var(--forest-700);
  color: var(--gold);
}

.offer-card h3 {
  font-size: 1.4rem;
}

.offer-card p {
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* The whole card is clickable via its link. */
.offer-card .text-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* ---------- Home: Finance4U spotlight ---------- */

.spotlight {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.app-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.app-stage::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 180, 90, 0.28), transparent 68%);
}

.app-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 250px;
  aspect-ratio: 1;
  border-radius: 28%;
  background: linear-gradient(155deg, #8cc06a 0%, #5b8f36 55%, #477428 100%);
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  transform: rotate(-6deg);
}

.app-tile img {
  width: 76%;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.2));
}

.spotlight h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.spotlight-text {
  margin-top: 18px;
  font-size: 1.08rem;
  color: rgba(248, 244, 233, 0.86);
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 34px;
  padding: 0;
  list-style: none;
}

.topic-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(248, 244, 233, 0.08);
  border: 1px solid rgba(248, 244, 233, 0.2);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Home: ambassadors ---------- */

.ambassador-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.ambassador-intro p {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  gap: 18px;
  margin: 32px 0 36px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--forest-800);
  box-shadow: 0 3px 0 var(--forest-800);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--forest-900);
}

.steps strong {
  display: block;
  font-size: 1.05rem;
  color: var(--forest-800);
}

.steps span {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.path-cards {
  display: grid;
  gap: 20px;
}

.path-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.path-card .offer-icon {
  width: 64px;
  height: 64px;
}

.path-card h3 {
  font-size: 1.35rem;
}

.path-card p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.path-card--accent {
  background: var(--forest-700);
  border-color: var(--forest-700);
}

.path-card--accent h3 {
  color: var(--cream);
}

.path-card--accent p {
  color: rgba(248, 244, 233, 0.82);
}

.path-card--accent .offer-icon {
  background: rgba(248, 244, 233, 0.12);
  color: var(--gold);
}

.network-note {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.network-note .icon {
  color: var(--leaf-600);
}

/* ---------- Home: impact preview ---------- */

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.impact-copy p {
  margin-top: 18px;
  font-size: 1.08rem;
  color: rgba(248, 244, 233, 0.86);
}

.impact-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.impact-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
}

.impact-list .icon {
  display: grid;
  padding: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--forest-900);
}

.photo-frame {
  position: relative;
  isolation: isolate;
  max-width: 500px;
  justify-self: center;
  margin: 0;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border-radius: var(--radius);
  background: var(--gold);
}

.photo-frame img {
  width: 100%;
  border-radius: var(--radius);
  border: 4px solid var(--cream);
  box-shadow: var(--shadow-lg);
}

.photo-frame figcaption {
  margin-top: 30px;
  font-size: 0.88rem;
  color: rgba(248, 244, 233, 0.7);
}

/* ---------- Home: call to action ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(36px, 5vw, 60px);
  border: 2px solid var(--forest-800);
  border-radius: 28px;
  background: var(--gold);
  box-shadow: 0 8px 0 var(--forest-800);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  color: var(--forest-900);
}

.cta-band p {
  margin-top: 10px;
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--forest-800);
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex-shrink: 0;
}

/* ---------- Inner pages ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 100px) 0 clamp(56px, 7vw, 88px);
  background-color: var(--forest-800);
  background-image: radial-gradient(rgba(248, 244, 233, 0.07) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  color: var(--cream);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  color: var(--gold);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.page-hero p {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(248, 244, 233, 0.86);
}

.coming-soon {
  padding: clamp(56px, 7vw, 88px) 0 clamp(72px, 8vw, 104px);
}

.notice {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto 36px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.notice img {
  width: 64px;
  flex-shrink: 0;
}

.notice h2 {
  font-size: 1.45rem;
}

.notice p {
  margin-top: 4px;
  color: var(--ink-soft);
}

.planned-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
}

.planned-block {
  padding: 24px 26px 28px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
}

.planned-block h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--forest-700);
}

.skeleton-line {
  display: block;
  height: 10px;
  margin-top: 12px;
  border-radius: 6px;
  background: var(--cream-200);
}

.coming-soon-back {
  margin-top: 40px;
  text-align: center;
}

/* 404 */
.not-found {
  padding: clamp(72px, 10vw, 128px) 0;
  text-align: center;
}

.not-found img {
  width: 180px;
  margin: 0 auto 28px;
  transform: rotate(-8deg);
}

.not-found h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.not-found p {
  margin: 14px auto 30px;
  max-width: 460px;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 28px;
  background: var(--forest-950);
  color: rgba(248, 244, 233, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.footer-logo .brand-name {
  color: var(--cream);
}

.footer-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
}

.footer-badge img {
  width: 46px;
}

.footer-brand p {
  margin-top: 18px;
  max-width: 320px;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-location .icon {
  color: var(--gold);
}

.footer-col h2 {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: rgba(248, 244, 233, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--cream);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 244, 233, 0.12);
  font-size: 0.85rem;
}

.footer-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(248, 244, 233, 0.55);
  text-decoration: none;
}

.footer-admin:hover {
  color: var(--cream);
}

.footer-logins {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Three cards in two columns: Finance4U takes the full first row. */
  .card-grid .offer-card--featured {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .hero-inner,
  .spotlight,
  .ambassador-grid,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    text-align: center;
  }

  .hero-art {
    order: -1;
  }

  .hero-disc {
    width: min(340px, 82vw);
  }

  .hero-text {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .app-stage {
    min-height: 300px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  .card-grid,
  .planned-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .path-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .notice {
    flex-direction: column;
    text-align: center;
  }

  .app-tile {
    width: 200px;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    flex: 1 1 100%;
  }
}

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

/* ==========================================================================
   Forms & alerts (contact form + admin)
   ========================================================================== */

.field label,
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest-800);
}

.field input:not([type="checkbox"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  background: var(--cream);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23213b2d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest-600);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(58, 107, 79, 0.15);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c4553a;
}

.field-hint {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.field-error {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a33a20;
}

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

.alert--error {
  background: #fbe4df;
  border: 1px solid #efb9ad;
  color: #8a2c17;
}

.alert--info,
.alert--success {
  background: var(--leaf-soft);
  border: 1px solid #c4d9ad;
  color: var(--forest-700);
}

/* Hidden spam trap on the contact form */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Shared page pieces
   ========================================================================== */

.btn--large {
  padding: 1.05em 2em;
  font-size: 1.1rem;
}

.btn--disabled,
.btn--disabled:hover,
.btn--disabled:active {
  opacity: 0.7;
  cursor: default;
  transform: none;
  box-shadow: 0 4px 0 var(--btn-edge);
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 2px dashed var(--line-strong);
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--cream), var(--cream) 12px, var(--cream-200) 12px, var(--cream-200) 24px);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.photo-placeholder .icon {
  color: var(--forest-500);
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.platform-card h3 {
  font-size: 1.6rem;
}

.platform-card p {
  flex: 1;
  color: var(--ink-soft);
}

.platform-card--accent {
  border-color: var(--forest-700);
  background: var(--forest-700);
}

.platform-card--accent h3 {
  color: var(--cream);
}

.platform-card--accent p,
.platform-card--accent .check-list {
  color: rgba(248, 244, 233, 0.85);
}

.platform-card--accent .offer-icon {
  background: rgba(248, 244, 233, 0.12);
  color: var(--gold);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list .icon {
  margin-top: 3px;
  color: var(--leaf);
}

.platform-card--accent .check-list .icon {
  color: var(--gold);
}

.empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--ink-soft);
}

.empty-state .icon {
  color: var(--line-strong);
}

/* ==========================================================================
   Finance4U page
   ========================================================================== */

.ios-spotlight {
  padding: clamp(64px, 8vw, 104px) 0;
  background: #13311b; /* matches the app screenshot's background */
  color: var(--cream);
}

.ios-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.ios-shot {
  width: min(400px, 100%);
  justify-self: center;
}

.ios-spotlight h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--cream);
}

.feature-list {
  display: grid;
  gap: 22px;
  margin: 30px 0 36px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-list .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(217, 180, 90, 0.16);
  color: var(--gold);
}

.feature-list strong {
  display: block;
  font-size: 1.05rem;
}

.feature-list span {
  color: rgba(248, 244, 233, 0.78);
}

/* ==========================================================================
   Ambassadors page
   ========================================================================== */

.ambassador-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 270px));
  justify-content: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ambassador-card {
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

.ambassador-photo {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 4px solid var(--gold);
  border-radius: 50%;
  background: var(--forest-700);
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold);
}

.ambassador-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ambassador-card h3 {
  font-size: 1.3rem;
}

.ambassador-school,
.ambassador-location {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.ambassador-school .icon,
.ambassador-location .icon {
  color: var(--leaf);
}

/* Bios open in a popup so the cards stay short. */
.ambassador-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ambassador-card-footer {
  margin-top: auto;
  padding-top: 16px;
}

.bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 2px solid var(--forest-700);
  border-radius: 999px;
  background: var(--white);
  color: var(--forest-700);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bio-toggle:hover {
  background: var(--forest-700);
  color: var(--cream);
}

.bio-toggle .icon {
  transition: transform 0.2s ease;
}

.bio-toggle:hover .icon {
  transform: translateX(3px);
}

.bio-dialog {
  width: min(520px, calc(100% - 32px));
}

.bio-dialog-body {
  padding: 36px 32px 32px;
  text-align: center;
}

.bio-dialog-body h3 {
  font-size: 1.6rem;
}

.bio-dialog-meta {
  justify-content: center;
  margin-top: 10px;
}

.bio-dialog-text {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.bio-dialog-text p {
  white-space: pre-line;
}

.bio-dialog-text p + p {
  margin-top: 0.9em;
}

/* ==========================================================================
   Impact page
   ========================================================================== */

/* Workshops / Book Donations cards, below the map. The photo keeps its shape and its
   width comes from the admin's "Image size" (--image-scale). */
.impact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.impact-program {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.impact-program-media {
  padding: 18px 18px 0;
}

.impact-program-media img {
  display: block;
  width: var(--image-scale, 100%);
  max-height: 320px;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: cover;
}

.impact-program-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 24px 24px;
}

.impact-program-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
}

.impact-program-title .offer-icon {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 12px;
}

.impact-program-body p {
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.impact-totals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0 0 32px;
}

.impact-totals div {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 18px 26px;
  border: 2px solid var(--forest-800);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 4px 0 var(--forest-800);
  text-align: center;
}

.impact-totals dt {
  order: 1;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.impact-totals dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.1;
  color: var(--forest-800);
}

.map-card {
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--forest-600);
  border-radius: 5px;
  background: var(--white);
}

.swatch--active {
  border-color: var(--forest-700);
  background: var(--leaf);
}

.map-wrap {
  position: relative;
}

.us-map {
  display: block;
  width: 100%;
  height: auto;
}

.us-map .state path {
  fill: var(--white);
  stroke: var(--forest-600);
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 0.15s ease;
}

.us-map .state.is-active path {
  fill: var(--leaf);
  stroke: var(--forest-800);
}

.us-map .state:hover path,
.us-map .state:focus-visible path {
  fill: var(--gold);
  stroke: var(--forest-900);
  stroke-width: 2;
}

.us-map .state:focus {
  outline: none;
}

.map-tooltip {
  position: absolute;
  z-index: 5;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--forest-900);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
}

.map-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--forest-800);
}

.map-jump select {
  padding: 10px 40px 10px 14px;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23213b2d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}

.state-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.state-chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--forest-700);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.state-chips a:hover {
  background: var(--forest-600);
}

.state-chips .icon {
  color: var(--gold);
}

/* ---------- State page ---------- */

.state-hero.has-banner {
  padding: clamp(110px, 14vw, 180px) 0 clamp(56px, 7vw, 80px);
  background-image: linear-gradient(180deg, rgba(17, 33, 26, 0.35), rgba(17, 33, 26, 0.85)), var(--banner);
  background-size: cover;
  background-position: center;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(248, 244, 233, 0.12);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb:hover {
  background: rgba(248, 244, 233, 0.2);
}

.state-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-hero .state-status--active {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
}

.state-stats-band {
  position: relative;
  z-index: 1;
  margin-top: -36px;
}

.state-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 0;
}

.state-stats div {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  min-width: 250px;
  padding: 20px 26px;
  border: 2px solid var(--forest-800);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 5px 0 var(--forest-800);
}

.state-stats .stat-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--leaf-soft);
  color: var(--forest-600);
}

.state-stats dd {
  grid-row: 1;
  grid-column: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1.05;
  color: var(--forest-800);
}

.state-stats dt {
  grid-row: 2;
  grid-column: 2;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.state-body {
  padding-top: clamp(48px, 6vw, 72px);
}

.prose {
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  font-size: 1.08rem;
}

.prose p {
  white-space: pre-line;
  color: var(--ink);
}

.prose p + p {
  margin-top: 1em;
}

.events-head {
  margin-bottom: 28px;
  text-align: center;
}

.events-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.events-head p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.event-card-media {
  display: block;
  aspect-ratio: 16 / 10;
}

.event-card-media img,
.event-card-media .photo-placeholder,
.event-dialog-media img,
.event-dialog-media .photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.event-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 20px 22px;
}

.event-card-body strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--forest-800);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-kind {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-kind--books {
  background: var(--gold-soft);
  color: #7a5a12;
}

.event-kind--both {
  background: var(--forest-700);
  color: var(--gold);
}

.event-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: auto;
  border: 2px solid var(--forest-900);
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 0 var(--forest-900), var(--shadow-lg);
}

.event-dialog::backdrop {
  background: rgba(17, 33, 26, 0.6);
  backdrop-filter: blur(3px);
}

.event-dialog-media {
  aspect-ratio: 16 / 9;
}

.event-dialog-body {
  padding: 24px 28px 30px;
}

.event-dialog-body h3 {
  margin: 10px 0 8px;
  font-size: 1.7rem;
}

.event-dialog-body > p:not(.event-meta) {
  margin-top: 14px;
  white-space: pre-line;
}

.event-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 4px;
}

.event-stats div {
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--cream);
}

.event-stats dt {
  order: 1;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.event-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--forest-800);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--forest-900);
  border-radius: 50%;
  background: var(--white);
  color: var(--forest-900);
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--gold);
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-info h2,
.form-card h2 {
  font-size: 1.9rem;
}

.contact-info > p {
  margin-top: 12px;
  color: var(--ink-soft);
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 18px;
  padding: 18px 20px;
  border: 2px solid var(--forest-800);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 4px 0 var(--forest-800);
  color: var(--forest-800);
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--forest-800);
}

.contact-email small {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-600);
  word-break: normal;
}

.contact-email .offer-icon {
  flex-shrink: 0;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}

.contact-line .icon {
  color: var(--leaf);
}

.contact-shortcuts {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-shortcuts p {
  font-weight: 700;
  color: var(--forest-800);
}

.contact-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
}

.contact-shortcuts a:hover {
  text-decoration: underline;
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.form-card h2 {
  margin-bottom: 22px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form .btn {
  justify-self: start;
}

.footer-location a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  word-break: break-all;
}

.footer-location a:hover {
  color: var(--cream);
  text-decoration: underline;
}

/* ---------- Responsive (new pages) ---------- */

@media (max-width: 860px) {
  .platform-grid,
  .ios-grid,
  .impact-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .ios-shot {
    width: min(320px, 100%);
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .platform-card {
    padding: 26px;
  }

  .state-stats div {
    flex: 1 1 100%;
    min-width: 0;
  }

  .impact-totals {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .impact-totals div {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 6px;
  }

  .impact-totals dd {
    font-size: 1.5rem;
  }

  .impact-totals dt {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .page-hero-actions .btn {
    flex: 1 1 100%;
  }

  .contact-form .btn {
    justify-self: stretch;
  }
}

.alert--warning {
  display: block;
  background: var(--gold-soft);
  border: 1px solid #e3c983;
  color: #6b4e0e;
}

/* ==========================================================================
   Home: "Recent events" strip (events come from the Impact admin)
   ========================================================================== */

.in-action {
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.in-action-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}

.in-action-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.in-action-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-controls[hidden] {
  display: none;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--forest-800);
  border-radius: 50%;
  background: var(--white);
  color: var(--forest-800);
  box-shadow: 0 3px 0 var(--forest-800);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.carousel-btn:hover {
  background: var(--gold);
}

.carousel-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--forest-800);
}

.carousel-btn:disabled {
  opacity: 0.35;
  background: var(--white);
  transform: none;
  box-shadow: 0 3px 0 var(--forest-800);
  cursor: default;
}

.card-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 22px) / 3);
  gap: 22px;
  margin: 0;
  padding: 6px 2px 18px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.card-strip > li {
  scroll-snap-align: start;
}

.event-dialog-link {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .card-strip {
    grid-auto-columns: calc((100% - 22px) / 2);
  }
}

@media (max-width: 600px) {
  .card-strip {
    grid-auto-columns: 82%;
    gap: 14px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Ambassadors on events
   ========================================================================== */

.ambassador-position {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6b4e0e;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ambassador-card {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.ambassador-card:target {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.avatar-stack {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.avatar-stack-item {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--forest-700);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.avatar-stack > .avatar-stack-item + .avatar-stack-item {
  margin-left: -8px;
}

.avatar-stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-stack-more {
  background: var(--gold);
  color: var(--forest-900);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.7rem;
}

.avatar-stack-label {
  margin-left: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.event-people {
  margin-top: 18px;
}

.event-people h4 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.event-people ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-people a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.event-people a:hover {
  border-color: var(--line-strong);
  background: var(--cream-200);
}

.event-people .avatar-stack-item {
  width: 32px;
  height: 32px;
  border: 0;
}

.event-people strong {
  display: block;
  font-size: 0.88rem;
}

.event-people small {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Text + photo pages (About Us, Workshops, Book Donations)
   ========================================================================== */

.text-image {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.text-image--right {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.text-image--left {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.text-image-body {
  font-size: 1.08rem;
  line-height: 1.75;
}

.text-image-body h2 {
  margin: 1.6em 0 0.45em;
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
}

.text-image-body h2:first-child {
  margin-top: 0;
}

.text-image-body p + p {
  margin-top: 1em;
}

.text-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.text-image-media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin: 0;
}

.text-image-media img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .text-image--right,
  .text-image--left {
    grid-template-columns: 1fr;
  }

  .text-image-media {
    position: static;
  }

  /* On phones the photo sits above the text on every page. */
  .text-image--right .text-image-media {
    order: -1;
  }
}
