/* =========================================================
   EEUM Multi-Purpose Building Fund — Editorial design system
   Ported from build-the-house/index.html (do not deviate
   from the design tokens or section structure).

   Section index:
     1. Tokens / base
     2. Typography
     3. Nav
     4. Pledge modal
     5. Hero (asymmetric split, image bleed)
     6. Ornament divider
     7. Progress tracker (dark)
     8. Vision
     9. Construction journey
    10. Ways to give
    11. Pledge section (dark, inline form)
    12. Pledge wall
    13. (legacy reference timeline events — replaced by custom calendar)
    15. Footer
    16. Reveal-on-scroll
    17. Calendar restyle (targets existing class names from
        index.php / js/scripts.js; NO renames)
    18. Testimonials integration restyle
    19. Executive / Core team integration restyle
    20. Logout banner / session-timeout modal restyle
   ========================================================= */

/* =========================================================
   1. Tokens / base
   ========================================================= */
:root {
  --cream: #F5EFE4;
  --cream-soft: #EDE5D5;
  --ink: #1B1F2A;
  --ink-soft: #2C313F;
  --muted: #6B6F7B;
  --line: #D8CFBE;
  --gold: #B8881A;
  --gold-bright: #D9A52E;
  --gold-soft: #EFD89F;
  --burgundy: #6B1F26;
  --success: #3F6E45;

  --container: 1200px;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --serif-display: "Fraunces", "Times New Roman", serif;
  --serif-body: "Newsreader", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle paper grain on the cream background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.12 0 0 0 0 0.16 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* =========================================================
   2. Typography
   ========================================================= */
h1,
h2,
h3,
h4 {
  font-family: var(--serif-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.eyebrow {
  font-family: var(--serif-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}

.display-xl {
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 300;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

.display-lg {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 350;
}

.display-md {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
}

.italic-accent {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

/* =========================================================
   3. Nav
   ========================================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(245, 239, 228, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-name-short {
  display: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a {
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s, background 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--gold);
}

.nav-pledge {
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}

.nav-pledge:hover {
  background: var(--ink);
  color: var(--cream);
}

.nav-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* Welcome / admin / logout buttons in the auth area */
.nav-auth {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
}

.nav-auth a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
}

.nav-auth a:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* =========================================================
   4. Pledge modal
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 26, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 40px;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(245, 239, 228, 0.1);
}

.modal.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(217, 165, 46, 0.18), transparent 70%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 239, 228, 0.6);
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 1;
}

.modal-close:hover {
  background: rgba(245, 239, 228, 0.08);
  color: var(--cream);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--serif-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--cream);
}

.modal-title .italic {
  font-style: italic;
  color: var(--gold);
}

.modal-sub {
  color: rgba(245, 239, 228, 0.65);
  font-size: 14px;
  margin-bottom: 28px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .nav-pledge {
    display: none;
  }

  .nav-auth {
    display: none;
  }

  .nav-inner {
    padding: 12px 18px;
    gap: 12px;
  }

  .logo {
    font-size: 18px;
    gap: 8px;
    min-width: 0;
  }

  .logo-name-full {
    display: none;
  }

  .logo-name-short {
    display: inline;
    white-space: nowrap;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .nav-cta {
    padding: 9px 16px;
    font-size: 13px;
  }
}

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
  position: relative;
  /* Hero is a full-width grid; left text col aligns to virtual container, right image col bleeds to viewport edge */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
  min-height: min(720px, calc(100vh - 76px));
}

.hero-text-col {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  /* Left padding aligns with site container, plus inner padding */
  padding: 56px 56px 56px max(32px, calc((100vw - 1200px) / 2 + 32px));
}

.hero-text-inner {
  max-width: 540px;
  width: 100%;
}

.hero-image-col {
  position: relative;
  overflow: hidden;
  background: var(--cream-soft);
}

.hero-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.hero-image-col::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(27, 31, 42, 0.45), transparent);
  pointer-events: none;
}

.hero-image-caption {
  position: absolute;
  bottom: 28px;
  left: 32px;
  color: rgba(245, 239, 228, 0.85);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  z-index: 2;
}

.hero-image-caption .sep {
  margin: 0 10px;
  color: var(--gold-bright);
}

