/* =========================================================================
   BCEFC — Burnaby Chinese Evangelical Free Church
   Design system. Warm · welcoming · reverent.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Hanken+Grotesk:wght@400;500;600;700&family=Noto+Serif+TC:wght@500;600;700;900&family=Noto+Sans+TC:wght@400;500;700&display=swap');

/* ---- Design tokens (Sand theme as default) -------------------------------- */
:root {
  --font-display: "Newsreader", "Noto Serif TC", Georgia, serif;
  --font-sans: "Hanken Grotesk", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  --font-cjk-serif: "Noto Serif TC", "Newsreader", serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-sm: 0 1px 2px rgba(46,36,29,.05), 0 2px 6px rgba(46,36,29,.04);
  --shadow-md: 0 4px 14px rgba(46,36,29,.07), 0 10px 30px rgba(46,36,29,.06);
  --shadow-lg: 0 18px 50px rgba(46,36,29,.14);

  /* Sand palette */
  --bg: #F7F1E7;
  --bg-warm: #F1E7D6;
  --surface: #FFFCF6;
  --surface-2: #F3E9D8;
  --ink: #2E241D;
  --ink-soft: #6E6053;
  --ink-faint: #9A8C7C;
  --line: #E6D9C5;
  --line-strong: #D8C7AC;
  --primary: #BC5630;
  --primary-hover: #A4471F;
  --primary-ink: #FFF7F0;
  --primary-soft: #F4E1D4;
  --accent: #B6852F;
  --accent-soft: #F1E6CC;
  --dark: #382A21;
  --dark-2: #2C2017;
  --dark-ink: #F4E9DA;
  --dark-soft: #C7B49E;
  --dark-line: rgba(244,233,218,.16);
}

/* ========================================================================= */
/* Base reset                                                                 */
/* ========================================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  max-width: none;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; }

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; }

/* ========================================================================= */
/* Typography utilities                                                       */
/* ========================================================================= */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.eyebrow.on-dark { color: var(--accent); }

/* ========================================================================= */
/* Layout                                                                     */
/* ========================================================================= */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}
.wrap-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }

.sec-head { margin-bottom: 52px; }
.sec-head .title {
  font-family: var(--font-cjk-serif);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: .01em;
  margin-top: 14px;
}
.sec-head .sub {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: 16px;
  font-size: 18px;
}
.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 52px;
}

/* ========================================================================= */
/* Buttons                                                                    */
/* ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }

/* New naming convention */
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-dark { background: rgba(255,255,255,.08); color: var(--dark-ink); border-color: var(--dark-line); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.16); }
.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* Old naming compat — keep existing snippets working */
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--secondary { background: var(--dark); color: var(--dark-ink); }
.btn--secondary:hover { background: var(--dark-2); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--dark-2); font-weight: 700; }
.btn--accent:hover { filter: brightness(1.05); }
.btn--white { background: var(--surface); color: var(--ink); }
.btn--white:hover { background: #fff; }
.btn--large { padding: 16px 32px; font-size: 18px; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: gap .2s var(--ease);
}
.textlink:hover { gap: 13px; }
.textlink svg { width: 17px; height: 17px; }

/* ========================================================================= */
/* Navigation                                                                 */
/* ========================================================================= */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
  flex: none;
}
.brand-emblem { display: block; flex: none; color: var(--primary); }
.brand-name {
  font-family: var(--font-cjk-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.05;
  white-space: nowrap;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 5px;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
  padding: 9px 8px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-links a:hover { background: var(--bg-warm); }
.nav-links a[aria-current] { color: var(--primary); font-weight: 600; }
.nav-links .caret { width: 13px; height: 13px; opacity: .55; display: flex; align-items: center; }
.nav-links .caret svg { width: 13px; height: 13px; }

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 14px 8px 8px;
  z-index: 200;
}
.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  color: var(--ink);
  font-size: 14.5px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--bg-warm); }
.nav-item:hover .nav-dropdown { display: block; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 12px;
  border-radius: 9px;
}
.lang svg { width: 17px; height: 17px; }

/* Language switcher in new nav */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
.language-switcher a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 7px;
  font-weight: 500;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.language-switcher a:hover { background: var(--bg-warm); color: var(--ink); }
.language-switcher a.is-active,
.language-switcher a[aria-current] { color: var(--primary); font-weight: 600; }
.language-divider { color: var(--line-strong); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
  border-radius: 9px;
  transition: background .15s var(--ease);
}
.nav-toggle:hover { background: var(--bg-warm); }
.nav-toggle svg { width: 24px; height: 24px; display: block; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded='true'] .icon--menu { display: none; }
.nav-toggle[aria-expanded='true'] .icon--close { display: block; }

