:root {
  color-scheme: light;
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-2: #f0ece6;
  --text: #18212d;
  --muted: #556070;
  --primary: #164e63;
  --accent: #d97706;
  --button-primary: #5da9e9;
  --border: #d8d1c7;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); }
a:hover, a:focus-visible { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.75rem 1rem;
  z-index: 999;
}
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
}
.nav-wrap, .footer-wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; }
.nav-wrap { flex-wrap: wrap; row-gap: 0.75rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
  border-radius: 0.65rem;
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
main {
  padding: 2rem 0 4rem;
}
article, .entry-content, .page-content {
  max-width: 760px;
  margin: 0 auto;
}
.page-content {
  width: min(100%, 760px);
  padding: 1rem 0 3rem;
}
.organization-service-image {
  display: block;
  width: 100%;
  max-width: 560px;
  height: 220px;
  object-fit: cover;
  margin: 0 0 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
@media (max-width: 640px) {
  .organization-service-image {
    height: 180px;
  }
}
.page-content > article,
.page-content > div {
  width: 100%;
}
h1, h2, h3 {
  line-height: 1.2;
}
.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--primary);
  margin: 0.28rem 0;
}
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.submenu-toggle {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
}
.submenu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  display: none;
  list-style: none;
  padding: 0.6rem;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  box-shadow: var(--shadow);
  z-index: 20;
}
.submenu li + li {
  margin-top: 0.35rem;
}
.submenu a {
  display: block;
  padding: 0.35rem 0.2rem;
  font-weight: 600;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.open .submenu {
  display: block;
}
.hero {
  background: linear-gradient(135deg, var(--primary), #2f6b7f);
  color: white;
  padding: 5rem 0;
}
.hero-grid, .two-column { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: 2rem; align-items: start; }
.hero-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}
.hero-card .eyebrow {
  color: var(--accent);
}
.hero-card ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}
.hero-card li + li {
  margin-top: 0.35rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.hero h1, .intro-block h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1rem; line-height: 1.15; }