.hero-headline {
  font-size: clamp(44px, 6.4vw, 88px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-headline .em {
  font-style: italic;
  font-weight: 300;
}

.hero-headline .gold {
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-soft);
  max-width: 480px;
  margin-top: 26px;
  line-height: 1.55;
}

.hero-progress-strip {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-progress-strip .raised {
  font-family: var(--serif-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

.hero-progress-strip .raised .currency {
  color: var(--gold);
  font-size: 0.7em;
  margin-right: 2px;
}

.hero-progress-strip .of {
  font-size: 14px;
  color: var(--muted);
}

.hero-progress-strip .live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-left: auto;
}

.hero-progress-strip .live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: pulse 2s infinite;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 640px;
  }

  .hero-text-col {
    padding: 60px 32px 60px max(24px, calc((100vw - 1200px) / 2 + 24px));
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .hero-image-col {
    aspect-ratio: 16/11;
    width: 100%;
  }

  .hero-image-col img {
    object-position: center 45%;
  }

  .hero-text-col {
    padding: 48px 24px 64px;
  }

  .hero-image-caption {
    bottom: 18px;
    left: 24px;
    font-size: 9px;
    letter-spacing: 0.18em;
  }

}

@media (max-width: 900px) {
  .hero-progress-strip {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 6px;
    align-items: baseline;
  }

  .hero-progress-strip .live-dot {
    grid-row: 1;
    grid-column: 1 / -1;
    margin-left: 0;
    margin-bottom: 2px;
  }

  .hero-progress-strip .raised {
    grid-row: 2;
    grid-column: 1;
  }

  .hero-progress-strip .of {
    grid-row: 2;
    grid-column: 2;
  }
}

/* =========================================================
   6. Ornament divider
   ========================================================= */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 0;
  color: var(--gold);
}

.ornament .line {
  flex: 0 0 60px;
  height: 1px;
  background: var(--line);
}

.ornament svg {
  width: 24px;
  height: 24px;
}

/* =========================================================
   7. Progress tracker (dark)
   ========================================================= */
.progress-section {
  background: var(--ink);
  color: var(--cream);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.progress-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184, 136, 26, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(217, 165, 46, 0.12), transparent 50%);
  pointer-events: none;
}

.progress-section .container {
  position: relative;
  z-index: 1;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 60px;
  gap: 32px;
  flex-wrap: wrap;
}

.progress-header h2 {
  color: var(--cream);
  max-width: 600px;
}

.progress-header .updated {
  font-size: 13px;
  color: var(--gold-soft);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.3);
  }
}

.progress-amounts {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: end;
}

.amount-block .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
  margin-bottom: 16px;
}

