/* ─── Cornerstone page styles ────────────────────────────────────
   Tokens live in theme-cornerstone.css; generic building blocks
   (layout, type, buttons, reveals, dividers) live in blocks.css.
   This file holds only page- and component-specific styles.
   Load order: theme → blocks → this file. */

/* ─── Nav ────────────────────────────────────────────────────── */
.nav .container {
  max-width: none;
  width: 100%;
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--bg-base);
  border-bottom-color: var(--border-subtle);
}
.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  flex-shrink: 0;
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--brand-text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-bottom: 96px;
  padding-top: calc(var(--nav-height) + 64px);
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 2.5s ease-in-out;
}
.hero-video-a { opacity: 1; }
.hero-video-b { opacity: 0; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 25%,
    rgba(0, 0, 0, 0.2) 55%,
    transparent 100%);
  pointer-events: none;
}
.hero-arc {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  opacity: 0.08;
  z-index: 2;
}
.hero-arc[data-parallax] {
  transform: translateY(calc(-50% + var(--parallax-y, 0px)));
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 100%;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 24px;
  padding: 4px 10px;
  border-radius: 3px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  transition: background-size 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-eyebrow.highlight-in {
  background-size: 100% 100%;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8.5vw, 112px);
  font-weight: 300;
  font-style: italic;
  line-height: var(--leading-display);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 40px;
}
.hero-title em {
  font-style: italic;
  color: var(--text-primary);
}
.hero-body {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* ─── Info Band ──────────────────────────────────────────────── */
.info-band {
  background: var(--bg-surface);
  padding: 40px 0;
}
.info-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.info-band-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 40px;
  border-right: 1px solid var(--border-subtle);
}
.info-band-item:first-child { padding-left: 0; }
.info-band-item:last-child { border-right: none; padding-right: 0; }
.info-band-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
}
.info-band-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 4px;
}
.info-band-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.info-band-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ─── Sermon Cards ───────────────────────────────────────────── */
.sermons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sermons-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}
.sermon-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.sermon-card:hover {
  border-color: var(--brand-border);
  transform: translateY(-3px);
}
/* Cards fill their grid cell so bottoms line up across a row */
.sermons-grid > li > .sermon-card,
.sermons-archive-grid > li > .sermon-card,
.groups-grid > li > .group-card { display: block; height: 100%; }
.sermon-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  overflow: hidden;
}
.sermon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.sermon-card:hover .sermon-thumb img { transform: scale(1.03); }
.wiki-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.4s ease;
}
.wiki-thumb.loaded { opacity: 1; }
.sermon-art { position: absolute; inset: 0; }
.sermon-card:hover .wiki-thumb { transform: scale(1.03); }
.sermon-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-highlight));
}
.sermon-series-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-text);
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-border);
}
.sermon-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.sermon-card:hover .sermon-play-btn { opacity: 1; }
.sermon-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--amber-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-base);
}
.sermon-body {
  padding: 20px;
}
.sermon-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sermon-speaker {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.sermon-date {
  font-size: 11px;
  color: var(--text-muted);
}
.sermon-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.search-hl {
  background: rgba(54, 137, 197, 0.18);
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}
.sermon-scripture,
.sermon-topic-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.sermon-scripture > svg,
.sermon-topic-row > svg { flex-shrink: 0; }
.sermon-scripture { color: var(--brand-text); margin-top: 14px; }
.sermon-topic-row { color: var(--text-muted); }
.sermon-topic-row .sermon-topics { flex: 1; min-width: 0; }
.sermon-refs {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.sermon-refs .scripture-tag {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--brand-text);
  background: var(--brand-dim);
  border: 1px solid var(--brand-border);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.sermon-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sermon-topics .topic-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.sermon-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Sermon Archive (page) ──────────────────────────────────── */
.page-header {
  padding: calc(var(--nav-height) + 64px) 0 64px;
  background: var(--bg-base);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
}
.filter-bar {
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}
.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-search {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.filter-search input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-pill);
  padding: 9px 16px 9px 40px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.filter-search input::placeholder { color: var(--text-muted); }
.filter-search input:focus { border-color: var(--brand); }
.filter-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.filter-select-wrap {
  position: relative;
}
.filter-select {
  appearance: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-pill);
  padding: 9px 32px 9px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.filter-select:focus,
.filter-select.active { border-color: var(--brand); color: var(--text-primary); }
.filter-select-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}
.filter-results {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: auto;
}
.active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0 0;
}
.active-filters:empty { padding: 0; }
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-text);
  background: var(--brand-dim);
  border: 1px solid var(--brand-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s;
}
.active-filter-chip:hover { background: var(--amber-dim); }
.active-filter-chip .chip-x { opacity: 0.7; font-size: 13px; line-height: 1; }
.clear-filters {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.clear-filters:hover { color: var(--text-secondary); }
.sermons-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 0;
}
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}
.no-results p { font-size: 16px; margin-top: 8px; }

