/*
 * Ráckeve Adventist Church - site styles (DRAFT).
 * Colors and fonts are placeholders until the official values from
 * adventist.design (ALPS) are available. Change them only in :root.
 */

:root {
  --c-primary: #1d4f6e;        /* deep blue */
  --c-primary-dark: #143a52;
  --c-primary-soft: #e6eef3;
  --c-accent: #d9822b;         /* warm amber */
  --c-accent-dark: #b86a1d;
  --c-live: #d93a2b;
  --c-text: #1e2428;
  --c-text-muted: #5b6770;
  --c-bg: #fbfaf7;
  --c-surface: #ffffff;
  --c-surface-alt: #f2efe8;
  --c-border: #e3ded3;
  --c-on-dark: #ffffff;

  --font-sans: "Noto Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Noto Serif", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 40, .06), 0 8px 24px rgba(20, 30, 40, .06);
  --shadow-lg: 0 18px 48px rgba(20, 30, 40, .14);
  --container: 1180px;
  --gutter: 16px;
  --section-y: clamp(56px, 8vw, 104px);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-primary: #7fb4d6;
    --c-primary-dark: #a9cde4;
    --c-primary-soft: #1a2a35;
    --c-accent: #eba05a;
    --c-accent-dark: #f3b87e;
    --c-text: #e9ecee;
    --c-text-muted: #a3adb4;
    --c-bg: #11161a;
    --c-surface: #182026;
    --c-surface-alt: #141b20;
    --c-border: #2a343b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  --c-primary: #7fb4d6; --c-primary-dark: #a9cde4; --c-primary-soft: #1a2a35;
  --c-accent: #eba05a; --c-accent-dark: #f3b87e; --c-text: #e9ecee; --c-text-muted: #a3adb4;
  --c-bg: #11161a; --c-surface: #182026; --c-surface-alt: #141b20; --c-border: #2a343b;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font: 400 1.0625rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-size: .95em; background: var(--c-surface-alt); padding: .1em .4em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 720px; }
