/* Seed the Word — Outreach Reach map + counter. Warm editorial tokens.
   Falls back to sane values if page tokens aren't defined. */
.reach {
  --reach-serif: var(--serif, 'Playfair Display', Georgia, serif);
  --reach-sans: var(--sans, 'Source Sans 3', system-ui, sans-serif);
  --reach-mono: var(--mono, 'IBM Plex Mono', monospace);
  --reach-gold: var(--accent-gold, #B8860B);
  --reach-green: #2C5F2E;
  --reach-fg: var(--fg, #1A1A1A);
  --reach-muted: var(--fg-muted, #6B6B6B);
  --reach-border: var(--border-warm, #E8E4DF);
  --reach-card: var(--card-bg, #fff);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.reach__eyebrow {
  font-family: var(--reach-mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--reach-gold);
  margin-bottom: 0.5rem;
}
.reach__title {
  font-family: var(--reach-serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--reach-fg); margin: 0 0 0.5rem;
}
.reach__sub {
  font-family: var(--reach-sans); font-size: 0.95rem; color: var(--reach-muted);
  line-height: 1.65; max-width: 640px; margin: 0 auto 1.5rem;
}
.reach__stat { display: flex; flex-direction: column; align-items: center; margin: 0 0 1.25rem; }
.reach__stat-num {
  font-family: var(--reach-serif); font-weight: 700; font-size: clamp(2.75rem, 7vw, 4.5rem);
  color: var(--reach-gold); line-height: 1;
}
.reach__stat-label {
  font-family: var(--reach-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--reach-muted); margin-top: 0.35rem;
}

/* Spinnable globe */
.reach-globe {
  position: relative; width: 100%; max-width: 360px; margin: 0.5rem auto 1rem;
  aspect-ratio: 1 / 1;
}
.reach-globe__canvas {
  display: block; width: 100%; height: 100%; cursor: grab;
  filter: drop-shadow(0 10px 26px rgba(23,58,94,0.35));
  touch-action: none; /* allow drag-spin + pinch-zoom without page scroll hijack */
}
.reach-globe__canvas:active { cursor: grabbing; }
.reach-globe__hint {
  text-align: center; margin-top: 0.35rem; font-family: var(--reach-mono);
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--reach-muted);
}
/* Globe-only mode: just the sphere, host provides labels (news milestone card). */
.reach--globe-only { text-align: center; }
.reach--globe-only .reach-globe { max-width: 150px; margin: 0 auto; }
.reach--globe-only .reach-globe__hint { font-size: 0.55rem; }

/* Compact mode: globe + inline counter, tight, fits inside milestone/search areas. */
.reach--compact { text-align: center; }
.reach--compact .reach__eyebrow { margin-bottom: 0.4rem; }
.reach--compact .reach-globe { max-width: 260px; margin: 0.25rem auto 0.5rem; }
.reach__stat--inline { flex-direction: row; align-items: baseline; justify-content: center; gap: 0.5rem; margin: 0.25rem 0 0; }
.reach__stat--inline .reach__stat-num { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.reach__stat--inline .reach__stat-label { margin-top: 0; }

/* Grouped chip lists */
.reach-lists {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; text-align: left; margin-top: 0.5rem;
}
.reach-list {
  background: var(--reach-card); border: 1px solid var(--reach-border);
  border-radius: 12px; padding: 1rem 1.1rem;
}
.reach-list__label {
  font-family: var(--reach-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--reach-green);
  margin: 0 0 0.6rem;
}
.reach-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.reach-chip {
  font-family: var(--reach-sans); font-size: 0.8rem; font-weight: 600; color: var(--reach-fg);
  background: #f7f3ec; border: 1px solid var(--reach-border); border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.reach-empty { color: var(--reach-muted); font-style: italic; font-size: 0.85rem; }

/* Homepage mission promo (under the search bar). Dark-hero friendly. */
.mission-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  flex-wrap: wrap; margin: 1rem 0 0.25rem; padding: 0.9rem 1.15rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px; backdrop-filter: blur(6px);
}
.mission-promo__text { flex: 1 1 240px; min-width: 220px; }
.mission-promo__globe { flex: 0 0 auto; width: 130px; }
.mission-promo__globe .reach { max-width: 130px; }
.mission-promo__globe .reach__eyebrow { display: none; }
.mission-promo__globe .reach-globe { max-width: 120px; margin: 0 auto; }
.mission-promo__globe .reach-globe__hint { color: rgba(255,255,255,0.6); }
.mission-promo__globe .reach__stat--inline { margin-top: 0.15rem; }
.mission-promo__globe .reach__stat-num { color: #e0b84e; font-size: 1.4rem; }
.mission-promo__globe .reach__stat-label { color: rgba(255,255,255,0.7); }
@media (max-width: 640px) { .mission-promo__globe { width: 100%; } .mission-promo__globe .reach-globe { max-width: 160px; } }
.mission-promo__eyebrow {
  display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #e0b84e; margin-bottom: 0.3rem;
}
.mission-promo__line {
  margin: 0; font-family: 'Source Sans 3', system-ui, sans-serif; font-size: 0.95rem;
  line-height: 1.5; color: rgba(255,255,255,0.9);
}
.mission-promo__line strong { color: #fff; }
.mission-promo__links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mission-promo__btn {
  font-family: 'Source Sans 3', system-ui, sans-serif; font-size: 0.82rem; font-weight: 700;
  color: rgba(255,255,255,0.9); text-decoration: none; padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.mission-promo__btn:hover { background: rgba(255,255,255,0.12); }
.mission-promo__btn--primary {
  background: linear-gradient(135deg, #B8860B, #d4a84b); border-color: transparent; color: #fff;
}
.mission-promo__btn--primary:hover { background: linear-gradient(135deg, #a67a0a, #c99a3f); }

/* On the homepage dark hero, the reach section text needs to be legible.
   The #outreach-reach on index sits on a dark section, so invert the muted text. */
#showcase #outreach-reach .reach__title { color: #fff; }
#showcase #outreach-reach .reach__sub { color: rgba(255,255,255,0.75); }
#showcase #outreach-reach .reach__stat-label { color: rgba(255,255,255,0.7); }

/* Compact-mode reached location lists (donate.html) */
.reach__reached { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.3rem; }
.reach__reached-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem; }
.reach__reached-label { font-size: 0.82rem; flex: 0 0 auto; opacity: 0.7; }
.reach-chip--sm {
  font-size: 0.72rem; padding: 0.15rem 0.5rem; border-radius: 999px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  white-space: nowrap;
}