.amount-block .figure {
  font-family: var(--serif-display);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.amount-block.primary .figure {
  font-size: clamp(64px, 11vw, 144px);
}

.amount-block.secondary .figure {
  font-size: clamp(32px, 4vw, 56px);
}

.amount-block .figure .currency {
  font-size: 0.5em;
  vertical-align: top;
  color: var(--gold);
  margin-right: 6px;
}

.amount-block.primary .figure .currency {
  font-size: 0.4em;
}

.amount-block .delta {
  font-size: 13px;
  color: var(--cream);
  opacity: 0.65;
  margin-top: 12px;
}

@media (max-width: 820px) {
  .progress-amounts {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.bar-wrap {
  margin-bottom: 56px;
}

.bar {
  height: 14px;
  background: rgba(245, 239, 228, 0.1);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.bar-raised {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  border-radius: 999px;
  width: 0%;
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-pledged {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(217, 165, 46, 0.25);
  border-radius: 999px;
  width: 0%;
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.bar-legend {
  margin-top: 16px;
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--gold-soft);
  flex-wrap: wrap;
}

.bar-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

.legend-raised::before {
  background: var(--gold-bright);
}

.legend-pledged::before {
  background: rgba(217, 165, 46, 0.4);
}

.legend-remaining::before {
  background: rgba(245, 239, 228, 0.15);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(245, 239, 228, 0.15);
}

.mini-stat .num {
  font-family: var(--serif-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 350;
  color: var(--gold-bright);
  line-height: 1;
}

.mini-stat .lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream);
  opacity: 0.6;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .mini-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* =========================================================
   8. Vision section
   ========================================================= */
.vision {
  padding: 120px 0;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.vision-text h2 {
  margin: 16px 0 28px;
}

.vision-text p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 18px;
}

.vision-purposes {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.purpose {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.purpose .icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
  margin-bottom: 12px;
}

.purpose .title {
  font-family: var(--serif-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}

.purpose .desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.vision-more {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vision-more-list {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.vision-image {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--cream-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.vision-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vision-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vision-image::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .vision {
    padding: 56px 0;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .vision-image {
    display: none;
  }

  .vision-purposes {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   9. Construction journey
   ========================================================= */
.journey {
  background: var(--cream-soft);
  padding: 120px 0;
}

.journey-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.journey-header h2 {
  max-width: 540px;
}

.journey-header p {
  color: var(--ink-soft);
  max-width: 360px;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.photo {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: transform 0.4s ease;
}

.photo:hover {
  transform: translateY(-4px);
}

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

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(184, 136, 26, 0.04) 12px 13px);
}

.photo .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(27, 31, 42, 0.95) 0%, rgba(27, 31, 42, 0.75) 60%, rgba(27, 31, 42, 0) 100%);
  color: var(--cream);
  padding: 36px 18px 16px;
  font-size: 13px;
}

.photo .caption .date {
  color: var(--gold-bright);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.photo.span-7 {
  grid-column: span 7;
  aspect-ratio: 16/10;
}

.photo.span-5 {
  grid-column: span 5;
  aspect-ratio: auto;
}

.photo.span-4 {
  grid-column: span 4;
}

.photo.span-3 {
  grid-column: span 3;
}

.photo.span-6 {
  grid-column: span 6;
  aspect-ratio: 5/3;
}

@media (max-width: 820px) {
  .photo[class*="span-"] {
    grid-column: span 12;
    aspect-ratio: 4/3;
  }
}

/* =========================================================
   10. Ways to give
   ========================================================= */
.give {
  padding: 120px 0;
}

.give-header {
  text-align: center;
  margin-bottom: 60px;
}

.give-header h2 {
  margin: 16px auto;
  max-width: 700px;
}

.give-header p {
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto;
}

.give-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.give-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  background: var(--cream);
  transition: all 0.3s ease;
  position: relative;
}

.give-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(27, 31, 42, 0.15);
}

.give-card .icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 20px;
}

.give-card .name {
  font-family: var(--serif-display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 6px;
}

.give-card .tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 18px;
}

.give-card .desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 14px;
}

.copy-row-spaced {
  margin-top: 16px;
}

.copy-row .ck-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-right: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.give-memo-notice {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.give-memo-notice strong {
  font-weight: 700;
  color: var(--burgundy);
}

.copy-row .ck-value {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: pre-line;
  min-width: 0;
  flex: 1 1 auto;
}

.copy-btn {
  background: var(--ink);
  color: var(--cream);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
  flex: 0 0 auto;
}

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

.copy-btn.copied {
  background: var(--success);
}

.tel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.2s;
}

.tel-link:hover {
  color: var(--gold);
}

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

  .copy-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 14px;
  }

  .give-card {
    padding: 24px 20px;
  }

  .give-card .name {
    font-size: 22px;
  }
}

/* ------------------------------------------------------
   Give bottom sheet — mobile-only payment method picker
   ------------------------------------------------------ */
.give-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.give-sheet.open {
  display: block;
}

.give-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 31, 42, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.give-sheet.open .give-sheet-backdrop {
  opacity: 1;
}

.give-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  background: var(--cream);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -10px 40px -10px rgba(27, 31, 42, 0.25);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: pan-y;
}

.give-sheet.open .give-sheet-panel {
  transform: translateY(0);
}

.give-sheet-handle {
  align-self: center;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  margin: 10px 0 4px;
  border: none;
  cursor: pointer;
}

.give-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px 12px;
}

.give-sheet-header h2 {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

.give-sheet-close {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
}

.give-sheet-close:hover {
  background: var(--cream-soft);
  color: var(--ink);
}

.give-sheet-tabs {
  position: relative;
  display: flex;
  gap: 0;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.gs-tab {
  flex: 1 1 0;
  background: transparent;
  border: none;
  padding: 14px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.gs-tab.active {
  color: var(--ink);
}

.gs-tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: calc(100% / var(--gs-tab-count, 4));
  background: var(--gold);
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform: translateX(0%);
}

.give-sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 28px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  flex: 1 1 auto;
  display: grid;
}

.gs-panel {
  grid-area: 1 / 1;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.gs-panel.active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.gs-phone-block {
  margin-bottom: 22px;
}

.gs-phone-block:last-child {
  margin-bottom: 0;
}

.gs-phone-label {
  display: block;
  margin-bottom: 6px;
}

.gs-ext-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gs-ext-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line, rgba(0,0,0,.1));
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.gs-ext-list a:active {
  background: rgba(0,0,0,.04);
}

.gs-ext-num {
  font-weight: 600;
  min-width: 64px;
}

.gs-ext-name {
  color: var(--ink-soft, #555);
}

.gs-sms-hint {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-soft, #555);
}

.gs-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  line-height: 1.5;
}

.gs-tel {
  margin-top: 8px;
}

body.give-sheet-open {
  overflow: hidden;
}

@media (min-width: 821px) {
  .give-sheet {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .copy-row {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 6px;
    column-gap: 10px;
    padding: 12px;
  }

  .copy-row .ck-label {
    flex: 1 0 100%;
    margin-right: 0;
    font-size: 10px;
  }

  .copy-row .ck-value {
    flex: 1 1 auto;
    font-size: 13px;
  }

  .copy-row .copy-btn {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

/* =========================================================
   11. Pledge section (dark, inline form)
   ========================================================= */
.pledge {
  background: var(--ink);
  color: var(--cream);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.pledge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 50%, rgba(184, 136, 26, 0.12), transparent 60%);
  pointer-events: none;
}

.pledge .container {
  position: relative;
  z-index: 1;
}

.pledge-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

.pledge-intro h2 {
  color: var(--cream);
  margin: 16px 0 24px;
}

.pledge-intro p {
  color: rgba(245, 239, 228, 0.75);
  font-size: 17px;
  margin-bottom: 18px;
}

.pledge-intro .pledge-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(245, 239, 228, 0.15);
}

.pledge-stat .v {
  font-family: var(--serif-display);
  font-size: 40px;
  font-weight: 350;
  color: var(--gold-bright);
  line-height: 1;
}

.pledge-stat .l {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream);
  opacity: 0.6;
  margin-top: 10px;
}

.pledge-form {
  background: rgba(245, 239, 228, 0.04);
  border: 1px solid rgba(245, 239, 228, 0.12);
  border-radius: var(--radius-md);
  padding: 36px;
}

.pledge-form h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--cream);
}

.pledge-form .form-sub {
  color: rgba(245, 239, 228, 0.6);
  font-size: 14px;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
}

.field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(245, 239, 228, 0.06);
  border: 1px solid rgba(245, 239, 228, 0.15);
  color: var(--cream);
  padding: 12px 14px;
  border-radius: 6px;
  font-family: var(--serif-body);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(245, 239, 228, 0.08);
}