.section { padding: var(--section-y) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-lead { color: var(--c-text-muted); margin: .4em 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-accent-dark); margin-bottom: .75em;
}
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-accent); color: #1b1206; }
.btn-primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn-outline:hover { background: var(--c-primary); color: var(--c-surface); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--c-primary-dark); }
.btn-live { background: var(--c-live); color: #fff; }
.btn-live:hover { background: #b82e21; color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: #fff; transition: background .25s, box-shadow .25s, color .25s;
}
.site-header.is-solid, .page-members .site-header, .page-login .site-header, .page-notfound .site-header, .page-privacy .site-header {
  background: var(--c-surface); color: var(--c-text); box-shadow: 0 1px 0 var(--c-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.brand img { flex: none; }
.brand-mark { border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.site-header.is-solid .brand-mark, .page-members .brand-mark, .page-login .brand-mark, .page-notfound .brand-mark, .page-privacy .brand-mark { box-shadow: 0 0 0 1px var(--c-border); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-local { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.site-header a { color: inherit; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.site-nav a:hover { background: rgba(127, 127, 127, .15); }
.site-nav .nav-members { border: 1.5px solid currentColor; margin-left: 8px; }
.site-nav .nav-lang { font-weight: 700; letter-spacing: .05em; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 10px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; margin: 0 auto; transition: transform .2s, opacity .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--c-surface); color: var(--c-text);
    box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--c-border); font-size: 1.05rem; }
  .site-nav .nav-members { margin: 12px 0 0; border-radius: 999px; text-align: center; border-bottom: 1.5px solid currentColor; }
  .site-nav .nav-lang { text-align: center; border-bottom: 0; }
  .site-header.menu-open { background: var(--c-surface); color: var(--c-text); }
}
@media (max-width: 420px) { .brand-name { display: none; } }
.brand-short { display: none; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
@media (max-width: 600px) {
  .brand-name, .brand-local { display: none; }
  .brand-short { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 25, 35, .55) 0%, rgba(10, 25, 35, .15) 35%, rgba(10, 25, 35, .78) 100%);
}
.hero-content { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(48px, 8vw, 96px); max-width: var(--container); }
.hero .eyebrow { color: #ffd7a8; }
.hero h1 { max-width: 14ch; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 40ch; opacity: .95; }
.hero-motto { margin: 24px 0 0; padding-left: 18px; border-left: 3px solid #ffd7a8; max-width: 46ch; }
.hero-motto blockquote { margin: 0; }
.hero-motto p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.45; }
.hero-motto p::before { content: "„"; }
.hero-motto p::after { content: "”"; }
html[lang="en"] .hero-motto p::before { content: "“"; }
.hero-motto figcaption { margin-top: 6px; font-size: .85rem; letter-spacing: .04em; opacity: .8; }
.hero-motto figcaption a { color: inherit; text-underline-offset: 3px; }
.hero-motto figcaption::before { content: "– "; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-next {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0;
  padding: 12px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px);
}
.hero-next-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.hero-next-value { font-weight: 600; }
.hero-next-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.hero-next-gap { margin-top: 10px; }
.hero.is-live::after { background: linear-gradient(180deg, rgba(60, 10, 10, .45), rgba(20, 10, 10, .8)); }
.eyebrow-live { color: #fff !important; background: var(--c-live); padding: 6px 12px; border-radius: 999px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.eyebrow-live .live-dot { background: #fff; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; }
.times-card { padding: clamp(24px, 3vw, 36px); }
.times { list-style: none; margin: 0 0 28px; padding: 0; }
.times li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.times li:last-child { border-bottom: 0; }
.times p { margin: 2px 0 0; color: var(--c-text-muted); font-size: .97rem; }
.time { flex: none; width: 88px; text-align: center; padding: 10px 6px; background: var(--c-primary-soft); border-radius: var(--radius-sm); }
.time-day { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); }
.time-hour { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--c-primary); }
.next-preacher { display: flex; flex-direction: column; gap: 2px; margin: -12px 0 28px; padding: 14px 18px; background: var(--c-primary-soft); border-left: 3px solid var(--c-primary); border-radius: var(--radius-sm); }
.next-preacher-date { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); }
.next-preacher.is-community { border-left-color: var(--c-accent, #d9822b); }
.next-preacher.is-community strong { font-size: 1.05rem; }
.next-preacher.is-community p { margin: 2px 0 0; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 6px 0 6px 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.map-card { overflow: hidden; display: flex; flex-direction: column; }
.map { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-primary-soft); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-body { padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 140px; gap: 0 20px; }
.map-body h3, .map-body .address { grid-column: 1; }
.map-body .entrance { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.map-body .entrance img { border-radius: var(--radius-sm); width: 100%; height: auto; }
.map-body .btn-row { grid-column: 1 / -1; margin-top: 16px; }
.address { color: var(--c-text-muted); }

/* ---------- Pastor ---------- */
.section-pastor { background: var(--c-surface-alt); }
.pastor-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.pastor-photo { margin: 0; position: relative; }
.pastor-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.pastor-photo::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--c-accent); border-radius: var(--radius); z-index: -1;
}
.pastor-grid { isolation: isolate; }
.pastor-text p { font-size: 1.12rem; }
.signature { font-family: var(--font-display); font-size: 1.4rem !important; font-style: italic; margin-top: 1.5em; }
.signature span { display: block; font-family: var(--font-sans); font-style: normal; font-size: .85rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Live ---------- */
.section-live { background: var(--c-primary-dark); color: #fff; }
:root[data-theme="dark"] .section-live { background: #0d2330; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section-live { background: #0d2330; } }
.section-live .eyebrow { color: #ffd7a8; }
.section-live h2 { color: #fff; }
.section-live.is-live .eyebrow { color: #fff; background: var(--c-live); padding: 6px 12px; border-radius: 999px; }
.live-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.live-text p { opacity: .9; }
.countdown { margin: 24px 0 28px; }
.countdown-label { font-size: .95rem; }
.countdown-units { display: flex; gap: 12px; }
.countdown-units span { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 12px 8px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.countdown-units b { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: 0; }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000; box-shadow: var(--shadow-lg); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s, transform .4s; }
.video-facade:hover img { opacity: .9; transform: scale(1.02); }
.video-play { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: var(--c-live); box-shadow: 0 8px 28px rgba(0, 0, 0, .4); }
.video-play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.video-caption { position: absolute; left: 16px; bottom: 14px; color: #fff; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video-note { font-size: .82rem; opacity: .65; margin-top: 10px; }
.streams { margin-top: clamp(40px, 5vw, 64px); }
.streams h3 { color: #fff; margin: 0 0 18px; }
.stream-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.stream { display: flex; flex-direction: column; overflow: hidden; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .05); }
.stream p { margin: 0; }
.stream-thumb { position: relative; display: block; width: calc(100% + 40px); margin: -18px -20px 14px; padding: 0; border: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #000; cursor: pointer; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.stream-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .4s; }
.stream-thumb:hover img, .stream-thumb:focus-visible img { opacity: 1; transform: scale(1.03); }
.stream-thumb-play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--c-live); box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.stream-thumb-play::after { content: ""; position: absolute; left: 19px; top: 15px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.stream-date { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #ffd7a8; }
.stream-title { margin-top: 6px !important; font-weight: 600; line-height: 1.35; }
.stream-preacher { opacity: .8; font-size: .93rem; margin-top: 2px !important; }
.stream-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.stream-play { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: .9rem; cursor: pointer; }
.stream-play:hover, .stream-play:focus-visible { background: #fff; color: var(--c-primary-dark); }
.stream-play-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.stream-note { font-size: .8rem; opacity: .7; margin-top: 10px !important; }

/* ---------- Prayer / services ---------- */
.section-prayer, .section-pgroups { background: linear-gradient(180deg, var(--c-surface-alt), var(--c-bg)); }
.prayer-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.prayer-lead { font-size: 1.12rem; }
.prayer-quote { margin: 24px 0 32px; padding: 4px 0 4px 20px; border-left: 3px solid var(--c-accent); font-family: var(--font-display); font-style: italic; font-size: 1.15rem; }
.prayer-quote p { margin: 0 0 6px; }
.prayer-quote cite { font-family: var(--font-sans); font-style: normal; font-size: .85rem; color: var(--c-text-muted); letter-spacing: .06em; }
.service-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.service-card {
  display: flex; gap: 16px; align-items: flex-start; width: 100%; padding: 16px 18px; text-align: left; cursor: pointer;
  font: inherit; color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.service-card:hover, .service-card.is-active { border-color: var(--c-accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.service-card svg { flex: none; color: var(--c-accent-dark); margin-top: 2px; }
.service-card strong { display: block; }
.service-card small { display: block; color: var(--c-text-muted); font-size: .93rem; line-height: 1.5; margin-top: 2px; }
.prayer-form-card { padding: clamp(24px, 3vw, 36px); position: sticky; top: calc(var(--header-h) + 16px); }
.prayer-form label { display: block; font-weight: 600; font-size: .95rem; margin: 14px 0 6px; }
.prayer-form .optional { font-weight: 400; color: var(--c-text-muted); font-size: .85rem; }
.prayer-form input[type="text"], .prayer-form select, .prayer-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--c-text); background: var(--c-bg);
  border: 2px solid var(--c-border); border-radius: var(--radius-sm);
}
.prayer-form textarea { resize: vertical; min-height: 130px; }
.prayer-form input:focus, .prayer-form select:focus, .prayer-form textarea:focus { outline: none; border-color: var(--c-primary); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: end; }
.prayer-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; line-height: 1.45; color: var(--c-text-muted); margin: 14px 0; }
.prayer-form .check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--c-accent); }
.prayer-form .btn { margin-top: 8px; }
.form-note { font-size: .82rem; color: var(--c-text-muted); text-align: center; margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prayer-done { text-align: center; padding: 24px 0; }
.prayer-done svg { margin: 0 auto 12px; }
.prayer-done p { color: var(--c-text-muted); }

/* ---------- Programs ---------- */
.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.program { overflow: hidden; display: flex; flex-direction: column; }
.program img { aspect-ratio: 1.91 / 1; object-fit: cover; width: 100%; }
a.program { color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.program:hover, a.program:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.program-body h3 { margin: 0 0 4px; }
.program-when { font-size: .88rem !important; color: var(--c-primary) !important; font-weight: 600; margin: 0 0 8px !important; }
.program-more { display: inline-block; margin-top: 10px; font-size: .9rem; font-weight: 600; color: var(--c-primary); }
.program-body { display: flex; gap: 16px; padding: 20px; }
.program-body p { color: var(--c-text-muted); margin: 0; font-size: .97rem; }
.program-date { flex: none; width: 58px; text-align: center; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--c-border); align-self: flex-start; }
.program-day { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; padding: 4px 0 0; color: var(--c-primary); }
.program-month { display: block; background: var(--c-primary); color: var(--c-surface); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 2px 0; }
.program-facebook { align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 32px; text-decoration: none; color: var(--c-text); background: var(--c-primary-soft); border-style: dashed; }
.program-facebook span:last-child { color: var(--c-text-muted); }
.fb-icon { width: 56px; height: 56px; border-radius: 50%; background: #1877f2; color: #fff; font: 700 2rem/56px Arial, sans-serif; margin-bottom: 8px; }

/* ---------- Team ---------- */
.section-team { background: var(--c-surface-alt); }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 32px 24px; }
.person { text-align: center; }
.person img { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; border: 4px solid var(--c-surface); box-shadow: var(--shadow); }
.person strong { display: block; }
.person span { color: var(--c-text-muted); font-size: .93rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery-item { margin: 0; overflow: hidden; border-radius: var(--radius-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-1 { grid-column: span 2; grid-row: span 2; }
.gallery-item-4 { grid-column: span 2; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1e27; color: #c9d3d9; padding: 64px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--radius); padding: 8px; margin-bottom: 16px; }
.footer-logo img { width: 104px; height: 104px; }
.footer-name { line-height: 1.5; }
.footer-name strong { color: #fff; }
.footer-title { font-family: var(--font-sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 3px 0; }
.footer-notice { font-size: .85rem; opacity: .75; max-width: 36ch; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; opacity: .7; }

/* ---------- Members ---------- */
.members-hero { background: var(--c-primary-dark); color: #fff; padding: calc(var(--header-h) + 40px) 0 40px; }
.members-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.members-hero h1 { color: #fff; margin-bottom: .2em; }
.members-hero .eyebrow { color: #ffd7a8; }
.members-sun { margin: 4px 0 0; color: #ffd7a8; font-weight: 600; }
.members-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.members-actions form { margin: 0; }
.refresh-note { margin: 20px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .12); font-size: .95rem; }
.members-date { font-size: 1.25rem; margin: 0; opacity: .9; }
.draft-tag { background: rgba(255, 255, 255, .15); color: #fff; padding: 2px 8px; border-radius: 4px; letter-spacing: .06em; }
.note-pill { display: inline-block; margin: 12px 0 0; padding: 4px 12px; border-radius: 999px; background: var(--c-accent); color: #1b1206; font-weight: 600; font-size: .85rem; }
.section-next { padding-top: 40px; }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.role-group { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.role-group h3 { color: var(--c-primary); padding-bottom: 10px; border-bottom: 2px solid var(--c-accent); display: inline-block; }
.roles { margin: 0; }
.role { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--c-border); font-size: .97rem; }
.role:last-child { border-bottom: 0; }
.role dt { color: var(--c-text-muted); }
.role dd { margin: 0; font-weight: 600; }
.section-duty { background: var(--c-surface-alt); }
.duty-input {
  width: 100%; min-height: 54px; padding: 0 20px; font: inherit; font-size: 1.1rem;
  border: 2px solid var(--c-border); border-radius: 999px; background: var(--c-surface); color: var(--c-text);
}
.duty-input:focus { outline: none; border-color: var(--c-primary); }
.duty-results { list-style: none; padding: 0; margin: 16px 0 0; }
.duty-results li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 16px; background: var(--c-surface); border-radius: var(--radius-sm); margin-bottom: 8px; border: 1px solid var(--c-border); }
.duty-results .duty-date { font-weight: 700; color: var(--c-primary); }
.duty-results small { display: block; color: var(--c-text-muted); }
.duty-results mark { background: color-mix(in srgb, var(--c-accent) 35%, transparent); color: inherit; border-radius: 3px; }
.duty-none { color: var(--c-text-muted); margin-top: 16px; }
.upcoming { display: grid; gap: 12px; }
.week summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 18px 22px; }
.week summary::-webkit-details-marker { display: none; }
.week summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--c-primary); }
.week[open] summary::after { content: "–"; }
.week-date { font-weight: 700; min-width: 150px; }
.week-meta { color: var(--c-text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.week-meta strong { color: var(--c-text); }
.week-meta .note-pill { margin: 0; }
.week .roles-grid { padding: 0 22px 22px; }
.week .role-group { box-shadow: none; background: var(--c-bg); }
.prayer-controls { display: grid; gap: 12px; margin-top: 20px; }
.prayer-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.prayer-filter-label { font-weight: 600; margin-right: 4px; }
.prayer-filter-btn { min-width: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text); font: inherit; font-weight: 600; cursor: pointer; }
.prayer-filter-btn:hover { border-color: var(--c-primary); }
.prayer-filter-btn[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-surface); }
.prayer-input { margin: 16px 0 0; }
.prayer-hint { margin: 12px 0 0; font-size: .9rem; color: var(--c-text-muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--c-primary); text-decoration: underline; cursor: pointer; }
.pgroups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 24px; align-items: start; }
.pgroups-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.prayer-group { padding: 22px; transition: opacity .2s; }
.prayer-group[hidden] { display: none; }
.prayer-group.is-dim { opacity: .35; }
.prayer-label { display: inline-block; color: var(--c-primary); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--c-accent); }
.prayer-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; font-size: .85rem; color: var(--c-text-muted); }
.prayer-dots { display: inline-flex; gap: 5px; }
.prayer-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--share); }
.prayer-kicker { display: block; font-size: .75rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 8px; }
.prayer-kicker small { font-size: inherit; letter-spacing: 0; text-transform: none; }
.prayer-list + .prayer-list { margin-top: 16px; }
.prayer-names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.prayer-share-1 { --share: #3b82c4; }
.prayer-share-2 { --share: #d9822b; }
.prayer-share-3 { --share: #3f9d6a; }
.prayer-share-4 { --share: #8a5cc2; }
.prayer-item { display: inline-flex; align-items: baseline; padding: 3px 10px; border-radius: 999px; background: var(--c-surface-alt); border: 1px solid var(--c-border); color: var(--c-text); font: inherit; font-size: .9rem; line-height: 1.5; text-align: left; cursor: pointer; transition: background .15s, color .15s, opacity .15s; }
.prayer-item small { margin-left: 4px; color: var(--c-text-muted); font-size: .78rem; }
.prayer-item[class*="prayer-share-"] { background: color-mix(in srgb, var(--share) 10%, var(--c-surface)); border-color: color-mix(in srgb, var(--share) 35%, var(--c-border)); }
.prayer-item[class*="prayer-share-"]::before { content: ""; flex: none; align-self: center; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--share); }
.prayer-topic { border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 1rem; padding: 6px 12px; }
.prayer-item.is-hit { background: color-mix(in srgb, var(--share, var(--c-accent)) 30%, var(--c-surface)); border-color: var(--c-text); box-shadow: 0 0 0 1px var(--c-text); font-weight: 600; }
.prayer-item.is-done, .prayer-item.is-done[class*="prayer-share-"] { background: var(--c-surface-alt); border-color: var(--c-border); color: var(--c-text-muted); text-decoration: line-through; opacity: .6; }
.prayer-item.is-done::before { background: var(--c-text-muted); }
@media (max-width: 600px) { .pgroups-grid { grid-template-columns: 1fr; } }
.fund-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.fund { overflow: hidden; }
.fund img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.fund-body { padding: 22px; }
.fund-body > p { color: var(--c-text-muted); font-size: .97rem; }
.progress { height: 10px; background: var(--c-primary-soft); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-dark)); border-radius: inherit; }
.fund-numbers { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 16px; }
.fund-numbers strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--c-primary); }
.fund-numbers span { color: var(--c-text-muted); font-size: .92rem; }
.fund-meta { display: grid; gap: 8px; margin: 0; font-size: .9rem; }
.fund-meta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fund-meta dt { color: var(--c-text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.fund-meta dd { margin: 0; font-weight: 600; text-align: right; }
.bank { margin-top: 24px; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.bank span { display: block; color: var(--c-text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Login ---------- */
.section-login { padding-top: calc(var(--header-h) + 64px); min-height: 80vh; }
.login-card { max-width: 420px; margin: 0 auto; padding: 36px 32px; text-align: center; }
.login-card .login-logo { margin: 0 auto 8px; width: 120px; height: 120px; border-radius: var(--radius-sm); }
.login-card h1 { font-size: 1.8rem; }
.login-card p { color: var(--c-text-muted); }
.login-card form { text-align: left; margin-top: 24px; }
.login-card label { display: block; font-weight: 600; margin-bottom: 6px; }
.login-card input { width: 100%; min-height: 50px; padding: 0 16px; margin-bottom: 16px; font: inherit; border: 2px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-bg); color: var(--c-text); }
.login-card input:focus { outline: none; border-color: var(--c-primary); }
.alert { background: #fde8e6; color: #8a1f15 !important; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.login-back { margin: 20px 0 0; font-size: .95rem; }
.page-notfound main { padding-top: var(--header-h); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .visit-grid, .pastor-grid, .live-grid, .prayer-grid { grid-template-columns: 1fr; }
  .prayer-form-card { position: static; }
  .pastor-photo { max-width: 420px; }
  .pastor-photo::before { inset: 14px -12px -12px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item-1 { grid-column: span 2; }
  .gallery-item-4 { grid-column: span 1; }
}
@media (max-width: 560px) {
  .map-body { grid-template-columns: 1fr; }
  .map-body .entrance { grid-column: 1; grid-row: auto; margin: 8px 0 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .countdown-units span { min-width: 0; flex: 1; }
  .duty-results li { grid-template-columns: 1fr; gap: 2px; }
  .field-row { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; gap: 0; }
  .btn-row .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Privacy notice */
.legal { padding-top: calc(var(--header-h) + 48px); }
.legal-inner { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin: 2em 0 .5em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .4em 0; }
.legal-updated { color: var(--c-text-muted); font-size: .9rem; }
.legal code { font-size: .9em; background: var(--c-primary-soft); padding: 1px 6px; border-radius: 4px; }

/* Fundraising details */

/* Schedule vs. calendar warning */
.cal-warning { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius-sm); background: #fff4e0; border-left: 4px solid var(--c-accent); color: #5a3a0c; font-size: .95rem; }
.week .cal-warning { margin: 0 0 16px; }
.cal-pill { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: #fff4e0; color: #8a4f0f; font-size: .78rem; font-weight: 600; }
:root[data-theme="dark"] .cal-warning, :root[data-theme="dark"] .cal-pill { background: #3a2a12; color: #ffd7a8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-warning, :root:not([data-theme="light"]) .cal-pill { background: #3a2a12; color: #ffd7a8; } }
.fund-motto { margin: 0 0 32px; padding-left: 18px; border-left: 3px solid var(--c-accent); max-width: 62ch; }
.fund-motto blockquote { margin: 0; }
.fund-motto p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.55; color: var(--c-text); }
.fund-motto p::before { content: "„"; }
.fund-motto p::after { content: "”"; }
html[lang="en"] .fund-motto p::before { content: "“"; }
.fund-motto figcaption { margin-top: 6px; font-size: .85rem; color: var(--c-text-muted); }
.fund-motto figcaption::before { content: "– "; }

/* Members: church calendar */
.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-item { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.cal-item strong { display: block; }
.cal-when-rel { flex: none; width: 96px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-accent-dark); font-weight: 600; }
.cal-when { font-size: .92rem; color: var(--c-text-muted); }
.note-pill-cal { background: rgba(255, 255, 255, .16); color: #fff; }

/* Event reminders (web push) */
.push-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; }
.push-box[hidden] { display: none; }
.push-state { font-weight: 600; color: var(--c-primary); }
.push-link { background: none; border: 0; padding: 0; color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: .92rem; cursor: pointer; }
.push-note { flex-basis: 100%; margin: 0; font-size: .9rem; color: var(--c-text-muted); }
.push-note:empty { display: none; }
