@charset "UTF-8";
/* M+ 大雅教會｜候選 #3「活力積木 × 現代社區色塊圖鑑」統一設計系統 */
:root {
  --bg: #FFFFFF;
  --soft: #F3F5F8;
  --soft-2: #E9EDF3;
  --ink: #14161A;
  --muted: #525B69;
  --line: rgba(20, 22, 26, 0.10);

  /* 一色一事工 · 品牌識別色塊 */
  --sky: #0EA5E9;
  --sky-dark: #0284C7;
  --sky-soft: #E0F2FE;
  --sky-ink: #0C4A6E;

  --coral: #FF4D3D;
  --coral-dark: #E03A2B;
  --coral-soft: #FFE8E5;
  --coral-ink: #881B12;

  --sun: #FACC15;
  --sun-soft: #FEF3C7;
  --sun-ink: #713F12;

  --mint: #10B981;
  --mint-dark: #059669;
  --mint-soft: #D1FAE5;
  --mint-ink: #065F46;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --font: 'Noto Sans TC', 'PingFang TC', -apple-system, BlinkMacSystemFont, sans-serif;
  --shell: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}
html.font-large body { font-size: 20px; line-height: 1.88; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; overflow-wrap: break-word; line-break: strict; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
main, section, .wrap,
.hero-blocks > *, .sermon-hub > *, .sermon-main-card, .sermon-sub-card > div,
.hub-shortcuts > *, .life-3grid > *, .vision-card > *, .visit-grid > *,
.page-hero-card > *, .cards-4 > *, .cards-2 > *, .story-split > *,
.team-3grid > *, .belief-grid > *, .sermon-feature > *, .sermon-list > *,
.duty-grid > * { min-width: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.skip {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: 700;
}
.skip:focus { top: 14px; }

.wrap { width: min(var(--shell), 92%); margin: 0 auto; }

/* ── Unified Sticky Header ── */
.mplus-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mplus-header-inner {
  width: min(var(--shell), 92%);
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.mplus-brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 900; font-size: 18px; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.mplus-brand-badge {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--coral); color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 16px; letter-spacing: -0.04em;
}
.mplus-brand-badge.sky { background: var(--sky); }
.mplus-brand-badge.sun { background: var(--sun); color: var(--ink); }
.mplus-brand-badge.mint { background: var(--mint); }
.mplus-brand small {
  display: block; font-size: 10px; font-weight: 700;
  color: var(--muted); letter-spacing: 0.14em; margin-top: 1px;
}
.mplus-nav {
  display: flex; align-items: center; gap: 24px;
  font-size: 15px; font-weight: 700; color: var(--muted);
}
.mplus-nav a { padding: 6px 2px; transition: color .2s; }
.mplus-nav a:hover, .mplus-nav a[aria-current="page"] { color: var(--ink); }
.mplus-nav a[aria-current="page"] { position: relative; }
.mplus-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 99px; background: var(--coral);
}
.mplus-header-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.font-toggle-btn {
  border: 1.5px solid var(--line); background: var(--soft); color: var(--ink);
  padding: 7px 12px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 800; transition: background .2s;
}
.font-toggle-btn[aria-pressed="true"] {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.mplus-menu-btn {
  display: none;
  border: 1.5px solid var(--line); background: var(--soft); color: var(--ink);
  height: 42px; padding: 0 14px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 800; align-items: center; gap: 6px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 800; border: none;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); }
.btn-sky { background: var(--sky); color: #fff; }
.btn-sky:hover { background: var(--sky-dark); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-mint { background: var(--mint); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-glass-light { background: rgba(255,255,255,0.22); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ── Color Dots Eyebrow ── */
.color-dots {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted);
}
.color-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; flex-shrink: 0; }

/* ── Fullscreen Mobile Menu Dialog ── */
dialog.mplus-drawer {
  border: 0; margin: 0 0 0 auto; width: min(440px, 100%); height: 100dvh; max-height: none; max-width: none;
  background: var(--bg); color: var(--ink); padding: 26px 24px 32px; overflow-y: auto;
}
dialog.mplus-drawer::backdrop { background: rgba(20, 22, 26, 0.56); backdrop-filter: blur(6px); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.drawer-close {
  border: 0; background: var(--soft); padding: 8px 16px;
  border-radius: var(--radius-pill); font-weight: 800; font-size: 14px;
}
.drawer-links { display: grid; gap: 10px; margin: 22px 0; }
.drawer-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 18px; border-radius: var(--radius-md);
  background: var(--soft); font-size: 17px; font-weight: 800;
}
.drawer-links a small { font-size: 12px; color: var(--muted); font-weight: 700; }
.drawer-links a.hl-coral { background: var(--coral); color: #fff; }
.drawer-links a.hl-coral small { color: rgba(255,255,255,0.88); }
.drawer-links a.hl-sky { background: var(--sky); color: #fff; }
.drawer-links a.hl-sky small { color: rgba(255,255,255,0.88); }
.drawer-foot {
  background: var(--sun-soft); color: var(--sun-ink);
  border-radius: var(--radius-lg); padding: 18px;
  display: grid; gap: 10px; font-size: 14px;
}

/* ── Global Visit RSVP Modal (Fixes ?visit=1!) ── */
dialog.mplus-modal {
  border: 0; border-radius: var(--radius-xl); width: min(520px, 92vw);
  padding: 28px; background: var(--bg); color: var(--ink);
  box-shadow: 0 30px 80px rgba(20, 22, 26, 0.25);
}
dialog.mplus-modal::backdrop { background: rgba(20, 22, 26, 0.55); backdrop-filter: blur(6px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.modal-head h2 { font-size: 24px; font-weight: 900; line-height: 1.25; }
.modal-head p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.modal-form { display: grid; gap: 14px; }
.modal-field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.modal-field input, .modal-field select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--soft); font-weight: 500;
}
.modal-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-result {
  background: var(--sky-soft); color: var(--sky-ink);
  border-radius: var(--radius-md); padding: 14px 16px;
  font-size: 14px; line-height: 1.65;
}
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ── Homepage Swiss Color-Block Bento Hero ── */
.home-bento-wrap { padding: 24px 0 40px; }
.hero-blocks {
  display: grid;
  grid-template-columns: 1.32fr 1fr 0.86fr;
  grid-template-rows: minmax(340px, auto) minmax(250px, auto);
  gap: 18px;
}
.blk {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.blk-hero {
  background: var(--soft);
  padding: 36px 34px 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
}
.blk-hero h1 {
  font-size: clamp(42px, 4.8vw, 64px);
  font-weight: 900; line-height: 1.1; letter-spacing: -0.03em;
}
.blk-hero h1 span { color: var(--coral); }
.blk-hero p { font-size: 16.5px; color: var(--muted); max-width: 460px; line-height: 1.8; }
.blk-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.blk-photo { min-height: 320px; background: var(--ink); }
.blk-photo img, .blk-photo video {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%;
  position: absolute; inset: 0;
}
.blk-photo video { opacity: 0; transition: opacity .6s ease; }
.blk-photo video.playing { opacity: 1; }
.blk-video-controls {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  display: flex; align-items: center; gap: 8px;
}
.blk-video-btn {
  border: 0; border-radius: var(--radius-pill);
  background: rgba(20, 22, 26, 0.68); color: #fff;
  backdrop-filter: blur(8px);
  padding: 7px 13px; font-size: 12.5px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; transition: background .2s ease, transform .15s ease;
}
.blk-video-btn:hover { background: rgba(20, 22, 26, 0.88); }
.blk-video-btn:active { transform: scale(0.96); }
.blk-video-sound {
  background: rgba(255, 255, 255, 0.94); color: var(--ink);
  box-shadow: 0 4px 16px rgba(20, 22, 26, 0.22);
}
.blk-video-sound:hover { background: #fff; }
.blk-video-sound.is-unmuted {
  background: var(--coral); color: #fff;
}
.blk-video-sound.is-unmuted:hover { background: var(--coral-dark); }
.blk-photo-cap {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 4;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px);
  padding: 11px 16px; border-radius: 16px;
  font-size: 13.5px; font-weight: 800;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}

.blk-sky {
  background: var(--sky); color: #fff;
  padding: 28px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.blk-sky small { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; opacity: 0.92; display: block; }
.blk-sky strong { font-size: 54px; font-weight: 900; line-height: 1.05; display: block; margin: 8px 0 6px; letter-spacing: -0.03em; }
.blk-sky p { font-size: 14px; opacity: 0.94; line-height: 1.7; }

.blk-kids {
  background: var(--sun); color: var(--ink);
  padding: 24px; display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center;
}
.blk-kids img { width: 100%; height: 100%; min-height: 180px; max-height: 210px; object-fit: cover; border-radius: 18px; }
.blk-kids small { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; color: var(--sun-ink); }
.blk-kids h2 { font-size: 25px; font-weight: 900; line-height: 1.28; margin: 6px 0 8px; }
.blk-kids p { font-size: 14.5px; line-height: 1.7; opacity: 0.9; }

.blk-weekly {
  background: var(--coral); color: #fff;
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.blk-weekly small { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; opacity: 0.92; }
.blk-weekly h2 { font-size: 26px; font-weight: 900; line-height: 1.25; margin: 4px 0 8px; }
.blk-weekly p { font-size: 14.5px; opacity: 0.94; line-height: 1.65; }
.blk-weekly-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.blk-tree {
  background: var(--mint); color: #fff;
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.blk-tree small { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; opacity: 0.92; }
.blk-tree strong { font-size: 44px; font-weight: 900; line-height: 1.1; display: block; margin: 4px 0; }
.blk-tree p { font-size: 14px; opacity: 0.94; line-height: 1.6; }

/* ── Home Sections ── */
.band { padding: 64px 0; }
.band-soft { background: var(--soft); }
.band-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 32px; flex-wrap: wrap;
}
.band-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; line-height: 1.22; letter-spacing: -0.02em; }
.band-head h2 span { color: var(--coral); }
.band-head p { color: var(--muted); max-width: 540px; margin-top: 8px; }

/* Sermons & Tools Grid */
.sermon-hub { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.sermon-main-card {
  background: #fff; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--line);
}
.sermon-cover {
  position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden;
}
.sermon-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sermon-cover:hover img { transform: scale(1.03); }
.play-badge {
  position: absolute; right: 20px; bottom: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--coral); color: #fff;
  display: grid; place-items: center; font-size: 18px; font-weight: 900;
  box-shadow: 0 12px 26px rgba(255, 77, 61, 0.36);
}
.sermon-main-body {
  padding: 24px 26px 26px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.sermon-meta-tag { font-size: 13px; font-weight: 800; color: var(--coral); }
.sermon-main-body h3 { font-size: 24px; font-weight: 900; margin: 6px 0 4px; line-height: 1.35; }
.sermon-main-body p { font-size: 14.5px; color: var(--muted); }
.sermon-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.sermon-sub-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px; display: flex; gap: 14px; align-items: center;
  transition: transform .18s;
}
.sermon-sub-card:hover { transform: translateY(-2px); }
.sermon-sub-card img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.sermon-sub-card small { font-size: 12px; color: var(--sky-dark); font-weight: 800; display: block; }
.sermon-sub-card h4 { font-size: 15px; font-weight: 800; line-height: 1.4; margin-top: 3px; }

.hub-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shortcut-tile {
  border-radius: var(--radius-lg); padding: 22px 20px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  min-height: 168px; transition: transform .18s;
}
.shortcut-tile:hover { transform: translateY(-3px); }
.shortcut-tile strong { font-size: 19px; font-weight: 900; display: block; margin-bottom: 4px; }
.shortcut-tile p { font-size: 13.5px; line-height: 1.6; opacity: 0.9; }
.shortcut-tile span { font-size: 13px; font-weight: 800; }
.tile-sun { background: var(--sun-soft); color: var(--sun-ink); }
.tile-sky { background: var(--sky-soft); color: var(--sky-ink); }
.tile-mint { background: var(--mint-soft); color: var(--mint-ink); }
.tile-coral { background: var(--coral-soft); color: var(--coral-ink); }
.tile-dark { background: var(--ink); color: #fff; grid-column: 1 / -1; min-height: auto; flex-direction: row; align-items: center; }

/* Ministries 3-col Real Photos */
.life-3grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.life-item {
  background: var(--soft); border-radius: var(--radius-xl); overflow: hidden;
  display: flex; flex-direction: column;
}
.life-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.life-item-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.life-tag {
  display: inline-block; padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 800; width: fit-content;
}
.life-item-body h3 { font-size: 21px; font-weight: 900; margin: 8px 0 6px; }
.life-item-body p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* Vision + Visit Blocks */
.vision-card {
  background: var(--sky-soft); color: var(--sky-ink);
  border-radius: var(--radius-xl); padding: 46px 44px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center;
}
.vision-card h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 900; line-height: 1.18; margin: 10px 0 14px; color: var(--ink); }
.vision-card h2 span { color: var(--sky-dark); }
.vision-verse {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  color: var(--ink);
}
.vision-verse blockquote { margin: 0 0 10px; font-size: 22px; font-weight: 800; line-height: 1.55; }
.vision-verse cite { font-style: normal; font-size: 13px; font-weight: 700; color: var(--sky-dark); }

/* Testimonies Grid (Dynamic) */
.stories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.story-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  overflow: hidden; display: flex; flex-direction: column;
}
.story-img { height: 240px; background: var(--sun-soft); overflow: hidden; display: grid; place-items: center; font-weight: 900; font-size: 26px; color: var(--sun-ink); }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-body { padding: 22px 24px; display: grid; gap: 8px; }
.story-body small { font-size: 12.5px; font-weight: 800; color: var(--coral); }
.story-body h3 { font-size: 21px; font-weight: 900; line-height: 1.4; }
.story-body p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }

/* Visit Section */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.visit-left {
  background: var(--ink); color: #fff; border-radius: var(--radius-xl);
  padding: 40px 38px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.visit-left h2 { font-size: clamp(32px, 3.8vw, 46px); font-weight: 900; line-height: 1.18; }
.visit-left h2 span { color: var(--sun); }
.visit-left p { color: rgba(255,255,255,0.82); font-size: 16px; line-height: 1.8; }
.visit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.visit-chips span {
  background: rgba(255,255,255,0.12); padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; color: var(--sun);
}
.visit-right { display: grid; gap: 14px; }
.info-tile {
  background: var(--soft); border-radius: var(--radius-lg); padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.info-tile small { font-size: 12px; font-weight: 800; color: var(--sky-dark); display: block; }
.info-tile strong { font-size: 21px; font-weight: 900; }

/* ── Inner Page Hero Banner (Color-Coded by Section!) ── */
.page-hero-wrap { padding: 24px 0 10px; }
.page-hero-card {
  border-radius: var(--radius-xl); padding: 40px 42px; color: #fff;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 30px; align-items: center;
}
.page-hero-card.single { grid-template-columns: 1fr; }
.page-hero-card.sky { background: var(--sky); }
.page-hero-card.coral { background: var(--coral); }
.page-hero-card.sun { background: var(--sun); color: var(--ink); }
.page-hero-card.mint { background: var(--mint); }
.page-hero-card.dark { background: var(--ink); }
.page-hero-card .eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; opacity: 0.92; margin-bottom: 10px; display: block;
}
.page-hero-card h1 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 900; line-height: 1.18; margin-bottom: 12px; }
.page-hero-card p { font-size: 16.5px; line-height: 1.75; opacity: 0.94; max-width: 680px; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ── Shared Inner Cards, Grids, FAQ, Map ── */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.soft-card {
  background: var(--soft); border-radius: var(--radius-lg); padding: 24px;
}
.white-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
}
.step-badge {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; font-weight: 900; font-size: 14px;
  color: #fff; background: var(--sky); margin-bottom: 12px;
}
.soft-card h3, .white-card h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.soft-card p, .white-card p { font-size: 15px; color: var(--muted); line-height: 1.75; }

.map-frame {
  border-radius: var(--radius-xl); overflow: hidden; min-height: 360px; background: var(--soft);
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

.faq-stack { display: grid; gap: 12px; }
.faq-stack details {
  background: var(--soft); border-radius: var(--radius-md); padding: 18px 22px;
}
.faq-stack summary { font-weight: 800; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-stack summary::after { content: "＋"; font-size: 20px; color: var(--coral); }
.faq-stack details[open] summary::after { content: "−"; }
.faq-stack details p { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.8; }

/* ── Weekly Bulletin Dynamic Styles (Compatible with weekly.mjs) ── */
.bulletin-nav-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px;
}
.bulletin-nav-pills a {
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--soft); font-size: 14px; font-weight: 800; color: var(--ink);
  transition: background .18s, color .18s;
}
.bulletin-nav-pills a:hover { background: var(--coral); color: #fff; }
.bulletin-meta { display: inline-block; margin-top: 12px; font-size: 14.5px; font-weight: 800; line-height: 1.5; background: rgba(255,255,255,0.2); padding: 7px 14px; border-radius: 14px; }
.bulletin-hero-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 18px 40px rgba(0,0,0,0.16); }
.bulletin-hero-placeholder {
  aspect-ratio: 16/9; border-radius: var(--radius-lg); background: rgba(255,255,255,0.18);
  display: grid; place-items: center; font-weight: 900; letter-spacing: 0.14em; color: #fff;
}
.bulletin-loading, .bulletin-empty {
  padding: 44px 24px; border-radius: var(--radius-xl); background: var(--soft); text-align: center; color: var(--muted);
}
.bulletin-section {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 28px 30px; margin-bottom: 20px;
}
.bulletin-section .section-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.bulletin-section .section-icon {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  background: var(--coral-soft); color: var(--coral);
  display: grid; place-items: center; font-size: 20px; font-weight: 900;
}
.bulletin-section[data-section="program"] .section-icon { background: var(--sky-soft); color: var(--sky-dark); }
.bulletin-section[data-section="prayer"] .section-icon { background: var(--sun-soft); color: var(--sun-ink); }
.bulletin-section[data-section="schedule"] .section-icon { background: var(--mint-soft); color: var(--mint-ink); }
.bulletin-section h2 { font-size: 22px; font-weight: 900; }
.bulletin-section .section-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.bulletin-entry-card {
  background: var(--soft); border-radius: var(--radius-md); padding: 18px 20px;
}
.bulletin-entry-card + .bulletin-entry-card { margin-top: 12px; }
.bulletin-entry-card h3 { font-size: 17px; font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.bulletin-copy { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.bulletin-section[data-section="program"] .bulletin-entry-card {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start;
}
.bulletin-section[data-section="program"] .bulletin-entry-card h3 {
  margin: 0; background: var(--sky-soft); color: var(--sky-ink);
  padding: 4px 10px; border-radius: 9px; font-size: 14.5px; text-align: center;
}
.duty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duty { background: var(--soft); border-radius: var(--radius-lg); padding: 20px; }
.duty.next { background: var(--sky-soft); }
.duty h3 { font-size: 17px; font-weight: 900; margin-bottom: 14px; }
.duty dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.duty dt { font-weight: 800; color: var(--muted); }
.duty dd { margin: 0; font-weight: 700; color: var(--ink); }
.schedule-empty { padding: 14px; border-radius: 12px; background: var(--sun-soft); color: var(--sun-ink); font-size: 14.5px; }
.bulletin-source-note { color: var(--muted); font-size: 13.5px; margin-top: 14px; text-align: center; }

/* ── Archive Pages (group-resources.html & weekly-archive.html via content-archive.mjs) ── */
.archive-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--soft); padding: 16px 20px; border-radius: var(--radius-lg);
  margin: 20px 0 24px;
}
.archive-toolbar input[type="search"] {
  flex: 1 1 260px; padding: 12px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: #fff; font-size: 15px;
}
.archive-toolbar select {
  padding: 12px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: #fff; font-size: 15px; font-weight: 700;
}
.archive-toolbar output {
  font-size: 14px; font-weight: 800; color: var(--sky-ink);
  background: var(--sky-soft); padding: 7px 14px; border-radius: var(--radius-pill);
}
.archive-list { display: grid; gap: 18px; padding-bottom: 48px; }
.archive-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 24px 26px; display: grid; gap: 14px;
}
.archive-date {
  display: inline-block; font-size: 12.5px; font-weight: 800;
  background: var(--sun-soft); color: var(--sun-ink);
  padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: 8px;
}
.archive-head h2 { font-size: 22px; font-weight: 900; line-height: 1.35; margin-bottom: 6px; }
.archive-excerpt { color: var(--muted); font-size: 15px; line-height: 1.75; }
.archive-cover { margin: 0; border-radius: var(--radius-md); overflow: hidden; }
.archive-cover img { width: 100%; max-height: 360px; object-fit: cover; }
.archive-details summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--soft); padding: 13px 18px; border-radius: var(--radius-md);
  font-weight: 800; font-size: 15px;
}
.archive-details[open] summary { background: var(--ink); color: #fff; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.archive-content {
  padding: 20px; background: var(--soft); border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: grid; gap: 14px;
}
.group-overview, .group-main-section, .content-section {
  background: #fff; border-radius: var(--radius-md); padding: 18px 20px;
  border: 1px solid var(--line);
}
.group-main-title, .content-heading {
  font-size: 18px; font-weight: 900; color: var(--coral); margin-bottom: 10px;
}
.group-auto-list { padding-left: 20px; display: grid; gap: 10px; }
.content-card { padding: 10px 0; border-bottom: 1px solid var(--line); }
.content-card:last-child { border-bottom: 0; }
.content-card p { white-space: pre-wrap; margin-top: 4px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.empty { text-align: center; padding: 36px; background: var(--soft); border-radius: var(--radius-lg); color: var(--muted); font-weight: 700; }
.empty.error { background: var(--coral-soft); color: var(--coral-ink); }

/* ── Live Countdown Page (live.mjs) ── */
.live-shell { max-width: 820px; margin: 28px auto 64px; }
.live-stage {
  background: var(--sky); color: #fff; border-radius: var(--radius-xl);
  padding: 44px 36px; text-align: center; display: grid; gap: 16px;
}
.live-stage h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 900; line-height: 1.2; }
.live-stage .topic { font-size: 20px; font-weight: 800; color: var(--sun); }
.live-stage .date { font-size: 15px; opacity: 0.92; }
.countdown-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 520px; margin: 8px auto; width: 100%;
}
.countdown-grid > div {
  background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px);
  border-radius: var(--radius-md); padding: 16px 8px;
}
.countdown-grid strong { display: block; font-size: 40px; font-weight: 900; line-height: 1.1; }
.countdown-grid span { font-size: 13px; font-weight: 700; opacity: 0.9; }
.live-stage .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.live-stage .help { font-size: 13.5px; opacity: 0.88; }
.player-wrap { margin-top: 16px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: #000; }
.player-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ── Sermons Page (sermons.mjs) ── */
.sermon-feature {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center;
  background: var(--soft); border-radius: var(--radius-xl); padding: 26px;
}
.sermon-feature .video-frame { display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--ink); }
.sermon-feature .video-frame img { width: 100%; height: 100%; object-fit: cover; }
.sermon-feature .eyebrow { font-size: 12px; font-weight: 800; color: var(--coral); letter-spacing: 0.12em; }
.sermon-feature .sermon-meta { font-size: 14px; font-weight: 800; color: var(--sky-dark); margin: 8px 0; }
.sermon-feature h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.3; margin-bottom: 10px; }
.sermon-feature p { color: var(--muted); margin-bottom: 20px; }
.sermon-feature .button {
  display: inline-flex; align-items: center; padding: 12px 24px; border-radius: var(--radius-pill);
  background: var(--coral); color: #fff; font-weight: 800; font-size: 15px;
}
.sermon-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sermon-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s;
}
.sermon-card:hover { transform: translateY(-3px); }
.sermon-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sermon-card time { font-size: 12.5px; font-weight: 800; color: var(--sky-dark); padding: 14px 16px 4px; display: block; }
.sermon-card h3 { font-size: 17px; font-weight: 900; line-height: 1.45; padding: 0 16px 6px; }
.sermon-card p { font-size: 13.5px; color: var(--muted); padding: 0 16px 16px; }

