/* ============================================================
   TO CHANGE THE SITE COLOR (e.g. for an anniversary):
   edit the one line below that starts with  --accent:
   ============================================================ */
:root {
  --accent: #287094;    /* brand blue — buttons, links, card titles */
  --accent-deep: #1d5670;
  --accent-deep: color-mix(in srgb, var(--accent) 74%, #06131c);
  --accent-mid: #6aa3bf;
  --accent-mid: color-mix(in srgb, var(--accent) 78%, #ffffff);
  --accent-soft: #e6eef3;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, #ffffff);

  --navy: #023246;      /* deep brand — display headings + announcements panel */
  --navy-soft: color-mix(in srgb, var(--navy) 8%, #ffffff);

  --bg: #F8F7F4;        /* warm cream background */
  --card: #ffffff;
  --line: #E6E1D6;
  --ink: #2C2B30;       /* near-black text (≈424242, a touch warmer) */
  --ink-soft: #8E8E90;  /* muted / secondary text */
  --dark: #23222A;      /* dark footer */

  --maxw: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
  margin-top: 15px;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -14px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 300px;
  height: 80px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}

.brand-tagline {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.18s;
}

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

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

/* mobile menu button (hidden on desktop, wired up when we do the JS) */
.menu-btn {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.25s;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg);
    padding: 18px clamp(16px, 4vw, 48px) 24px;
    border-bottom: 1px solid var(--line);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .menu-btn {
    display: block;
  }
}

/* ---------- Buttons (shared) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 32px;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.16s, filter 0.16s, background 0.16s, color 0.16s, border-color 0.16s;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-ghost {
  background: #ffffff;
  color: #424242;
  font-weight: 200;
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  min-height: clamp(560px, 84vh, 840px);
  display: flex;
  align-items: center;
}

/* Church photo, anchored right and feathered into the cream on its left + bottom */
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 1400px);
  z-index: 0;
  background: url('assets/eccchurch.png') center right / cover no-repeat;
  pointer-events: none;
}

/* Cream fade at the bottom so the photo dissolves into the next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  z-index: 1;
  background: linear-gradient(0deg, var(--bg) 8%, transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 48px);
}

.hero-eyebrow {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 400;
  color: var(--ink);
  opacity: 0.72;
  margin-bottom: 10px;
}

.hero-title {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;             
  font-size: clamp(3.4rem, 9vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--navy);
  max-width: 12ch;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* On narrow screens, drop the split: photo becomes a soft backdrop behind the text */
@media (max-width: 820px) {
  .hero {
    min-height: 68vh;
  }
  .hero-photo {
    width: 100%;
    -webkit-mask-image: none;
            mask-image: none;
    opacity: 0.5;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(244, 241, 234, 0.9), rgba(244, 241, 234, 0.55));
  }
}

.eyebrow {
  font-size: 1.25rem;
  font-weight: 200;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.eyebrow-center {
  display: block;
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: #c9c7cf;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 48px) 20px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

.footer-tag {
  font-size: 0.9rem;
  color: #9c9aa4;
  margin-top: 4px;
}

.footer-col h4 {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 0.95rem;
  color: #9c9aa4;
  margin-top: 8px;
}

.footer-col a {
  display: block;
  font-size: 0.95rem;
  color: #9c9aa4;
  margin-top: 8px;
  transition: color 0.18s;
}

.footer-col a:hover {
  color: var(--accent-mid);
}

.footer-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 48px) 40px;
  text-align: center;
  font-size: 0.9rem;
  color: #878590;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* discreet internal links (Serving / Council Admin) — kept quiet on purpose */
.footer-internal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.footer-internal a {
  color: #6f6d78;
  transition: color 0.18s;
}

.footer-internal a:hover {
  color: var(--accent-mid);
}

.footer-internal .sep {
  color: #4f4d57;
}

/* Responsive */
@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(60px, 9vw, 120px) clamp(16px, 4vw, 48px) clamp(30px, 5vw, 50px);
}

.page-hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

