/* ---------- CSEF design tokens ---------- */
:root {
  --navy: #14365c;
  --navy-deep: #0e2640;
  --navy-soft: #2a5184;
  --gold: #c9962b;
  --gold-soft: #e6c266;
  --cream: #faf7f1;
  --cream-2: #f1ebdd;
  --ink: #1a1a1a;
  --muted: #6b6357;
  --line: #e6dfce;
  --white: #ffffff;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

button { font-family: inherit; cursor: pointer; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px var(--gold);
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .b1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: 0.2px;
}
.brand-text .b2 {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.nav-link:hover { background: var(--cream-2); }
.nav-link.active { background: var(--navy); color: var(--cream); }

.nav-cta {
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease;
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold-soft); transform: translateY(-1px); }

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 880px) {
  .costa-mesa { display: none; }
  .two-col-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .nav-inner { justify-content: flex-start; }
  .brand { flex: 1; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; align-items: center; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px 28px 20px;
    z-index: 49;
    gap: 2px;
  }
  .nav-links.mobile-open .nav-link { width: 100%; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--cream); }

/* ---------- placeholder image ---------- */
.placeholder-img {
  position: relative;
  background-color: var(--cream-2);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(20,54,92,0.05) 0,
    rgba(20,54,92,0.05) 8px,
    rgba(20,54,92,0.10) 8px,
    rgba(20,54,92,0.10) 16px
  );
  display: grid;
  place-items: center;
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
}
.placeholder-img.dark {
  background-color: var(--navy-deep);
  color: var(--gold-soft);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.04) 0,
    rgba(255,255,255,0.04) 8px,
    rgba(255,255,255,0.08) 8px,
    rgba(255,255,255,0.08) 16px
  );
}
.placeholder-img.gold {
  background-color: #ecd9a5;
  color: #5a3a05;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(90,58,5,0.06) 0,
    rgba(90,58,5,0.06) 8px,
    rgba(90,58,5,0.12) 8px,
    rgba(90,58,5,0.12) 16px
  );
}
.placeholder-img.navy {
  background-color: var(--navy-deep);
  color: var(--gold-soft);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.04) 0,
    rgba(255,255,255,0.04) 8px,
    rgba(255,255,255,0.08) 8px,
    rgba(255,255,255,0.08) 16px
  );
}

/* ---------- real images ---------- */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- shared section pieces ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow.muted { color: var(--muted); }

.section-title {
  font-size: 44px;
  color: var(--navy-deep);
  text-wrap: balance;
}
.section-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
  margin-top: 16px;
  text-wrap: pretty;
}

/* ---------- hero ---------- */
.hero {
  background: var(--navy-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% -20%, rgba(201,150,43,0.35), transparent 55%),
    radial-gradient(ellipse at 0% 110%, rgba(42,81,132,0.7), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 120px;
}
.hero h1 {
  font-size: 72px;
  letter-spacing: -0.02em;
  line-height: 1.0;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--gold-soft); font-style: italic; font-weight: 400; }
.hero p.lede {
  font-size: 19px;
  color: rgba(250,247,241,0.8);
  margin-top: 24px;
  max-width: 52ch;
  text-wrap: pretty;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 28px;
}
.hero-meta .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  transform: rotate(1.5deg);
}
.hero-card .badge {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.hero-card-2 {
  position: absolute;
  bottom: -30px;
  left: -50px;
  width: 200px;
  aspect-ratio: 1/1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform: rotate(-4deg);
  border: 8px solid var(--cream);
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 80px; }
  .hero h1 { font-size: 48px; }
  .hero-card { max-width: 360px; margin: 0 auto; }
  .hero-card-2 { display: none; }
}

/* ---------- mailchimp / cta blocks ---------- */
.cta-band {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  padding-top: 72px;
  padding-bottom: 72px;
  align-items: center;
}
@media (max-width: 880px) { .cta-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; padding-bottom: 56px; } }

.signup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.signup-form .full { grid-column: 1 / -1; }
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(20,54,92,0.10);
}
.signup-msg {
  font-size: 13px;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.signup-msg.success { color: #1f6b3c; }
.signup-msg.error { color: #b3331f; }

/* ---------- donate split ---------- */
.donate-band {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.donate-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(201,150,43,0.18), transparent 50%);
}
.donate-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.donate-grid h2 { font-size: 48px; color: var(--cream); }
.donate-grid p { color: rgba(250,247,241,0.75); font-size: 17px; margin-top: 16px; max-width: 50ch; }
.donate-stat {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1;
}
.donate-stat-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,247,241,0.6);
  margin-top: 8px;
}
.donate-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
@media (max-width: 880px) {
  .donate-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .donate-grid h2 { font-size: 36px; }
  .donate-stat { font-size: 56px; }
}