/* ── About / Team / Timeline / Kids / Formation Extensions ── */
.sub-nav-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px;
}
.sub-nav-pills a {
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--soft); font-size: 14.5px; font-weight: 800; color: var(--muted);
  transition: background .18s, color .18s;
}
.sub-nav-pills a:hover { color: var(--ink); background: var(--soft-2); }
.sub-nav-pills a[aria-current="page"] { background: var(--ink); color: #fff; }

.pillars-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.pillar-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.pillar-box b { display: block; font-size: 12px; letter-spacing: 0.14em; color: var(--coral); margin-bottom: 4px; }
.pillar-box strong { font-size: 16px; font-weight: 900; }

.story-split {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center;
  background: var(--soft); border-radius: var(--radius-xl); padding: 28px;
}
.story-split img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-lg); }

.timeline-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline-list li {
  display: grid; grid-template-columns: 118px 1fr; gap: 18px; align-items: start;
  background: var(--soft); border-radius: var(--radius-lg); padding: 20px 24px;
}
.timeline-list li span {
  display: inline-block; background: var(--sky-soft); color: var(--sky-ink);
  font-weight: 900; font-size: 15px; padding: 6px 12px; border-radius: 10px; text-align: center;
}
.timeline-list li p { font-size: 15.5px; color: var(--ink); line-height: 1.8; }

