:root {
  --red: #c0001e;
  --red-dark: #8c0016;
  --red-soft: #fdf0f2;
  --charcoal: #1e1e1e;
  --footer-bg: #1a1a1a;
  --muted: #555555;
  --subtle: #888888;
  --border: #e5e5e5;
  --white: #ffffff;
  --bg: #f7f7f7;

  /* legacy aliases so inline/region JS colours keep resolving */
  --gold: var(--red);
  --ink: var(--charcoal);
  --ink-dim: var(--muted);
  --ink-faint: var(--subtle);
  --line: var(--border);

  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.09);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-aura { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--charcoal); }
.brand-logo { height: 36px; width: auto; flex: none; display: block; border-radius: 4px; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.2px; line-height: 1; color: var(--charcoal); }
.brand-text em { display: block; font-style: normal; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 3px; color: var(--red); margin-top: 3px; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 9px 14px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--red); background: var(--red-soft); }
.nav-link.is-active { color: var(--white); background: var(--red); }

.header-cta { margin-left: 6px; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 500; font-size: 13px;
  padding: 10px 20px; border-radius: 4px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: var(--white); background: var(--red); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline { color: var(--charcoal); background: var(--white); border-color: var(--border); }
.btn-outline:hover { color: var(--red); border-color: var(--red); transform: translateY(-1px); }
.btn-ghost { color: var(--charcoal); background: var(--white); border-color: var(--border); font-size: 13px; padding: 10px 18px; }
.btn-ghost:hover { color: var(--red); border-color: var(--red); }

/* ---------- Panels / tabs ---------- */
.tab-panel { display: none; max-width: var(--maxw); margin: 0 auto; padding: 42px clamp(20px, 4vw, 48px) 90px; animation: fade 0.5s var(--ease); }
.tab-panel.is-active { display: block; }
#home.tab-panel { max-width: 1320px; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }

.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.panel-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; color: var(--charcoal); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center; padding: 8px 0 20px; }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 6.4vw, 68px); line-height: 1.05; letter-spacing: -0.5px; color: var(--charcoal); }
.hero-title span { color: var(--red); }
.hero-sub { color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); max-width: 560px; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat b { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--red); line-height: 1; }
.stat span { font-size: 13px; color: var(--subtle); font-weight: 500; letter-spacing: 0.5px; margin-top: 6px; text-transform: uppercase; }

.hero-dates { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hd-day { font-family: var(--font-display); font-weight: 700; font-size: clamp(15px, 2vw, 19px); color: var(--white); background: var(--red); padding: 7px 14px; border-radius: 6px; }
.hd-tag { font-weight: 500; font-size: 13.5px; letter-spacing: 0.3px; color: var(--red); background: var(--red-soft); padding: 8px 13px; border-radius: 6px; }

.about-note { color: var(--muted); font-size: 14px; background: var(--red-soft); border-left: 4px solid var(--red); border-radius: 6px; padding: 12px 16px; margin-bottom: 18px; }
.about-note a { color: var(--red); font-weight: 500; }

/* ---------- Legacy band ---------- */
.legacy { margin-top: 72px; text-align: center; }
.legacy-banner { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); margin: 0 auto; }
.legacy .eyebrow { display: block; }
.legacy-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.14; color: var(--charcoal); }
.legacy-title span { color: var(--red); }
.legacy-sub { color: var(--muted); max-width: 640px; margin: 14px auto 0; font-size: clamp(15px, 1.6vw, 17px); }
.legacy-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 30px 0 30px; }
.legacy-stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 12px; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.legacy-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.legacy-stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); color: var(--red); line-height: 1; }
.legacy-stat span { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.legacy-tagline { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 30px); color: var(--charcoal); margin-top: 6px; }
.legacy-tagline span { color: var(--red); }
@media (max-width: 900px) { .legacy-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .legacy-grid { grid-template-columns: repeat(2, 1fr); } }