.page-hero-eyebrow {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.page-hero-title {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}

.page-hero-text {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 52ch;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.page-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

/* inner-page hero buttons size to their label (Home keeps its fixed 200px) */
.page-hero-buttons .btn {
  width: auto;
  padding: 15px 36px;
}

.plan-hero .page-hero-inner {
  text-align: center;
}
.plan-hero .page-hero-buttons {
  justify-content: center;
}

/* ---------- Schedule ---------- */
.schedule {
  padding: 0 clamp(16px, 4vw, 48px) clamp(56px, 9vw, 100px);
}

.schedule-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.day-group {
  margin-bottom: 32px;
}

.day-label {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

/* ---------- Schedule cards (grid + photos) ---------- */
.act-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.act-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}

.act-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -26px rgba(0, 0, 0, 0.35);
}

/* Picture area — drop an <img> inside to replace the placeholder */
.act-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.act-ph-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  opacity: 0.55;
}

.act-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.act-body h3 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.act-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.act-time {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  white-space: nowrap;
}

.act-tba {
  color: var(--ink-soft);
}

.act-body p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.tag-person {
  background: #efeeea;
  color: var(--ink-soft);
}

.tag-online {
  background: var(--accent-soft);
  color: var(--accent);
}

.tag-online .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e14b6a;
}

/* Responsive */
@media (max-width: 900px) {
  .act-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- Watch Live modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 30, 36, 0.55);
}

.modal-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(28px, 4vw, 40px);
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.modal-title {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.modal-text {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.modal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.watch-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}

.watch-option:hover {
  transform: translateY(-3px);
}

.watch-option svg {
  width: 38px;
  height: 38px;
}

.watch-option.fb svg { color: #1877F2; }
.watch-option.fb:hover { border-color: #1877F2; background: rgba(24, 119, 242, 0.08); }
.watch-option.yt svg { color: #FF0000; }
.watch-option.yt:hover { border-color: #FF0000; background: rgba(255, 0, 0, 0.07); }

@media (max-width: 400px) {
  .modal-options { grid-template-columns: 1fr; }
}

/* ---------- Plan Your Visit ---------- */
.visit-section {
  padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 48px);
}

.visit-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-head-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(30px, 4vw, 46px);
  margin-top: -35px;
}

.visit-title {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--navy);
  text-align: center;
}

.visit-sub {
  color: var(--ink-soft);
  margin-top: 12px;
}

/* When & where — white card, content left + map right */
.where-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 30px 60px -46px rgba(2, 50, 70, 0.4);
}

.where-left .eyebrow {
  margin-bottom: 4px;
}

.where-title {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 22px;
}

.where-addr {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--ink);
  font-size: 1.05rem;
}

.where-addr svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}

.where-map {
  border-radius: 18px;
  overflow: hidden;
  min-height: 320px;
}

.where-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  border: 0;
}

/* RSVP form */
.rsvp-form {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.95rem; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-submit { display: flex; width: auto; min-width: 260px; margin: 26px auto 0; }
.form-note { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin-top: 12px; }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 1rem; color: var(--ink); text-align: left;
}
.faq-chev { color: var(--ink-soft); transition: transform 0.25s; font-size: 1.2rem; }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 20px 18px; color: var(--ink-soft); font-size: 0.94rem; }

/* Responsive */
@media (max-width: 860px) {

  .where-card { grid-template-columns: 1fr; }
  .where-map { order: -1; }
}
@media (max-width: 560px) {
  
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Need Prayers ---------- */
.prayer {
  padding: clamp(50px, 8vw, 100px) clamp(16px, 4vw, 48px);
}

.prayer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.prayer-heading {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 24px;
}

.prayer-text {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 42ch;
}

.prayer-verse {
  font-style: italic;
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.6;
}

.prayer-verse span {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  color: var(--ink-soft);
}

.prayer-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: 0 30px 60px -40px rgba(2, 50, 70, 0.3);
}

.prayer-card-title {
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.prayer-card-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.prayer-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.prayer-form label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.prayer-form .opt {
  font-weight: 400;
  color: var(--ink-soft);
}

.prayer-form .req {
  color: #e01e37;
}

.prayer-form input,
.prayer-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.prayer-form input:focus,
.prayer-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.prayer-form textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: 20px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.prayer-submit {
  display: flex;
  width: auto;
  min-width: 260px;
  margin: 22px auto 0;
  box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--accent) 55%, transparent);
}

