/* BFA International Club — shared styles
   Palette and type taken from the BFA reference document (navy, gold, green, cream; Lora + Poppins). */

:root {
  --navy: #0b1f3a;
  --navy-2: #17263b;
  --navy-3: #12305a;
  --gold: #d9a326;
  --gold-soft: #e8c766;
  --gold-deep: #946a0c;   /* gold text on white: passes the 4.5:1 contrast minimum */
  --gold-pale: #f3de9e;   /* gold text on green: passes the 4.5:1 contrast minimum */
  --green: #176b4d;
  --green-soft: #6fcf9f;
  --cream: #f4efe4;
  --paper: #fbf8f2;
  --ink: #17263b;
  --muted: #526176;
  --line: #e2dccd;
  --white: #ffffff;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --wrap: 1140px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Eyebrow / tagline ---------- */

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

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

.tagline {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
}

.on-dark .lede { color: #c9d5e4; }

.italic-gold {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); }

.btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); color: var(--white); }

.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #0f5a3f; color: var(--white); }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 31, 58, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  transition: color 0.15s ease;
}

.brand:visited {
  color: var(--white);
}

.brand:hover,
.brand:focus-visible {
  color: var(--gold);
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name {
  color: var(--gold);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
  color: inherit;
}

.brand-name small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--gold-soft);
  margin-top: 3px;
}

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

.nav-links a {
  color: #dce5f2;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a[aria-current] { color: var(--gold); }

.nav-links .btn { padding: 9px 18px; margin-left: 6px; color: var(--navy); }
.nav-links .btn:hover,
.nav-links .btn[aria-current] { color: var(--navy); }
.nav-links .btn[aria-current] { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.nav-links .btn-outline,
.nav-links .btn-outline:hover { color: var(--white); }
.nav-links .btn-outline[aria-current] { border-color: var(--gold); color: var(--gold); box-shadow: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  padding: 8px;
  cursor: pointer;
}

/* The header gets a wider row than the page content so all links fit on one line.
   Brand left; links, language switch and menu button pushed right in that order. */
.site-header .wrap { max-width: 1320px; }
.site-header .brand { margin-right: auto; flex-shrink: 0; }
html[lang="fr"] .site-header .brand-name small { letter-spacing: 0.13em; }
.nav-links a { white-space: nowrap; }
.nav-links { order: 1; }
.lang-switch { order: 2; }
.nav-toggle { order: 3; }

.lang-switch {
  display: flex;
  gap: 2px;
  margin-left: 12px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}
.lang-switch a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 999px;
  color: #dce5f2;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch a:hover { color: var(--gold); }
.lang-switch a[aria-current] { background: var(--gold); color: var(--navy); }

/* Hamburger menu once the links no longer fit on one row.
   The French labels are longer, so French pages switch at a wider width (block below). */
@media (max-width: 1199px) {
  .lang-switch { margin: 0 4px 0 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    padding: 12px 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6px; border-radius: 0; }
  .nav-links .btn { margin: 10px 0 0; padding: 12px 18px; border-radius: 999px; justify-content: center; }
  .nav-toggle .icon-close,
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
}

@media (min-width: 1200px) and (max-width: 1339px) {
  html[lang="fr"] .lang-switch { margin: 0 4px 0 0; }
  html[lang="fr"] .nav-toggle { display: block; }
  html[lang="fr"] .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    padding: 12px 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }
  html[lang="fr"] .nav-links.open { display: flex; }
  html[lang="fr"] .nav-links a { padding: 12px 6px; border-radius: 0; }
  html[lang="fr"] .nav-links .btn { margin: 10px 0 0; padding: 12px 18px; border-radius: 999px; justify-content: center; }
  html[lang="fr"] .nav-toggle .icon-close,
  html[lang="fr"] .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  html[lang="fr"] .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
}

/* Phones: the brand, language switch and menu button share one row, so the header
   drops the small tagline (it's in the hero and footer) and lets the name shrink. */
@media (max-width: 480px) {
  .site-header .brand-name small { display: none; }
  .site-header .brand { flex-shrink: 1; min-width: 0; }
  .lang-switch a { padding: 6px 8px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 20%, #183a68 0%, var(--navy) 55%, #071427 100%);
  color: var(--white);
  padding: 90px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }

.hero .tagline { margin: 20px 0 10px; display: block; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; margin-left: auto; width: 100%; }
.hero-art svg { width: 100%; height: 100%; }

.page-hero { padding: 70px 0 80px; }
.page-hero .hero-grid { grid-template-columns: 1fr; }

@media (max-width: 860px) {
  .hero { padding: 60px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 280px; margin: 0 auto; order: -1; }
}

.lang-pills { display: flex; gap: 8px; margin-top: 22px; }
.lang-pills a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s ease;
}
.lang-pills a:hover { background: var(--gold-soft); }
.lang-pills a[aria-current] { background: var(--gold); }

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

.section { padding: 90px 0; }
.section-tight { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #dce5f2; }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
}

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 22px; }
.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: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  margin-bottom: 18px;
}
.icon-badge svg { width: 24px; height: 24px; }