/* ─── Skeleton loaders ───────────────────────────────────────── */
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.skel {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.skel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
  animation: shimmer 1.6s ease-in-out infinite;
}
.skel-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0;
}
.skel-line {
  height: 13px;
  margin-bottom: 8px;
  width: 100%;
}
.skel-title {
  height: 20px;
  width: 85%;
  margin: 14px 0 10px;
}
.skel-tags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.skel-tag {
  height: 22px;
  width: 68px;
  border-radius: var(--radius-pill);
}
.sermon-skeleton .sermon-body {
  padding: 16px;
}
.sermon-skeleton .sermon-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
}

/* ─── Groups ─────────────────────────────────────────────────── */
.groups-section { background: var(--bg-surface); }
.groups-categories {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.group-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.group-category-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--text-primary);
}
.group-count-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.group-category-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: -18px;
  margin-bottom: 24px;
}
.groups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.group-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.group-card:hover {
  border-color: var(--brand-border);
  transform: translateY(-2px);
}
.group-card-image {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-highlight);
  overflow: hidden;
}
.group-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-soft);
}
.group-card:hover .group-card-image img { transform: scale(1.045); }
.group-card-body {
  padding: 16px;
}
.group-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.group-card-day {
  font-size: 12px;
  color: var(--brand-text);
  font-weight: 500;
  margin-bottom: 4px;
}
.group-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ministry-art { background: linear-gradient(160deg, #13233a, var(--bg-base)); container-type: inline-size; }
.ministry-art::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(13, 15, 20, 0.62), rgba(13, 15, 20, 0.34)),
    linear-gradient(160deg, rgba(54, 137, 197, 0.26), rgba(54, 137, 197, 0) 55%),
    linear-gradient(to top, rgba(13, 15, 20, 0.7), transparent 45%);
  pointer-events: none;
}
.ministry-art .group-card-pill { z-index: 3; }
.group-card-image .ministry-mark {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: auto;
  margin: auto;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.6s var(--ease-soft);
}
.group-card:hover .group-card-image .ministry-mark { transform: translateY(-3px); }
.ministry-wordmark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 13cqi, 34px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-primary);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.6s var(--ease-soft);
}
.ministry-wordmark span {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.38em;
  margin-right: -0.38em;
  text-transform: uppercase;
  opacity: 0.78;
}
.group-card:hover .ministry-wordmark { transform: translateY(-3px); }
.group-card-monogram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: rgba(54, 137, 197, 0.65);
  letter-spacing: 0.05em;
}
.group-card-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(13, 15, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.group-card-pill.pill-full {
  color: #f0c46a;
  background: rgba(38, 27, 8, 0.66);
  border-color: rgba(217, 164, 65, 0.45);
}
.group-card.skeleton { pointer-events: none; }
.group-card.skeleton .group-card-image,
.group-card.skeleton .group-card-day,
.group-card.skeleton .group-card-name,
.group-card.skeleton .group-card-desc {
  color: transparent;
  background: linear-gradient(90deg, var(--bg-highlight) 25%, var(--bg-elevated) 50%, var(--bg-highlight) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
.group-card.skeleton .group-card-day { width: 40%; height: 12px; }
.group-card.skeleton .group-card-name { width: 70%; height: 18px; }
.group-card.skeleton .group-card-desc { width: 90%; height: 28px; }

/* ─── Events ─────────────────────────────────────────────────── */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  container-type: inline-size;
}
.event-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s;
  cursor: pointer;
}
.event-row:hover { border-color: var(--brand-border); }
.event-date-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}
.event-date-month {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--brand-text);
}
.event-date-day {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  line-height: 0.75;
  color: var(--text-primary);
}
.event-date-day-text {
  font-size: 18px;
  line-height: 0.9;
}
.event-row.skeleton { pointer-events: none; }
.event-row.skeleton .event-date-block,
.event-row.skeleton .event-info-title,
.event-row.skeleton .event-info-meta,
.event-row.skeleton .btn {
  color: transparent;
  background: linear-gradient(90deg, var(--bg-highlight) 25%, var(--bg-elevated) 50%, var(--bg-highlight) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
  border-color: transparent;
}
.event-row.skeleton .event-info-title { height: 16px; width: 60%; margin-bottom: 8px; }
.event-row.skeleton .event-info-meta { height: 12px; width: 40%; }
.event-info-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.event-info { min-width: 0; }
.event-info-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}
.event-info-meta span { display: flex; align-items: center; gap: 5px; }
/* Compact row: driven by the list's own width, not the viewport, so a row in a
   narrow column (home sidebar, style guide demo, phone) tightens the same way. */