.prayer-status {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
}

.prayer-status.success { color: #1a7f4b; }
.prayer-status.error { color: #e01e37; }

@media (max-width: 860px) {
  .prayer-inner { grid-template-columns: 1fr; }
}

/* ---------- Coming Soon ---------- */
.coming {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(60px, 10vw, 120px) clamp(16px, 4vw, 48px);
}

.coming-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.coming-badge svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

.coming-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.coming-title {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  max-width: 18ch;
}

.coming-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: 30px;
}

.coming-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* ---------- Who We Are ---------- */
.wwa-history {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--accent-soft);
  border-radius: 24px;
  padding: clamp(30px, 5vw, 48px);
}

.hist-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.hist-icon svg { width: 30px; height: 30px; color: var(--accent); }

.soon-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: #ffffff;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.wwa-history p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto; }

/* Pastors */
.pastors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pastor-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s;
}

.pastor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -26px rgba(2, 50, 70, 0.3);
}

/* tall portrait frame — drop an <img> inside to replace the initials */
.pastor-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.pastor-photo img { width: 100%; height: 100%; object-fit: cover; }
.pastor-card h3 {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 12px 22px;
}

@media (max-width: 760px) {
  .pastors-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* ---------- Find Your People ---------- */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: -45px
}

.join-title {
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  color: var(--ink);
  margin-bottom: 16px;
}

.join-intro > p {
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 20px;
}

.join-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.join-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink);
}

.join-points svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}

.join-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.3);
}

.join-card-title {
  font-weight: 500;
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.join-card-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.join-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.join-form label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}

.join-form .req { color: #e01e37; }
.join-form .opt { font-weight: 400; color: var(--ink-soft); }

.join-form input,
.join-form select,
.join-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.join-form textarea { resize: vertical; min-height: 90px; }

.join-submit { width: 100%; margin-top: 4px; }

.join-status {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
}

.join-status.success { color: #1a7f4b; }
.join-status.error { color: #e01e37; }

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

.join-verse {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin-top: 4px;
}

.join-verse p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 10px;
}

.join-verse cite {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.92rem;
}
/* ============================================================
   SERVING / MINISTRY SCHEDULES  (schedules.html)
   ============================================================ */
.sch {
  padding: clamp(50px, 8vw, 100px) clamp(16px, 4vw, 48px);
}

.sch-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

/* Left column — persistent heading + intro (shown in both states) */
.sch-intro { align-self: center; }
.sch-heading {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
}
.sch-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 34ch;
  margin-top: 20px;
}

/* Locked state — right column card */
.sch-locked {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: clamp(30px, 4vw, 48px);
  box-shadow: 0 30px 60px -40px rgba(2, 50, 70, 0.3);
}

.sch-lock-icon {
  margin-bottom: 14px;
}

.sch-lock-icon img {
  width: 64px;
  height: 64px;
  display: inline-block;
}

.sch-lock-icon svg {
  width: 54px;
  height: 54px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sch-locked h2 {
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 22px;
}

.sch-locked p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.sch-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sch-login input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.sch-login input:focus {
  outline: none;
  border-color: var(--accent);
}

.sch-login button {
  margin-top: 4px;
  padding: 15px 32px;
  box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--accent) 55%, transparent);
}

.sch-error {
  color: #e01e37;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.sch-hint {
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .sch-inner { grid-template-columns: 1fr; }
  .sch-intro { align-self: start; }
}

/* Unlocked state */
.sch-unlocked {
  display: none;
}

.sch-unlocked.show {
  display: block;
}

.sch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.sch-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 100px;
}

.sch-logout {
  background: none;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.sch-logout:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Calendar */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-head h3 {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
}

.cal-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.cal-nav button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.cal-dow {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  padding-bottom: 6px;
}

.cal-cell {
  aspect-ratio: 1 / 0.95;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 4px;
  font-size: 0.85rem;
  color: var(--ink);
  position: relative;
  transition: 0.15s;
}

.cal-cell.empty {
  background: transparent;
  border: none;
}

.cal-cell.service {
  cursor: pointer;
  border-color: var(--accent-mid);
}

.cal-cell.service:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.cal-cell.scheduled .cal-dot {
  background: var(--accent);
}

.cal-cell .num {
  font-weight: 600;
}

.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  margin-top: 5px;
}