.hero-globe { display: grid; place-items: center; }
.globe {
  width: min(360px, 78%); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #ffffff, transparent 45%),
    radial-gradient(circle at 70% 76%, var(--red-soft), transparent 55%),
    conic-gradient(from 210deg, #fde4e7, #f6c9d0, #fbe0e4, #f3bcc4);
  border: 1px solid var(--border);
  box-shadow: inset -20px -20px 60px rgba(192, 0, 30, 0.08), 0 20px 50px -24px rgba(192, 0, 30, 0.25);
  position: relative;
  animation: float 7s ease-in-out infinite;
}
.globe::before, .globe::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(192, 0, 30, 0.14);
}
.globe::before { transform: rotateX(74deg); }
.globe::after { transform: rotateY(74deg); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---------- Home strip ---------- */
.home-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.strip-card {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  padding: 26px 22px 24px; cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.strip-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red); }
.strip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.strip-ico { font-size: 30px; }
.strip-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 14px 0 8px; color: var(--charcoal); }
.strip-card p { color: var(--muted); font-size: 14.5px; }
.strip-link { display: inline-block; margin-top: 14px; color: var(--red); font-weight: 500; font-size: 14px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; margin-top: 90px; }
.about-text h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; margin-bottom: 18px; color: var(--charcoal); }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text .btn { margin-top: 10px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.region-tile {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 20px; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.region-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.region-tile b { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--red); }
.region-tile span { display: block; color: var(--muted); font-weight: 500; font-size: 14px; margin-top: 2px; }

/* ---------- Controls ---------- */
.map-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.input {
  font: inherit; color: var(--charcoal); background: var(--white); border: 1px solid var(--border);
  border-radius: 4px; padding: 11px 18px; min-width: 240px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--subtle); }
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.region-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: inherit; font-size: 13px; font-weight: 500; color: var(--muted);
  background: var(--white); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 15px; cursor: pointer; transition: all 0.2s;
}
.chip:hover { color: var(--red); border-color: var(--red); }
.chip.is-active { color: var(--white); background: var(--red); border-color: var(--red); }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* ---------- Map ---------- */
.map-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
#leafletMap { height: 68vh; min-height: 480px; width: 100%; background: #eaeaea; }
.leaflet-container { font-family: var(--font-body); background: #eaeaea; }
.leaflet-popup-content-wrapper {
  background: var(--white); color: var(--charcoal); border-radius: 12px;
  border: 1px solid var(--border); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.leaflet-popup-tip { background: var(--white); border: 1px solid var(--border); }
.leaflet-popup-content { margin: 16px 18px; font-size: 13.5px; }
.leaflet-popup-close-button { color: var(--subtle) !important; }
.pop-city { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 6px; color: var(--charcoal); }
.pop-region { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.pop-row { display: flex; gap: 8px; margin: 6px 0; color: var(--muted); }
.pop-row b { color: var(--charcoal); font-weight: 500; }
.pop-row a { color: var(--red); }
.pop-actions { margin-top: 12px; display: flex; gap: 8px; }
.pop-btn { font-size: 12.5px; font-weight: 500; padding: 8px 14px; border-radius: 4px; text-decoration: none; border: 1px solid var(--border); cursor: pointer; }
.pop-btn.primary { color: var(--white); background: var(--red); border-color: var(--red); }
.pop-btn.ghost { color: var(--charcoal); background: var(--white); }
.pop-btn.ghost:hover { color: var(--red); border-color: var(--red); }
.marker-pin { filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25)); }
.marker-cluster-custom { background: rgba(192, 0, 30, 0.18); border-radius: 50%; }
.marker-cluster-custom div { background: var(--red); color: var(--white); font-weight: 700; font-family: var(--font-body); width: 38px; height: 38px; margin: 5px; border-radius: 50%; display: grid; place-items: center; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.card-grid.compact { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.meet-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 22px 26px; cursor: pointer; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.meet-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--rc, var(--red)); }
.meet-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.mc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mc-city { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.15; color: var(--charcoal); }
.mc-tag { flex: none; font-size: 10.5px; font-weight: 500; letter-spacing: 0.6px; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; color: var(--red); background: var(--red-soft); border: 1px solid transparent; }
.mc-row { display: flex; gap: 9px; color: var(--muted); font-size: 13.5px; margin: 7px 0; }
.mc-row .ico { flex: none; opacity: 0.85; }
.mc-row span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mc-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mc-host { font-size: 12.5px; color: var(--subtle); }
.mc-host b { color: var(--muted); font-weight: 500; }
.mc-link { font-size: 13px; font-weight: 500; color: var(--red); }
.mc-badge { position: absolute; top: 18px; right: 18px; }

.empty-note { text-align: center; color: var(--subtle); padding: 50px 0; font-size: 15px; }

/* ---------- Add-new CTA bar ---------- */
.add-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin: 0 0 24px; padding: 16px 22px; text-decoration: none;
  background: var(--red-soft);
  border: 1px solid transparent; border-left: 5px solid var(--red); border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.add-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.add-cta-text { color: var(--muted); font-size: 14.5px; }
.add-cta-text b { color: var(--charcoal); font-weight: 500; }
.add-cta-btn {
  flex: none; color: var(--white); font-weight: 500; font-size: 13px; white-space: nowrap;
  padding: 10px 20px; border-radius: 4px;
  background: var(--red);
  transition: background 0.2s;
}
.add-cta:hover .add-cta-btn { background: var(--red-dark); }

/* ---------- Feature / merch / donate ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.feature-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.feature-media { aspect-ratio: 16 / 10; background: var(--red-soft); position: relative; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media .fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 42px; color: rgba(192, 0, 30, 0.25); }
.feature-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feature-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.15; color: var(--charcoal); }
.feature-body p { color: var(--muted); font-size: 14px; }
.feature-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0; }
.pill { font-size: 12px; font-weight: 400; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; }
.feature-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.mini-link { font-size: 12.5px; font-weight: 500; color: var(--red); text-decoration: none; border: 1px solid var(--border); padding: 7px 13px; border-radius: 4px; transition: background 0.2s, border-color 0.2s; }
.mini-link:hover { background: var(--red-soft); border-color: var(--red); }
.links-note { flex-basis: 100%; font-size: 11.5px; font-weight: 500; letter-spacing: 0.6px; text-transform: uppercase; color: var(--subtle); margin-bottom: 2px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 760px; }
.contact-card {
  position: relative; display: block; text-decoration: none; color: inherit; overflow: hidden;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.contact-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red); }
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.contact-ico { font-size: 30px; }
.contact-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 14px 0 8px; color: var(--charcoal); }
.contact-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.contact-mail { display: inline-block; font-weight: 500; font-size: 14.5px; color: var(--red); word-break: break-all; }

/* ---------- Team ---------- */
.team-section { margin-top: 64px; }
.team-group { margin-bottom: 42px; }
.team-group-title {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 20px; color: var(--charcoal);
  padding-bottom: 12px; border-bottom: 1px solid var(--border); position: relative;
}
.team-group-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 54px; height: 3px; background: var(--red); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.team-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 18px 20px; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.team-avatar {
  width: 92px; height: 92px; border-radius: 50%; position: relative; overflow: hidden;
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--red-soft);
  border: 2px solid rgba(192, 0, 30, 0.2);
}
.team-avatar::before { content: attr(data-initials); font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--red); }
.team-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--charcoal); }
.team-role { color: var(--subtle); font-size: 13px; font-weight: 400; margin-top: 2px; }
.team-links { display: flex; gap: 10px; margin-top: 14px; }
.team-icon {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted); background: var(--white); border: 1px solid var(--border);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.team-icon:hover { color: var(--white); background: var(--red); border-color: var(--red); transform: translateY(-2px); }