.field input::placeholder {
  color: rgba(245, 239, 228, 0.3);
}

.amount-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chip {
  padding: 8px 14px;
  border: 1px solid rgba(245, 239, 228, 0.2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--cream);
  transition: all 0.2s;
}

.chip:hover,
.chip.active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(245, 239, 228, 0.7);
  margin: 16px 0 24px;
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--gold);
}

.pledge-submit {
  background: var(--gold);
  color: var(--ink);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.pledge-submit:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.pledge-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.pledge-error {
  display: none;
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #f6c2bd;
  background: rgba(220, 70, 70, 0.12);
  border: 1px solid rgba(220, 70, 70, 0.3);
  padding: 10px 14px;
  border-radius: 6px;
}

.pledge-error.show {
  display: block;
}

.pledge-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.pledge-success.show {
  display: block;
}

.pledge-success svg {
  width: 56px;
  height: 56px;
  color: var(--gold-bright);
  margin: 0 auto 20px;
}

.pledge-success h3 {
  font-family: var(--serif-display);
  font-size: 28px;
  color: var(--cream);
  margin-bottom: 12px;
}

.pledge-success p {
  color: rgba(245, 239, 228, 0.75);
}

@media (max-width: 900px) {
  .pledge-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .form-row.two {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   15. Footer
   ========================================================= */
footer.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(ellipse at 50% 0%, rgba(184, 136, 26, 0.1), transparent 70%);
  pointer-events: none;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.footer-statement {
  text-align: center;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245, 239, 228, 0.1);
}

.footer-statement p {
  font-family: var(--serif-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--cream);
  max-width: 620px;
  margin: 0 auto;
}

.footer-statement em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 300;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.6fr;
  gap: 48px;
  padding: 0 0 56px;
}

.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-brand .logo-mark {
  width: 36px;
  height: 36px;
  color: var(--gold-bright);
  flex: 0 0 36px;
}

.footer-brand .logo-name {
  font-family: var(--serif-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--cream);
}

.footer-brand .logo-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
  margin-top: 4px;
  font-weight: 500;
}