.hero-copy, .intro-block p, .card p, .list-card li, .modal p, .form-card label, .form-card input, .form-card select { font-size: 1rem; }
.hero-copy {
  color: #f4eee8;
}
.hero-note {
  margin-top: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.note-card {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.note-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.note-card p {
  margin: 0;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; align-items: center; }
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.pill-list li {
  background: rgba(22, 78, 99, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  color: var(--primary);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.button-primary { background: var(--button-primary); color: white; }
.button-danger {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}
.button-danger.is-disabled {
  background: #7f1d1d;
  border-color: #7f1d1d;
  opacity: 0.85;
}
.button-danger.is-active {
  animation: pulse-cta 1.1s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
}
@keyframes pulse-cta {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
.button-secondary { background: transparent; color: white; border-color: rgba(255,255,255,0.7); }
.section { padding: 4rem 0; }
.alt-section { background: var(--surface); }
.section-heading { margin-bottom: 2rem; }
.section-intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stat-value {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
}
.stat-card p:last-child {
  margin: 0;
  color: var(--muted);
}
.organization-showcase .card { min-height: 100%; }
.section-link { margin-top: 1.25rem; }
.card, .hero-card, .list-card, .form-card, .modal-dialog, .post-card, .page-cta, .contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.panel-subheading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--primary);
}
.date-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.date-pill {
  flex: 1 1 calc(50% - 0.4rem);
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface-2);
}
.date-pill strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}
.date-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}
.site-footer { background: #14202d; color: #f8fbfc; padding: 1.5rem 0; }
.page-content { padding-bottom: 3rem; }
.intro-block { padding: 3rem 0 1rem; }
.event-hero-banner {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--primary);
}
.event-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 24, 35, 0.8) 0%, rgba(7, 24, 35, 0.45) 45%, rgba(7, 24, 35, 0.2) 100%);
  display: flex;
  align-items: center;
}
.event-hero-content {
  color: white;
  max-width: 680px;
  padding: 2rem 0;
}
.event-hero-content .eyebrow {
  color: #fcd29f;
}
.event-hero-content .button-secondary {
  border-color: rgba(255,255,255,0.8);
  color: white;
}
.event-summary { min-height: 100%; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}
.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.media-card {
  overflow: hidden;
  padding: 0;
}
.media-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.media-card figcaption {
  padding: 1rem 1.1rem 1.2rem;
}
.media-card .post-meta {
  margin-bottom: 0.35rem;
}
.media-caption {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.event-detail-image {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 0.9rem;
  margin: 0 0 1rem;
  object-fit: cover;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 1rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.timeline-time {
  font-weight: 700;
  color: var(--primary);
}
.timeline p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.align-top { align-items: start; }
.form-card { display: flex; flex-direction: column; gap: 0.75rem; }
.form-card fieldset {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.85rem 1rem;
  margin: 0;
}
.form-card legend {
  padding: 0 0.3rem;
  font-weight: 700;
}
.form-card .inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.35rem;
}
.form-card .checkbox-group {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.form-card .option-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}
.form-card input, .form-card select, .form-card textarea { padding: 0.8rem; border: 1px solid var(--border); border-radius: 0.6rem; font: inherit; }
.form-card textarea { min-height: 110px; resize: vertical; }
.form-note {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0.8rem;
  background: rgba(217, 119, 6, 0.06);
}
.form-note p { margin: 0.25rem 0 0; }
.form-note p:first-child { margin-top: 0; }
.form-success {
  display: block;
  padding: 1rem 1.1rem;
  margin-bottom: 0.25rem;
  border: 1px solid #b7e4c7;
  border-left: 4px solid #2f8f5f;
  border-radius: 0.8rem;
  background: #f3fbf6;
  color: #1d4d2f;
  font-weight: 700;
  line-height: 1.5;
}
.form-success[hidden] { display: none; }

@media (max-width: 900px) {
  .hero-grid, .two-column { grid-template-columns: 1fr; gap: 1.25rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .media-gallery { grid-template-columns: 1fr; }
  .event-hero-banner { min-height: 520px; }
}

@media (max-width: 640px) {
  .info-grid, .media-gallery { grid-template-columns: 1fr; }
  .event-hero-banner { min-height: 560px; }
  .event-hero-overlay { align-items: flex-start; }
  .event-hero-content { padding: 1.25rem 0 1.75rem; }
  .event-hero-content h1 {
    font-size: clamp(1.55rem, 5.2vw, 2.1rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    max-width: 100%;
  }
  .organization-card-logo, .organization-profile-logo {
    max-height: 120px;
  }
}

@media (max-width: 768px) {
  .nav-wrap,
  .footer-wrap {
    justify-content: center;
    text-align: center;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    width: 100%;
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    box-shadow: var(--shadow);
  }

  .nav-item {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .submenu {
    position: static;
    width: 100%;
    margin-top: 0.45rem;
    box-shadow: none;
    border: 1px solid var(--border);
    display: none;
  }

  .has-submenu.open .submenu {
    display: block;
  }

  .hero {
    padding: 3rem 0;
    text-align: center;
  }

  .hero-grid,
  .two-column {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.5rem 0;
  }

  .footer-center-logo {
    flex-basis: 100%;
    order: -1;
  }

  .footer-branding,
  .footer-logo-block {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-email {
    text-align: center;
    width: auto;
  }
}
.site-footer a { color: #d5e9f7; }
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-branding,
.footer-logo-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-branding p {
  font-size: 0.92rem;
  line-height: 1.4;
}
.footer-center-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 0;
}
.footer-center-logo a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.footer-center-logo img {
  display: block;
  width: min(140px, 30vw);
  height: auto;
  border-radius: 0.65rem;
}
.footer-email {
  display: inline-block;
  text-align: center;
  font-weight: 600;
  width: 100%;
}
.footer-bbat-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0.25rem;
}
.footer-bbat-link img {
  display: block;
  width: 92px;
  height: auto;
  border-radius: 0.45rem;
}
.footer-logo {
  display: block;
  max-width: 220px;
  height: auto;
  border-radius: 0.4rem;
}
.footer-credit {
  font-size: 0.92rem;
  font-weight: 600;
  color: #d5e9f7;
  margin: 0;
}