@media (max-width: 1619px) {
  .nav { padding: 14px 20px; }
  .nav-toggle { display: flex; }
  .nav-links,
  .nav-right {
    display: none;
    width: 100%;
  }
  .nav {
    flex-wrap: wrap;
    position: sticky;
  }
  .nav.nav-open .nav-links,
  .nav.nav-open .nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.nav-open .nav-links { gap: 2px; }
  .nav.nav-open .nav-right { gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .nav-links a { width: 100%; }
  .nav-item .nav-dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-warm);
    border-radius: 9px;
    padding: 4px;
    margin-left: 8px;
  }
  .nav-item.dropdown-open .nav-dropdown { display: block; }
  .brand-sub { display: none; }
}

/* Chinese labels are noticeably shorter than English, so the full nav still fits
   comfortably down to ~1380px. Revert the fold above this width on zh pages. */
@media (min-width: 1380px) and (max-width: 1619px) {
  html[lang^='zh'] .nav { padding: 16px 28px; flex-wrap: nowrap; }
  html[lang^='zh'] .nav-toggle { display: none; }
  html[lang^='zh'] .nav-links,
  html[lang^='zh'] .nav-right { display: flex; width: auto; }
  html[lang^='zh'] .nav-links a { width: auto; }
  html[lang^='zh'] .nav-item .nav-dropdown {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    border-radius: var(--r-md);
    padding: 14px 8px 8px;
    margin-left: 0;
  }
  html[lang^='zh'] .brand-sub { display: block; }
}

/* ========================================================================= */
/* Hero                                                                       */
/* ========================================================================= */
.hero { position: relative; }
.hero-media {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: linear-gradient(157deg, var(--dark) 0%, var(--dark-2) 100%);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,14,9,.20) 0%, rgba(20,14,9,.34) 42%, rgba(20,14,9,.66) 100%);
  pointer-events: none;
}
.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 56px 100px;
}
.hero-eyebrow {
  color: #F4D9B8;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-cjk-serif);
  font-weight: 900;
  color: #FFFCF6;
  font-size: 68px;
  line-height: 1.18;
  letter-spacing: .06em;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
  word-break: keep-all;
}
.hero-sub {
  color: rgba(255,251,246,.92);
  font-size: 19px;
  line-height: 1.7;
  max-width: 40ch;
  margin: 24px auto 0;
}
.hero-cta { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }

/* Church silhouette divider */
.hero-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  pointer-events: none;
}
.hero-divider svg { display: block; width: 100%; height: auto; }

/* Service ribbon */
.ribbon {
  position: relative;
  z-index: 3;
  margin: 36px auto 0;
  max-width: 1000px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.ribbon-cell { padding: 24px 28px; display: flex; flex-direction: column; gap: 4px; }
.ribbon-cell + .ribbon-cell { border-left: 1px solid var(--line); }
.ribbon-lang { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.ribbon-time { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.ribbon-meta { font-size: 13.5px; color: var(--ink-soft); }

/* ========================================================================= */
/* Update block-hero to match new design                                      */
/* ========================================================================= */
.block-hero {
  position: relative;
  min-height: var(--hero-height, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFCF6;
  overflow: hidden;
}
.block-hero__bg img { object-fit: cover; }
.block-hero__overlay { position: absolute; inset: 0; }
.block-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 860px;
  width: 100%;
}
.block-hero--left .block-hero__content { text-align: left; }
.block-hero--vtop { align-items: flex-start; padding-top: 80px; }
.block-hero--vcenter { align-items: center; }
.block-hero--vbottom { align-items: flex-end; padding-bottom: 80px; }

.block-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #F4D9B8;
  margin-bottom: 18px;
}
.block-hero__title {
  font-family: var(--font-cjk-serif);
  font-weight: 900;
  font-size: 60px;
  line-height: 1.18;
  letter-spacing: .04em;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  margin: 0;
  word-break: keep-all;
  white-space: pre-line;
}
@media (min-width: 641px) {
  html[lang="en"] .block-hero__content { max-width: 1240px; }
  html[lang="en"] .block-hero__title { font-size: 46px; }
}
.block-hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  max-width: min(640px, 100%);
  margin: 20px auto 0;
  opacity: .92;
  color: rgba(255,251,246,.92);
  white-space: pre-line;
}
.block-hero--left .block-hero__subtitle { margin-left: 0; }
.block-hero__subtitle .hero-nbr { display: none; }
@media (max-width: 640px) {
  .block-hero__subtitle .hero-nbr { display: initial; }
}
.block-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}
.block-hero--left .block-hero__actions { justify-content: flex-start; }

