/* mobile-ui.css */
/* Responsive geometry; theme.css owns the shared light/dark colors. */
.ciy-mobile-home,.ciy-mobile-nav,.ciy-mobile-sheet-backdrop,.ciy-mobile-more-sheet { display:none; }
@media(max-width:768px) {
  body { padding-bottom:calc(78px + env(safe-area-inset-bottom)); }
  body.ciy-mobile-sheet-open { overflow:hidden; }
  .shell { width:min(calc(100% - 36px),560px); }
  body.ciy-mobile-ready .nav,body.ciy-mobile-ready .header-cta,body.ciy-mobile-ready .menu-button { display:none!important; }
  .feature-grid { display:grid; grid-template-columns:1fr; gap:20px; }
  .feature-card { padding:20px; }
  .card-title-row h2 { font-size:18px; }
  .card-title-row button { min-height:44px; padding-inline:8px; }
  .devotion-art,.event-art,.worship-art { height:200px; border-radius:12px; }
  .feature-card h3 { font-size:23px; }
  .section-heading { display:block; margin-bottom:24px; }
  .section-heading h2 { font-size:34px; }
  .section-heading > p { margin-top:12px; font-size:15px; }
  .devotion-grid,.ministry-grid,.church-life-grid { grid-template-columns:1fr; gap:16px; }
  .visit-layout,.connect-grid,.prayer-inner,.prayer-hero-row { grid-template-columns:1fr; gap:24px; }
  .visit-info h2,.prayer-copy h2 { font-size:34px; }
  .visit-facts { grid-template-columns:1fr; }
  .visit-actions { display:grid; grid-template-columns:1fr; }
  .visit-actions .btn,.visit-secondary { width:100%; justify-content:center; }
  .prayer,.prayer-hub { min-height:0; }
  .prayer-hub-shell,.prayer-inner { width:min(calc(100% - 36px),560px); padding:48px 0; }
  .prayer-copy p { font-size:15px; line-height:1.65; }
  .prayer-board-stats { display:flex; gap:8px; flex-wrap:wrap; }
  .prayer-form { padding:20px; border-radius:16px; }
  .prayer-form-grid,.prayer-choice { grid-template-columns:1fr; }
  .prayer-form input,.prayer-form textarea,.prayer-form select { min-height:48px; }
  .prayer-form textarea { min-height:126px; }
  #prayer-submit { width:100%; justify-content:center; background:var(--gold); color:#102e42; }
  .prayer-board-section { margin-top:32px; }
  .prayer-board-heading { display:block; }
  .prayer-board-heading h2 { font-size:34px; }
  .prayer-board-filter { width:100%; min-height:48px; margin-top:12px; }
  .prayer-board-frame { margin-top:18px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
  .prayer-board-frame::before { display:none; }
  .prayer-board-grid { display:grid; grid-template-columns:1fr; gap:14px; padding:0; }
  .prayer-note { min-height:0; margin:0; padding:20px; transform:none; border:1px solid var(--line); border-radius:16px; box-shadow:none; }
  .prayer-pin { display:none; }
  .prayer-note blockquote { margin:14px 0; font-family:inherit; font-size:16px; line-height:1.6; }
  .prayer-note-footer { border-top:1px solid var(--line); padding-top:12px; }
  .prayer-action { min-height:44px; }
  .prayer-board-note { font-size:12px; line-height:1.5; }
  .connect { padding:48px 0; }
  footer { padding-bottom:30px; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-bottom { display:grid; gap:12px; }
  .account-backdrop { align-items:stretch; padding:0; }
  .account-modal { width:100%; max-width:none; min-height:100dvh; max-height:100dvh; border-radius:0; margin:0; }
  .account-shell { padding:30px 20px; }
  .account-close { width:44px; height:44px; }
  .mobile-account-brand { display:flex; flex-direction:column; align-items:center; margin:0 0 24px; text-align:center; }
  .mobile-account-brand img { width:64px; height:64px; object-fit:contain; }
  .mobile-account-brand strong { margin-top:9px; font-size:15px; }
  .account-auth-view > .account-kicker,.account-auth-view > h2,.account-auth-view > .account-copy { text-align:center; }
  .account-form input { min-height:48px; }
  .account-form .btn { width:100%; justify-content:center; }
  .account-actions { display:flex; gap:12px; flex-wrap:wrap; }
  .ciy-mobile-nav { position:fixed; z-index:95; left:0; right:0; bottom:0; display:grid; grid-template-columns:repeat(5,1fr); align-items:center; min-height:calc(68px + env(safe-area-inset-bottom)); padding:6px 8px calc(6px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--header); }
  .ciy-mobile-nav button { display:flex; min-width:0; min-height:50px; flex-direction:column; align-items:center; justify-content:center; gap:4px; border:0; background:transparent; color:var(--muted); font-size:11px; font-weight:600; }
  .ciy-mobile-nav button i { font-size:20px; }
  .ciy-mobile-nav button.is-active { color:var(--accent); }
  .ciy-mobile-nav .ciy-mobile-create { width:48px; height:48px; min-height:48px; margin:auto; border-radius:50%; background:var(--gold); color:#102e42; }
  .ciy-mobile-create span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .ciy-mobile-sheet-backdrop { position:fixed; z-index:97; inset:0; display:block; background:var(--overlay); opacity:0; pointer-events:none; transition:opacity .18s; }
  .ciy-mobile-more-sheet { position:fixed; z-index:98; left:12px; right:12px; bottom:calc(14px + env(safe-area-inset-bottom)); display:block; max-height:calc(100dvh - 40px); overflow:auto; padding:12px; border:1px solid var(--line); border-radius:20px; background:var(--surface); box-shadow:var(--shadow); }
  .ciy-mobile-more-sheet header { display:flex; align-items:center; gap:12px; padding:12px 10px 20px; }
  .ciy-mobile-more-sheet header img { width:40px; height:40px; }
  .ciy-mobile-more-sheet header strong,.ciy-mobile-more-sheet header span { display:block; }
  .ciy-mobile-more-sheet header strong { font-size:14px; }
  .ciy-mobile-more-sheet header span { margin-top:4px; color:var(--muted); font-size:12px; }
  .ciy-mobile-more-sheet button,.ciy-mobile-more-sheet a { display:flex; width:100%; min-height:52px; align-items:center; gap:12px; padding:10px 12px; border:0; border-top:1px solid var(--line); background:transparent; color:var(--ink); font-size:15px; text-align:left; }
  .ciy-mobile-more-sheet [data-mobile-close] { justify-content:flex-end; border:0; min-height:44px; }
  .ciy-mobile-more-sheet i { width:22px; color:var(--accent); font-size:18px; }
  .ciy-mobile-sheet-open .ciy-mobile-sheet-backdrop { opacity:1; pointer-events:auto; }
  .ciy-mobile-more-sheet button:hover,.ciy-mobile-more-sheet a:hover { background:var(--surface-hover); }
  .ciy-mobile-sheet-open .ciy-mobile-more-sheet { animation:sheet-in .2s ease-out; }
  @keyframes sheet-in { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
}

/* theme.css */
/* Runtime token owner for both themes. Light is the first-visit default. */
:root {
  --page:#061c2d; --surface:#0c2639; --surface-hover:#123249;
  --ink:#f4f3ee; --muted:#b7c5ce; --line:#294153; --gold:#e7b961;
  --accent:#e7b961; --link:#c8dfed; --header:#061c2df5;
  --navy:#102e42; --navy-2:#173e58; --soft:var(--surface); --white:var(--surface);
  --shadow:0 18px 48px #0002; --overlay:#02111dbb;
  --scroll-thumb:#637c8b; --scroll-hover:#99adba; --scroll-track:#061c2d;
  --hero-image:url('assets/hero-dark.webp'); --hero-small:url('assets/hero-dark-mobile.webp');
  --display:Georgia,'Times New Roman',serif;
  --m-ink:var(--ink); --m-muted:var(--muted); --m-soft:var(--page); --m-border:var(--line); --m-blue:var(--accent); --m-navy:var(--ink);
  color-scheme:dark;
}
:root[data-theme="light"] {
  --page:#f6f3ed; --surface:#fffdf9; --surface-hover:#eee9df;
  --ink:#09263c; --muted:#50616c; --line:#d9d5cb; --gold:#e7b961;
  --accent:#87601f; --link:#244f68; --header:#f6f3edf5;
  --shadow:0 18px 48px #1a32400b; --overlay:#102b40aa;
  --scroll-thumb:#84929a; --scroll-hover:#526875; --scroll-track:#f6f3ed;
  --hero-image:url('assets/hero-light.webp'); --hero-small:url('assets/hero-light-mobile.webp');
  color-scheme:light;
}
html { scroll-padding-top:100px; scrollbar-gutter:stable; background:var(--page); }
* { scrollbar-color:var(--scroll-thumb) var(--scroll-track); scrollbar-width:thin; }
::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-track { background:var(--scroll-track); }
::-webkit-scrollbar-thumb { background:var(--scroll-thumb); border:2px solid var(--scroll-track); border-radius:8px; }
::-webkit-scrollbar-thumb:hover,::-webkit-scrollbar-thumb:active { background:var(--scroll-hover); }
html[data-theme] body { background:var(--page); color:var(--ink); }
a,button { -webkit-tap-highlight-color:transparent; }
button,a[href],summary { cursor:pointer; touch-action:manipulation; }
button:disabled { cursor:not-allowed; opacity:.6; }
:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }
.skip-link { position:fixed; z-index:4000; top:8px; left:16px; padding:12px 20px; background:var(--surface); color:var(--ink); transform:translateY(-150%); }
.skip-link:focus { transform:none; }
html[data-theme] .site-header { display:flex; height:82px; gap:20px; padding:0 max(28px,calc((100vw - 1320px)/2)); background:var(--header); color:var(--ink); box-shadow:none; border-color:transparent; backdrop-filter:none; }
.site-header .brand { min-width:220px; margin-right:auto; }
html[data-theme] .brand-name,html[data-theme] .brand-name b { color:var(--ink); }
html[data-theme] .brand-name small { color:var(--muted); }
.brand-logo { width:52px; height:52px; flex-basis:52px; }
.brand-name b { font-size:14px; }
.brand-name small { font-size:8px; }
html[data-theme] .nav { display:flex; gap:18px; margin:0 auto; background:none; border:0; box-shadow:none; }
html[data-theme] .nav :is(a, button) { color:var(--ink); font-size:13px; min-height:44px; white-space:nowrap; }
html[data-theme] .nav :is(a, button):hover { color:var(--accent); }
.theme-toggle { display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; gap:7px; min-width:72px; min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:999px; background:transparent; color:var(--ink); font-size:12px; }
.theme-toggle:hover { background:var(--surface-hover); }
.theme-toggle i { font-size:16px; }
html[data-theme] .site-header .account-button { order:4; min-height:44px; padding:8px 4px; max-width:140px; margin:0; border:0; border-radius:0; background:transparent; color:var(--ink); font-size:13px; }
html[data-theme] .site-header .header-cta { order:5; padding:13px 19px; background:var(--gold); color:#102e42; white-space:nowrap; border-radius:10px; }
.site-header .menu-button { order:6; color:var(--ink); min-width:44px; min-height:44px; }
html[data-theme] .hero { min-height:690px; height:calc(88svh - 82px); max-height:950px; align-items:flex-start; background:var(--page); border-radius:0; color:var(--ink); }
html[data-theme] .hero-scene { background:var(--hero-image) center bottom / cover no-repeat; }
html[data-theme] .hero-scene::after { display:none; }
html[data-theme] .hero-content { width:min(1200px,calc(100% - 48px)); padding:70px 0 200px; text-align:center; }
html[data-theme] .hero-kicker { color:var(--muted); font-size:11px; letter-spacing:.25em; margin:0 0 25px; }
html[data-theme] .hero h1 { max-width:1100px; margin:0 auto; color:var(--ink); font:400 clamp(48px,6.25vw,88px)/1.09 var(--display); letter-spacing:-.035em; text-shadow:none; }
html[data-theme] .hero-copy { color:var(--ink); margin:26px auto 32px; font-size:19px; line-height:1.6; max-width:680px; }
.hero-actions { justify-content:center; gap:18px; }
html[data-theme] .btn { border-radius:999px; min-height:48px; padding:14px 24px; font-size:14px; font-weight:650; transition:background-color .18s,transform .18s,border-color .18s; }
html[data-theme] .btn-gold { background:var(--gold); color:#102e42; }
html[data-theme] .btn-ghost { color:var(--ink); background:transparent; border:1px solid var(--muted); }
html[data-theme] .btn-navy { background:var(--gold); color:#102e42; }
.btn:hover:not(:disabled),.header-cta:hover { transform:translateY(-2px); }
.btn:active:not(:disabled),.header-cta:active { transform:translateY(0); }
.hero-scroll { position:absolute; bottom:28px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:14px; padding:12px 20px; font-size:10px; letter-spacing:.22em; text-transform:uppercase; color:var(--ink); }
.hero-scroll i { font-size:22px; }
.faith-intro { padding:56px 0 64px; background:var(--page); border-bottom:1px solid var(--line); }
.faith-intro h2 { font:400 clamp(32px,3.4vw,48px)/1.15 var(--display); letter-spacing:-.025em; margin:12px 0; }
.faith-intro p:not(.section-label) { color:var(--muted); font-size:16px; line-height:1.65; }
html[data-theme] .text-link { color:var(--link); padding:6px 0; min-height:36px; border-bottom:1px solid var(--accent); font-weight:600; }
.text-link:hover { opacity:.8; }
html[data-theme] .section-label,html[data-theme] .eyebrow,html[data-theme] .account-kicker { color:var(--accent); }
html[data-theme] .values { background:var(--page); border-color:var(--line); }
html[data-theme] .values-grid > div { border-color:var(--line); padding:28px 12px; }
html[data-theme] .value-icon { color:var(--accent); }
html[data-theme] .values small,html[data-theme] .muted { color:var(--muted); }
.section-space { padding:84px 0; }
html[data-theme] .feature-card,html[data-theme] .devotion-card,html[data-theme] .church-life-card,html[data-theme] .visit-info,html[data-theme] .visit-map-card,html[data-theme] .ministry-card { background:var(--surface); border-color:var(--line); color:var(--ink); box-shadow:none; border-radius:16px; }
html[data-theme] .feature-card:hover,html[data-theme] .devotion-card:hover,html[data-theme] .church-life-card:hover { border-color:var(--accent); box-shadow:none; }
html[data-theme] .feature-card h3,html[data-theme] .devotion-card h3,html[data-theme] .church-life-card h3,html[data-theme] .section-heading h2,html[data-theme] .connect h2,html[data-theme] .visit-info h2,html[data-theme] .visit-expect h3 { color:var(--ink); }
.section-heading h2,.visit-info h2,.connect h2,.prayer-copy h2,.prayer-board-heading h2 { font-family:var(--display); font-weight:400; letter-spacing:-.025em; }
html[data-theme] .card-title-row button,html[data-theme] .verse-ref,html[data-theme] .event-label,html[data-theme] .visit-meta,html[data-theme] .devotion-card > span,html[data-theme] .church-life-meta,html[data-theme] .church-life-card p,html[data-theme] .devotion-card p,html[data-theme] .section-heading > p,html[data-theme] .connect p,html[data-theme] .visit-lead,html[data-theme] .visit-expect-list li,html[data-theme] .visit-map-footer p { color:var(--muted); }
html[data-theme] .devotion-card strong,html[data-theme] .church-life-meta strong { color:var(--accent); }
html[data-theme] .devotion-card i,html[data-theme] .archive-link { color:var(--link); }
html[data-theme] .devotion-archive,html[data-theme] .church-life-archive { border-color:var(--line); }
html[data-theme] .visit-section,html[data-theme] .connect,html[data-theme] footer { background:var(--page); border-color:var(--line); color:var(--ink); }
html[data-theme] footer p,html[data-theme] footer a,html[data-theme] footer button,html[data-theme] .footer-bottom { color:var(--muted); }
html[data-theme] .footer-bottom { border-color:var(--line); }
html[data-theme] .visit-fact,html[data-theme] .visit-secondary,html[data-theme] .visit-map-label { background:var(--surface); border-color:var(--line); color:var(--ink); }
html[data-theme] .visit-fact strong,html[data-theme] .visit-map-label strong { color:var(--ink); }
html[data-theme] .visit-fact span,html[data-theme] .visit-map-label span { color:var(--muted); }
/* Shared surfaces remain themed even when their feature CSS arrives asynchronously. */
html[data-theme] .prayer,html[data-theme] .prayer.prayer-hub { background:var(--page); color:var(--ink); }
html[data-theme] .prayer-visual { display:none; }
html[data-theme] .prayer-copy h2,html[data-theme] .prayer-copy p { color:var(--ink); }
html[data-theme] .prayer-hub .prayer-form,html[data-theme] .prayer-form { background:var(--surface); border-color:var(--line); color:var(--ink); box-shadow:var(--shadow); backdrop-filter:none; }
html[data-theme] .prayer-form label,html[data-theme] .prayer-choice label { color:var(--ink); }
html[data-theme] .prayer-form-title span,html[data-theme] .prayer-choice small,html[data-theme] .form-success,html[data-theme] .prayer-board-heading p { color:var(--muted); }
html[data-theme] .prayer-form input,html[data-theme] .prayer-form textarea,html[data-theme] .prayer-form select,html[data-theme] .prayer-board-filter,html[data-theme] .account-form input { background:var(--page); border-color:var(--line); color:var(--ink); font-size:16px; }
html[data-theme] input::placeholder,html[data-theme] textarea::placeholder { color:var(--muted); opacity:1; }
html[data-theme] .prayer-choice label,html[data-theme] .prayer-stat { background:var(--surface); border-color:var(--line); color:var(--muted); }
html[data-theme] .prayer-choice label:has(input:checked) { border-color:var(--accent); background:var(--surface-hover); }
html[data-theme] .prayer-board-heading h2 { color:var(--ink); }
html[data-theme] .modal,html[data-theme] .account-modal { background:var(--surface); color:var(--ink); border:1px solid var(--line); }
html[data-theme] .modal p,html[data-theme] .account-copy,html[data-theme] .account-hint,html[data-theme] .account-status,html[data-theme] .account-prayer-meta,html[data-theme] .account-prayer-row small,html[data-theme] .account-access-main small,html[data-theme] .account-credentials dt,html[data-theme] .account-credentials > p { color:var(--muted); }
html[data-theme] .modal-close,html[data-theme] .account-close,html[data-theme] .prayer-box,html[data-theme] .account-tabs,html[data-theme] .account-role,html[data-theme] .my-prayers-heading > span,html[data-theme] .account-empty { background:var(--surface-hover); color:var(--ink); }
html[data-theme] .account-modal h2,html[data-theme] .account-modal h3 { color:var(--ink); }
html[data-theme] .account-tabs button.is-active { background:var(--page); color:var(--ink); }
html[data-theme] .account-prayer-row,html[data-theme] .account-access-row { background:var(--page); border-color:var(--line); }
html[data-theme] .account-text-button { color:var(--link); }
html[data-theme] .password-change-panel,html[data-theme] .account-credentials,html[data-theme] .my-prayers,html[data-theme] .admin-panel { border-color:var(--line); }
html[data-theme="dark"] .account-status.is-error,html[data-theme="dark"] .account-empty.is-error { color:#ffb3aa; }
html[data-theme="light"] .account-status.is-error,html[data-theme="light"] .account-empty.is-error { color:#9c2f2f; }
/* Native page-to-page continuity; ordinary links, URLs and in-page scrolling are unchanged.
   Browsers without cross-document View Transitions keep regular navigation. */
@view-transition {
  navigation: auto;
}
/* A matched header avoids making the main navigation rise with every page. */
.site-header,
.seo-header {
  view-transition-name: ciy-header;
}
@keyframes ciy-page-exit {
  to { opacity: 0; }
}
@keyframes ciy-page-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
::view-transition-old(root) {
  animation: 130ms ease-out both ciy-page-exit;
}
::view-transition-new(root) {
  animation: 220ms cubic-bezier(.23,1,.32,1) both ciy-page-enter;
}
::view-transition-group(ciy-header),
::view-transition-old(ciy-header),
::view-transition-new(ciy-header) {
  animation-duration: 180ms;
}

/* Motion changes composited properties only. Content works without this enhancement. */
.section-heading,.feature-card,.visit-info,.connect-grid,.values-grid { transition:opacity .65s ease,transform .65s ease; }
.reveal-ready { opacity:0; transform:translateY(18px); }
@media(prefers-reduced-motion:no-preference) {
   .hero-content { animation:welcome-in .35s cubic-bezier(.2,.65,.3,1) both; }
  @keyframes welcome-in { from { transform:translateY(6px); } to { transform:none; } }
}
@media(max-width:1200px) {
  html[data-theme] .site-header { gap:12px; padding-inline:24px; }
  .site-header .brand { min-width:190px; }
  html[data-theme] .nav { gap:12px; }
  html[data-theme] .nav :is(a, button) { font-size:12px; }
}
@media(max-width:1100px) {
  html[data-theme] .nav { display:none; position:absolute; top:82px; left:0; right:0; padding:18px 24px; background:var(--surface); border-bottom:1px solid var(--line); }
  html[data-theme] .nav.open { display:flex; flex-wrap:wrap; justify-content:center; }
  .site-header .menu-button { display:block; }
  html[data-theme] .site-header .header-cta { display:none; }
}
@media(max-width:768px) {
  html { scroll-padding-top:82px; }
  html[data-theme] .site-header { height:68px; padding:0 16px; gap:10px; }
  .site-header .brand { min-width:0; }
  .brand-logo { width:40px; height:40px; flex-basis:40px; }
  .brand-name b { font-size:12px; }.brand-name small { font-size:7px; }
  html[data-theme] .site-header .account-button { display:none; }
  .theme-toggle { min-width:66px; min-height:44px; font-size:12px; }
  html[data-theme] .nav { top:68px; }
  html[data-theme] .hero { min-height:640px; height:calc(100svh - 140px); max-height:820px; }
  html[data-theme] .hero-scene { background-image:var(--hero-small); background-position:82% bottom; }
  html[data-theme] .hero-content { width:calc(100% - 36px); padding:62px 0 180px; }
  html[data-theme] .hero-kicker { font-size:9px; letter-spacing:.18em; margin-bottom:22px; }
  html[data-theme] .hero h1 { font-size:clamp(37px,10.8vw,64px); line-height:1.12; letter-spacing:-.035em; }
  html[data-theme] .hero-copy { font-size:15px; max-width:320px; margin:24px auto; }
  .hero-actions { flex-direction:column; align-items:center; gap:12px; }
  html[data-theme] .hero-actions .btn { justify-content:center; min-height:48px; width:min(280px,100%); font-size:14px; }
  .hero-scroll { bottom:18px; font-size:9px; gap:8px; }
  .faith-intro { padding:40px 0; }
  .faith-intro p:not(.section-label) { font-size:15px; }
  .desktop-break { display:none; }
  .section-space { padding:48px 0; }
  .ciy-mobile-home { display:none; }
  .values-grid { grid-template-columns:1fr 1fr; }
  html[data-theme] .values-grid > div { padding:22px 8px; justify-content:flex-start; gap:10px; }
  .values-grid b { font-size:12px; }.values-grid small { font-size:11px; }
  .values-grid > div:nth-child(2) { border-right:0; }
  html[data-theme] .prayer-note { background:var(--surface); color:var(--ink); border-color:var(--line); }
  html[data-theme] .prayer-note blockquote { color:var(--ink); }
  html[data-theme] .prayer-note-meta,html[data-theme] .prayer-note-author,html[data-theme] .prayer-count { color:var(--muted); }
  html[data-theme] .prayer-note-footer { border-color:var(--line); }
  html[data-theme] .prayer-action { background:var(--surface-hover); color:var(--ink); }
  html[data-theme] .mobile-account-brand strong { color:var(--ink); }
}
@media(max-width:360px) { .brand-name small { display:none; }.brand-name b { font-size:10px; }.theme-toggle { min-width:60px; } }
@media(prefers-reduced-motion:reduce) {
  /* Opt out entirely: no navigation snapshot or root crossfade for reduced motion. */
  @view-transition { navigation: none; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation:none!important; }
  html { scroll-behavior:auto!important; }
  *,*::before,*::after { animation:none!important; transition:none!important; }
  .reveal-ready { opacity:1; transform:none; }
}
@media(forced-colors:active) {
  * { scrollbar-color:auto; }
  .hero-scene { display:none; }
  button,a { forced-color-adjust:auto; }
}
/* Crawlable About, Visit and devotion pages use the same theme preference. */
html[data-theme] { --seo-ink:var(--ink); --seo-muted:var(--muted); --seo-line:var(--line); --seo-white:var(--surface); --seo-soft:var(--surface-hover); }
html[data-theme] .seo-header { background:var(--header); border-color:var(--line); }
html[data-theme] .seo-brand strong,html[data-theme] .seo-nav a { color:var(--ink); }
html[data-theme] .seo-brand small,html[data-theme] .seo-breadcrumbs,html[data-theme] .seo-facts dt,html[data-theme] .seo-list li,html[data-theme] .seo-lead { color:var(--muted); }
html[data-theme] .seo-values article,html[data-theme] .seo-panel,html[data-theme] .seo-card,html[data-theme] .seo-article-header,html[data-theme] .seo-prayer,html[data-theme] .seo-hero,html[data-theme] .seo-cta-band { background:var(--surface); border-color:var(--line); color:var(--ink); box-shadow:none; }
html[data-theme] .seo-hero::after { display:none; }
html[data-theme] .seo-eyebrow,html[data-theme] .seo-scripture-ref { color:var(--accent); }
html[data-theme] .seo-card-ref { color:var(--accent)!important; }
html[data-theme] .seo-text-link,html[data-theme] .seo-breadcrumbs a,html[data-theme] .seo-article-nav a { color:var(--link); }
html[data-theme] .seo-button-secondary { background:var(--surface); color:var(--ink); border-color:var(--line); }
html[data-theme] .seo-facts div,html[data-theme] .seo-list li { border-color:var(--line); }
.seo-header .theme-toggle { font-family:inherit; }
.seo-hero h1,.seo-article-header h1,.seo-cta-inner h2 { font-family:var(--display); font-weight:400; }
@media(max-width:760px) {
  .seo-header-inner { flex-wrap:wrap; gap:10px; padding:10px 0; }
  .seo-brand { flex:1; }
  .seo-nav { order:3; width:100%; justify-content:center; }
  .seo-nav a { padding:10px 6px; }
  .seo-header .theme-toggle { margin-left:auto; }
}
/* Preserve the existing Prayer Hour schedule surface in both themes. */
html[data-theme] .ciy-live-event { background:var(--surface); color:var(--ink); border-color:var(--line); }
html[data-theme] .ciy-live-event__copy strong { color:var(--ink); }
html[data-theme] .ciy-live-event__copy span,html[data-theme] .ciy-live-event__meta { color:var(--muted); }
html[data-theme] .ciy-live-event__status { background:var(--surface-hover); color:var(--accent); }
@media(max-width:768px) {
  .ciy-mobile-home { display:block; width:min(calc(100% - 36px),560px); margin:0 auto; padding:24px 0 0; }
  .ciy-mobile-welcome,.ciy-mobile-actions { display:none; }
  .ciy-next-service { display:flex; align-items:center; gap:12px; width:100%; min-height:76px; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink); text-align:left; }
  .ciy-next-service > i { color:var(--accent); font-size:24px; }
  .ciy-next-service small,.ciy-next-service strong { display:block; }
  .ciy-next-service small { margin-bottom:4px; color:var(--muted); font-size:11px; }
  .ciy-next-service strong { font-size:15px; }
  .ciy-next-service > span { margin-left:auto; color:var(--muted); font-size:11px; }
}

/* homepage-prayer.css */
/* Homepage composition. Shared colors and typography come from theme.css. */
html[data-theme] .hero { height:auto; min-height:530px; max-height:none; }
html[data-theme="dark"] .hero-scene { background-image:url('assets/home-prayer-dark.webp'); }
html[data-theme] .hero-content {
  display:grid; grid-template-columns:minmax(0, 1.65fr) minmax(340px, 1fr);
  align-items:center; gap:56px; width:min(1240px, calc(100% - 80px));
  padding:40px 0 48px; text-align:left;
}
.hero-welcome { min-width:0; padding:16px 0 52px; }
html[data-theme] .hero h1 { margin:0; max-width:760px; font-size:clamp(44px, 5.05vw, 72px); line-height:1.12; }
html[data-theme] .hero-copy { margin:24px 0; max-width:620px; font-size:18px; }
.hero .hero-actions { justify-content:flex-start; align-items:flex-start; }
.hero-visit-link { display:inline-flex; align-items:center; gap:16px; min-height:48px; color:var(--accent); font-weight:700; }
.hero-visit-link:hover { text-decoration:underline; text-underline-offset:5px; }
.home-prayer-panel { min-width:0; padding:36px; border:1px solid var(--line); border-top:2px solid var(--gold); border-radius:14px; background:var(--page); color:var(--ink); }
.home-prayer-panel .section-label { margin:0 0 18px; font-size:11px; letter-spacing:.18em; }
.home-prayer-panel h2 { margin:0; font:400 clamp(28px, 2.65vw, 38px)/1.15 var(--display); letter-spacing:-.035em; }
.home-prayer-description { margin:18px 0 28px; color:var(--muted); font-size:16px; line-height:1.6; }
.home-prayer-actions { display:grid; gap:12px; }
html[data-theme] .home-prayer-actions .btn { display:flex; justify-content:center; gap:12px; width:100%; min-height:50px; border-radius:20px; font-size:15px; text-align:center; }
.home-prayer-reassurance { margin:30px 0 0; padding-top:24px; border-top:1px solid var(--line); font-size:14px; text-align:center; color:var(--muted); }
.home-prayer-hour { min-height:78px; border-block:1px solid var(--line); background:var(--page); }
.home-prayer-hour-fallback { padding-block:24px; margin-block:0; color:var(--muted); font-size:14px; }
.home-prayer-hour:has(.ciy-live-event) .home-prayer-hour-fallback { display:none; }
html[data-theme] .home-prayer-hour .ciy-live-event {
  position:static; display:grid; grid-template-columns:auto minmax(0,1fr) auto auto;
  width:min(1240px, calc(100% - 80px)); min-height:78px; margin:0 auto;
  padding:16px 0; gap:18px; border:0; border-radius:0; background:transparent;
  box-shadow:none; backdrop-filter:none; transform:none; opacity:1; pointer-events:auto;
}
.home-prayer-hour .ciy-live-event__copy strong { font-size:16px; }
.home-prayer-hour .ciy-live-event__copy span { font-size:13px; }
.home-prayer-hour .ciy-live-event__meta { font-size:12px; }
.home-prayer-hour .ciy-live-event__action { min-height:44px; }
html[data-theme="light"] .home-prayer-hour .ciy-live-event__status { color:var(--ink); background:#e2e8e9; }
#prayer-form, #prayer-board-title { scroll-margin-block:16px; }
@media(max-width:1000px) and (min-width:769px) {
  html[data-theme] .hero-content { gap:28px; grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr); width:calc(100% - 48px); }
  html[data-theme] .hero h1 { font-size:46px; }
  .home-prayer-panel { padding:26px; }
}
@media(max-width:768px) {
  html[data-theme] .hero { min-height:0; }
  html[data-theme] .hero-scene { right:0; bottom:auto; height:360px; background-position:center bottom; }
  html[data-theme] .hero-content { display:flex; flex-direction:column; gap:28px; width:min(560px, calc(100% - 40px)); padding:28px 0 24px; }
  .hero-welcome { width:100%; padding:0; }
  html[data-theme] .hero-kicker { margin-bottom:16px; font-size:9px; }
  html[data-theme] .hero h1 { max-width:none; font-size:clamp(30px, 8.4vw, 46px); line-height:1.12; }
  html[data-theme] .hero-copy { max-width:360px; margin:18px 0 12px; font-size:15px; line-height:1.55; }
  .hero-visit-link { font-size:15px; min-height:44px; }
  .home-prayer-panel { width:100%; padding:16px 18px; border-radius:12px; }
  .home-prayer-panel .section-label { margin-bottom:8px; font-size:10px; letter-spacing:.17em; }
  .home-prayer-panel h2 { font-size:clamp(26px, 7vw, 34px); }
  .home-prayer-description { margin:8px 0 14px; font-size:15px; line-height:1.4; }
  .home-prayer-actions { gap:8px; }
  html[data-theme] .home-prayer-actions .btn { min-height:48px; padding:12px 16px; border-radius:18px; }
  .home-prayer-reassurance { display:none; }
  html[data-theme] .home-prayer-hour .ciy-live-event { width:calc(100% - 40px); grid-template-columns:auto minmax(0,1fr); gap:6px 12px; min-height:78px; }
  .home-prayer-hour .ciy-live-event__meta { display:none; }
  .home-prayer-hour .ciy-live-event__copy span { font-size:11px; line-height:1.5; }
  .home-prayer-hour .ciy-live-event__action { grid-column:1 / -1; }
  .ciy-mobile-nav { min-height:calc(76px + env(safe-area-inset-bottom)); }
  .ciy-mobile-nav .ciy-mobile-create { width:100%; height:auto; min-height:62px; background:transparent; border-radius:0; gap:3px; }
  .ciy-mobile-nav .ciy-mobile-create i { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:var(--gold); color:var(--navy); }
  .ciy-mobile-nav .ciy-mobile-create span { position:static; width:auto; height:auto; clip-path:none; color:var(--muted); }
  .ciy-mobile-nav button:hover { color:var(--accent); }
  .ciy-mobile-nav button:active { opacity:.75; }
  body.ciy-mobile-ready .site-header .menu-button { display:block!important; }
  .site-header .theme-toggle { min-width:44px; width:44px; }
  .site-header .theme-toggle > span { display:none; }
}

/* church-family.css */
/* Subtle, low-contrast ministry imagery. Kept separate so the base card layout remains unchanged. */
.ministry-card {
  isolation: isolate;
  background-color: #101a20;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(160, 181, 193, .18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
}

/* Keep imagery atmospheric, but visible enough to read as an image. */
.ministry-card::before {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(5, 18, 27, .18) 0%,
    rgba(5, 18, 27, .38) 48%,
    rgba(3, 16, 24, .86) 100%
  );
}

.ministry-card > * { z-index: 2; }
.ministry-card:nth-child(1) { background-image: url('assets/ministry-youth.svg'); }
.ministry-card:nth-child(2) { background-image: url('assets/ministry-worship.svg'); }
.ministry-card:nth-child(3) { background-image: url('assets/ministry-fellowship.svg'); }
.ministry-card:nth-child(4) { background-image: url('assets/ministry-outreach.svg'); }
.ministry-card:nth-child(5) { background-image: url('assets/ministry-social-values.svg'); }
.ministry-card:nth-child(6) { background-image: url('assets/ministry-cell-group.svg'); }

/* The image remains secondary to the copy. */
.ministry-card h3 {
  text-shadow: 0 2px 12px rgba(0,0,0,.58);
}

.ministry-card p {
  color: rgba(240, 245, 248, .91);
  text-shadow: 0 1px 10px rgba(0,0,0,.52);
}

@media (prefers-reduced-transparency: reduce) {
  .ministry-card::before { background: rgba(5, 18, 27, .80); }
}

/* Shared congregation-photo treatment for the homepage and About page. */
.church-family {
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line);
}
.church-family-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.church-family-photo {
  min-width: 0;
  margin: 0;
}
.church-family-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  /* Modest display correction retains the original people and composition. */
  filter: brightness(1.09) contrast(1.02) saturate(1.04);
}
.church-family-copy { min-width: 0; }
.church-family-copy h2 {
  margin: 12px 0 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.15;
}
.church-family-copy > p:not(.section-label) {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.church-family-copy .btn { min-height: 48px; }
.church-family-photo-about { margin-top: 32px; }
.church-family-photo figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .church-family-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .church-family-photo img { border-radius: 12px; }
  .church-family-copy .btn { width: 100%; }
}