/* ---------- Collapsible team (Chapter Relations accordion) ---------- */
.team-parent { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); margin-bottom: 24px; overflow: hidden; }
.team-parent > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 24px); color: var(--charcoal); }
.team-parent > summary::-webkit-details-marker { display: none; }
.team-parent > summary::after { content: ""; width: 11px; height: 11px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); transition: transform 0.25s var(--ease); flex: none; }
.team-parent[open] > summary::after { transform: rotate(45deg); }
.team-parent > summary:hover { color: var(--red); }
.team-sub-list { padding: 0 16px 14px; display: grid; gap: 10px; }

.team-sub { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); }
.team-sub > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-weight: 500; font-size: 15px; color: var(--charcoal); }
.team-sub > summary::-webkit-details-marker { display: none; }
.team-sub > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle); transform: rotate(-45deg); transition: transform 0.25s var(--ease); flex: none; }
.team-sub[open] > summary { color: var(--red); background: var(--white); }
.team-sub[open] > summary::after { transform: rotate(45deg); border-color: var(--red); }
.team-sub-count { font-size: 12px; font-weight: 600; color: var(--red); background: var(--red-soft); border-radius: 999px; padding: 2px 9px; }
.team-sub .team-grid { padding: 8px 16px 18px; }

/* ---------- Modal ---------- */
/* z-index must clear Leaflet's panes/controls (which go up to ~1000) */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30, 30, 30, 0.45); backdrop-filter: blur(4px); animation: fade 0.3s; }
.modal-card {
  position: relative; width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--red);
  border-radius: 12px; padding: 34px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); animation: pop 0.35s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 16px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--charcoal); font-size: 22px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.modal-close:hover { background: var(--red-soft); color: var(--red); }