/* ---------- event cards ---------- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 880px) { .event-grid { grid-template-columns: 1fr; } }

.event-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(20,54,92,0.10);
}
.event-card .cover { aspect-ratio: 16/10; overflow: hidden; }
.event-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.event-card .body { padding: 22px 22px 24px; }
.event-card .date-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.event-card h3 { font-size: 22px; color: var(--navy-deep); margin-bottom: 8px; }
.event-card .meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.event-card .meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- photo strip ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 36px;
}
.photo-strip .ph {
  aspect-ratio: 1/1;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 160ms ease;
  overflow: hidden;
}
.photo-strip .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip .ph:hover { transform: scale(1.03); }
@media (max-width: 880px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- programs blocks ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 980px) { .programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .programs-grid { grid-template-columns: 1fr; } }

.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px 26px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.program-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.program-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--cream-2);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.program-card h4 { font-size: 19px; color: var(--navy-deep); margin-bottom: 8px; }
.program-card p { font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(250,247,241,0.75);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 16px;
}
.footer a {
  display: block;
  text-decoration: none;
  color: rgba(250,247,241,0.75);
  padding: 4px 0;
  font-size: 14px;
}
.footer a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(250,247,241,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(250,247,241,0.5);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ---------- about ---------- */
.page-header {
  background: var(--cream-2);
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: 64px; color: var(--navy-deep); }
.page-header .lede {
  font-size: 19px;
  color: var(--muted);
  margin-top: 16px;
  max-width: 64ch;
}
@media (max-width: 880px) { .page-header h1 { font-size: 44px; } }

.mission-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 56px;
  border-radius: 6px;
  position: relative;
}
.mission-card::before {
  content: "\201C";
  position: absolute;
  top: 14px; left: 24px;
  font-family: var(--serif);
  font-size: 96px;
  color: var(--gold-soft);
  line-height: 1;
}
.mission-card .text {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
  color: var(--navy-deep);
  text-wrap: pretty;
  padding-left: 56px;
}
@media (max-width: 880px) {
  .mission-card { padding: 40px 28px; }
  .mission-card .text { font-size: 20px; padding-left: 0; padding-top: 40px; }
  .mission-card::before { left: 28px; }
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 880px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .board-grid { grid-template-columns: 1fr; } }

.board-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 160ms ease;
}
.board-card:hover { border-color: var(--navy); }
.board-card .photo { aspect-ratio: 4/5; overflow: hidden; }
.board-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.board-card .body { padding: 22px 24px 24px; }
.board-card .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.board-card h4 { font-size: 22px; color: var(--navy-deep); margin-bottom: 4px; }
.board-card .email { font-size: 13px; color: var(--muted); margin-top: 8px; word-break: break-all; }

/* ---------- programs page ---------- */
.program-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.program-row:last-child { border-bottom: none; }
.program-row.flip { grid-template-columns: 1.2fr 1fr; }
.program-row.flip .program-img-wrap { order: 2; }
.program-img-wrap {
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
}
.program-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.program-row h3 { font-size: 36px; color: var(--navy-deep); margin-bottom: 16px; }
.program-row p { font-size: 16px; color: var(--muted); margin-bottom: 12px; }
.program-row .row-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 880px) {
  .program-row, .program-row.flip { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .program-row.flip .program-img-wrap { order: 0; }
  .program-row h3 { font-size: 28px; }
}

/* ---------- calendar ---------- */
.calendar-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}
.calendar-toolbar h2 { font-size: 36px; color: var(--navy-deep); }
.calendar-nav { display: flex; gap: 8px; align-items: center; }
.cal-nav-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--navy);
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}
.cal-nav-btn:hover { background: var(--cream-2); border-color: var(--navy); }
.cal-nav-today {
  height: 40px;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--navy);
  text-decoration: none;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 120ms ease, border-color 120ms ease;
}
.cal-nav-today:hover { background: var(--cream-2); border-color: var(--navy); }

.calendar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.cal-head, .cal-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-head {
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
}
.cal-head div {
  padding: 14px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  height: 120px;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  overflow: hidden;
}
.cal-events-list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-more {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 1px 0;
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  line-height: 1;
  transition: color 120ms ease;
}
.cal-more:hover { color: var(--navy); }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-row:last-child .cal-cell { border-bottom: none; }
.cal-cell.muted { background: var(--cream); color: #b8ad95; }
.cal-cell .date-num { font-size: 13px; font-weight: 600; color: var(--navy-deep); }
.cal-cell.muted .date-num { color: #b8ad95; }
.cal-cell.today .date-num {
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  margin: -2px 0 0 -4px;
}
.cal-event {
  background: var(--navy);
  color: var(--cream);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 3px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  line-height: 1.35;
  flex-shrink: 0;
  transition: background 120ms ease;
}
.cal-event:hover { background: var(--navy-deep); }
.cal-event.gold { background: var(--gold); color: var(--navy-deep); }
.cal-event.gold:hover { background: var(--gold-soft); }

@media (max-width: 720px) {
  .cal-cell { height: 80px; padding: 6px; }
  .cal-event { font-size: 10px; padding: 2px 4px; }
  .cal-event-second { display: none; }
  .cal-more-desktop { display: none; }
}
@media (min-width: 721px) {
  .cal-more-mobile { display: none; }
}

/* ---------- event detail ---------- */
.event-hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--cream);
  padding: 80px 0 64px;
  border-bottom: 6px solid var(--gold);
}
.event-hero .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: 24px;
  font-size: 14px;
  color: rgba(250,247,241,0.8);
}
.event-hero .meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.event-hero h1 { font-size: 56px; max-width: 22ch; }
@media (max-width: 880px) { .event-hero h1 { font-size: 36px; } }