@container (max-width: 600px) {
  .event-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px 16px;
    padding: 16px;
    align-items: start;
  }
  .event-row > .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    padding: 8px 16px;
  }
  .event-row > .btn-outline { border: 1px solid var(--border-subtle); }
  .event-row > .btn-outline:hover { border-color: var(--brand-border); }
}

/* ─── Announcements ──────────────────────────────────────────── */
.announcements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.announcement-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s, transform 0.2s;
}
.announcement-card:hover {
  border-color: var(--brand-border);
  transform: translateY(-2px);
}
.announcement-image {
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  overflow: hidden;
  position: relative;
}
.announcement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-soft);
}
.announcement-card:hover .announcement-image img { transform: scale(1.045); }
.announcement-body {
  padding: 20px;
}
.announcement-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 8px;
}
.announcement-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 8px;
}
.announcement-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ─── Staff ──────────────────────────────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.council-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.staff-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.staff-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-elevated);
  overflow: hidden;
}
.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-soft);
}
.staff-card:hover .staff-photo img { transform: scale(1.045); }
.staff-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
}
.staff-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-highlight));
}
.staff-photo-initials {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--brand);
  opacity: 0.6;
}
.staff-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}
.staff-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-text);
  letter-spacing: 0.06em;
}

/* ─── About ──────────────────────────────────────────────────── */
.about-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  background: var(--bg-base);
}
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}
.value-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--brand);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 8px;
}
.value-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.value-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.missions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}
.missions-col h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.mission-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
a.mission-item {
  text-decoration: none;
  transition: color 0.15s;
}
a.mission-item:hover { color: var(--text-primary); }
.mission-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ─── Give Page ──────────────────────────────────────────────── */
.give-page-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  background: var(--bg-base);
  text-align: center;
}
.give-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.give-supports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.give-option-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  transition: border-color 0.2s;
}
.give-option-card:hover { border-color: var(--brand-border); }
.give-option-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--brand-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--brand);
}
.give-option-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.give-option-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--brand-border); color: var(--brand); }
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--brand); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Watch Online Page ──────────────────────────────────────── */
.watch-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  text-align: center;
  background: var(--bg-base);
}
.watch-embed-wrap {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  max-width: 900px;
  margin: 48px auto 0;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.watch-live-icon {
  color: var(--brand);
  opacity: 0.7;
}
.watch-live-icon .wave {
  animation: watch-live-pulse 2.8s ease-in-out infinite;
}
.watch-live-icon .wave-outer {
  animation-delay: 0.45s;
}
@keyframes watch-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.watch-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.watch-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

/* ─── Modal backdrops (shared) ───────────────────────────────── */
.video-modal-backdrop,
.pco-modal-backdrop,
.group-modal-backdrop,
.event-modal-backdrop,
.contact-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--modal-backdrop);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal-backdrop.open,
.pco-modal-backdrop.open,
.group-modal-backdrop.open,
.event-modal-backdrop.open,
.contact-modal-backdrop.open {
  display: flex;
}

/* ─── Video modal ────────────────────────────────────────────── */
.video-modal {
  width: 100%;
  max-width: 860px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  animation: modal-in 0.2s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.video-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.video-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-modal-meta {
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.video-modal-info {
  flex: 1;
  min-width: 0;
}
.video-modal-series {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 6px;
}
.video-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}
.video-modal-byline {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.video-modal-byline span { display: flex; align-items: center; gap: 5px; }
.video-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.video-modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-normal);
}