.cal-cell.service:not(.scheduled) .cal-dot {
  background: var(--line);
}

.cal-legend {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cal-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Modal */
.sm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(31, 30, 36, 0.55);
}

.sm-overlay.show {
  display: flex;
}

.sm-card {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 880px;
  margin: auto;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* ministry blocks laid out landscape (2 x 2) */
#smBody {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.sm-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.sm-title {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.sm-date {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.mb {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 0;
}

.mb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mb-head .ic {
  display: inline-flex;
  flex: none;
}

.mb-head .ic svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mb-head h4 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.mb-event {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.mb-people {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.6;
}

.mb-empty {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

.sm-edit-toggle {
  margin-top: 8px;
  background: none;
  border: 0;
  color: var(--accent);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
}

.sm-panel {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.sm-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.sm-field label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink);
}

.sm-field input,
.sm-field select {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.sm-field input:focus,
.sm-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.sm-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.sm-save,
.sm-reset {
  padding: 9px 16px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.sm-save {
  background: var(--accent);
  color: #fff;
}

.sm-reset {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-soft);
}

.sm-msg {
  font-size: 0.78rem;
  margin-top: 8px;
  min-height: 1em;
}

.sm-msg.ok {
  color: #1a7f4b;
}

.sm-msg.err {
  color: #e01e37;
}

@media (max-width: 640px) {
  #smBody { grid-template-columns: 1fr; }
}

/* nav user icon → Serving */
.nav-icon {
  display: inline-flex;
  align-items: center;
}

.nav-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-icon:hover img {
  opacity: 0.7;
}

/* ============================================================
   ANNOUNCEMENTS  (home) — dark navy panel
   ============================================================ */
.announce {
  background: var(--navy);
  padding: clamp(60px, 9vw, 112px) clamp(16px, 4vw, 48px);
}

.announce-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.announce-head {
  margin-bottom: clamp(30px, 4vw, 52px);
}

/* light-blue eyebrow on the dark panel */
.announce .eyebrow {
  color: color-mix(in srgb, var(--accent) 45%, #ffffff);
}

.announce-title {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
}

.announce-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}

.announce-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px -42px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s, box-shadow 0.18s;
}

.announce-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 0.5);
}