.footer-brand .brand-mission {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 239, 228, 0.7);
  margin-bottom: 24px;
  max-width: 320px;
}

.brand-email {
  margin-bottom: 16px;
}

.brand-email .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 4px;
}

.brand-email a {
  font-size: 14px;
  color: rgba(245, 239, 228, 0.85);
  transition: color 0.2s;
  display: inline-block;
}

.brand-email a:hover {
  color: var(--gold-bright);
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 239, 228, 0.18);
  border-radius: 50%;
  color: rgba(245, 239, 228, 0.7);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-socials a .footer-social-icon {
  width: 15px;
  height: 15px;
  display: block;
}

.footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--serif-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(245, 239, 228, 0.75);
  margin-bottom: 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-bright);
  transform: translateX(2px);
}

.exec-contact {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(245, 239, 228, 0.08);
}

.exec-contact:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.exec-contact .role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-soft);
  font-weight: 500;
  margin-bottom: 4px;
}

.exec-contact .name {
  font-family: var(--serif-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 8px;
  line-height: 1.2;
}

.exec-contact .lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.exec-contact .lines a {
  font-size: 13px;
  color: rgba(245, 239, 228, 0.75);
  transition: color 0.2s;
  word-break: break-word;
  line-height: 1.4;
}

.exec-contact .lines a:hover {
  color: var(--gold-bright);
}

.footer-address {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 239, 228, 0.1);
}

.footer-address .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 6px;
}