.event-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.event-body .prose p { font-size: 17px; color: var(--ink); margin-bottom: 16px; line-height: 1.65; }
.event-body .prose h3 { font-size: 24px; color: var(--navy-deep); margin: 28px 0 12px; }
.event-aside {
  background: var(--cream-2);
  border-radius: 6px;
  padding: 28px;
  height: fit-content;
  position: sticky;
  top: 96px;
}
.event-aside dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 18px; margin: 0; }
.event-aside dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}
.event-aside dd { margin: 0; font-size: 15px; color: var(--navy-deep); font-weight: 500; }
@media (max-width: 880px) {
  .event-body { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
  .event-aside { position: static; }
}

.event-cover {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: 6px;
  overflow: hidden;
  margin-top: -110px;
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}
.event-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- gallery ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: all 120ms ease;
  display: inline-block;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip.active {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-grid .gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  border: none;
  padding: 0;
  background: var(--line);
  width: 100%;
}
.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-grid .gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 30px rgba(20,54,92,0.18);
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- lazy image fade-in ---------- */
img.lazy-img {
  opacity: 0;
  transition: opacity 400ms ease;
}
img.lazy-img.loaded {
  opacity: 1;
}
/* placeholder shimmer while image loads */
.gallery-item, .photo-strip .ph {
  background: var(--line);
}

/* ---------- gallery school-year sections ---------- */
.school-year-section {
  margin-bottom: 52px;
}
.school-year-heading {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.school-year-count {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
details.school-year-section > summary.school-year-heading {
  cursor: pointer;
  list-style: none;
  user-select: none;
}
details.school-year-section > summary.school-year-heading::-webkit-details-marker { display: none; }
.school-year-toggle {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
}
.school-year-toggle::before { content: "Show"; }
details[open] .school-year-toggle::before { content: "Hide"; }
details.school-year-section > summary.school-year-heading:hover { color: var(--navy-soft); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(14,38,64,0.92);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 40px;
  animation: fadein 180ms ease;
}
.lightbox.open { display: grid; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content {
  max-width: 1000px;
  width: 100%;
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.lightbox-img { aspect-ratio: 4/3; overflow: hidden; }
.lightbox-img img { width: 100%; height: 100%; object-fit: contain; background: var(--navy-deep); }
.lightbox-caption {
  padding: 18px 24px 22px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.lightbox-caption .ev {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.4);
  color: var(--cream);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 120ms ease;
}
.lightbox-close:hover { background: rgba(0,0,0,0.7); }

/* ---------- day modal ---------- */
.day-modal {
  position: fixed; inset: 0;
  background: rgba(14,38,64,0.75);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 40px;
  animation: fadein 180ms ease;
}
.day-modal.open { display: grid; }
.day-modal-content {
  max-width: 480px;
  width: 100%;
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.28);
}
.day-modal-header {
  background: var(--navy-deep);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.day-modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--cream);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 120ms ease;
}
.day-modal-close:hover { background: rgba(255,255,255,0.22); }
.day-modal-body { max-height: 60vh; overflow-y: auto; }
.day-modal-event {
  display: block;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 120ms ease;
}
.day-modal-event:last-child { border-bottom: none; }
.day-modal-event:hover { background: var(--cream-2); }
.day-modal-event .ev-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-deep);
}
.day-modal-event.featured .ev-title { color: var(--gold); }
.day-modal-event .ev-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- sponsorship ---------- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1.5px solid var(--line);
  margin-bottom: 40px;
}
.tab {
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition: color 120ms ease, border-color 120ms ease;
}
.tab:hover { color: var(--navy-deep); }
.tab.active { color: var(--navy-deep); border-color: var(--gold); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 880px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tier-card.featured {
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(201,150,43,0.18);
}
.tier-card .tier-badge {
  position: absolute;
  top: -12px; right: 20px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 3px;
  font-weight: 700;
}
.tier-card .tier-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.tier-card .tier-price {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1;
}
.tier-card .tier-price small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  font-family: var(--sans);
  margin-left: 4px;
}
.tier-card ul { list-style: none; padding: 0; margin: 24px 0 0; }
.tier-card li {
  padding: 8px 0;
  font-size: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}
.tier-card li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px;
}
.contact-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-row:first-child { padding-top: 0; }
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-row .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-row a, .contact-row .value {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 500;
}
.contact-row a:hover { color: var(--gold); }

.map-placeholder {
  aspect-ratio: 1/1;
  border-radius: 6px;
  overflow: hidden;
}

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); margin: 0; }
.fade-in { animation: fadeUp 360ms ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 24px; height: 24px; }