.num {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

/* Vision / mission */

.statement {
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}
.statement blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.5;
}
.statement-navy { background: var(--navy); color: var(--white); }
.statement-navy .eyebrow { color: var(--gold); }
.statement-green { background: var(--green); color: var(--white); }
.statement-green .eyebrow { color: var(--gold-pale); }

/* Movements strip */

.movements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 22px;
}
.movement { padding: 26px; background: var(--white); border-right: 1px solid var(--line); }
.movement:last-child { border-right: 0; }
.movement h3 {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
}
.movement p { color: var(--muted); margin: 0; font-size: 0.95rem; }

@media (max-width: 860px) {
  .movements { grid-template-columns: repeat(2, 1fr); }
  .movement:nth-child(2) { border-right: 0; }
  .movement:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .movements { grid-template-columns: 1fr; }
  .movement { border-right: 0; border-bottom: 1px solid var(--line); }
  .movement:last-child { border-bottom: 0; }
}

/* Values list */

.values { counter-reset: v; list-style: none; padding: 0; margin: 0; }
.values li {
  counter-increment: v;
  position: relative;
  padding: 18px 0 18px 58px;
  border-bottom: 1px solid var(--line);
}
.values li::before {
  content: counter(v);
  position: absolute;
  left: 0;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.values strong { display: block; color: var(--navy); }
.values span { color: var(--muted); font-size: 0.95rem; }

/* Program cards (home) */

.program-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.program-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11, 31, 58, 0.14); color: inherit; }
.program-card .more { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 0.9rem; color: var(--green); }

.programs-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .programs-grid { grid-template-columns: 1fr; } }