/* ─── PCO modal ──────────────────────────────────────────────── */
.pco-modal {
  width: 100%;
  max-width: 960px;
  height: min(700px, calc(100vh - 48px));
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modal-in 0.2s ease;
}
.pco-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  gap: 16px;
}
.pco-modal-header-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  flex: 1;
  text-align: center;
}
.pco-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.pco-modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-normal);
}
.pco-modal-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.pco-modal-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.pco-modal-iframe.loaded {
  opacity: 1;
}
.pco-modal-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 13px;
}
.pco-modal-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border-normal);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.pco-modal-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  text-align: center;
}
.pco-modal-fallback-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--brand-dim);
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.pco-modal-fallback-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
}
.pco-modal-fallback-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 360px;
}
.pco-modal-fallback-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.pco-modal-fallback-cta:hover {
  border-color: var(--brand-light);
  color: var(--brand-light);
}

/* ─── Group detail modal ─────────────────────────────────────── */
.group-modal {
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 48px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modal-in 0.2s ease;
}
.group-modal-banner {
  position: relative;
  height: 200px;
  flex-shrink: 0;
  background: var(--bg-highlight);
}
.group-modal-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  pointer-events: none;
}
.group-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.group-modal-close:hover {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
}
.group-modal-banner-content {
  position: absolute;
  bottom: 18px;
  left: 22px;
  right: 60px;
  z-index: 2;
}
.group-modal-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 6px;
}
.group-modal-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.group-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 24px 0;
}
.group-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.group-modal-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.group-modal-meta-item svg {
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 1px;
}
.group-modal-enrollment {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.enrollment-open {
  background: rgba(54, 137, 197, 0.12);
  color: var(--brand-light);
  border: 1px solid var(--brand-border);
}
.enrollment-full {
  background: rgba(232, 160, 0, 0.12);
  color: #E8A000;
  border: 1px solid rgba(232, 160, 0, 0.28);
}
.enrollment-closed {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.group-modal-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.group-modal-description p { margin-bottom: 14px; }
.group-modal-description p:last-child { margin-bottom: 0; }
.group-modal-footer {
  flex-shrink: 0;
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.group-modal-footer-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Event detail modal ─────────────────────────────────────── */
.event-modal {
  width: 100%; max-width: 600px; max-height: calc(100vh - 48px);
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column; animation: modal-in 0.2s ease;
}
.event-modal-header {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 22px 20px; border-bottom: 1px solid var(--border-subtle); flex-shrink: 0;
}
.event-modal-date-block {
  text-align: center; background: var(--brand-dim); border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm); padding: 8px 12px; min-width: 54px; flex-shrink: 0;
}
.event-modal-date-month {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-text); line-height: 1; margin-bottom: 3px;
}
.event-modal-date-day {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--text-primary); line-height: 1;
}
.event-modal-header-info { flex: 1; min-width: 0; }
.event-modal-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-text); margin-bottom: 5px;
}
.event-modal-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 400; font-style: italic;
  color: var(--text-primary); line-height: 1.15;
}
.event-modal-close {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color 0.15s, border-color 0.15s; margin-top: -4px;
}
.event-modal-close:hover { color: var(--text-primary); border-color: var(--border-normal); }
.event-modal-scroll { flex: 1; overflow-y: auto; padding: 22px; }
.event-modal-meta { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.event-modal-meta-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-secondary);
}
.event-modal-meta-item svg { flex-shrink: 0; color: var(--brand); }
.event-modal-description { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.event-modal-description p { margin-bottom: 14px; }
.event-modal-description p:last-child { margin-bottom: 0; }
.event-modal-footer {
  flex-shrink: 0; padding: 18px 22px; border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px;
}
.event-modal-footer-note { font-size: 12px; color: var(--text-muted); }

#ministries, #serve-at-cornerstone, #serve-in-community, #unique-groups {
  scroll-margin-top: 80px;
}

/* ─── Mobile Nav elements (hidden on desktop) ────────────────── */
.nav-logo-icon { display: none; }
.nav-menu-btn  { display: none; }
.nav-mobile-drawer { display: none; }