/* ========================================================================= */
/* Quick links (new design)                                                   */
/* ========================================================================= */
.qlinks { display: grid; grid-template-columns: repeat(var(--columns, 3), 1fr); gap: 20px; }
.qcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.qcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.qcard .q-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.qcard .q-ico svg { width: 26px; height: 26px; }
.qcard .q-title { font-family: var(--font-cjk-serif); font-size: 22px; font-weight: 700; }
.qcard .q-sub { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.qcard .q-go { margin-top: auto; color: var(--primary); display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; }
.qcard .q-go svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.qcard:hover .q-go svg { transform: translateX(4px); }
.qcard.feature { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.qcard.feature .q-ico { background: rgba(255,255,255,.18); color: var(--primary-ink); }
.qcard.feature .q-sub { color: rgba(255,255,255,.82); }
.qcard.feature .q-go { color: var(--primary-ink); }

/* Backwards-compat: old quick-link-card -> matches qcard visually */
.block-quick-links { padding: 0; margin-top: 0; position: relative; z-index: 2; }
.block-quick-links .container { max-width: 1280px; padding: 0 48px; }
.block-quick-links__grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 4), 1fr);
  gap: 20px;
}
.quick-link-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 24px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.quick-link-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quick-link-card--emphasis { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.quick-link-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.quick-link-card--emphasis .quick-link-card__icon { background: rgba(255,255,255,.18); color: var(--primary-ink); }
.quick-link-card__icon svg { width: 26px; height: 26px; }
.quick-link-card__content { flex: 1; }
.quick-link-card__title { font-family: var(--font-cjk-serif); font-size: 20px; font-weight: 700; margin: 0; }
.quick-link-card__subtitle { font-size: 14px; color: var(--ink-soft); margin: 4px 0 0; }
.quick-link-card--emphasis .quick-link-card__subtitle { color: rgba(255,255,255,.82); }
.quick-link-card__arrow { color: var(--primary); font-size: 18px; font-weight: 600; }
.quick-link-card--emphasis .quick-link-card__arrow { color: var(--primary-ink); }

/* ========================================================================= */
/* Welcome split                                                              */
/* ========================================================================= */
.welcome { background: var(--bg-warm); }
.welcome-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.welcome-media { position: relative; }
.welcome-media img { width: 100%; height: 470px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: block; }
.welcome-badge {
  position: absolute;
  right: -20px;
  bottom: -20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
}
.welcome-badge .num { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--primary); line-height: 1; }
.welcome-badge .lbl { font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.welcome-body .title { font-family: var(--font-cjk-serif); font-size: 38px; font-weight: 700; margin-top: 14px; line-height: 1.22; }
.welcome-body p { color: var(--ink-soft); font-size: 17px; margin: 20px 0 0; }
.welcome-scripture {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.welcome-scripture p { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--ink); margin: 0; line-height: 1.5; }
.welcome-scripture cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.welcome-body .cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ========================================================================= */
/* Worship service cards                                                      */
/* ========================================================================= */
.worship { background: var(--bg); }
.wcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }

/* Map old worship-card classes to new design */
.wcard,
.worship-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.wcard .w-lang { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.wcard .w-name { font-family: var(--font-cjk-serif); font-size: 27px; font-weight: 700; margin-top: 8px; }
.wcard .w-rows { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.wrow { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.wrow svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.wcard .w-desc { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.wcard .w-foot { margin-top: auto; padding-top: 24px; }
.wcard.featured,
.worship-card--featured {
  background: var(--dark);
  color: var(--dark-ink);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.wcard.featured .w-lang { color: var(--accent); }
.wcard.featured .w-badge {
  align-self: flex-start;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--dark-2);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Old worship card elements */
.worship-card__name { font-family: var(--font-cjk-serif); font-size: 24px; font-weight: 700; margin: 0 0 16px; }
.worship-card__details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.worship-card__detail { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.worship-card--featured .worship-card__detail { color: var(--dark-soft); }
.worship-card__detail .icon { width: 16px; height: 16px; color: var(--accent); }
.worship-card--featured .worship-card__detail .icon { color: #E5B84C; }
.worship-card__description { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 20px; }
.worship-card--featured .worship-card__description { color: var(--dark-soft); }
.worship-card__cta { width: 100%; justify-content: center; margin-top: auto; }
.worship-card--featured .worship-card__name { color: #FFFCF6; }

.block-worship-times { background: var(--bg); }
.block-worship-times .container { max-width: 1280px; padding: 0 48px; }
.block-worship-times__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 40px; }
.block-worship-times__heading { font-family: var(--font-cjk-serif); font-size: 40px; font-weight: 700; margin: 0; }
.block-worship-times__subheading { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); font-weight: 600; margin: 6px 0 0; }
.block-worship-times__link { color: var(--primary); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 7px; }
.block-worship-times__header-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.block-worship-times__grid { display: grid; grid-template-columns: repeat(var(--columns, 3), 1fr); gap: 22px; }

/* ========================================================================= */
/* Vision & Mission cards                                                     */
/* ========================================================================= */
.vm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vmcard {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.vmcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vmcard .vm-no { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--accent); }
.vmcard .vm-title { font-family: var(--font-cjk-serif); font-size: 24px; font-weight: 700; margin: 12px 0 12px; }
.vmcard .vm-text { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.vmcard .vm-badge {
  position: absolute; top: 22px; right: 22px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  background: var(--accent-soft); color: var(--accent); padding: 4px 11px; border-radius: 999px;
}
.vmcard .vm-link { margin-top: 18px; }

/* Map old card-grid to vm look */
.block-card-grid { background: var(--bg); }
.block-card-grid .container { max-width: 1280px; padding: 0 48px; }
.block-card-grid__grid { display: grid; grid-template-columns: repeat(var(--columns, 3), 1fr); gap: 22px; }
.card-grid-item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.card-grid-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-grid-item__image { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--surface-2); }
.card-grid-item__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
a.card-grid-item:hover .card-grid-item__image img { transform: scale(1.04); }
.card-grid-item__badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .06em;
}
.card-grid-item__badge--primary { background: var(--primary); color: var(--primary-ink); }
.card-grid-item__badge--secondary { background: var(--dark); color: var(--dark-ink); }
.card-grid-item__badge--accent { background: var(--accent); color: var(--dark-2); }

/* Card Grid style variants */
.block-card-grid--minimal .card-grid-item { background: transparent; border-color: transparent; box-shadow: none; }
.block-card-grid--minimal .card-grid-item__image { border-radius: var(--r-lg); }
.block-card-grid--minimal .card-grid-item__content { padding: 18px 4px; }
.block-card-grid--bordered .card-grid-item { background: var(--surface); border: 1px solid var(--line-strong); box-shadow: none; }
.block-card-grid--bordered .card-grid-item:hover { border-color: var(--primary); }
.card-grid-item__content { flex: 1; padding: 22px; }
.card-grid-item__title { font-family: var(--font-cjk-serif); font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.card-grid-item__text { font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.65; }
.card-grid-item__arrow { padding: 14px 22px; border-top: 1px solid var(--line); color: var(--primary); font-size: 18px; text-align: right; }

/* ========================================================================= */
/* News + Events                                                              */
/* ========================================================================= */
.news { background: var(--bg-warm); }
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 52px; align-items: start; }
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex; gap: 20px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: padding .2s var(--ease);
}
.news-item:first-child { padding-top: 0; }
.news-item:hover { padding-left: 8px; }
.news-date { font-family: var(--font-display); font-size: 14px; color: var(--ink-faint); white-space: nowrap; min-width: 88px; }
.news-main { flex: 1; }
.news-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.news-title { font-size: 17px; font-weight: 600; line-height: 1.4; }
.news-item:hover .news-title { color: var(--primary); }

/* Announcements block (maps to news-list style) */
.block-announcements { background: var(--bg-warm); }
.block-announcements .container { max-width: 1280px; padding: 0 48px; }
.announcements__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 36px; }
.announcements__title { font-family: var(--font-cjk-serif); font-size: 38px; font-weight: 700; margin: 0; }
.announcements__link { color: var(--primary); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 7px; }
.announcements__list { display: flex; flex-direction: column; }
.announcement-item {
  display: flex; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  transition: padding .2s var(--ease);
}
.announcement-item:hover { padding-left: 6px; }
.announcement-item__date { font-family: var(--font-display); font-size: 13.5px; color: var(--ink-faint); white-space: nowrap; min-width: 80px; }
.announcement-item__content { flex: 1; }
.announcement-item__badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary); background: var(--primary-soft);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 6px;
}
.announcement-item__title { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.announcement-item__excerpt { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin-top: 4px; }

.event-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 12px rgba(56,42,33,.10);
}
.event-card__date-badge {
  flex-shrink: 0;
  width: 60px;
  min-width: 60px;
  text-align: center;
  padding: 10px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.event-card__day { font-size: 26px; font-weight: 700; line-height: 1; }
.event-card__month { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.event-card__title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.event-card__meta { font-size: 13.5px; color: var(--ink-soft); }
.event-media { position: relative; height: 200px; background: var(--dark-2); overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-body { padding: 28px 28px 32px; }
.event-kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.event-title { font-family: var(--font-cjk-serif); font-size: 28px; font-weight: 700; color: var(--ink); margin: 10px 0 10px; line-height: 1.2; }
.event-text { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.event-meta { display: flex; gap: 16px; margin: 18px 0 22px; flex-wrap: wrap; }
.event-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink); }
.event-meta svg { width: 16px; height: 16px; color: var(--accent); }

/* ========================================================================= */
/* Band / CTA dark section                                                    */
/* ========================================================================= */
.band {
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--dark-ink);
}
.band-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 52px; align-items: center; }
.band .b-title { font-family: var(--font-cjk-serif); font-size: 40px; font-weight: 700; color: #FFFCF6; line-height: 1.2; margin-top: 14px; }
.band .b-text { color: var(--dark-soft); font-size: 17px; margin-top: 16px; max-width: 46ch; }
.band .b-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.give-card {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  padding: 30px;
}
.give-card .g-row { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--dark-line); }
.give-card .g-row:last-child { border-bottom: 0; padding-bottom: 0; }
.give-card .g-row:first-child { padding-top: 0; }
.give-card .g-ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--accent); flex: none; }
.give-card .g-ico svg { width: 21px; height: 21px; }
.give-card .g-label { font-weight: 600; color: #FFFCF6; font-size: 15px; }
.give-card .g-meta { font-size: 13.5px; color: var(--dark-soft); }

/* Old CTA block */
.block-cta { padding: 72px 0; }
.block-cta--primary { background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%); color: var(--dark-ink); }
.block-cta--neutral { background: var(--bg-warm); }
.block-cta--dark { background: var(--dark-2); color: var(--dark-ink); }
.block-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.block-cta--center .block-cta__inner { flex-direction: column; text-align: center; }
.block-cta--left .block-cta__inner { flex-direction: row; text-align: left; }
.block-cta__title { font-family: var(--font-cjk-serif); font-size: 36px; font-weight: 700; margin: 0; }
.block-cta__text { margin: 8px 0 0; color: var(--dark-soft); }
.block-cta--neutral .block-cta__text { color: var(--ink-soft); }