.program-card.cta-card {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.program-card.cta-card h3 { color: var(--white); }
.program-card.cta-card p { color: #c9d5e4; }
.program-card.cta-card .more { color: var(--gold); }
.program-card:not(.cta-card) .num { color: var(--gold-deep); }

/* Loop / approach */

.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.loop-step {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 26px;
}
.loop-step .num { display: block; margin-bottom: 6px; }
.loop-step h3 {
  font-family: var(--sans);
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--gold);
}
.loop-step p { margin: 0; color: #c9d5e4; font-size: 0.95rem; }
.loop-note { margin-top: 24px; color: #9db0c8; font-family: var(--serif); font-style: italic; }

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

/* Audience chips */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
}

/* Split layouts */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.not-list { list-style: none; padding: 0; margin: 0; }
.not-list li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px dashed var(--line); color: var(--muted); }
.not-list li::before { content: "—"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* CTA band */

.cta-band {
  background: linear-gradient(120deg, var(--green) 0%, #0f5a3f 100%);
  color: var(--white);
  border-radius: 22px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 30px;
  align-items: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: #dcefe5; margin: 0; max-width: 56ch; }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; padding: 36px 26px; }
}

/* ---------- Programs page ---------- */

.program-nav {
  position: sticky;
  top: 70px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 20px -14px rgba(11, 31, 58, 0.45);
}
.program-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.program-nav ul::-webkit-scrollbar { display: none; }
.program-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.program-nav .n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.program-nav a:hover { border-color: var(--gold); }
.program-nav a[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.program-nav a[aria-current] .n { background: var(--gold); color: var(--navy); }

.program {
  scroll-margin-top: 140px;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.program:nth-of-type(even) { background: var(--cream); }

.program-header {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 36px;
}
.program-header .icon-badge { width: 66px; height: 66px; margin: 0; flex-shrink: 0; background: var(--navy); }
.program-header .icon-badge svg { width: 30px; height: 30px; }
.program-header .approach {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
}
.program-header h2 { margin: 4px 0 4px; }
.program-header .sub { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.1rem; margin: 0; }

.purpose {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 28px;
}
.purpose .eyebrow { color: var(--gold-pale); margin-bottom: 8px; }
.purpose p { margin: 0; }

.activity-list { list-style: none; padding: 0; margin: 0 0 28px; }
.activity-list li { padding: 12px 0 12px 24px; position: relative; border-bottom: 1px solid var(--line); }
.activity-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.activity-list strong { display: block; color: var(--navy); }
.activity-list span { color: var(--muted); font-size: 0.95rem; }

.side-block { margin-bottom: 26px; }
.side-block h3 { font-size: 1.1rem; }
.side-block p { color: var(--muted); }

.note {
  border-left: 4px solid var(--gold);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 0.93rem;
  color: var(--muted);
}
.note strong { color: var(--navy); }

.idea-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.idea-tiles div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--navy);
}
@media (max-width: 860px) { .idea-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Partner page ---------- */

.support-card { border-top: 4px solid var(--gold); }
.support-card.green { border-top-color: var(--green); }
.support-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.94rem; }
.support-card li { margin-bottom: 4px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 16px 18px; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--navy); }
td { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step {
  counter-increment: s;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 0.93rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.promise-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.promise-list li { padding-left: 30px; position: relative; color: #dce5f2; }
.promise-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
@media (max-width: 640px) { .promise-list { grid-template-columns: 1fr; } }

/* Form */

.form-card { background: var(--white); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 640px) { .form-card { padding: 26px 20px; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label, legend { display: block; font-weight: 600; font-size: 0.88rem; color: var(--navy); margin-bottom: 6px; }
.req { color: #b4441f; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="password"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
textarea { min-height: 120px; resize: vertical; }

fieldset { border: 0; padding: 0; margin: 0; }
.check-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0;
  cursor: pointer;
  background: var(--paper);
}
.check:has(input:checked) { border-color: var(--green); background: #e8f4ee; }
.check input { accent-color: var(--green); }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }
.form-status { font-size: 0.92rem; font-weight: 500; color: var(--green); min-height: 1.4em; margin-top: 10px; }
.form-status.error { color: #b4441f; }
.hp { position: absolute; left: -9999px; }

/* Contact block */

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { display: block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.contact-list a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 3px; }
.contact-list a:hover { color: var(--gold); }

/* ---------- Events page ---------- */

.event-list { display: grid; gap: 18px; }
.event {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 24px;
  align-items: center;
}
.event-date {
  background: var(--navy);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}
.event-date .day { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--gold); }
.event-date .month { display: block; margin-top: 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); }
.event h3 { margin-bottom: 4px; }
.event-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.event-meta { font-size: 0.92rem; color: var(--muted); margin: 0; }
.event-about { font-size: 0.95rem; margin: 10px 0 0; }
.events-loading { color: var(--muted); margin: 0; }
.events-empty { max-width: 720px; }
.events-empty .btn { margin-top: 8px; }
@media (max-width: 640px) {
  .event { grid-template-columns: 72px 1fr; gap: 18px; }
  .event .btn { grid-column: 1 / -1; justify-content: center; }
}

/* ---------- Gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* .gallery-2: two larger columns, for while there are only a few photos */
.gallery-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery img,
.gallery-slot {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery-slot {
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 2px dashed var(--line);
  color: var(--muted);
}
.gallery-slot svg { width: 40px; height: 40px; }
.gallery a { display: block; border-radius: var(--radius); }
.gallery a:hover img { opacity: 0.92; }
.gallery figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }

/* ---------- Partner logos ---------- */

.logo-group + .logo-group { margin-top: 40px; }
.logo-group h3 { font-size: 1.15rem; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
.logo-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.logo-tile img { max-height: 70px; width: auto; }

/* ---------- Support page ---------- */

.donate-options { max-width: 640px; }
.pay-details { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 0.95rem; }
.pay-details dt { font-weight: 600; color: var(--navy); }
.pay-details dd { margin: 0; color: var(--muted); }
.pay-steps { margin: 18px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.94rem; }
.pay-steps li { margin-bottom: 4px; }

/* ---------- Placeholders ----------
   Marks content still to come from BFA. Search the HTML for class="ph" before launch. */

.ph {
  background: #fff4d6;
  color: #7a5a00;
  border: 1px dashed var(--gold);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 600;
}

/* ---------- Long-form text (privacy notice) ---------- */

.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

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

.site-footer {
  background: #071427;
  color: #9db0c8;
  padding: 60px 0 30px;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { margin: 0 0 0.5em; color: var(--white); font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9d5e4; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-quote { font-family: var(--serif); font-style: italic; color: #c9d5e4; max-width: 40ch; margin-top: 16px; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

.orbit-spin { transform-origin: 200px 200px; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .orbit-spin { animation: none; }
}

/* ---------- Events admin (admin.html) ---------- */

.admin .admin-actions { display: flex; gap: 10px; }
.admin .admin-actions .btn { padding: 9px 18px; font-size: 0.88rem; }
.admin-narrow { max-width: 480px; }
.admin-title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 6px; }
.admin-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.admin-sub { font-size: 1.3rem; margin: 26px 0 14px; }
.admin-sub span, .admin-past summary span { color: var(--muted); font-family: var(--sans); font-size: 0.9rem; font-weight: 500; }
.admin-list { display: grid; gap: 12px; }
.admin-empty { color: var(--muted); margin: 0; }
.admin-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
}
.admin-item .when { font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.admin-item h3 { font-size: 1.1rem; margin: 0 0 2px; }
.admin-item p { margin: 0; font-size: 0.88rem; }
.admin-item .row-actions { display: flex; gap: 8px; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-danger { background: transparent; color: #b4441f; border-color: #e7c3b6; }
.btn-danger:hover { background: #b4441f; color: var(--white); border-color: #b4441f; }
.admin-item .btn { padding: 8px 16px; font-size: 0.85rem; }
.admin-past { margin-top: 34px; }
.admin-past summary { cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--navy); }
.admin-past .admin-list { margin-top: 14px; }
@media (max-width: 640px) {
  .admin .admin-actions .btn:first-child { display: none; }
  .admin-item { grid-template-columns: 1fr; gap: 8px; }
}