.team-3grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  overflow: hidden; display: flex; flex-direction: column;
}
.team-card img { width: 100%; aspect-ratio: 4/4.2; object-fit: cover; object-position: center top; background: var(--soft); }
.team-card-body { padding: 22px 24px 26px; display: grid; gap: 6px; }
.team-card-body small { font-size: 12px; font-weight: 800; color: var(--sky-dark); }
.team-card-body h3 { font-size: 21px; font-weight: 900; }
.team-card-body p { font-size: 14.5px; color: var(--muted); line-height: 1.75; margin-top: 4px; }

.belief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-method-list { display: grid; gap: 10px; margin-top: 16px; }
.contact-method-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--soft); border-radius: var(--radius-md); padding: 15px 18px;
  font-weight: 800; font-size: 15px; transition: background .18s;
}
.contact-method-row:hover { background: var(--sky-soft); color: var(--sky-ink); }
.contact-method-row small { color: var(--muted); font-weight: 700; font-size: 12.5px; display: block; }

@media (max-width: 1080px) {
  .story-split, .team-3grid, .belief-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pillars-3 { grid-template-columns: 1fr; }
  .timeline-list li { grid-template-columns: 1fr; gap: 10px; }
  .timeline-list li span { width: fit-content; }
}

/* ── Unified Footer ── */
.mplus-footer {
  background: var(--ink); color: rgba(255,255,255,0.82);
  padding: 52px 0 40px; margin-top: 32px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 900; font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; font-weight: 700; }