/* ========================================================================= */
/* Section header block                                                       */
/* ========================================================================= */
.block-section-header { padding: 64px 0 20px; }
.block-section-header .container { max-width: 1280px; padding: 0 48px; }
.block-section-header__inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.block-section-header__title { font-family: var(--font-cjk-serif); font-size: 40px; font-weight: 700; margin: 0; }
.block-section-header__subtitle { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); font-weight: 600; margin: 6px 0 0; }
.block-section-header__link { color: var(--primary); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 7px; }
.block-section-header__link .arrow { font-size: 18px; }

/* ========================================================================= */
/* Footer                                                                     */
/* ========================================================================= */
.foot { background: var(--dark-2); color: var(--dark-soft); }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 46px; padding: 72px 0 52px; }
.foot .brand { color: var(--dark-ink); }
.foot .brand-name { color: #FFFCF6; font-size: 18px; }
.foot .brand-sub { color: var(--dark-soft); }
.foot-emblem { color: var(--dark-ink); }
.foot-about { color: var(--dark-soft); font-size: 14.5px; line-height: 1.7; margin-top: 20px; max-width: 30ch; }
.foot-social { display: flex; gap: 10px; margin-top: 22px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(255,255,255,.07);
  display: grid; place-items: center;
  color: var(--dark-ink);
  transition: background .2s var(--ease);
}
.foot-social a:hover { background: var(--primary); }
.foot-social svg { width: 18px; height: 18px; }
.foot h4 { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #FFFCF6; margin-bottom: 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.foot ul a { color: var(--dark-soft); text-decoration: none; font-size: 14.5px; transition: color .15s var(--ease); }
.foot ul a:hover { color: #FFFCF6; }
.foot-contact { display: flex; flex-direction: column; gap: 13px; }
.foot-contact .c-row { display: flex; gap: 11px; font-size: 14.5px; line-height: 1.5; align-items: flex-start; }
.foot-contact svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 2px; }
.foot-contact .c-row span a { color: var(--accent); text-decoration: none; }
.foot-contact .c-row span a:hover { text-decoration: underline; }
.foot-bottom {
  border-top: 1px solid var(--dark-line);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(199,180,158,.75);
}
.foot-bottom__privacy { color: rgba(199,180,158,.75); text-decoration: underline; }
.foot-bottom__privacy:hover { color: #FFFCF6; }

/* ========================================================================= */
/* Inner page banner                                                          */
/* ========================================================================= */
.pbanner {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(157deg, var(--dark) 0%, var(--dark-2) 100%);
}
.pbanner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pbanner .hero-scrim { background: linear-gradient(180deg, rgba(20,14,9,.30), rgba(20,14,9,.62)); }
.pbanner-inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 56px 56px;
}
.pbanner .crumb { color: rgba(255,251,246,.78); font-size: 13.5px; letter-spacing: .04em; margin-bottom: 12px; }
.pbanner .crumb a { color: inherit; text-decoration: none; }
.pbanner-title { font-family: var(--font-cjk-serif); font-weight: 900; font-size: 54px; color: #FFFCF6; letter-spacing: .04em; }
.pbanner-sub { color: var(--accent); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 13.5px; margin-top: 10px; }

/* ========================================================================= */
/* Inner page content                                                         */
/* ========================================================================= */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-cjk-serif); font-size: 30px; font-weight: 700; margin: 42px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-cjk-serif); font-size: 21px; font-weight: 700; margin: 28px 0 10px; }
.prose p { color: var(--ink-soft); margin: 0 0 16px; line-height: 1.8; }
.prose ul { margin: 0 0 16px; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--ink-soft); line-height: 1.7; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); display: block; }

/* Pastor/people cards */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.pcard img { width: 100%; height: 300px; object-fit: cover; display: block; }
.pcard .p-body { padding: 24px 24px 28px; }
.pcard .p-name { font-family: var(--font-cjk-serif); font-size: 22px; font-weight: 700; }
.pcard .p-name-en { color: var(--ink-faint); font-size: 14px; margin-top: 3px; }
.pcard .p-role { color: var(--primary); font-weight: 600; font-size: 14px; margin-top: 10px; }
.pcard .p-bio { color: var(--ink-soft); font-size: 14px; line-height: 1.65; margin-top: 12px; }