/* ─── Responsive Nav: 1024px and below ──────────────────────── */
@media (max-width: 1024px) {
  /* Nav: swap logo → icon, show hamburger */
  .nav {
    height: auto;
    min-height: var(--nav-height);
    align-items: stretch;
  }
  .nav .container {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
  }
  .nav-inner {
    height: var(--nav-height);
    align-items: center;
  }
  .nav-logo-full { display: none; }
  .nav-logo-icon {
    display: flex;
    align-items: center;
  }
  .nav-links  { display: none; }
  .nav-actions { display: none; }
  .nav-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    flex-shrink: 0;
    transition: color 0.15s;
  }
  .nav-menu-btn:hover { color: var(--brand-text); }

  /* Mobile drawer */
  .nav.menu-open {
    background: var(--bg-base) !important;
    border-bottom-color: var(--border-subtle) !important;
  }
  .nav.menu-open .nav-mobile-drawer { display: flex; }
  .nav-mobile-drawer {
    flex-direction: column;
    padding: 8px 0 24px;
    border-top: 1px solid var(--border-subtle);
  }
  .nav-mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
  }
  .nav-mobile-links a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    transition: color 0.15s;
  }
  .nav-mobile-links a:hover { color: var(--text-primary); }
  .nav-mobile-links a.active { color: var(--brand-text); }
  .nav-mobile-cta { align-self: flex-start; margin-top: 4px; }
}