.footer-links a:hover { color: var(--sun); }
.footer-bottom {
  padding-top: 22px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; font-size: 13px; color: rgba(255,255,255,0.62);
}

/* Mobile Sticky Bottom Action Bar */
.mobile-dock {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  grid-template-columns: 0.9fr 1.35fr; gap: 10px;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 1080px) {
  .mplus-nav { display: none; }
  .mplus-menu-btn { display: inline-flex; }
  .hero-blocks { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .blk-hero { grid-column: 1 / -1; }
  .blk-kids { grid-column: 1 / -1; }
  .sermon-hub, .vision-card, .visit-grid, .page-hero-card, .sermon-feature { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .sermon-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { padding-bottom: 76px; font-size: 16px; }
  .wrap { width: 100%; padding-left: 16px; padding-right: 16px; }
  .mplus-header-inner { width: 100%; padding-left: 16px; padding-right: 16px; height: 62px; gap: 8px; }
  .mplus-brand { font-size: 16px; gap: 8px; }
  .mplus-brand-badge { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
  .mplus-brand small { font-size: 9px; letter-spacing: 0.08em; }
  .mplus-header-actions { gap: 6px; }
  .mplus-header-actions .btn-desktop-only { display: none; }
  .font-toggle-btn { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
  .mplus-menu-btn { height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
  .home-bento-wrap { padding: 14px 0 28px; }
  .hero-blocks { grid-template-columns: 1fr; gap: 14px; }
  .blk-hero { padding: 24px 20px; gap: 16px; }
  .blk-hero h1 { font-size: 38px; }
  .blk-hero p { font-size: 15.5px; line-height: 1.75; }
  .blk-hero-actions .btn { padding: 11px 16px; font-size: 14px; }
  .blk-photo { min-height: 265px; }
  .blk-video-controls { top: 10px; right: 10px; gap: 6px; }
  .blk-video-btn { padding: 6px 10px; font-size: 12px; }
  .blk-photo-cap { left: 10px; right: 10px; bottom: 10px; padding: 9px 12px; font-size: 12.5px; gap: 8px; }
  .blk-sky { padding: 24px 20px; }
  .blk-sky strong { font-size: 46px; }
  .blk-kids { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .blk-kids img { max-height: 200px; min-height: 170px; }
  .blk-kids h2 { font-size: 22px; }
  .blk-weekly { padding: 22px 20px; }
  .blk-weekly h2 { font-size: 23px; }
  .blk-weekly-btns { grid-template-columns: 1fr 1fr; gap: 8px; }
  .blk-weekly-btns .btn { padding: 10px 10px; font-size: 13.5px; }
  .blk-tree { padding: 22px 20px; }
  .blk-tree strong { font-size: 38px; }
  .band { padding: 40px 0; }
  .band-head { margin-bottom: 22px; gap: 12px; }
  .band-head h2 { font-size: 28px; }
  .sermon-main-body { padding: 18px 18px 20px; gap: 14px; }
  .sermon-main-body h3 { font-size: 19px; line-height: 1.4; }
  .sermon-sub-card { padding: 12px; gap: 10px; }
  .sermon-sub-card img { width: 84px; }
  .sermon-sub-card h4 { font-size: 14px; line-height: 1.45; }
  .hub-shortcuts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shortcut-tile { padding: 16px 14px; min-height: 144px; gap: 10px; }
  .shortcut-tile strong { font-size: 16px; }
  .shortcut-tile p { font-size: 12.5px; line-height: 1.55; }
  .tile-dark { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px; }
  .tile-dark .btn { width: 100%; }
  .life-3grid, .cards-4, .cards-2, .duty-grid, .sermon-list, .sermon-sub-grid, .stories-grid, .modal-grid-2 { grid-template-columns: 1fr; }
  .life-item-body { padding: 18px 20px 20px; }
  .vision-card { padding: 26px 20px; gap: 20px; }
  .vision-card h2 { font-size: 28px; }
  .vision-verse { padding: 20px; }
  .vision-verse blockquote { font-size: 18px; }
  .visit-left { padding: 26px 20px; }
  .visit-left h2 { font-size: 28px; }
  .info-tile { padding: 18px; gap: 10px; }
  .info-tile strong { font-size: 18px; }
  .page-hero-card { padding: 26px 20px; }
  .page-hero-card h1 { font-size: 28px; }
  .bulletin-section { padding: 20px 16px; }
  .bulletin-section[data-section="program"] .bulletin-entry-card { grid-template-columns: 1fr; gap: 8px; }
  .bulletin-section[data-section="program"] .bulletin-entry-card h3 { width: fit-content; }
  .countdown-grid strong { font-size: 30px; }
  .mobile-dock { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .mobile-dock .btn { padding: 11px 10px; font-size: 13.5px; min-width: 0; }
  .mplus-footer { padding: 40px 0 92px; }
  .footer-links { gap: 14px 18px; }
}
@media (max-width: 390px) {
  .mplus-header-inner { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .mplus-brand { font-size: 15px; gap: 7px; }
  .mplus-brand-badge { width: 32px; height: 32px; font-size: 13px; }
  .font-toggle-btn { padding: 5px 8px; font-size: 11.5px; }
  .mplus-menu-btn { height: 34px; padding: 0 10px; font-size: 12.5px; }
  .blk-photo-cap { font-size: 12px; padding: 8px 10px; }
  .mobile-dock .btn { font-size: 13px; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