.announce-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* navy date chip */
.ann-date {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ann-date .d {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
}

.ann-date .m {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.ann-date--glyph svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.ann-labels {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.announce-ministry {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.announce-date {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.announce-card h3 {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.ann-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.ann-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.ann-meta svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--accent);
}

.announce-card > p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

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

/* ---------- Empty states (home) ---------- */
/* What's Happening — on cream */
.hap-empty {
  border: 1px dashed var(--line);
  border-radius: 5px;
  background: #ffffff;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}
.hap-empty-ic {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 12px;
}
.hap-empty strong {
  display: block;
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.hap-empty p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 auto;
}

/* Announcements — sits on the dark navy panel, so light text */
.announce-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(24px, 4vw, 44px);
  border: 1px dashed color-mix(in srgb, #ffffff 22%, transparent);
  border-radius: 5px;
}
.announce-empty strong {
  display: block;
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
}
.announce-empty p {
  color: color-mix(in srgb, #ffffff 70%, var(--navy));
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 44ch;
  margin: 0 auto;
}

/* ============================================================
   COUNCIL ADMIN  (admin.html)
   All rules scoped under .admin so nothing here can touch the
   public site. Requires <body class="admin"> on admin.html.
   Reuses the site's .btn / .field / :root tokens.
   ============================================================ */

/* ---- utilities the admin relies on ---- */
.admin .hidden { display: none !important; }
.admin .bayon { font-family: 'Bayon', sans-serif; }

/* ---- shared message line (login + editors) ---- */
.admin .form-msg {
  margin-top: 12px;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.admin .form-msg.error { color: #C0392B; }
.admin .form-msg.success,
.admin .form-msg.ok { color: #1E8E5A; }

/* ============================================================
   LOGIN VIEW  — two-column: COUNCIL ACCESS + Sign in card
   ============================================================ */
.admin .login-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.admin .login-inner {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 110px) clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.admin .login-heading {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
}

.admin .login-lead {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 40ch;
  margin-top: 20px;
}

.admin .login-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: clamp(30px, 4vw, 52px);
  box-shadow: 0 30px 60px -40px rgba(2, 50, 70, 0.3);
}

.admin .login-title {
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 26px;
}

.admin .login-card .field { margin-bottom: 20px; }
.admin .login-card .field label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }

.admin .btn-block {
  width: 100%;
  margin-top: 8px;
  box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--accent) 55%, transparent);
}

/* ============================================================
   APP SHELL
   ============================================================ */
.admin .app {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}

/* ---- sidebar ---- */
.admin .side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
}

.admin .side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 18px;
  border-bottom: 1px solid var(--line);
}
.admin .side-mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}
.admin .side-brand-txt { line-height: 1.2; min-width: 0; }
.admin .side-brand-txt b { display: block; font-size: 0.98rem; }
.admin .side-brand-txt span { font-size: 0.8rem; color: var(--ink-soft); }

.admin .side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
}
.admin .nav-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.admin .nav-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin .nav-btn:hover { background: var(--accent-soft); color: var(--ink); }
.admin .nav-btn.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.admin .nav-label { flex: 1; }

.admin .badge {
  flex: none;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
}
.admin .nav-btn.active .badge { background: var(--accent); color: #fff; }

.admin .side-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.admin .side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.admin .side-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.admin .u-email {
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin .u-role { font-size: 0.78rem; color: var(--ink-soft); }

.admin .signout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.admin .signout svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.admin .signout:hover { border-color: var(--accent); color: var(--accent); }

/* ---- main area ---- */
.admin .main {
  padding: clamp(20px, 3.5vw, 40px);
  max-width: 1100px;
}
.admin .panel-head { margin-bottom: 26px; }
.admin .panel-eyebrow { display: none; }
.admin .panel-title {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
}
.admin .panel-sub { color: var(--ink-soft); font-size: 1.02rem; max-width: 70ch; margin-top: 8px; }
.admin .loading { color: var(--ink-soft); padding: 8px 0; }

/* ---- submission cards ---- */
.admin .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.admin .sub {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 22px;
  box-shadow: 0 20px 40px -34px rgba(2, 50, 70, 0.4);
}
.admin .sub-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.admin .sub-name { font-weight: 700; color: var(--navy); }
.admin .sub-when { flex: none; font-size: 0.78rem; color: var(--ink-soft); }
.admin .sub-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.admin .sub-body {
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.94rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin .sub-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--ink);
}
.admin .sub-contact a { color: var(--accent); }
.admin .sub-actions .btn-sm { box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--accent) 55%, transparent); }