/* ─── Responsive: 768px and below ───────────────────────────── */
@media (max-width: 768px) {
  .hero-title br { display: none; }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding-bottom: 64px;
  }
  .hero-title { font-size: clamp(48px, 15vw, 168px); }
  .hero-arc { display: none; }
  .hero-title { font-size: clamp(32px, 15vw, 88px); }
  .hero-body { max-width: 100%; }
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Info band */
  .info-band-grid { grid-template-columns: 1fr; }
  .info-band-item {
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .info-band-item:first-child { padding-left: 0; }
  .info-band-item:last-child  { border-bottom: none; padding-right: 0; }

  /* Sermon grids */
  .sermons-grid          { grid-template-columns: 1fr; }
  .sermons-grid-2col     { grid-template-columns: 1fr; }
  .sermons-archive-grid  { grid-template-columns: 1fr; padding: 32px 0; }

  /* Filter bar */
  .filter-bar-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .filter-search    { min-width: 0; }
  .filter-results   { margin-left: 0; }
  .filter-select-wrap { flex: 1; }
  .filter-select    { width: 100%; }

  /* Groups */
  .groups-grid { grid-template-columns: repeat(2, 1fr); }

  /* Announcements */
  .announcements-grid { grid-template-columns: 1fr; }

  /* Staff */
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .council-grid { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about-two-col  { grid-template-columns: 1fr; gap: 40px; }
  .values-grid    { grid-template-columns: 1fr; }
  .missions-grid  { grid-template-columns: 1fr; gap: 24px; }

  /* Give */
  .give-options { grid-template-columns: 1fr; }
  .give-supports-grid { grid-template-columns: 1fr; }

  /* Watch */
  .watch-info-grid { grid-template-columns: 1fr; }
  .watch-embed-wrap { margin-top: 32px; }

  /* Page header padding */
  .page-header { padding: calc(var(--nav-height) + 32px) 0 40px; }
  .about-hero  { padding: calc(var(--nav-height) + 48px) 0 48px; }
  .give-page-hero { padding: calc(var(--nav-height) + 48px) 0 48px; }
  .watch-hero  { padding: calc(var(--nav-height) + 48px) 0 48px; }

  /* Footer */
  .footer { padding: 48px 0 32px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding-top: 24px;
  }
}

/* ─── Contact modal ──────────────────────────────────────────── */
.contact-modal {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  animation: modal-in 0.2s ease;
}
.contact-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.contact-modal-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  flex: 1;
  text-align: center;
}
.contact-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.contact-modal-close:hover { color: var(--text-primary); border-color: var(--border-normal); }
.contact-modal-body { padding: 28px 24px 24px; }
.contact-form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.contact-form-note span { color: #c0392b; }
.contact-field { margin-bottom: 16px; }
.contact-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.contact-field label .req { color: #c0392b; margin-left: 3px; }
.contact-field select,
.contact-field input,
.contact-field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.contact-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c8679' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.contact-field textarea { resize: vertical; min-height: 100px; }
.contact-field select:focus,
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--brand-border);
}
.contact-field select option { background: var(--bg-elevated); }
.contact-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.contact-submit {
  padding: 11px 28px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-submit:hover { background: var(--brand-light); }
.contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── Toast notifications ────────────────────────────────────── */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-md);
  max-width: 340px;
  box-shadow: var(--shadow-card);
  animation: toast-in 0.25s ease;
  pointer-events: all;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.toast.toast-out {
  animation: toast-out 0.25s ease forwards;
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px); }
}
.toast-success { border-left: 3px solid #27ae60; }
.toast-error   { border-left: 3px solid #c0392b; }
.toast-icon { flex-shrink: 0; margin-top: 1px; }
.toast-success .toast-icon { color: #27ae60; }
.toast-error   .toast-icon { color: #c0392b; }
.toast-content { flex: 1; }
.toast-msg {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}
.toast-retry {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--brand-text);
  cursor: pointer;
  text-decoration: underline;
  margin-left: 4px;
}
.toast-retry:hover { color: var(--text-primary); }
.toast-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.toast-dismiss:hover { color: var(--text-primary); }

/* Footer contact link button */
.footer-links button {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  text-align: left;
}
.footer-links button:hover { color: var(--text-primary); }

/* ─── Skip link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.15s;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

/* ─── Footer legal links ─────────────────────────────────────── */
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-muted); transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-primary); }
@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ─── Legal pages ────────────────────────────────────────────── */
.legal-hero {
  padding: calc(var(--nav-height) + 80px) 0 48px;
  background: var(--bg-base);
}
.legal-prose { max-width: 680px; }
.legal-prose h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 48px 0 16px;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p, .legal-prose li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.legal-prose p { margin-bottom: 16px; }
.legal-prose ul { margin: 0 0 16px 20px; }
.legal-prose li { margin-bottom: 8px; }
.legal-prose a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.legal-prose a:hover { color: var(--text-primary); }
.legal-prose strong { color: var(--text-primary); font-weight: 500; }
.legal-prose button { background: none; border: none; padding: 0; font: inherit; color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.legal-meta { font-size: 13px; color: var(--text-muted); margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }
@media (max-width: 768px) {
  .legal-hero { padding: calc(var(--nav-height) + 48px) 0 32px; }
}

/* ─── Accessibility: page-specific ───────────────────────────── */
.skip-link { background: var(--brand-light); color: var(--bg-base); }
.skip-link:focus { outline-color: var(--text-primary); }
main:focus { outline: none; }
/* Hero background video pause/play control (WCAG 2.2.2) */
.hero-video-toggle {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-normal);
  background: rgba(13, 15, 20, 0.65);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, color 0.2s;
}
.hero-video-toggle:hover { border-color: var(--brand-border); color: var(--brand-light); }
.hero-video-toggle .icon-play { display: none; }
.hero-video-toggle[aria-pressed="true"] .icon-pause { display: none; }
.hero-video-toggle[aria-pressed="true"] .icon-play { display: block; }
@media (max-width: 768px) { .hero-video-toggle { right: 20px; bottom: 20px; } }
/* Cards that open a modal: play overlay also shows on keyboard focus */
.sermon-card:focus-within .sermon-play-btn { opacity: 1; }
.sermon-card:focus-within, .group-card:focus-within { border-color: var(--brand-border); }
/* Info band as a description list */
.info-band-grid dt, .info-band-grid dd { margin: 0; }
.info-band-value a { color: inherit; text-decoration: none; }
.info-band-value a:hover { color: var(--brand-light); }
/* Footer address block is not italic */
address.footer-contact { font-style: normal; }
.footer-contact-item a { color: inherit; }
.footer-contact-item a:hover { color: var(--text-primary); }
/* Active filter chips and clear button render as real buttons */
.active-filter-chip, .clear-filters { font-family: var(--font-body); }
/* Result count is a live region; keep it visible but unobtrusive */
.filter-results[role="status"] { min-height: 1em; }
/* Mission partner lists */
.missions-col ul { list-style: none; margin: 0; padding: 0; }
/* Info band: the icon sits inside <dt> so each <div> holds only dt/dd;
   it is positioned to the left of the dt/dd stack */
.info-band-item { display: block; }
.info-band-item dt { position: relative; }
.info-band-item .info-band-icon { position: absolute; top: 0; left: 0; }
.info-band-item dt, .info-band-item dd { padding-left: 56px; }