.footer-address address {
  font-style: normal;
  font-size: 13px;
  color: rgba(245, 239, 228, 0.75);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(245, 239, 228, 0.1);
  font-size: 12px;
  color: rgba(245, 239, 228, 0.5);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.footer-bottom .legal {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom .sep {
  color: var(--gold);
  opacity: 0.7;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 239, 228, 0.08);
}

.footer-legal-links a {
  color: rgba(245, 239, 228, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--gold-bright);
}

@media (max-width: 920px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 48px 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  footer.site-footer { padding-top: 56px; }
  .footer-statement { padding-bottom: 40px; }
  .footer-main { grid-template-columns: 1fr; gap: 40px; padding: 0 0 40px; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
  .footer-legal-links { justify-content: flex-start; }
}

/* =========================================================
   16. Reveal-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   17. Calendar restyle (custom component, JS untouched)
   Targets the existing class names in index.php and
   js/scripts.js. Do NOT rename — JS reads them. We layer
   styles only and add modifier classes when needed.
   ========================================================= */
.events-calendar-section {
  background: var(--cream-soft);
  padding: 120px 0;
  position: relative;
}

.events-calendar-section .container,
.events-calendar-section .events-calendar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.events-calendar-title {
  font-family: var(--serif-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 12px;
}

.events-calendar-subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto 60px;
}

.content-container-events {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.calendar-section,
.events-section {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: none;
}

.calendar-header,
.events-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.calendar-header h2,
.events-header h2 {
  font-family: var(--serif-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.calendar-header h2 .heading-rule,
.events-header h2 .heading-rule {
  flex: 0 0 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.month-navigation {
  display: flex;
  align-items: center;
  gap: 16px;
}

.month-navigation .nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.month-navigation .nav-btn:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.month-navigation .current-month {
  font-family: var(--serif-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  min-width: 180px;
  text-align: center;
}

.calendar {
  margin-bottom: 24px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-grid .day-header {
  font-family: var(--serif-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  padding: 8px 0;
}

.calendar-grid .calendar-day {
  font-family: var(--serif-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.calendar-grid .calendar-day:hover {
  background: var(--cream-soft);
  border-color: var(--line);
}

.calendar-grid .calendar-day.other-month {
  color: var(--muted);
  opacity: 0.45;
}

.calendar-grid .calendar-day.today {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  font-weight: 500;
}

/* Event-day visual: subtle gold ring, plus the existing .event-dot */
.calendar-grid .calendar-day.flex,
.calendar-grid .calendar-day:has(.event-dot) {
  border-color: var(--gold);
  color: var(--ink);
}

.calendar-grid .calendar-day.today.flex,
.calendar-grid .calendar-day.today:has(.event-dot) {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--gold-bright);
}

.calendar-grid .calendar-day .event-dot {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.calendar-grid .calendar-day.today .event-dot {
  background: var(--gold-bright);
}

.calendar-legend {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-legend .legend-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--muted);
}

.calendar-legend .legend-items {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.calendar-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.calendar-legend .legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.calendar-legend .legend-dot.today {
  background: var(--ink);
}

.calendar-legend .legend-dot.event {
  background: var(--gold);
}

/* Filter tabs — pill style matching nav-pledge / nav-cta */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tabs .tab-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}

.filter-tabs .tab-btn:hover {
  background: var(--ink);
  color: var(--cream);
}

.filter-tabs .tab-btn.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* Upcoming events list */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
}

.events-list .event-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.events-list .event-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.events-list .event-card .event-date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.events-list .event-card .event-date svg,
.events-list .event-card .event-time svg,
.events-list .event-card .event-location svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  stroke: currentColor;
}

.events-list .event-card .event-title {
  font-family: var(--serif-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
}

.events-list .event-card .event-time,
.events-list .event-card .event-location {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.events-list .event-card .event-description {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 12px;
  line-height: 1.55;
}

.events-list .event-card .event-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.events-list .event-card .event-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--cream);
}

.events-list .event-card .event-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--cream);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.events-list .event-card .event-join:hover {
  background: var(--gold);
  color: var(--cream);
  border-color: var(--gold);
}

.events-list .event-card .event-join svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Below 900px the two-column layout (calendar + events) no longer fits
   side-by-side, so hide the calendar entirely. The calendar is supplementary;
   the events list is the primary content. */
@media (max-width: 900px) {
  .calendar-section {
    display: none;
  }

  .content-container-events {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .events-list {
    max-height: none;
  }
}

.events-title-short {
  display: none;
}

@media (max-width: 900px) {
  .events-title-full {
    display: none;
  }

  .events-title-short {
    display: inline;
  }
}

@media (max-width: 720px) {
  .events-calendar-section {
    padding: 60px 0;
  }

  .events-calendar-section .container,
  .events-calendar-section .events-calendar-inner {
    padding: 0 20px;
  }

  .events-calendar-subtitle {
    margin-bottom: 32px;
  }

  .events-section {
    border: 0;
    background: transparent;
    padding: 0;
  }

  .events-header {
    border-bottom: 0;
    margin-bottom: 8px;
    padding-bottom: 0;
    gap: 0;
  }

  .events-header h2,
  .events-header .filter-tabs {
    display: none;
  }

  .events-list > p {
    padding: 1rem 0 !important;
    text-align: left !important;
    font-style: italic;
  }
}

/* =========================================================
   18. Testimonials integration restyle
   The carousel scroll behavior is preserved (CSS animations
   on .testimonials-row); colors and chrome are restated to
   the new tokens.
   ========================================================= */
.testimonials-section {
  background: var(--cream);
  padding: 120px 0;
  position: relative;
}

.testimonials-section .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.testimonials-section .section-title {
  font-family: var(--serif-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 350;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
  color: var(--ink);
}

.testimonials-section .section-subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 60px;
}

.testimonials-scroll-container {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.testimonials-row {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: testimonialsScroll 60s linear infinite;
}

.testimonials-row-reverse {
  animation: testimonialsScrollReverse 60s linear infinite;
}

.testimonials-row:hover {
  animation-play-state: paused;
}

@keyframes testimonialsScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes testimonialsScrollReverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.testimonial-card {
  flex: 0 0 360px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s;
}

.testimonial-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.testimonial-photo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-content {
  flex: 1 1 auto;
}

.testimonial-quote {
  position: relative;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-style: italic;
}

.testimonial-quote .quote-mark {
  display: none;
}

.testimonial-quote p {
  margin: 0;
}

.testimonial-author h4 {
  font-family: var(--serif-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.testimonial-author .testimonial-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 600;
  margin-top: 4px;
}

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

  .testimonials-section .container {
    padding: 0;
  }

  .testimonials-section .section-title,
  .testimonials-section .section-subtitle {
    padding-inline: 24px;
  }

  .testimonials-scroll-container {
    -webkit-mask-image: none;
    mask-image: none;
    gap: 0;
  }

  .testimonials-row {
    animation: none;
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 24px 12px;
    gap: 14px;
  }

  .testimonials-row::-webkit-scrollbar {
    display: none;
  }

  .testimonials-row-reverse {
    display: none;
  }

  .testimonial-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    padding: 22px;
  }
}

/* =========================================================
   19. Executive team integration restyle
   ========================================================= */
.executive-section {
  padding: 96px 0;
  background: var(--cream);
  position: relative;
}

.executive-section .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.executive-section .section-title {
  font-family: var(--serif-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 56px;
  color: var(--ink);
}

.executive-section .section-title.dark {
  color: var(--ink);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

/* No card box — just stacked content */
.team-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  transition: none;
}

.team-card:hover {
  border: 0;
  transform: none;
}

.team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-soft);
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  /* Softly unify disparate photo backgrounds */
  filter: contrast(1.04) saturate(0.88) brightness(0.98);
  transition: transform 0.6s ease;
}

/* Faint gold wash to tonally unify the row of photos */
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  mix-blend-mode: multiply;
  opacity: 0.07;
  pointer-events: none;
}

.team-card:hover .team-photo img {
  transform: scale(1.02);
}

.team-photo svg {
  width: 50%;
  height: 50%;
  color: var(--muted);
  opacity: 0.45;
}

.team-info {
  padding: 0;
}

.team-name {
  font-family: var(--serif-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 14px;
  margin-bottom: 0;
  /* Reserve space for 2 lines so single-line names stay aligned */
  min-height: 36px;
  display: flex;
  align-items: flex-start;
}

.team-position {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
  margin-top: 3px;
  margin-bottom: 0;
}

.team-info p {
  font-family: var(--serif-body);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 8px;
  /* Clamp to 3 lines so all bios end at the same height */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 720px) {
  .executive-section {
    padding: 72px 0;
  }

  .executive-section .container {
    padding: 0 20px;
  }

  .executive-section .section-title {
    margin-bottom: 36px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 14px;
  }

  .team-name {
    font-size: 14px;
    margin-top: 10px;
    min-height: 0;
  }

  .team-position {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .team-info p {
    font-size: 11.5px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* =========================================================
   20. Logout banner / session-timeout modal restyle
   ========================================================= */
.logout-message {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 150;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid rgba(245, 239, 228, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.35);
}

.logout-message--warning {
  border-color: var(--gold);
}

.logout-message p {
  margin: 0;
}

#sessionTimeoutModal.modal {
  background: rgba(15, 18, 26, 0.6);
}

#sessionTimeoutModal .modal-content {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  border: 1px solid rgba(245, 239, 228, 0.15);
}

#sessionTimeoutModal.active {
  display: flex !important;
}

#sessionTimeoutModal .modal-header h2 {
  font-family: var(--serif-display);
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--cream);
}

#sessionTimeoutModal .modal-header p,
#sessionTimeoutModal .modal-prompt p {
  color: rgba(245, 239, 228, 0.75);
  font-size: 14px;
  margin-bottom: 16px;
}

#sessionTimeoutModal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

#sessionTimeoutModal .submit-btn {
  flex: 1 1 160px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

#sessionTimeoutModal .submit-btn:hover {
  background: var(--gold-bright);
}

#sessionTimeoutModal .submit-btn--danger {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245, 239, 228, 0.3);
}

#sessionTimeoutModal .submit-btn--danger:hover {
  background: rgba(245, 239, 228, 0.1);
}

/* =========================================================
   18. Legal pages (Privacy, Terms)
   ========================================================= */
.legal-page {
  background: var(--cream-soft);
  padding-bottom: 80px;
}

.legal-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 240px;
  background: radial-gradient(ellipse at 50% 0%, rgba(184, 136, 26, 0.18), transparent 70%);
  pointer-events: none;
}

