/* ============================================
   Low-Fidelity Wireframe Styles
   SecureVision
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #2d2d2d;
  background: #ffffff;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: #2d2d2d; text-decoration: none; }

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Typography ---- */
h1 { font-size: 1.8rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 600; }
.text-sm { font-size: 0.85rem; }
.text-light { color: #777; }
.text-center { text-align: center; }
.text-white { color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: #2d2d2d; color: #fff; }
.btn-secondary { background: transparent; color: #2d2d2d; border: 1.5px solid #2d2d2d; }
.btn-small { padding: 8px 18px; font-size: 0.8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; justify-content: flex-start; }

/* ---- Placeholder Shapes ---- */
.placeholder-img {
  background: #e8e8e8;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.8rem;
  overflow: hidden;
}
.placeholder-img[data-color="1"] { background: #333333; color: #fff; }
.placeholder-img[data-color="2"] { background: #02B2DA; color: #fff; }
.placeholder-img[data-color="3"] { background: #2C6F9E; color: #fff; }
.placeholder-img[data-color="4"] { background: #5D5E5E; color: #fff; }

/* Brand-color cycling — card overlays (override inline bg) */
.card-overlay[data-color="1"] { background: #333333 !important; }
.card-overlay[data-color="2"] { background: #02B2DA !important; }
.card-overlay[data-color="3"] { background: #2C6F9E !important; }
.card-overlay[data-color="4"] { background: #5D5E5E !important; }
.placeholder-img.ratio-16-9 { aspect-ratio: 16/9; }
.placeholder-img.ratio-4-3 { aspect-ratio: 4/3; }
.placeholder-img.ratio-1-1 { aspect-ratio: 1/1; }

.placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1.1rem;
}
.placeholder-icon.small { width: 36px; height: 36px; font-size: 0.9rem; }
.placeholder-icon.large { width: 64px; height: 64px; font-size: 1.6rem; }

.play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 0 16px 28px;
  border-color: transparent transparent transparent rgba(0,0,0,0.35);
}

/* ---- Spacing ---- */
.section { padding: 48px 0; }
.section-sm { padding: 40px 0; }
.section-xs { padding: 24px 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ---- Grid Layouts ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-50-50 { grid-template-columns: 1fr; }
.grid-60-40 { grid-template-columns: 1fr; }
.grid-40-60 { grid-template-columns: 1fr; }

.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.items-center { align-items: center; }

/* ---- Component Label ---- */
.component-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #b0b0b0;
  font-weight: 600;
}

/* ============================================
   COMPONENT: Weather Alert Bar
   ============================================ */
.weather-alert {
  background: #555;
  color: #fff;
  padding: 10px 24px;
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.weather-alert .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  max-width: none;
  padding: 0;
}
.weather-alert .alert-message { display: flex; align-items: center; gap: 8px; }
.weather-alert .alert-icon { font-weight: bold; }
.weather-alert .alert-close {
  background: none; border: none; color: #fff;
  font-size: 1.2rem; cursor: pointer; padding: 0 4px;
  flex-shrink: 0;
  position: absolute;
  top: 10px;
  right: 12px;
}
.weather-alert .alert-action {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  margin-top: 4px;
}
.weather-alert .alert-action:hover {
  background: rgba(255,255,255,0.3);
}
.weather-alert { position: relative; }

/* ============================================
   COMPONENT: Live Stream Alert Bar
   ============================================ */
.live-alert {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 10px 24px;
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.live-alert .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  max-width: none;
  padding: 0;
}
.live-alert .alert-message { display: flex; align-items: center; gap: 8px; flex: 1; }
.live-alert .alert-icon { font-style: normal; }
.live-alert .live-learn-more {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.live-alert .live-learn-more:hover { color: #fff; }
.live-alert .alert-close {
  background: none; border: none; color: #fff;
  font-size: 1.2rem; cursor: pointer; padding: 0 4px;
  flex-shrink: 0;
  position: absolute;
  top: 10px;
  right: 12px;
}
.live-alert .alert-action {
  background: #e74c3c;
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  margin-top: 4px;
}
.live-alert .alert-action:hover { background: #c0392b; }
.live-alert { position: relative; }

/* ============================================
   COMPONENT: Global Header
   ============================================ */
.global-header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 90;
}
.global-header .container { display: flex; align-items: center; justify-content: space-between; }
.global-header .logo {
  display: inline-flex;
  align-items: center;
  height: 36px;
}
.global-header .logo a { display: inline-flex; align-items: center; height: 100%; }
.global-header .logo img { display: block; height: 100%; width: auto; }
.global-header nav { display: flex; gap: 28px; align-items: center; }
.global-header nav a { font-size: 0.9rem; font-weight: 500; color: #444; }
.global-header nav a:hover { color: #000; }

/* Navigation Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { font-size: 0.9rem; font-weight: 500; color: #444; cursor: pointer; }
.nav-dropdown > a:hover { color: #000; }
.dropdown-arrow { font-size: 0.7rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 160px;
  padding: 8px 0;
  padding-top: 20px;
  margin-top: 0;
  z-index: 100;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: #444;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: #f7f7f7; color: #000; }

/* Flyout sub-menu (e.g. Template Index) */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: #444;
  white-space: nowrap;
  cursor: pointer;
  border-top: 1px solid #f0f0f0;
}
.dropdown-submenu-trigger:hover { background: #f7f7f7; color: #000; }
.dropdown-submenu-trigger .dropdown-arrow { margin-left: 8px; font-size: 0.75rem; }
.dropdown-submenu-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 220px;
  padding: 8px 0;
  z-index: 101;
}
.dropdown-submenu-menu a {
  display: block;
  padding: 6px 20px;
  font-size: 0.8rem;
  font-family: monospace;
  color: #444;
  white-space: nowrap;
}
.dropdown-submenu-menu a:hover { background: #f7f7f7; color: #000; }
.dropdown-submenu:hover > .dropdown-submenu-menu { display: block; }

.global-header .header-actions { display: flex; align-items: center; gap: 16px; }
.global-header .search-icon {
  width: 20px; height: 20px;
  position: relative;
}
.global-header .search-icon::after {
  content: '';
  width: 6px; height: 2px; background: #999;
  position: absolute; bottom: -4px; right: -3px;
  transform: rotate(45deg);
}

/* ============================================
   COMPONENT: Global Footer
   ============================================ */
.global-footer {
  background: #2a2a2a;
  color: #ccc;
  padding: 56px 0 0;
}
.global-footer h4 { color: #fff; margin-bottom: 16px; font-size: 0.95rem; }
.global-footer a { color: #aaa; font-size: 0.85rem; }
.global-footer a:hover { color: #fff; }
.global-footer ul { list-style: none; }
.global-footer ul li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-description { font-size: 0.85rem; line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social span {
  width: 32px; height: 32px; border-radius: 50%; background: #444;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: #999;
}
.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 48px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.75rem;
  color: #777;
}

/* ============================================
   COMPONENT: Heroes
   ============================================ */
.hero {
  background: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero[data-color="1"] { background: #333333; }
.hero[data-color="2"] { background: #02B2DA; }
.hero[data-color="3"] { background: #2C6F9E; }
.hero[data-color="4"] { background: #5D5E5E; }
.hero[data-color] h1,
.hero[data-color] p,
.hero[data-color] .pre-heading { color: #fff; }
.hero[data-color] p { color: rgba(255,255,255,0.85); }
.hero[data-color] .btn-primary { background: #fff; color: #333; }
.hero[data-color] .btn-secondary { border-color: #fff; color: #fff; }
.hero[data-color] .btn-row .btn:not(:first-child) { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.85); }
.hero-full { min-height: 45vh; padding: 48px 20px 56px; }
.hero-medium { min-height: 28vh; padding: 40px 20px; }
.hero h1 { margin-bottom: 12px; }
.hero p { color: #666; max-width: 560px; margin: 0 auto 24px; }
.hero .btn-row { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hero .btn-row .btn:first-child { width: 100%; }
/* .hero .btn-row .btn:not(:first-child) {
  background: none; border: none; color: #555; font-size: 0.85rem;
  padding: 8px 0; text-decoration: underline;
} */
.hero .btn-row-dark .btn:not(:first-child) {
  color: rgba(255,255,255,0.85);
}

/* Pill Strip — quick-access links beneath hero buttons */
.pill-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  position: relative;
}
.pill-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-right: 4px;
}
.hero-pill-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 0;
  padding: 10px 20px;
  background: transparent;
  z-index: 4;
}
.hero-pill-strip-dark {
  background: transparent;
}
.hero-pill-strip-dark .pill-dropdown-toggle {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

/* Mobile: dropdown toggle visible, pill-bar hidden until open, label hidden */
.pill-strip-label {
  display: none;
}
.pill-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pill-dropdown-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s;
}
.pill-strip.dropdown-open .pill-dropdown-chevron {
  transform: rotate(180deg);
}
.pill-bar {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  min-width: 200px;
  z-index: 10;
}
.pill-strip.dropdown-open .pill-bar {
  display: flex;
}
.pill-bar .pill-link {
  border: none;
  border-radius: 0;
  padding: 10px 16px;
  font-size: 0.78rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.pill-bar .pill-link:last-child {
  border-bottom: none;
}
.pill-bar .pill-link:hover {
  background: #f5f5f5;
  color: #2d2d2d;
  border-color: #f0f0f0;
}

.pill-link {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.pill-link:hover {
  background: #2d2d2d;
  color: #fff;
  border-color: #2d2d2d;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  min-height: auto;
  padding: 40px 20px;
  background: #efefef;
  align-items: center;
}
.hero-split .hero-text { text-align: left; }
.hero-split .hero-text h1 { margin-bottom: 12px; }
.hero-split .hero-text p { color: #666; margin-bottom: 24px; }

/* Hero — Video Background */
.hero-video {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%) scale(1.15);
  object-fit: cover;
  z-index: 1;
}
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.hero-video-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.hero-video-content h1 {
  margin-bottom: 12px;
}
.hero-video-content p {
  margin: 0 auto 24px;
  max-width: 560px;
}

/* ============================================
   COMPONENT: Section Header
   ============================================ */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading h2 { margin-bottom: 8px; }
.section-heading p { color: #777; max-width: 480px; margin: 0 auto; }
.section-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #ccc;
  margin: 16px auto 0;
}
.text-left .section-heading { text-align: left; }
.text-left .section-heading p { margin-left: 0; margin-right: 0; }
.text-left .section-heading::after { margin-left: 0; }

/* ============================================
   COMPONENT: Cards
   ============================================ */
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.card-body { padding: 20px; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { color: #777; font-size: 0.9rem; }
.card-body .card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

/* Card - Icon variant */
.card-icon { text-align: center; padding: 32px 20px; }
.card-icon .btn-row { justify-content: center; }
.card-icon .placeholder-icon { margin: 0 auto 16px; }

/* Card - Event variant */
.card-event { position: relative; }
.card-event .date-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  line-height: 1.1;
  z-index: 2;
}
.date-badge .month { font-size: 0.65rem; text-transform: uppercase; font-weight: 700; color: #999; display: block; }
.date-badge .day { font-size: 1.2rem; font-weight: 700; display: block; }
.card-event .tag {
  display: inline-block;
  background: #f0f0f0;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #777;
  margin-top: 8px;
}
.card-event .event-category {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.card-event .event-date {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

/* Card - Story variant */
.card-testimonial .video-thumb { position: relative; }
.card-testimonial .video-thumb .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-color: transparent transparent transparent #fff; }
.card-testimonial .quote { font-style: italic; color: #888; font-size: 0.85rem; }
.card-testimonial .tag {
  display: inline-block;
  background: #f0f0f0;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #777;
  margin-top: 8px;
}

/* Card - Next Step */
.card-action {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #f7f7f7;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.card-action:hover { background: #efefef; }
.card-action-body { flex: 1; min-width: 0; }
.card-action h4 { margin-bottom: 2px; }
.card-action p { font-size: 0.85rem; color: #777; }
.card-action-link {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  margin-top: 6px;
}
.card-action-arrow {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: #aaa;
  line-height: 1;
}

/* ============================================
   COMPONENT: Card — Ministry
   ============================================ */
.card-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3/4;
  flex: 0 0 220px;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  position: relative;
  scroll-snap-align: start;
}
.card-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%);
}
.card-overlay-content {
  position: relative;
  z-index: 1;
  padding: 20px 16px;
}
.card-overlay-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}
.card-overlay-content p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

/* ============================================
   COMPONENT: Split Content
   ============================================ */
.split-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.split-content .text-side h2 { margin-bottom: 12px; }
.split-content .text-side p { color: #666; margin-bottom: 20px; }

/* ============================================
   COMPONENT: Photo Collage (Sliding Rows)
   ============================================ */
.photo-collage-section {
  overflow: hidden;
  padding: 8px 0 16px;
  background: #f7f7f7;
}
.photo-collage-row {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  justify-content: center;
}
.photo-collage-item {
  flex: 0 0 220px;
  height: 150px;
  border-radius: 6px;
  font-size: 0.75rem;
}

/* ============================================
   COMPONENT: Scroll Row
   ============================================ */
.scroll-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.scroll-row::-webkit-scrollbar { height: 4px; }
.scroll-row::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.scroll-row > * {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

/* ============================================
   COMPONENT: Search & Filter Bar
   ============================================ */
.search-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px 10px 40px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5.5' stroke='%23999' fill='none' stroke-width='1.5'/%3E%3Cline x1='11' y1='11' x2='14.5' y2='14.5' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E") 12px center no-repeat;
}
.filter-select {
  padding: 10px 32px 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='%23999'%3E%3Cpath d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
}
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
}
.filter-pill.active { background: #2d2d2d; color: #fff; }
.filter-pill:not(.active) { background: #f0f0f0; color: #555; }
.tag-new {
  font-size: 0.55rem;
  background: #2d2d2d;
  color: #fff;
  padding: 1px 5px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 4px;
  vertical-align: middle;
}
.filter-pill.active .tag-new { background: #fff; color: #2d2d2d; }
.active-filters { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.active-filter-tag {
  display: flex; align-items: center; gap: 4px;
  background: #e8e8e8; padding: 4px 12px; border-radius: 20px;
  font-size: 0.75rem;
}
.active-filter-tag button { background: none; border: none; cursor: pointer; font-size: 0.9rem; color: #999; }

/* ============================================
   COMPONENT: FAQ Accordion
   ============================================ */
.accordion {}
.accordion-item { border-bottom: 1px solid #eaeaea; }
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: #2d2d2d;
}
.accordion-trigger .toggle { font-size: 1.3rem; color: #999; font-weight: 300; }
.accordion-content {
  display: none;
  padding: 0 0 18px;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.7;
}
.accordion-item.open .accordion-content { display: block; }
.accordion-item.open .toggle { transform: rotate(45deg); }

/* Accordion — card-style open state (used on resources page) */
.accordion-card .accordion-item.open {
  background: #fff;
  border-radius: 8px;
  padding: 0 20px;
  margin: 8px -20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-bottom: none;
}
.accordion-card .accordion-item.open .accordion-trigger { font-weight: 700; }
.accordion-card .accordion-description {
  color: #777;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ============================================
   COMPONENT: CTA Band
   ============================================ */
.cta-band {
  background: #f5f5f5;
  padding: 56px 24px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: #777; max-width: 480px; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }

/* ============================================
   COMPONENT: Stay Connected
   ============================================ */
.stay-connected {
  background: #e8e8e8;
  padding: 64px 0;
}
.stay-connected h3 { margin-bottom: 8px; }
.stay-connected p { color: #777; font-size: 0.9rem; margin-bottom: 16px; }
.stay-connected-horizontal {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.stay-connected-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
@media (min-width: 768px) {
  .stay-connected-horizontal {
    flex-direction: row;
    gap: 48px;
    text-align: left;
    align-items: center;
    justify-content: space-between;
  }
  .stay-connected-actions {
    flex-direction: row;
    gap: 24px;
    flex-shrink: 0;
  }
}
}
.app-badges {
  display: flex;
  gap: 12px;
}
.app-badge {
  width: 120px;
  height: 40px;
  background: #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #999;
}

/* ============================================
   COMPONENT: Quick Access Bar
   ============================================ */
.quick-access {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}
.quick-access-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.quick-access-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

/* ============================================
   COMPONENT: Video Embed
   ============================================ */
.video-embed {
  position: relative;
  background: #e0e0e0;
  aspect-ratio: 16/9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ============================================
   COMPONENT: Featured Story
   ============================================ */
.featured-quote {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.featured-quote blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}
.featured-quote .attribution { font-weight: 600; margin-bottom: 4px; }
.featured-quote .context { font-size: 0.85rem; color: #888; }

/* ============================================
   COMPONENT: Episode List
   ============================================ */
.episode-list {}
.episode-item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.episode-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.episode-item.active { background: #f9f9f9; margin: 0 -16px; padding: 16px; border-radius: 6px; }
.episode-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}
.episode-info { flex: 1; }
.episode-info h4 { margin-bottom: 2px; }
.episode-meta { font-size: 0.8rem; color: #999; }
.episode-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2d2d2d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.episode-play .play-icon {
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
}

/* Episode expanded state — accordion: hidden by default, shown when .active */
.episode-expanded {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
  margin-left: 48px;
}
.episode-item.active .episode-expanded {
  display: block;
}

.episode-resources { display: flex; flex-direction: column; gap: 8px; }
.episode-resource-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}
.episode-resource-icon {
  width: 28px; height: 28px; border-radius: 4px;
  background: #e0e0e0; display: flex; align-items: center;
  justify-content: center; font-size: 0.6rem; font-weight: 600;
  flex-shrink: 0;
}
.episode-resource-title { flex: 1; }

/* Video Player Modal */
.video-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.video-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.7);
}
.video-modal-content {
  position: relative; background: #fff; border-radius: 12px;
  padding: 24px; width: 90%; max-width: 720px;
}
.video-modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: #666; line-height: 1;
}
.video-modal-info { margin-top: 12px; }
.video-modal-info h3 { margin-bottom: 2px; }
@media (max-width: 768px) {
  .video-modal-content { width: 100%; max-width: none; border-radius: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
}

/* ============================================
   COMPONENT: Giving Options
   ============================================ */
.giving-card-primary {
  border: 2px solid #2d2d2d;
}

/* ============================================
   COMPONENT: Impact Stats
   ============================================ */
.stat-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  text-align: center;
  padding: 48px 0;
  background: #f8f8f8;
}
.stat-block .stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2d2d2d;
  display: block;
}
.stat-block .stat-label {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

/* ============================================
   COMPONENT: Program Schedule
   ============================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  border-bottom: 2px solid #eee;
}
.data-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid #f0f0f0;
}
.data-table tr:nth-child(even) td { background: #fafafa; }

/* ============================================
   COMPONENT: Process Steps (1-2-3 flow)
   Alternating image left/right layout
   ============================================ */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin: 0 auto;
}
.process-step {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
/* Vertical connector line between steps */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -48px;
  height: 48px;
  width: 2px;
  background: #e0e0e0;
  transform: translateX(-50%);
}
.process-step-img {
  flex-shrink: 0;
}
.process-step-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.process-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2d2d2d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.process-step-content h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}
.process-step-content p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
}

/* Desktop: side-by-side with alternating image position */
@media (min-width: 768px) {
  .process-step {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  .process-step-img {
    width: 45%;
  }
  .process-step-body {
    flex: 1;
  }
  /* Image on the left (odd steps — 1, 3) */
  .process-step--img-left {
    flex-direction: row;
  }
  /* Image on the right (even steps — 2) */
  .process-step--img-right {
    flex-direction: row-reverse;
  }
  /* Connector line repositioned for desktop */
  .process-step:not(:last-child)::after {
    left: 50%;
  }
}

/* ============================================
   COMPONENT: Resource Links
   ============================================ */
.resource-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.resource-icon {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #999;
  flex-shrink: 0;
}
.resource-info { flex: 1; }
.resource-info h4 { margin-bottom: 2px; font-size: 0.95rem; }
.resource-info p { font-size: 0.8rem; color: #888; }

/* ============================================
   COMPONENT: Connection Form Callout
   ============================================ */
.inline-callout {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.inline-callout p { color: #666; font-size: 0.95rem; }

/* ============================================
   COMPONENT: Connection Hero (elevated callout)
   ============================================ */
.cta-hero {
  background: #2d2d2d;
  color: #fff;
  padding: 56px 24px;
}
.cta-hero h2 { color: #fff; }
.cta-hero p { color: #ccc; }
.cta-hero .btn-primary { background: #fff; color: #2d2d2d; }

/* ============================================
   COMPONENT: Map Placeholder
   ============================================ */
.map-placeholder {
  background: #e8e8e8;
  border: 2px dashed #ccc;
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.map-pin { font-size: 2rem; margin-bottom: 8px; }
.map-label { font-size: 1rem; font-weight: 600; color: #666; }
.map-note { font-size: 0.75rem; color: #999; margin-top: 4px; }

/* ============================================
   COMPONENT: Venue Tabs
   ============================================ */
.venue-tab-bar {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 32px;
  border-bottom: 2px solid #ddd;
}
.venue-tab {
  flex: 0 0 auto;
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.venue-tab:hover { color: #555; }
.venue-tab.active {
  color: #2d2d2d;
  border-bottom-color: #2d2d2d;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-gallery { display: flex; flex-direction: column; gap: 0; }

@media (min-width: 768px) {
  .venue-tab-bar { gap: 4px; }
}

/* ============================================
   COMPONENT: Share Buttons
   ============================================ */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8e8e8;
  color: #666;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.share-btn:hover { background: #ddd; }

/* ============================================
   COMPONENT: Empty State
   ============================================ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #fafafa;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { max-width: 400px; margin: 0 auto; }

/* ============================================
   COMPONENT: Card CTA
   ============================================ */
.card-cta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* ============================================
   COMPONENT: Clickable Card (whole card is a link)
   ============================================ */
.card-clickable {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card-clickable:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.card-hover-cta {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #999;
  opacity: 0;
  transition: opacity 0.2s;
}
.card-clickable:hover .card-hover-cta { opacity: 1; }
/* On mobile, always show the hover CTA since there's no hover state */
@media (max-width: 768px) {
  .card-hover-cta { opacity: 1; }
}

/* ============================================
   COMPONENT: Breadcrumb
   ============================================ */
.breadcrumb { font-size: 0.85rem; color: #777; }
.breadcrumb a { color: #555; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 6px; color: #ccc; }

/* ============================================
   COMPONENT: Event Hero (detail page)
   ============================================ */
.event-hero {
  position: relative;
  overflow: hidden;
}
.event-hero .ratio-hero {
  aspect-ratio: 1440/624;
  min-height: 200px;
  max-height: 400px;
}

/* ============================================
   COMPONENT: Event Detail Layout (main/aside)
   ============================================ */
.grid-event-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.event-main { min-width: 0; }
.event-title { margin-bottom: 20px; }
.event-intro p { line-height: 1.7; }
.event-intro .text-lg { font-size: 1.1rem; color: #444; margin-bottom: 16px; }

/* Mobile/Desktop visibility utilities */
.mobile-only-cta { display: block; }
.desktop-only { display: none; }

/* Event content blocks (sub-events like camps) */
.event-block-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
.event-block-img { max-width: 200px; }
.event-block-text h3 { margin-bottom: 8px; }
.event-block-text p { margin-bottom: 8px; line-height: 1.6; }

/* Share bar */
.share-bar { border-top: 1px solid #e8e8e8; padding-top: 20px; }
.share-buttons { display: flex; gap: 12px; margin-top: 8px; }
.share-btn {
  font-size: 0.8rem;
  color: #777;
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background 0.2s;
}
.share-btn:hover { background: #f0f0f0; }

/* ============================================
   COMPONENT: Event Sidebar
   ============================================ */
.sidebar-card {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 20px;
}
.sidebar-card h4 { margin-bottom: 12px; font-size: 1rem; }
.sidebar-sticky { position: relative; } /* becomes sticky on desktop */

/* Event meta list */
.event-meta-list { margin: 0; }
.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.9rem;
}
.meta-row:last-child { border-bottom: none; }
.meta-row dt { color: #777; font-weight: 600; }
.meta-row dd { margin: 0; color: #444; }

/* Sidebar event list */
.sidebar-event-list { list-style: none; padding: 0; margin: 0; }
.sidebar-event-list li { border-bottom: 1px solid #e8e8e8; }
.sidebar-event-list li:last-child { border-bottom: none; }
.sidebar-event-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.sidebar-event-list a:hover { color: #555; }
.sidebar-event-date {
  font-size: 0.7rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 50px;
}
.sidebar-event-title { font-weight: 500; }

/* ============================================
   COMPONENT: Load More
   ============================================ */
.load-more {
  text-align: center;
  padding: 32px 0;
}
.load-more .results-count {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 12px;
}

/* ============================================
   Utility
   ============================================ */
.bg-light { background: #f7f7f7; }
.bg-white { background: #fff; }
.rounded { border-radius: 8px; }
.shadow-sm { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.w-full { width: 100%; }

/* ============================================
   Combined View & Kitchen Sink
   ============================================ */
.page-divider {
  background: #1a1a1a;
  color: #fff;
  padding: 48px 0;
  margin: 0;
  border-top: 6px solid #f0c040;
}
.page-divider h2 { color: #fff; margin-bottom: 4px; }
.page-divider p { color: #999; }

.page-toc {
  background: #f7f7f7;
  padding: 12px 0;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 95;
}
.toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d2d2d;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.toc-toggle-chevron {
  font-size: 1rem;
  transition: transform 0.2s;
}
.page-toc.open .toc-toggle-chevron {
  transform: rotate(180deg);
}
.toc-desktop-label {
  display: none;
}
.toc-links {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.page-toc.open .toc-links {
  display: flex;
}
.toc-links a {
  display: inline-block;
  padding: 4px 12px;
  background: #e8e8e8;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #555;
}
.toc-links a:hover {
  background: #2d2d2d;
  color: #fff;
}

.ks-section {
  padding: 32px 0 12px;
  border-top: 3px solid #e0e0e0;
  margin-top: 24px;
}
.ks-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 4px;
}
.ks-desc {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0;
}

/* ============================================
   COMPONENT: Mobile Menu Overlay
   ============================================ */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu-overlay.open {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #eaeaea;
  flex-shrink: 0;
}
.mobile-menu-header .logo {
  width: 140px;
  height: 32px;
  background: #e0e0e0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #999;
}
.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #444;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-body {
  flex: 1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu-cta {
  display: inline-block;
  text-align: center;
  padding: 12px 24px;
  background: #2d2d2d;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.mobile-menu-cta-secondary {
  display: inline-block;
  padding: 10px 18px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
}
.mobile-menu-search .search-input {
  width: 100%;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
}
.mobile-menu-group {
  border-bottom: 1px solid #f0f0f0;
}
.mobile-menu-group.nested {
  border-bottom: none;
  padding-left: 0;
}
.mobile-menu-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: #2d2d2d;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-group.nested .mobile-menu-parent {
  font-size: 0.9rem;
  padding: 10px 0;
  color: #555;
  font-weight: 400;
}
.mobile-menu-parent .chevron {
  font-size: 1.2rem;
  color: #999;
  transition: transform 0.2s;
}
.mobile-menu-group.open > .mobile-menu-parent .chevron {
  transform: rotate(90deg);
}
.mobile-menu-children {
  display: none;
  padding-left: 16px;
  padding-bottom: 8px;
}
.mobile-menu-group.open > .mobile-menu-children {
  display: flex;
  flex-direction: column;
}
.mobile-menu-children a {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
}
.mobile-menu-children a:hover {
  color: #2d2d2d;
}
.mobile-menu-link {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 400;
  color: #2d2d2d;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-menu-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
}
.mobile-menu-footer-links {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.mobile-menu-footer-links a {
  font-size: 0.8rem;
  color: #888;
  text-decoration: none;
}
.mobile-menu-social {
  display: flex;
  gap: 10px;
}
.mobile-menu-social span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #999;
}

/* ============================================
   COMPONENT: Bottom Navigation (Mobile)
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #eaeaea;
  z-index: 100;
  padding: 6px 0;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}
.bottom-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
}
.bottom-nav-item .nav-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.bottom-nav-item.active {
  color: #2d2d2d;
  font-weight: 700;
}
.bottom-nav-item:hover {
  color: #2d2d2d;
}

/* Mobile body padding for bottom nav */
body {
  padding-bottom: 72px;
}

/* Mobile header — hide desktop nav, show hamburger */
.global-header nav { display: none; }
.global-header .mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: #444;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Mobile Touch Targets
   ============================================ */
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; min-width: 150px; }
.filter-pill { min-height: 36px; }
.accordion-trigger { min-height: 48px; }
.episode-play { min-width: 44px; min-height: 44px; }

/* ============================================
   Responsive — Desktop Overrides (min-width: 769px)
   Mobile is the default. These rules scale UP.
   ============================================ */
@media (min-width: 769px) {
  /* Typography */
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }

  /* Container */
  .container { padding: 0 24px; }

  /* Spacing */
  .section { padding: 64px 0; }

  /* Grids */
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-50-50 { grid-template-columns: 1fr 1fr; }
  .grid-60-40 { grid-template-columns: 3fr 2fr; }
  .grid-40-60 { grid-template-columns: 2fr 3fr; }

  /* Layouts */
  .split-content { grid-template-columns: 1fr 1fr; gap: 48px; }
  .hero-split { grid-template-columns: 3fr 2fr; gap: 40px; min-height: 40vh; padding: 60px 0; }
  .featured-quote { grid-template-columns: 3fr 2fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr; gap: 40px; }

  /* Heroes */
  .hero-full { min-height: 55vh; padding: 80px 24px; }
  .hero-medium { min-height: 35vh; padding: 60px 24px; }
  .hero .btn-row {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero .btn-row .btn:first-child { width: auto; }
  /* .hero .btn-row .btn:not(:first-child) {
    background: transparent;
    color: #2d2d2d;
    border: 1.5px solid #2d2d2d;
    font-size: 0.9rem;
    padding: 12px 28px;
    text-decoration: none;
  } */
  .hero .btn-row-dark .btn:not(:first-child) {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
  }

  /* Quick Access */
  .quick-access-items { gap: 40px; flex-wrap: nowrap; }

  /* Impact Stats */
  .stat-bar { gap: 60px; flex-wrap: nowrap; }

  /* Scroll Row */
  .scroll-row > * { flex: 0 0 300px; }

  /* Event Detail Layout */
  .grid-event-detail { grid-template-columns: 2fr 1fr; gap: 48px; }
  .mobile-only-cta { display: none; }
  .desktop-only { display: block; }
  .event-block-split { grid-template-columns: 160px 1fr; gap: 24px; }
  .event-block-split.reverse { direction: ltr; } /* alternate layout hint */
  .sidebar-sticky { position: sticky; top: 80px; }

  /* Newsletter Form */
  .newsletter-form { flex-direction: row; }

  /* Search Filter Bar */
  .search-filter-bar { flex-direction: row; align-items: center; flex-wrap: wrap; }

  /* Card Next Step — desktop: show link, hide arrow */
  .card-action-link { display: inline-block; }
  .card-action-arrow { display: none; }

  /* TOC — desktop: always show links, hide toggle button */
  .toc-toggle { display: none; }
  .toc-desktop-label { display: block; }
  .toc-links { display: flex; }
  .page-toc { padding: 20px 0; }

  /* Pill Strip — desktop: unified pill bar inline, hide dropdown toggle */
  .pill-dropdown-toggle { display: none; }
  .pill-bar {
    display: inline-flex;
    flex-direction: row;
    position: static;
    transform: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 20px;
    box-shadow: none;
    overflow: hidden;
    min-width: auto;
    gap: 0;
  }
  .pill-bar .pill-link {
    border: none;
    border-bottom: none;
    border-radius: 0;
    border-right: 1px solid #ddd;
    padding: 5px 14px;
    font-size: 0.7rem;
    text-align: center;
  }
  .pill-bar .pill-link:last-child {
    border-right: none;
  }
  .pill-bar .pill-link:hover {
    background: #2d2d2d;
    color: #fff;
  }

  /* Pill Bar — dark variant desktop overrides */
  .hero-pill-strip {
    bottom: 20px;
    left: 20px;
    right: 20px;
    border-radius: 10px;
    flex-direction: column;
    gap: 6px;
    padding: 12px 20px;
  }
  .hero-pill-strip .pill-strip-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
  }
  .hero-pill-strip-dark .pill-strip-label {
    color: rgba(255,255,255,0.6);
  }
  .hero-pill-strip-dark .pill-bar {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
  }
  .hero-pill-strip-dark .pill-bar .pill-link {
    color: #fff;
    border-right-color: rgba(255,255,255,0.25);
  }
  .hero-pill-strip-dark .pill-bar .pill-link:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
  }

  /* Header — show desktop nav, hide burger */
  .global-header nav { display: flex; }
  .global-header .mobile-menu-toggle { display: none; }
  .global-header .nav-cta {
    background: #2d2d2d;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    order: 99;
  }
  .global-header .nav-cta:hover { opacity: 0.85; color: #fff; }

  /* Weather Alert — desktop overrides */
  .weather-alert .container {
    flex-wrap: nowrap;
    align-items: center;
  }
  .weather-alert .alert-message { flex: 1; }
  .weather-alert .alert-action {
    width: auto;
    margin-left: auto;
    margin-top: 0;
  }
  .weather-alert .alert-close {
    position: static;
  }

  /* Live Alert — desktop overrides */
  .live-alert .container {
    flex-wrap: nowrap;
    align-items: center;
  }
  .live-alert .alert-action {
    width: auto;
    margin-left: auto;
    margin-top: 0;
  }
  .live-alert .alert-close {
    position: static;
  }

  /* Bottom Nav — hide on desktop */
  .bottom-nav { display: none; }

  /* Mobile menu — ensure hidden on desktop */
  .mobile-menu-overlay { display: none; }

  /* Body — remove bottom nav padding */
  body { padding-bottom: 0; }
}

/* ============================================
   Scroll Row — Swipe Indicators (Mobile)
   ============================================ */
.scroll-row-wrapper { position: relative; }
.scroll-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 0;
}
.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddd;
}
.scroll-dot.active { background: #2d2d2d; }

@media (min-width: 769px) {
  .scroll-dots { display: none; }
}

/* Watch & Invite Cards */
.watch-invite-actions { display: flex; gap: 12px; align-items: center; }
@media (max-width: 768px) {
  .watch-invite-actions { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   Resource Filter Row
   ============================================ */
.resource-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px 16px;
}
.resource-filter-row .filter-pills { flex: 1 1 auto; margin: 0; }
.resource-filter-row .search-input { flex: 0 1 280px; margin-left: auto; }

/* Resource Type Badges */
.resource-type-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
/* Video card — overlay layout */
.resource-card-video { overflow: hidden; padding: 0; position: relative; }
.resource-card-video .video-thumb { position: absolute; inset: 0; cursor: pointer; }
.resource-card-video .video-thumb .placeholder-img { width: 100%; height: 100%; }
.resource-card-video .card-body { display: none; }
.video-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fff;
  color: #222;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
}
.video-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  transition: opacity 0.2s;
}
.video-text-overlay h3 { color: #fff; font-size: 0.95rem; margin: 0 0 2px; }
.video-text-overlay p { color: #bbb; font-size: 0.75rem; margin: 0; }
.video-play-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.video-play-hover::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-45%, -50%);
  color: #222;
  font-size: 1.2rem;
}
.resource-card-video:hover .video-text-overlay { opacity: 0; }
.resource-card-video:hover .video-play-hover { opacity: 1; }

/* Pagination */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pagination-info { font-size: 0.8rem; color: #999; }
.pagination-controls { display: flex; gap: 4px; }
.pagination-btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  background: #f0f0f0;
  color: #555;
}
.pagination-btn.active { background: #2d2d2d; color: #fff; }
.pagination-btn.disabled { opacity: 0.4; cursor: default; }

/* ============================================
   COMPONENT: Latest Sermon (de-emphasized split)
   ============================================ */
.latest-sermon {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.latest-sermon-text h2 { margin-bottom: 8px; }
.latest-sermon-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 12px;
}
.latest-sermon-desc {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
}
.latest-sermon-thumb {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.latest-sermon-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.play-btn-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.latest-sermon-thumb:hover .play-btn-overlay {
  background: rgba(0,0,0,0.4);
}
.play-btn-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #2d2d2d;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .latest-sermon { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #ddd;
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2d2d2d;
  z-index: 1;
}
.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 4px;
}
.timeline-body h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.timeline-body p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* ── Card Team ── */
.card-team {
  text-align: center;
}
.card-team .ratio-1-1 {
  padding-bottom: 100%;
  height: 0;
}

/* ── Contact Form ── */
.contact-form {
  margin-top: 24px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: #333;
}
.form-group textarea {
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2d2d2d;
  box-shadow: 0 0 0 2px rgba(45,45,45,0.1);
}
@media (min-width: 769px) {
  .form-group.form-third {
    width: calc(33.333% - 11px) !important;
  }
}

/* ============================================
   COMPONENT: Property Slider
   ============================================ */
.property-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.property-slider-header h2 { margin: 0; }
.property-slider-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.property-slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  background: #fff;
  font-size: 1.2rem;
  line-height: 1;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.property-slider-btn:hover:not(:disabled) {
  background: #2d2d2d;
  border-color: #2d2d2d;
  color: #fff;
}
.property-slider-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.property-slider {
  overflow: hidden;
}
.property-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.35s ease;
}
.property-slider-track .card-property {
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: 0;
}

@media (max-width: 768px) {
  .property-slider-track .card-property {
    flex: 0 0 calc((100% - 20px) / 2);
  }
  .property-slider-header {
    flex-wrap: wrap;
  }
}

/* ============================================
   DESIGN SYSTEM TOKENS (in progress)
   First pass at extracting brand tokens from the variant explorations
   into a central, inheritable scope. Add to this block as new design
   work lands; refactor lo-fi rules above to consume tokens over time.
   ============================================ */
:root {
  /* Brand palette */
  --canvas:        #FFFFFF;
  --primary:       #2C6F9E;
  --primary-dark:  #1F567C;
  --ink:           #1A1A1A;
  --cyan:          #02B2DA;
  --accent:        #E8643D;
  --accent-hover:  #D9542E;

  /* Ink scale (neutrals) */
  --ink-90: #2D2D2D;
  --ink-70: #555555;
  --ink-50: #888888;
  --ink-30: #C9C9C9;
  --ink-10: #ECECEC;
  --ink-05: #F6F6F6;

  /* Type stacks */
  --font-sans: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing rhythm */
  --space-hero-y-top:    clamp(160px, 18vw, 220px);
  --space-hero-y-bottom: clamp(120px, 14vw, 180px);
  --space-hero-x:        48px;
  --space-hero-x-mobile: 20px;

  /* Radii */
  --radius-control: 4px;
  --radius-image:   4px;
}

/* ============================================
   COMPONENT: Hero Themes (Branded)
   .hero[data-theme="..."] — opt-in branded layout for hero-full.
   Themes: canvas | primary | primary-dark | ink | picture
           | feature-image | waves
   Replaces the lo-fi `.hero` defaults defined earlier in this file.
   ============================================ */

/* --- Reset lo-fi defaults whenever a theme is set ----------- */
.hero[data-theme] {
  background: var(--canvas);
  color: var(--ink);
  display: block;
  text-align: left;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* --- Layout containers -------------------------------------- */
.hero[data-theme] .hero-full-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-hero-y-top) var(--space-hero-x) var(--space-hero-y-bottom);
}
.hero[data-theme] .hero-full-copy { max-width: 680px; }

/* --- Type --------------------------------------------------- */
.hero[data-theme] .pre-heading {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
  display: inline-block;
  margin-bottom: 28px;
}
.hero[data-theme] h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 4vw + 1rem, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 18ch;
}
.hero[data-theme] h1 .hero-em { color: var(--cyan); }
.hero[data-theme] p {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 56ch;
  margin: 0 0 44px;
}
.hero[data-theme] .sv-richtext { margin-bottom: 44px; }

/* --- Buttons ------------------------------------------------ */
.hero[data-theme] .btn-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}
.hero[data-theme] .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 0;
  width: auto;
}
.hero[data-theme] .btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.hero[data-theme] .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  opacity: 1;
}
.hero[data-theme] .btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26,26,26,0.25);
}
.hero[data-theme] .btn-secondary:hover { border-color: var(--ink); }

/* --- Solid color themes ------------------------------------- */
.hero[data-theme="canvas"]       { background: var(--canvas);      color: var(--ink); }
.hero[data-theme="primary"]      { background: var(--primary);     color: #fff; }
.hero[data-theme="primary-dark"] { background: var(--primary-dark); color: #fff; }
.hero[data-theme="ink"]          { background: var(--ink);         color: #fff; }

/* On dark surfaces: invert type + secondary button */
.hero[data-theme="primary"] h1,
.hero[data-theme="primary-dark"] h1,
.hero[data-theme="ink"] h1,
.hero[data-theme="picture"] h1,
.hero[data-theme="waves"] h1 { color: #fff; }

.hero[data-theme="primary"] p,
.hero[data-theme="primary-dark"] p,
.hero[data-theme="ink"] p,
.hero[data-theme="picture"] p,
.hero[data-theme="waves"] p { color: rgba(255,255,255,0.82); }

.hero[data-theme="primary"]      .btn-secondary,
.hero[data-theme="primary-dark"] .btn-secondary,
.hero[data-theme="ink"]          .btn-secondary,
.hero[data-theme="picture"]      .btn-secondary,
.hero[data-theme="waves"]        .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  background: transparent;
}
.hero[data-theme="primary"]      .btn-secondary:hover,
.hero[data-theme="primary-dark"] .btn-secondary:hover,
.hero[data-theme="ink"]          .btn-secondary:hover,
.hero[data-theme="picture"]      .btn-secondary:hover,
.hero[data-theme="waves"]        .btn-secondary:hover { border-color: #fff; }

/* --- Picture theme ------------------------------------------ */
.hero[data-theme="picture"] {
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
}
.hero[data-theme="picture"] .hero-picture-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.65) 0%,
      rgba(0,0,0,0.35) 45%,
      rgba(0,0,0,0)    100%),
    linear-gradient(180deg,
      rgba(0,0,0,0)    60%,
      rgba(0,0,0,0.30) 100%);
}

/* --- Feature-image theme ------------------------------------ */
.hero[data-theme="feature-image"] .hero-full-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero[data-theme="feature-image"] .hero-full-inner {
    grid-template-columns: 0.95fr 1fr;
    gap: 64px;
  }
}
.hero[data-theme="feature-image"] .hero-full-feature { margin: 0; }
.hero[data-theme="feature-image"] .hero-full-feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-image);
}

/* --- Waves theme — animated cyan contour field -------------- */
.hero[data-theme="waves"] {
  background: radial-gradient(ellipse at 65% 50%, var(--primary) 0%, var(--primary-dark) 70%);
}
.hero[data-theme="waves"] .hero-waves-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero[data-theme="waves"] .hero-waves-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero[data-theme="waves"] .hero-waves-bg::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(31,86,124,0.85) 0%,
      rgba(31,86,124,0.55) 44%,
      rgba(31,86,124,0.15) 76%,
      rgba(31,86,124,0)    100%),
    linear-gradient(180deg,
      rgba(26,26,26,0.10) 0%,
      rgba(26,26,26,0)    54%,
      rgba(26,26,26,0)    75%,
      rgba(26,26,26,0.20) 100%);
  mix-blend-mode: multiply;
}

/* --- Mobile -------------------------------------------------- */
@media (max-width: 768px) {
  .hero[data-theme] .hero-full-inner {
    padding: 96px var(--space-hero-x-mobile) 72px;
  }
  .hero[data-theme] h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
}

/* ============================================
   COMPONENT: Global Header — Transparent variant
   Activated by `transparentHeader: true` in page front matter
   (adds .has-transparent-header on <body> and .transparent on header).
   Header overlays the next section; useful with picture/waves heroes.
   ============================================ */
body.has-transparent-header { /* hero sits at top, header floats over */ }

.global-header.transparent {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  background: transparent;
  border-bottom: 0;
  padding: 0;
}
.global-header.transparent .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px var(--space-hero-x);
  display: flex;
  align-items: center;
  gap: 32px;
}
.global-header.transparent .logo { height: 32px; }
.global-header.transparent .logo img {
  filter: brightness(0) invert(1);
}

/* Push nav + actions to the right */
.global-header.transparent nav { margin-left: auto; gap: 36px; }

/* Top-level nav anchors only — leave dropdown panels alone */
.global-header.transparent > .container > nav > a,
.global-header.transparent .nav-dropdown > a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.global-header.transparent > .container > nav > a:hover,
.global-header.transparent .nav-dropdown > a:hover { color: #fff; }
.global-header.transparent .nav-dropdown > a .dropdown-arrow { color: rgba(255,255,255,0.7); }

/* Dropdown panels: keep dark-on-light so they stay readable over the hero */
.global-header.transparent .dropdown-menu,
.global-header.transparent .dropdown-submenu-menu {
  background: #fff;
  border: 1px solid #eaeaea;
}
.global-header.transparent .dropdown-menu a,
.global-header.transparent .dropdown-submenu-menu a,
.global-header.transparent .dropdown-submenu-trigger {
  color: #444;
}
.global-header.transparent .dropdown-menu a:hover,
.global-header.transparent .dropdown-submenu-menu a:hover,
.global-header.transparent .dropdown-submenu-trigger:hover { color: #000; background: #f7f7f7; }

.global-header.transparent .nav-cta,
.global-header.transparent .header-cta {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  color: #fff;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-control);
  background: transparent;
}
.global-header.transparent .nav-cta:hover,
.global-header.transparent .header-cta:hover { border-color: #fff; }

.global-header.transparent .search-icon { border-color: rgba(255,255,255,0.7); }
.global-header.transparent .search-icon::after { background: rgba(255,255,255,0.7); }
.global-header.transparent .mobile-menu-toggle { color: #fff; }


/* ============================================
   COMPONENT: Stat Bar — Themed
   --------------------------------------------
   Activated by `style` prop on statBar(). Lo-fi `.stat-bar` block above
   stays unchanged for un-migrated callers.

   Token bus driven by [data-bg]:
     --sb-bg / --sb-fg / --sb-fg-soft / --sb-rule
     --sb-icon / --sb-unit (default cyan; overridable via inline style)

   Light surfaces (canvas, tint, cyan) → dark fg/rule.
   Dark surfaces (ink, primary, primary-dark, accent) → light fg/rule.
   ============================================ */
.stat-bar-themed {
  font-family: var(--font-sans);
  --sb-icon: var(--cyan);
  --sb-unit: var(--cyan);
}
.stat-bar-themed[data-bg="canvas"]       { --sb-bg: var(--canvas);       --sb-fg: var(--ink); --sb-fg-soft: var(--ink-70);       --sb-rule: var(--ink-10); }
.stat-bar-themed[data-bg="tint"]         { --sb-bg: var(--ink-05);       --sb-fg: var(--ink); --sb-fg-soft: var(--ink-70);       --sb-rule: var(--ink-10); }
.stat-bar-themed[data-bg="ink"]          { --sb-bg: var(--ink);          --sb-fg: #fff;        --sb-fg-soft: rgba(255,255,255,0.72); --sb-rule: rgba(255,255,255,0.14); }
.stat-bar-themed[data-bg="primary"]      { --sb-bg: var(--primary);      --sb-fg: #fff;        --sb-fg-soft: rgba(255,255,255,0.78); --sb-rule: rgba(255,255,255,0.20); }
.stat-bar-themed[data-bg="primary-dark"] { --sb-bg: var(--primary-dark); --sb-fg: #fff;        --sb-fg-soft: rgba(255,255,255,0.78); --sb-rule: rgba(255,255,255,0.18); }
.stat-bar-themed[data-bg="accent"]       { --sb-bg: var(--accent);       --sb-fg: #fff;        --sb-fg-soft: rgba(255,255,255,0.85); --sb-rule: rgba(255,255,255,0.28); }
.stat-bar-themed[data-bg="cyan"]         { --sb-bg: var(--cyan);         --sb-fg: var(--ink); --sb-fg-soft: rgba(0,0,0,0.65);       --sb-rule: rgba(0,0,0,0.18); }

/* style: compact (bordered grid, label-top + number-bottom) */
.stat-bar-themed[data-style="compact"] {
  background: var(--sb-bg);
  color: var(--sb-fg);
  border-top: 1px solid var(--sb-rule);
  border-bottom: 1px solid var(--sb-rule);
}
.stat-bar-themed[data-style="compact"] .stat-bar-themed__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--sb-rule);
  border-right: 1px solid var(--sb-rule);
}
.stat-bar-themed[data-style="compact"] .stat-bar-themed__cell {
  padding: 28px clamp(24px, 2.4vw, 36px) 32px;
  border-left: 1px solid var(--sb-rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 150px;
}
.stat-bar-themed[data-style="compact"] .stat-bar-themed__cell:first-child { border-left: 0; }
.stat-bar-themed[data-style="compact"] .stat-bar-themed__icon { color: var(--sb-icon); width: 26px; height: 26px; display: inline-flex; }
.stat-bar-themed[data-style="compact"] .stat-bar-themed__icon svg { width: 100%; height: 100%; display: block; }
.stat-bar-themed[data-style="compact"] .stat-bar-themed__label { font-size: 0.95rem; line-height: 1.4; color: var(--sb-fg-soft); max-width: 22ch; }
.stat-bar-themed[data-style="compact"] .stat-bar-themed__number { font-size: clamp(2rem, 3vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--sb-fg); margin-top: auto; }
.stat-bar-themed[data-style="compact"] .stat-bar-themed__number .unit { font-size: 0.5em; font-weight: 500; color: var(--sb-unit); margin-left: 0.2em; }

/* style: cards (independent tiles) */
.stat-bar-themed[data-style="cards"] {
  background: var(--sb-bg);
  padding: clamp(56px, 7vw, 96px) var(--space-hero-x);
}
.stat-bar-themed[data-style="cards"] .stat-bar-themed__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-bar-themed[data-style="cards"] .stat-bar-themed__cell {
  color: var(--sb-fg);
  background: transparent;
  border: 1px solid var(--sb-rule);
  border-radius: 18px;
  padding: 28px 32px 32px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stat-bar-themed[data-style="cards"] .stat-bar-themed__icon { color: var(--sb-icon); width: 24px; height: 24px; display: inline-flex; }
.stat-bar-themed[data-style="cards"] .stat-bar-themed__icon svg { width: 100%; height: 100%; display: block; }
.stat-bar-themed[data-style="cards"] .stat-bar-themed__label { font-size: 1rem; line-height: 1.35; font-weight: 600; max-width: 18ch; color: var(--sb-fg); }
.stat-bar-themed[data-style="cards"] .stat-bar-themed__number { margin-top: auto; font-size: clamp(2.6rem, 4.4vw, 3.6rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.025em; color: var(--sb-fg); }
.stat-bar-themed[data-style="cards"] .stat-bar-themed__number .unit { color: var(--sb-unit); font-weight: 400; }

@media (max-width: 900px) {
  .stat-bar-themed[data-style="compact"] .stat-bar-themed__inner,
  .stat-bar-themed[data-style="cards"]   .stat-bar-themed__inner { grid-template-columns: repeat(2, 1fr); }
  .stat-bar-themed[data-style="compact"] .stat-bar-themed__cell:nth-child(3) { border-left: 0; border-top: 1px solid var(--sb-rule); }
  .stat-bar-themed[data-style="compact"] .stat-bar-themed__cell:nth-child(4) { border-top: 1px solid var(--sb-rule); }
}
@media (max-width: 540px) {
  .stat-bar-themed[data-style="compact"] .stat-bar-themed__inner,
  .stat-bar-themed[data-style="cards"]   .stat-bar-themed__inner { grid-template-columns: 1fr; }
  .stat-bar-themed[data-style="compact"] .stat-bar-themed__cell { border-left: 0; border-top: 1px solid var(--sb-rule); min-height: 0; }
  .stat-bar-themed[data-style="compact"] .stat-bar-themed__cell:first-child { border-top: 0; }
}