/* Belief / values chips */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value {
  display: flex; gap: 16px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.value .v-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.value .v-ico svg { width: 24px; height: 24px; }
.value .v-title { font-family: var(--font-cjk-serif); font-size: 19px; font-weight: 700; }
.value .v-text { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin-top: 5px; }

/* Info grid cards */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { padding: 28px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.info-card .i-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.info-card .i-ico svg { width: 24px; height: 24px; }
.info-card .i-title { font-family: var(--font-cjk-serif); font-size: 20px; font-weight: 700; }
.info-card .i-text { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin-top: 9px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative; padding: 34px 28px 30px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.step .s-no { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 18px; }
.step .s-title { font-family: var(--font-cjk-serif); font-size: 21px; font-weight: 700; }
.step .s-text { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; margin-top: 9px; }
.step::after { content: ""; position: absolute; top: 56px; right: -15px; z-index: 2; width: 26px; height: 2px; background: var(--line-strong); }
.steps .step:last-child::after { display: none; }

/* FAQ accordion */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 20px 24px; background: none; border: 0;
  font-family: var(--font-cjk-serif); font-size: 18px; font-weight: 600; color: var(--ink);
}
.faq-q .fq-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; transition: transform .25s var(--ease); }
details[open] .faq-q .fq-ico { transform: rotate(180deg); background: var(--primary); color: var(--primary-ink); }
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }

/* ========================================================================= */
/* Ministries / fellowship sections                                           */
/* ========================================================================= */
.min-band { padding: 60px 0; }
.min-band:nth-of-type(even) { background: var(--bg-warm); }
.min-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 34px; }
.min-head .m-zh { font-family: var(--font-cjk-serif); font-size: 30px; font-weight: 700; }
.min-head .m-en { color: var(--ink-faint); font-size: 14.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.min-head .m-rule { flex: 1; height: 1px; background: var(--line); }

.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mcard {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--ink);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.mc-media { position: relative; height: 130px; background: var(--surface-2); display: block; overflow: hidden; }
.mc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(46,36,29,.18)); pointer-events: none; }
.mcard .mc-ico { position: absolute; left: 16px; bottom: -18px; z-index: 2; width: 42px; height: 42px; border-radius: 11px; background: var(--surface); color: var(--accent); display: grid; place-items: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.mcard .mc-ico svg { width: 21px; height: 21px; }
.mc-body { display: flex; flex-direction: column; gap: 10px; padding: 30px 22px 22px; }
.mcard .mc-title { font-family: var(--font-cjk-serif); font-size: 19px; font-weight: 700; line-height: 1.3; }
.mcard .mc-text { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.mcard .mc-go { margin-top: auto; color: var(--primary); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.mcard .mc-go svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.mcard:hover .mc-go svg { transform: translateX(4px); }

/* ========================================================================= */
/* People list (existing block — update to match pcard design)               */
/* ========================================================================= */
.people-list__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.people-list__item { text-align: left; }
.people-list__photo {
  width: 100%; height: 240px;
  border-radius: var(--r-lg);
  object-fit: cover;
  border: none;
  display: block;
  margin: 0 0 16px;
  box-shadow: var(--shadow-sm);
}
.people-list__name { font-family: var(--font-cjk-serif); font-size: 20px; font-weight: 700; color: var(--ink); }
.people-list__role { color: var(--primary); font-weight: 600; font-size: 14px; margin: 6px 0; }
.people-list__bio { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
.people-list__bio p + p { margin-top: 12px; }

/* List layout — portrait beside a full-length biography */
.block-people-list--list .people-list__grid { grid-template-columns: 1fr; gap: 56px; max-width: 900px; margin: 0 auto; }
.block-people-list--list .people-list__item { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.block-people-list--list .people-list__photo { width: 200px; height: 200px; margin: 0; }
.block-people-list--list .people-list__name { font-size: 22px; }
.block-people-list--list .people-list__role { margin: 4px 0 14px; }

@media (max-width: 640px) {
  .block-people-list--list .people-list__grid { gap: 44px; }
  .block-people-list--list .people-list__item { grid-template-columns: 1fr; gap: 18px; }
  .block-people-list--list .people-list__photo { width: 160px; height: 160px; }
}

/* ========================================================================= */
/* Fellowship gallery (existing block — update look)                         */
/* ========================================================================= */
.fellowship-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.fellowship-item { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.fellowship-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fellowship-item__image { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.fellowship-item__overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 18px; background: linear-gradient(to top, rgba(0,0,0,.78), transparent); color: #fff; }
.fellowship-item__name { font-family: var(--font-cjk-serif); font-size: 17px; font-weight: 700; }
.fellowship-item__info { font-size: 13px; opacity: .9; margin-top: 2px; }

/* ========================================================================= */
/* Global icon sizing override                                                */
/* ========================================================================= */
.icon { width: 20px; height: 20px; }

/* ========================================================================= */
/* Responsive                                                                 */
/* ========================================================================= */
@media (max-width: 1023px) {
  .wrap, .wrap-wide { padding: 0 28px; }
  .block-worship-times .container,
  .block-quick-links .container,
  .block-card-grid .container,
  .block-announcements .container,
  .block-section-header .container { padding: 0 28px; }

  .qlinks { grid-template-columns: repeat(2, 1fr); }
  .wcards, .block-worship-times__grid { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .welcome-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; }
  .people, .people-list__grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; padding: 52px 0 36px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps .step::after { display: none; }
  .mgrid { grid-template-columns: repeat(2, 1fr); }
  .block-card-grid__grid { grid-template-columns: repeat(2, 1fr); }
  .block-quick-links__grid { grid-template-columns: repeat(2, 1fr); }
  .sec-head .title { font-size: 36px; }
}

@media (max-width: 640px) {
  .section, .section-tight { padding: 60px 0; }
  .wrap, .wrap-wide { padding: 0 20px; }
  .block-worship-times .container,
  .block-quick-links .container,
  .block-card-grid .container,
  .block-announcements .container,
  .block-section-header .container { padding: 0 20px; }

  .qlinks { grid-template-columns: 1fr; }
  .block-quick-links__grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .people, .people-list__grid { grid-template-columns: 1fr; }
  .mgrid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; padding: 40px 0 28px; }
  .hero-title, .block-hero__title { font-size: 40px; }
  .pbanner-title { font-size: 38px; }
  .sec-head .title { font-size: 30px; }
  .ribbon { grid-template-columns: 1fr; }
  .ribbon-cell + .ribbon-cell { border-left: none; border-top: 1px solid var(--line); }
  .welcome-badge { display: none; }
  .block-cta__inner { flex-direction: column; }
  .band-grid { gap: 36px; }
  .band .b-title { font-size: 30px; }
}

/* =========================================================================
   Pastor Updates — listing + individual post
   ========================================================================= */

.pastor-updates-hero {
  background: var(--dark);
  color: var(--surface);
  padding: 80px 0 56px;
  text-align: center;
}
.pastor-updates-hero .section-eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 14px;
}
.pastor-updates-hero h1 {
  font-family: var(--font-cjk-serif);
  font-size: clamp(32px, 5vw, 54px);
  margin: 0;
  color: inherit;
}

.pastor-updates-list { padding: 64px 0 96px; }
.pastor-updates-list .container { max-width: 1200px; }
.pastor-updates-empty { text-align: center; color: var(--ink-muted); padding: 60px 0; }

.pastor-updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pastor-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .2s, transform .2s;
}
.pastor-card:hover { box-shadow: 0 8px 28px rgba(56,42,33,.12); transform: translateY(-3px); }

.pastor-card__img {
  width: 100%;
  aspect-ratio: 5/3;
  overflow: hidden;
  background: var(--sand-200, #ede6d8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pastor-card__img img { width: 100%; height: 100%; object-fit: cover; }
.pastor-card__img--placeholder { color: var(--ink-muted); }

.pastor-card__body { padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.pastor-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
  flex-wrap: wrap;
}
.pastor-card__meta time { font-weight: 500; }
.pastor-card__author::before { content: '·'; margin-right: 6px; }

.pastor-card__title {
  font-family: var(--font-cjk-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  color: var(--dark);
}
.pastor-card:hover .pastor-card__title { color: var(--primary); }

.pastor-card__scripture {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.pastor-card__scripture .icon { width: 14px; height: 14px; flex-shrink: 0; }

.pastor-card__summary {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pastor-updates-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 56px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Individual post */
.pastor-post { padding-bottom: 96px; }

.pastor-post__cover {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}
.pastor-post__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pastor-post__inner { max-width: 780px; padding-top: 48px; }

.pastor-post__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 28px;
}
.pastor-post__back:hover { text-decoration: underline; }

.pastor-post__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pastor-post__author::before { content: '·'; margin-right: 6px; }

.pastor-post__title {
  font-family: var(--font-cjk-serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 18px;
  line-height: 1.3;
}

.pastor-post__scripture {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
}
.pastor-post__scripture .icon { width: 14px; height: 14px; }

.pastor-post__summary {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.75;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 40px;
}

.pastor-post__body { font-size: 16.5px; line-height: 1.85; color: var(--ink); }
.pastor-post__body h2,
.pastor-post__body h3 { font-family: var(--font-cjk-serif); color: var(--dark); margin-top: 2em; }

.pastor-post__footer { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 40px; }

.pastor-post__prevnext {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.prevnext-item {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s;
}
.prevnext-item:hover { border-color: var(--primary); }
.prevnext-item--next { text-align: right; }
.prevnext-label { font-size: 12px; color: var(--ink-muted); font-weight: 600; letter-spacing: .04em; }
.prevnext-title { font-weight: 600; font-size: 15px; color: var(--dark); }

@media (max-width: 1023px) {
  .pastor-updates-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pastor-updates-grid { grid-template-columns: 1fr; }
  .pastor-updates-hero { padding: 56px 0 40px; }
  .pastor-post__inner { padding-top: 32px; }
}

/* =========================================================================
   Church Calendar
   ========================================================================= */

.cal-hero {
  background: var(--dark);
  color: var(--surface);
  padding: 72px 0 48px;
  text-align: center;
}
.cal-hero h1 {
  font-family: var(--font-cjk-serif);
  font-size: clamp(28px, 4vw, 48px);
  margin: 0;
}
.cal-hero__subtitle {
  margin: 12px 0 0;
  opacity: 0.7;
  font-size: 16px;
}

.cal-google-embed {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.cal-google-embed iframe { display: block; }
.cal-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--ink-muted);
}

.cal-wrap { padding: 48px 0 96px; }
.cal-wrap .container { max-width: 1100px; }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 24px;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-muted);
}
.cal-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* FullCalendar overrides */
#bcefc-calendar .fc-toolbar-title { font-family: var(--font-cjk-serif); }
#bcefc-calendar .fc-button-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
#bcefc-calendar .fc-button-primary:hover {
  background: var(--primary-dark, #9e4728) !important;
}
#bcefc-calendar .fc-day-today { background: rgba(188,86,48,.07) !important; }
#bcefc-calendar .fc-event { cursor: pointer; border-radius: 4px; }

/* Event popover */
.cal-popover {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: min(380px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 12px 40px rgba(56,42,33,.18);
  z-index: 1000;
}
.cal-popover__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-muted);
  padding: 0 4px;
}
.cal-popover__cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.cal-popover__title {
  font-family: var(--font-cjk-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
}
.cal-popover__time,
.cal-popover__loc,
.cal-popover__desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 4px 0;
  line-height: 1.55;
}
.cal-popover__loc::before { content: '📍 '; }

/* ========================================================================= */
/* Password gate                                                             */
/* ========================================================================= */
.password-gate { padding: 140px 0; display: flex; justify-content: center; }
.password-gate__inner {
  max-width: 420px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 48px 36px;
}
.password-gate__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 20px;
}
.password-gate__icon svg { width: 26px; height: 26px; }
.password-gate__title {
  font-family: var(--font-cjk-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}
.password-gate__text { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.password-gate__error { color: var(--primary); font-size: 14px; font-weight: 600; margin: 0 0 16px; }
.password-gate__form { display: flex; flex-direction: column; gap: 12px; }
.password-gate__form input[type="password"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
}
.password-gate__form input[type="password"]:focus {
  outline: none;
  border-color: var(--primary);
}
.password-gate__form .btn { justify-content: center; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   BLOCKS PALETTE BRIDGE
   blocks.css ships its own cool token set (navy --color-primary, teal
   --color-accent, #f1f3f5 grays). It loads before this file, so the blocks
   rendered under the hero read cold and washed-out against the warm sand
   page. Re-point those tokens at the Sand palette above so every block
   inherits the site's actual colours instead of the stock defaults.
   ========================================================================= */
:root {
  --color-primary: var(--primary);
  --color-primary-dark: var(--primary-hover);
  --color-primary-light: #C9714D;

  --color-accent: var(--accent);
  --color-accent-dark: #966C22;
  --color-accent-light: var(--accent-soft);

  --color-white: var(--surface);
  --color-gray-50: #FBF6EC;
  --color-gray-100: var(--surface-2);
  --color-gray-200: var(--line);
  --color-gray-300: var(--line-strong);
  --color-gray-400: #C4B096;
  --color-gray-500: var(--ink-faint);
  --color-gray-600: var(--ink-soft);
  --color-gray-700: #5A4C40;
  --color-gray-800: #43362C;
  --color-gray-900: var(--ink);

  --shadow-card: var(--shadow-md);
  --shadow-card-hover: var(--shadow-lg);
}

/* =========================================================================
   SECTION BANDS
   Blocks opt into a background via the `background` field in their blueprint
   (default / warm / dark). Adjacent blocks sharing a value merge into one
   continuous band, which is how a section-header + card-grid pair is meant
   to be grouped.
   ========================================================================= */
.section-band { position: relative; }

.section-band--warm { background: var(--surface-2); }

.section-band--dark {
  background: var(--dark);
  color: var(--dark-ink);
}

/* Section headers sitting on a dark band need their own inversion — the
   cards below keep their light surface, so only the heading area changes. */
.section-band--dark .block-section-header__title { color: var(--dark-ink); }
.section-band--dark .block-section-header__subtitle { color: var(--dark-soft); }
.section-band--dark .block-section-header__link { color: var(--accent); }

/* Cards gain a hairline on dark so they don't float shapelessly. */
.section-band--dark .card-grid-item { border: 1px solid var(--dark-line); }