.m-region { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; color: var(--red); }
.m-title { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.08; margin: 8px 0 20px; color: var(--charcoal); }
.m-block { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.m-block .ico { flex: none; font-size: 18px; width: 24px; text-align: center; }
.m-block .k { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--subtle); font-weight: 500; }
.m-block .v { color: var(--charcoal); font-size: 15px; margin-top: 2px; word-break: break-word; }
.m-block .v a { color: var(--red); }
.m-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg); color: #cfcfcf; border-top: 0;
  padding: 40px max(20px, calc((100% - var(--maxw)) / 2));
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin: 0;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand .brand-logo { height: 42px; }
.foot-brand strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--white); }
.foot-brand span { font-size: 13px; color: var(--subtle); }
.foot-nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.foot-nav button { font: inherit; font-size: 14px; font-weight: 400; color: #cfcfcf; background: none; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 6px; }
.foot-nav button:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.foot-note { width: 100%; color: var(--subtle); font-size: 12.5px; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; }
.foot-social { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.foot-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #cfcfcf; border: 1px solid rgba(255, 255, 255, 0.16); transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s; }
.foot-icon:hover { color: #fff; background: var(--red); border-color: var(--red); transform: translateY(-2px); }

/* ---------- Responsive: tablet & down ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 10px; padding-top: 16px; }
  .hero-globe { order: -1; }
  .globe { width: min(280px, 62%); }
  .home-strip { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 34px; margin-top: 60px; }
  .about-media { order: -1; }
}

/* ---------- Responsive: collapse nav into a drawer ---------- */
@media (max-width: 820px) {
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 42px; margin-left: auto; padding: 0 12px;
    background: var(--white); border: 1px solid var(--border); border-radius: 6px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; width: 20px; background: var(--charcoal); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin-left: 0;
    flex-direction: column; gap: 4px;
    padding: 0 clamp(20px, 4vw, 48px);
    background: var(--white);
    border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height 0.32s var(--ease), opacity 0.25s, padding 0.32s var(--ease);
  }
  .nav.open { max-height: 78vh; opacity: 1; pointer-events: auto; padding-top: 12px; padding-bottom: 18px; overflow-y: auto; }
  .nav-link { width: 100%; text-align: left; padding: 13px 14px; font-size: 15px; }
}

/* ---------- Responsive: phones ---------- */
@media (max-width: 620px) {
  .home-strip { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .stats { gap: 22px; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .map-controls { width: 100%; }
  .input { min-width: 0; width: 100%; }
  .region-filter { width: 100%; }
  #leafletMap { height: 62vh; min-height: 380px; }
  .card-grid, .card-grid.compact, .feature-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 26px 20px; border-radius: 20px; }
  .m-title { font-size: 25px; }
  .m-actions { flex-direction: column; }
  .m-actions .btn { width: 100%; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
  .foot-nav { margin-left: 0; }
}

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

/* ---------- Map attribution (kept minimal per OSM/CARTO terms) ---------- */
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.85) !important;
  color: var(--subtle) !important;
  font-size: 10px !important;
  padding: 1px 6px !important;
  border-radius: 6px 0 0 0;
  backdrop-filter: blur(4px);
}
.leaflet-control-attribution a { color: var(--muted) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-globe { display: none; }
  .home-strip { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: 0.3s; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; right: 12px; left: 12px;
    background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-top: 8px; gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  .nav.open .nav-link { text-align: left; }
}
@media (max-width: 560px) {
  .home-strip { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .input { min-width: 0; width: 100%; }
  .map-controls { width: 100%; }
  .stats { gap: 22px; }
}