/* leading icons on ministry-interest cards (pencil for message, mail/phone for contact) */
.admin .sub-ic {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin .sub-msg { display: flex; align-items: flex-start; gap: 8px; }
.admin .sub-msg .sub-ic { margin-top: 3px; }
.admin .sub-line { display: flex; align-items: center; gap: 8px; }

/* ---- pills ---- */
.admin .pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
}
.admin .pill.plain {
  background: color-mix(in srgb, var(--line) 55%, #fff);
  color: var(--ink-soft);
}
.admin .pill.praise { background: #FBF1D7; color: #9A6D0F; }

/* ---- empty / error states ---- */
.admin .state {
  width: 100%;
  max-width: 460px;
  margin: auto;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.admin .state strong { display: block; color: var(--ink); margin-bottom: 4px; }
.admin .state.err { border-color: color-mix(in srgb, #C0392B 30%, var(--line)); }

/* ============================================================
   EDITORS (announcements + events)
   ============================================================ */
.admin .editor-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
}
.admin .editor-grid .state { max-width: none; }
.admin .editor {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.admin .editor h3 { font-size: 1.1rem; font-weight: 700; }
.admin .editor-note { color: var(--ink-soft); font-size: 0.85rem; margin: 4px 0 16px; }
.admin .editor .field { margin-bottom: 14px; }
.admin .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admin .editor-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.admin .editor-actions .btn { width: auto; padding: 11px 22px; font-size: 0.92rem; }

/* ---- live list (existing announcements / events) — card grid ---- */
.admin .live-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.admin .live-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 20px 20px 18px;
  box-shadow: 0 20px 40px -34px rgba(2, 50, 70, 0.4);
}
.admin .live-date {
  flex: none;
  align-self: flex-start;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  line-height: 1;
}
.admin .live-date .d { font-size: 1.05rem; font-weight: 700; }
.admin .live-date .m { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.admin .live-main { min-width: 0; }
.admin .lm-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.admin .live-main h4 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.admin .live-main p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 4px; }
.admin .live-actions { display: flex; gap: 10px; margin-top: 8px; }
.admin .drag-handle {
  position: absolute;
  top: 14px;
  right: 14px;
  cursor: grab;
  user-select: none;
  color: #b8bcc4;
  font-size: 1.15rem;
  line-height: 1;
}
.admin .live-item[draggable="true"] { cursor: grab; }
.admin .live-item.dragging { opacity: 0.45; }

.admin .btn-sm { width: auto; padding: 8px 14px; font-size: 0.84rem; border-radius: 8px; }
.admin .btn-danger {
  background: #fff;
  color: #C0392B;
  border-color: color-mix(in srgb, #C0392B 35%, var(--line));
}
.admin .btn-danger:hover { background: #C0392B; color: #fff; border-color: #C0392B; }

/* ---- section head with Add button, reorder hint, top-3 marker ---- */
.admin .editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admin .add-btn {
  flex: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  transition: filter 0.15s;
}
.admin .add-btn:hover { filter: brightness(1.12); }
.admin .reorder-hint {
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 16px;
}
.admin .live-top {
  box-shadow: inset 0 3px 0 0 var(--accent), 0 20px 40px -34px rgba(2, 50, 70, 0.4);
}

/* ---- add / edit modal (announcements + events) ---- */
.admin .ed-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.admin .ed-modal.open { display: flex; }
.admin .ed-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 26, 0.55);
  backdrop-filter: blur(2px);
}
.admin .ed-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 5px;
  padding: 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: edpop 0.16s ease-out;
}
@keyframes edpop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.admin .ed-modal-x {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.admin .ed-modal-x:hover { color: var(--ink); }
.admin .ed-modal .editor { margin: 0; }
.admin .ed-modal .editor h3 { margin-top: 0; }

/* ---- footer security note ---- */
.admin .secure-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}
.admin .secure-note svg {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: var(--accent); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .admin .login-inner { grid-template-columns: 1fr; }
  .admin .app { grid-template-columns: 1fr; }
  .admin .side {
    position: static;
    height: auto;
    flex-direction: column;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .admin .side-nav { flex-direction: row; flex-wrap: wrap; }
  .admin .nav-btn { width: auto; }
  .admin .nav-label { display: none; }
  .admin .side-foot { display: flex; align-items: center; gap: 12px; }
  .admin .side-user { margin-bottom: 0; }
  .admin .signout { width: auto; }
  .admin .editor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .admin .form-row { grid-template-columns: 1fr; }
  .admin .live-actions { flex-direction: column; }
}
/* ============================================================
   WHAT'S HAPPENING  (home) — intro column + upcoming list
   ============================================================ */
.happening {
  padding: clamp(60px, 9vw, 116px) clamp(16px, 4vw, 48px);
}

.happening-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.happening-title {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
}

.happening-text {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 40ch;
}

.happening-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hap-item {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

/* white date badge */
.hap-date {
  flex: none;
  width: 78px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 12px 30px -24px rgba(2, 50, 70, 0.55);
}

.hap-date .d {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--navy);
}

.hap-date .m {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 3px;
}

.hap-card {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 12px 30px -26px rgba(2, 50, 70, 0.5);
  transition: transform 0.18s, box-shadow 0.18s;
}

.hap-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px -30px rgba(2, 50, 70, 0.55);
}

.hap-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.hap-card h3 {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: -10px;
}

@media (max-width: 860px) {
  .happening-inner {
    grid-template-columns: 1fr;
  }
}

/* Active nav link (added by nav.js) */
.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
}
/* ============================================================
   WHO WE ARE  (who-we-are.html) — page-specific sections
   ============================================================ */

/* full-bleed photo band under the nav */
.wwa-hero {
  padding-top: 10px;
}
.wwa-hero-photo {
  width: 100%;
  height: clamp(260px, 42vw, 650px);
  background: center / cover no-repeat;
  background-image: url('assets/eccc.jpg');
}

/* "Jesus is the Center of Everything We Do." centerpiece */
.wwa-statement {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(46px, 7vw, 88px) clamp(16px, 4vw, 48px) clamp(28px, 4vw, 44px);
}
.wwa-statement .lead {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wwa-statement .lead .accent {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(2rem, 5vw, 3.3rem);
  margin-bottom: 2px;
}

/* WHO WE ARE — copy left, photo right */
.wwa-intro-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 34px) clamp(16px, 4vw, 48px) clamp(50px, 7vw, 92px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.wwa-heading {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 15rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.wwa-intro-text p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 46ch;
}
.wwa-intro-text p:last-child { margin-bottom: 0; }
.wwa-intro-text strong { color: var(--ink); font-weight: 700; }
.wwa-intro-photo {
  border-radius: 20px;
  min-height: clamp(240px, 30vw, 340px);
  background: center / cover no-repeat;
  background-image: url('assets/ecccc.png');
}

/* THE ECC BACOOR STORY — dark navy panel, text left / title right */
.wwa-story {
  background: var(--navy);
  padding: clamp(56px, 8vw, 112px) clamp(16px, 4vw, 48px);
}
.wwa-story-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.wwa-story-text {
  color: color-mix(in srgb, #ffffff 74%, var(--navy));
  font-size: 1rem;
  line-height: 1.7;
  max-width: 42ch;
}
.wwa-story-title {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: right;
}

/* MEET OUR PASTORS */
.wwa-pastors {
  padding: clamp(50px, 7vw, 96px) clamp(16px, 4vw, 48px);
  margin-top: -25px;
}
.wwa-pastors-inner { max-width: var(--maxw); margin: 0 auto; }
.wwa-section-title {
  font-family: 'Bayon', sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 46px);
}

/* OUR MINISTRIES — heading left, card list right */
.wwa-ministries {
  padding: clamp(16px, 3vw, 34px) clamp(16px, 4vw, 48px) clamp(50px, 7vw, 92px);
}
.wwa-min-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}
.wwa-min-intro .wwa-heading { margin-bottom: 12px; }
.wwa-min-intro p { color: var(--ink-soft); max-width: 30ch; }
.wwa-min-list { display: flex; flex-direction: column; gap: 12px; }
.wwa-min-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 16px 20px;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.wwa-min-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 16px 32px -26px rgba(2, 50, 70, 0.45);
}
.wwa-min-card h3 {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 3px;
}
.wwa-min-card p { color: var(--ink-soft); font-size: 0.9rem; }

/* FIND YOUR PEOPLE — reuses .join-grid / .join-card / .join-form */
.wwa-join {
  padding: clamp(16px, 3vw, 34px) clamp(16px, 4vw, 48px) clamp(60px, 9vw, 112px);
}
.wwa-join-inner { max-width: var(--maxw); margin: 0 auto; }
.wwa-join .join-intro > p { color: var(--ink-soft); max-width: 34ch; }
.wwa-join .join-card-title { color: var(--accent); }

/* Responsive */
@media (max-width: 860px) {
  .wwa-intro-inner,
  .wwa-story-inner,
  .wwa-min-inner { grid-template-columns: 1fr; }
  .wwa-story-title { text-align: left; }
  .wwa-intro-photo { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .pastor-card,
  .wwa-min-card { transition: none; }
  .pastor-card:hover,
  .wwa-min-card:hover { transform: none; }
}