.legal-hero > * {
  position: relative;
  z-index: 1;
}

.legal-eyebrow {
  font-family: var(--serif-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 18px;
}

.legal-hero h1 {
  font-family: var(--serif-display);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--cream);
  margin: 0 auto 14px;
  max-width: 720px;
}

.legal-subtitle {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--gold-bright);
  margin: 0 auto 18px;
  max-width: 560px;
}

.legal-effective {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.55);
  margin: 0;
}

.legal-content {
  max-width: 720px;
  margin: -40px auto 0;
  padding: 56px 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -30px rgba(27, 31, 42, 0.15);
  position: relative;
  z-index: 2;
}

.legal-content section + section {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  font-family: var(--serif-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.legal-content p,
.legal-content li {
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 6px;
}

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal-content a:hover {
  color: var(--gold);
}

.legal-content strong {
  color: var(--ink);
  font-weight: 600;
}

.contact-card {
  margin-top: 14px;
  padding: 20px 22px;
  background: var(--cream-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
}

.contact-card .org {
  font-family: var(--serif-display);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-card p {
  margin: 0;
  font-size: 15px;
}

.contact-card p + p {
  margin-top: 4px;
}

.notice-card {
  margin-top: 16px;
  padding: 18px 22px;
  background: rgba(184, 136, 26, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
}

.notice-card p {
  margin: 0;
  font-size: 15px;
}

.legal-closing {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .legal-hero {
    padding: 96px 20px 64px;
  }
  .legal-content {
    margin: -32px 16px 0;
    padding: 40px 24px;
  }
  .legal-content h2 {
    font-size: 21px;
  }
  .legal-content p,
  .legal-content li {
    font-size: 15px;
  }
}

/* =========================================================
   19. Form legal microcopy (sits under submit buttons on
   dark-ink form surfaces — pledge form + pledge modal)
   ========================================================= */
.form-legal-note {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(245, 239, 228, 0.55);
  margin-top: 14px;
  max-width: 420px;
}

.form-legal-note a {
  color: rgba(245, 239, 228, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(184, 136, 26, 0.7);
  text-underline-offset: 2px;
  transition: color 0.2s;
}

/* =========================================================
   20. SMS opt-in section ("SMS Updates")
   Matches .give design language: cream surface,
   .container, .eyebrow + .display-lg header, single centered card.
   ========================================================= */
.sms-optin {
  padding: 120px 0;
}

.sms-optin-header {
  text-align: center;
  margin-bottom: 48px;
}

.sms-optin-header h2 {
  margin: 16px auto;
  max-width: 700px;
}

.sms-optin-header p {
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto;
}

.sms-optin-card {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.sms-optin-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(27, 31, 42, 0.15);
}

.sms-optin-card .icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 20px;
}

.sms-optin-instructions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  font-family: var(--serif-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}

.sms-optin-line {
  color: var(--ink-soft);
}

.sms-optin-keyword {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.sms-optin-number {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-soft);
  transition: color 0.2s, border-color 0.2s;
}

.sms-optin-number:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.sms-optin-followup {
  font-size: 14px;
  color: var(--muted);
  margin: 0 auto;
  max-width: 420px;
}

.sms-optin-disclosure {
  margin: 32px auto 0;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.sms-optin-disclosure a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sms-optin-disclosure a:hover {
  color: var(--gold-bright);
}

@media (max-width: 640px) {
  .sms-optin {
    padding: 80px 0;
  }
  .sms-optin-card {
    padding: 32px 22px;
  }
  .sms-optin-instructions {
    font-size: 22px;
    gap: 8px;
  }
  .sms-optin-keyword {
    font-size: 16px;
  }
}

.form-legal-note a:hover {
  color: var(--gold-bright);
}