/* ==========================================================================
   CFFCC Network — Shared Stylesheet
   Christ Faith Fellowship International (all churches)
   --------------------------------------------------------------------------
   Layout concept: a calm cream page with navy "anchor" bands (header, heroes,
   footer) and gold used sparingly for calls to action and highlights.
   Mobile-first: base styles target phones, media queries scale up.

   Contents
   1.  Design tokens
   2.  Reset & base
   3.  Layout helpers
   4.  Buttons, pills, badges
   5.  Service countdown bar
   6.  Header & navigation
   7.  Hero & page banners
   8.  Section headings
   9.  Cards: pillars, steps, beliefs
   10. Facebook feed card
   11. Church network components
   12. About: mission, journey
   13. Sermons: filter bar & cards
   14. Church cards & announcements
   15. Contact: info, FAQ, map, form
   16. Footer
   17. Messenger floating button
   18. Utilities & motion
   19. Hero background video
   20. Interactive color & motion
   21. Color / theme panel
   23. Sign-in
   24. Next steps & ministries
   25. Events
   26. Admin dashboard
   27. Prayer requests
   ========================================================================== */

/* 1. Design tokens -------------------------------------------------------- */
/* Registered so church/theme color changes animate smoothly (modern browsers). */
@property --navy { syntax: "<color>"; inherits: true; initial-value: #0F2C59; }
@property --gold { syntax: "<color>"; inherits: true; initial-value: #D4AF37; }
@property --spot { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

:root {
  /* Brand palette */
  --navy: #0F2C59;          /* Primary brand */
  --navy-deep: color-mix(in srgb, var(--navy) 66%, #000);   /* Footer / hover depth */
  --navy-ink: color-mix(in srgb, var(--navy) 38%, #000);    /* Darkest overlay tone */
  --navy-soft: color-mix(in srgb, var(--navy) 11%, #fff);   /* Tinted surface */
  --gold: #D4AF37;          /* Accent: changes per church / visitor choice (see "Accent colors") */
  --cream: color-mix(in srgb, var(--navy) 5%, #F8F9FA);     /* Page background (tinted by church color) */
  --ink: #1E293B;           /* Body text */
  --muted: #52607A;         /* Secondary text */
  --white: #FFFFFF;         /* Cards / containers */
  --line: color-mix(in srgb, var(--navy) 12%, #E9ECF1);     /* Hairlines */
  --heading: var(--navy);   /* Headings & strong text */
  --on-dark: #FFFFFF;       /* Text on navy bands */
  --surface-2: color-mix(in srgb, var(--navy) 3%, #fff);   /* Subtle hover surface */
  --input-line: #CBD3DF;

  /* Accent derivatives: follow --gold automatically */
  --gold-deep: color-mix(in srgb, var(--gold) 62%, #000);   /* accent text on light surfaces */
  --gold-soft: color-mix(in srgb, var(--gold) 18%, var(--white));
  --gold-ink: color-mix(in srgb, var(--gold) 38%, #1A1405);  /* text on --gold-soft */

  /* Status */
  --err: #B42318;
  --ok-bg: #E8F5EE; --ok-ink: #135C36; --ok-line: #A9D8BD;
  --err-bg: #FDECEA; --err-ink: #8A1C12; --err-line: #F4B9B2;

  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230F2C59'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");

  /* Typography */
  /* Montserrat throughout, as on lakepointe.church: light uppercase headings, clean body text */
  --font-display: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.9375rem;   /* 15px */
  --fs-base: 1rem;      /* 16px */
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);

  /* Spacing & shape */
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--navy) 6%, transparent), 0 2px 8px color-mix(in srgb, var(--navy) 5%, transparent);
  --shadow: 0 10px 30px -12px color-mix(in srgb, var(--navy) 28%, transparent);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
  transition: --gold .8s var(--ease), --navy .8s var(--ease);
}

/* Dark theme: visitor picks "Dark", or picks "Auto" with a dark device setting */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy-soft: color-mix(in srgb, var(--navy) 50%, #0B0F18); --cream: color-mix(in srgb, var(--navy) 28%, #05070C);
    --ink: #DCE4F0; --muted: #9AA9C2; --white: color-mix(in srgb, var(--navy) 38%, #0B0F18);
    --line: color-mix(in srgb, var(--navy) 45%, #1B2130); --heading: #F2F5FA;
    --surface-2: color-mix(in srgb, var(--navy) 45%, #0E131D); --input-line: color-mix(in srgb, var(--navy) 40%, #3A4458);
    --gold-deep: color-mix(in srgb, var(--gold) 82%, #fff);
    --gold-soft: color-mix(in srgb, var(--gold) 16%, var(--white));
    --gold-ink: color-mix(in srgb, var(--gold) 55%, #fff);
    --ok-bg: #0F2E22; --ok-ink: #9FE3BF; --ok-line: #1F5C42;
    --err: #F2877B; --err-bg: #3A1513; --err-ink: #F8B4AC; --err-line: #6B2621;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.6);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23C8D3E6'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy-soft: color-mix(in srgb, var(--navy) 50%, #0B0F18); --cream: color-mix(in srgb, var(--navy) 28%, #05070C);
  --ink: #DCE4F0; --muted: #9AA9C2; --white: color-mix(in srgb, var(--navy) 38%, #0B0F18);
  --line: color-mix(in srgb, var(--navy) 45%, #1B2130); --heading: #F2F5FA;
  --surface-2: color-mix(in srgb, var(--navy) 45%, #0E131D); --input-line: color-mix(in srgb, var(--navy) 40%, #3A4458);
  --gold-deep: color-mix(in srgb, var(--gold) 82%, #fff);
  --gold-soft: color-mix(in srgb, var(--gold) 16%, var(--white));
  --gold-ink: color-mix(in srgb, var(--gold) 55%, #fff);
  --ok-bg: #0F2E22; --ok-ink: #9FE3BF; --ok-line: #1F5C42;
  --err: #F2877B; --err-bg: #3A1513; --err-ink: #F8B4AC; --err-line: #6B2621;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.6);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23C8D3E6'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* Church color themes (set on <html data-accent="...">).
   Each church changes BOTH the main color (--navy: header, hero, footer, headings,
   page tint) and the accent (--gold: buttons, highlights). Edit the hex values here. */
:root[data-accent="general"] { --navy: #0F2C59; --gold: #D4AF37; }  /* CFFCC Navy & Gold */
:root[data-accent="bangkok"] { --navy: #3B1A5A; --gold: #F59E42; }  /* Bangkok Royal Plum & Orange (main church) */
:root[data-accent="huahin"]  { --navy: #0B4A5C; --gold: #F2C14E; }  /* Hua Hin Ocean & Sand */
:root[data-accent="church3"]  { --navy: #1B4D3E; --gold: #F08A6C; }  /* Forest & Coral */
:root[data-accent="church4"]  { --navy: #5C1A2E; --gold: #E8A87C; }  /* Burgundy & Rose Gold */
:root[data-accent="sky"] { --navy: #1E3A8A; --gold: #FACC15; }
:root[data-accent="emerald"] { --navy: #064E3B; --gold: #6EE7B7; }
:root[data-accent="lavender"] { --navy: #4B3F72; --gold: #F4A7C9; }
:root[data-accent="rose"] { --navy: #7A1F4A; --gold: #FDBA8C; }
:root[data-accent="sunset"] { --navy: #7A2E12; --gold: #F7B538; }
:root[data-accent="olive"] { --navy: #3F4A1E; --gold: #E9C46A; }
:root[data-accent="charcoal"] { --navy: #2B2D42; --gold: #F25C54; }
:root[data-accent="midnight"] { --navy: #0B1F3A; --gold: #4FD1C5; }
:root[data-accent="coffee"] { --navy: #4A2C1D; --gold: #F2A541; }
:root[data-accent="teal"] { --navy: #115E67; --gold: #E9E46A; }

/* 2. Reset & base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--cream);
  transition: background-color .4s var(--ease), color .4s var(--ease);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--heading);
  text-wrap: balance;
  letter-spacing: 0;
}
/* Lake Pointe-style headings: light, uppercase, airy */
h1, h2 { font-weight: 300; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.12; }
h1 strong, h2 strong, h1 em, h2 em { font-style: normal; font-weight: 700; }
.pillar h3, .step h3, .next-card h3, .belief h3, .mission-card h2, .church-card h3 { text-transform: uppercase; letter-spacing: 0.02em; font-weight: 600; }
.mission-card h2, .theme-panel h2, .signin-dialog h2, .admin-h2, .admin-event-form h2, .event-month { font-weight: 600; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--heading); text-underline-offset: 3px; }
a:hover { color: var(--link-hover, var(--navy-deep)); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-soft); color: var(--navy-deep); }

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* 3. Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-navy { background: var(--navy); color: #DCE4F2; }
.section-navy h2, .section-navy h3 { color: var(--on-dark); }

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: 1fr;
}
.grid > * { min-width: 0; }

@media (min-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.stack { display: flex; flex-direction: column; gap: 1rem; }

/* 4. Buttons, pills, badges ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 var(--fs-sm)/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--gold) 80%, transparent); }
.btn-gold:hover { background: color-mix(in srgb, var(--gold) 82%, #fff); color: var(--navy-deep); }

.btn-navy { background: var(--navy); color: var(--on-dark); }
.btn-navy:hover { background: var(--navy-deep); color: var(--on-dark); }

.btn-outline { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--on-dark); }

.btn-ghost-light { border-color: rgba(255, 255, 255, 0.55); color: var(--on-dark); background: transparent; }
.btn-ghost-light:hover { background: var(--white); color: var(--heading); border-color: var(--on-dark); }

.btn-sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  color: var(--on-dark);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.hero-content .pill { align-self: flex-start; }
.pill .divider { width: 1px; height: 1em; background: rgba(255, 255, 255, 0.35); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
}
.badge-navy { background: var(--navy-soft); color: var(--heading); }
.badge-dot::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.section-navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }

/* 5. Service countdown bar ------------------------------------------------ */
.service-bar {
  background: var(--gold);
  color: var(--navy-deep);
  font-size: var(--fs-sm);
}
.service-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  padding-block: 0.55rem;
  text-align: center;
}
.service-bar strong { font-weight: 700; }
.countdown {
  display: inline-flex;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.countdown-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--navy-deep) 10%, transparent);
  font-weight: 700;
}
.countdown-unit small { font-size: 0.72em; font-weight: 600; opacity: 0.75; }
.service-bar a { color: var(--navy-deep); font-weight: 700; }
.service-bar.is-live .countdown { display: none; }

/* 6. Header & navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: color-mix(in srgb, var(--navy) 97%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.45); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--on-dark);
  text-decoration: none;
  line-height: 1.1;
}
.brand:hover { color: var(--on-dark); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy-deep);
  flex: none;
}
.brand-mark svg { width: 18px; height: 22px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: 0.04em; }
.brand-sub { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

.nav-toggle {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile: slide-down panel */
.site-nav {
  position: absolute;
  inset: 100% 0 auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 1rem var(--gutter) 1.5rem;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.5);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s;
}
.nav-list { list-style: none; display: flex; flex-direction: column; }
.nav-list a {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #DCE4F2;
  font-weight: 500;
  text-decoration: none;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--gold); }

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav { margin-left: auto; }
  .nav-list { flex-direction: row; gap: 0.25rem; }
  .nav-list a {
    position: relative;
    padding: 0.5rem 0.75rem;
    border: 0;
    font-size: var(--fs-sm);
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0.75rem; right: 0.75rem; bottom: 0.2rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-list a[aria-current="page"] { color: var(--on-dark); }
}

/* 7. Hero & page banners -------------------------------------------------- */
/* Page banners use a photo: media/banner.jpg (replace the file, or upload a
   new one with "Edit this page" as an admin). The church color is laid over it. */
:root { --banner-image: url("media/banner.jpg"); }
.page-hero {
  background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--navy) 80%, transparent) 0%, color-mix(in srgb, var(--navy-deep) 90%, transparent) 100%),
    var(--banner-image) center / cover no-repeat,
    var(--navy-deep) !important;
}
.page-hero::before { display: none; }
.hero, .page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(255, 255, 255, 0.07), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #DCE4F2;
}
/* Subtle light-ray motif behind hero content */
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 200deg at 88% -20%, rgba(255, 255, 255, 0.035) 0deg 4deg, transparent 4deg 12deg);
  pointer-events: none;
}
.hero .container, .page-hero .container { position: relative; }

.hero { padding-block: clamp(4rem, 10vw, 7.5rem) clamp(4rem, 9vw, 6.5rem); }
.hero-content { max-width: 760px; display: flex; flex-direction: column; gap: 1.5rem; }
.hero h1 { color: var(--on-dark); font-size: var(--fs-3xl); font-weight: 300; }
.hero h1 em { display: block; font-style: normal; color: var(--gold); font-weight: 700; }
.hero-lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); max-width: 34em; color: #C9D4E8; }

.page-hero { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.page-hero .container { display: flex; flex-direction: column; gap: 1rem; }
.page-hero h1 { color: var(--on-dark); font-size: var(--fs-2xl); max-width: 20em; }
.page-hero p { max-width: 40em; color: #C9D4E8; font-size: var(--fs-lg); }

.scripture-banner blockquote { margin: 0; display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; }
.scripture-banner blockquote p {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-style: normal;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--on-dark);
}
.scripture-banner cite { font-style: normal; color: var(--gold); font-weight: 600; letter-spacing: 0.05em; }

/* 8. Section headings ----------------------------------------------------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { color: var(--muted); font-size: var(--fs-lg); }
.section-navy .section-head p { color: #C2CDE2; }

.split-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.split-head .section-head { margin-bottom: 0; }

/* 9. Cards ---------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: var(--fs-xl); }
.card p { color: var(--muted); }

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--navy-soft);
  color: var(--heading);
}
.icon-badge svg { width: 26px; height: 26px; }

.pillar { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar .verse { margin-top: auto; padding-top: 0.75rem; border-top: 1px dashed var(--line); font-size: var(--fs-xs); color: var(--gold-deep); font-weight: 600; letter-spacing: 0.04em; }

/* "What to Expect" — Start Here steps */
.steps { list-style: none; }
.step { position: relative; padding-top: 2.4rem; }
.step-num {
  position: absolute;
  top: -1.25rem; left: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 0 0 6px var(--cream);
}
.section-alt .step-num { box-shadow: 0 0 0 6px var(--white); }
.step .time {
  display: inline-flex;
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
  background: var(--navy-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}
.steps-grid { row-gap: 2.75rem; }
.steps-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: #DCE4F2;
}
.steps-cta strong { color: var(--on-dark); font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; }

/* Beliefs */
.belief h3 { font-size: var(--fs-lg); }
.belief .ref { font-size: var(--fs-xs); color: var(--gold-deep); font-weight: 600; letter-spacing: 0.03em; margin-top: auto; }

/* Church strip on home */
.church-strip {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .church-strip { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.church-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; }
.church-chips li {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  color: var(--on-dark);
  font-weight: 500;
  font-size: var(--fs-sm);
}
.church-chips li span { color: var(--gold); font-size: var(--fs-xs); margin-left: 0.35rem; }

/* 10. Facebook feed card -------------------------------------------------- */
.fb-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .fb-card { grid-template-columns: 1fr 1.1fr; } }
.fb-card-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.fb-card-info h2 { font-size: var(--fs-2xl); }
.fb-card-info p { color: var(--muted); }
.fb-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.fb-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink); font-size: var(--fs-sm); }
.fb-list svg { width: 18px; height: 18px; flex: none; margin-top: 0.2rem; color: var(--gold-deep); }

.fb-embed {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 420px;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--navy-soft);
}
/* Facebook Page Plugin iframe (when added) */
.fb-embed iframe { width: 100%; max-width: 500px; min-height: 500px; border: 0; border-radius: var(--radius); background: var(--white); }

.fb-preview {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.fb-preview-head { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.fb-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; flex: none; }
.fb-avatar svg { width: 16px; height: 20px; }
.fb-preview-head strong { display: block; color: var(--heading); line-height: 1.2; }
.fb-preview-head span { font-size: var(--fs-xs); color: var(--muted); }
.fb-post { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; border-bottom: 1px solid var(--line); }
.fb-post:last-of-type { border-bottom: 0; }
.fb-post time { font-size: var(--fs-xs); color: var(--muted); }
.fb-post p { font-size: var(--fs-sm); color: var(--ink); }
.fb-line { display: block; height: 10px; width: 100%; border-radius: 6px; background: var(--line); }
.fb-photo { display: block; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 10px; margin-top: 0.4rem;
  background: linear-gradient(135deg, var(--navy-soft), var(--gold-soft)); }
.fb-preview-foot { margin-top: auto; padding: 1rem 1.1rem; background: var(--surface-2); border-top: 1px solid var(--line); }

/* 11. Church network: picker, tabs, hero panel, spotlight ----------------- */

/* Header church picker ("Choose Church ▾") */
.church-picker { position: relative; margin-left: auto; }
.church-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  max-width: 13rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  font: 600 var(--fs-xs)/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.church-picker-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--gold); }
.church-picker-btn svg { width: 16px; height: 16px; flex: none; }
.church-picker-btn .pin { color: var(--gold); }
.church-picker-btn .chev { transform-origin: 50% 50%; transition: transform .2s var(--ease); }
.church-picker-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.church-picker-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.church-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: min(300px, calc(100vw - 2rem));
  padding: 0.4rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--navy-deep) 45%, transparent);
}
.church-menu-heading { padding: 0.5rem 0.75rem 0.35rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.church-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.15rem 0.75rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 600 var(--fs-sm)/1.3 var(--font-body);
  text-align: left;
  cursor: pointer;
}
.church-option small { grid-column: 1; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.church-option .tick { grid-row: 1 / span 2; grid-column: 2; width: 18px; height: 18px; color: var(--gold-deep); opacity: 0; }
.church-option:hover, .church-option:focus-visible { background: var(--navy-soft); outline: none; }
.church-option[aria-checked="true"] { color: var(--heading); }
.church-option[aria-checked="true"] .tick { opacity: 1; }
.church-option.is-general { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; margin-bottom: 0.25rem; }

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .church-picker-btn { max-width: 9.5rem; padding-inline: 0.65rem; }
  .church-picker-btn .label-long { display: none; }
}
@media (min-width: 1200px) {
  .church-picker { order: 3; margin-left: 0.25rem; }
}


/* Location tab bar */
.church-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.church-tab {
  flex: none;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 600 var(--fs-sm)/1.2 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.church-tab:hover { border-color: var(--heading); color: var(--heading); }
.church-tab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.church-tab[aria-pressed="true"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.45rem; border-radius: 50%; background: var(--gold); vertical-align: 0.1em; }
.section-navy .church-tab, .page-hero .church-tab { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: var(--on-dark); }
.section-navy .church-tab[aria-pressed="true"], .page-hero .church-tab[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.page-hero .church-tab[aria-pressed="true"]::before { background: var(--navy); }

/* Hero with church panel */
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }
.hero-grid > * { min-width: 0; }

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.hero-panel h2 { color: var(--on-dark); font-size: var(--fs-xl); }
.hero-panel .tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.panel-facts { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.panel-facts li { display: flex; gap: 0.7rem; align-items: flex-start; color: #DCE4F2; font-size: var(--fs-sm); }
.panel-facts svg { width: 18px; height: 18px; flex: none; margin-top: 0.15rem; color: var(--gold); }
.panel-facts strong { color: var(--on-dark); font-weight: 600; display: block; }
.panel-update {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  border-left: 3px solid var(--gold);
  color: color-mix(in srgb, var(--gold) 25%, #fff);
  font-size: var(--fs-sm);
}
.panel-update b { color: var(--gold); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 0.15rem; }

.is-switching { animation: church-swap .35s var(--ease); }
@keyframes church-swap { from { opacity: 0.35; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Index: location updates block */
.updates-layout { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: 1fr; margin-top: clamp(1.5rem, 3vw, 2rem); }
@media (min-width: 960px) { .updates-layout { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.updates-layout > * { min-width: 0; }
.vision-card { gap: 1rem; background: var(--navy); border-color: var(--navy); color: #C9D4E8; }
.vision-card h3 { color: var(--on-dark); font-size: var(--fs-xl); }
.vision-card p { color: #C9D4E8; }
.vision-card .eyebrow { color: var(--gold); }
.spotlight .church-details { gap: 0.75rem; }
.spotlight .tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.contact-person { display: flex; align-items: center; gap: 0.85rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.contact-person strong { display: block; color: var(--heading); }
.contact-person span { font-size: var(--fs-sm); color: var(--muted); }
.updates-list { display: flex; flex-direction: column; gap: 0.85rem; }
.updates-list .news-item { background: var(--white); }

/* Church grid cards: selected state */
.church-card.is-selected { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.church-card .selected-flag { display: none; }
.church-card.is-selected .selected-flag { display: inline-flex; }
.card-update { font-size: var(--fs-xs); line-height: 1.5; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--gold-ink); }
.card p.card-update { color: var(--gold-ink); }
.card-update b { font-weight: 700; }
.church-card-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }
.church-card-actions .btn { margin-top: 0; width: 100%; }
.link-btn { padding: 0.35rem 0; border: 0; background: none; color: var(--heading); font: 600 var(--fs-xs)/1.3 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; align-self: center; }
.link-btn:hover { color: var(--gold-deep); }

/* churches.html: detailed sections */
.church-jump { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 50; background: color-mix(in srgb, var(--cream) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.church-jump .container { padding-block: 0.75rem; }
.church-section { padding-block: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 70px); }
.church-section:nth-of-type(even) { background: var(--white); }
.church-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.church-section-head h2 { font-size: var(--fs-2xl); }
.church-section-head .tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.church-section.is-selected .church-section-head h2::after { content: "Your church"; display: inline-block; margin-left: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--gold); color: var(--navy-deep); font: 700 var(--fs-xs)/1.2 var(--font-body); vertical-align: middle; letter-spacing: 0.02em; }
.church-detail-grid { display: grid; gap: clamp(1rem, 3vw, 1.5rem); grid-template-columns: 1fr; }
@media (min-width: 768px) { .church-detail-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .church-detail-grid { grid-template-columns: 1fr 1.15fr 1fr; } }
.church-detail-grid > * { min-width: 0; }
.church-detail-grid .map-frame { aspect-ratio: auto; min-height: 260px; height: 100%; }
.church-detail-grid h3 { font-size: var(--fs-lg); }
.mini-news { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.mini-news li { display: flex; flex-direction: column; gap: 0.2rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.mini-news li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-news time { font-size: var(--fs-xs); font-weight: 700; color: var(--gold-deep); letter-spacing: 0.05em; font-variant-numeric: tabular-nums; }
.mini-news strong { color: var(--heading); font-size: var(--fs-sm); }
.mini-news p { font-size: var(--fs-sm); color: var(--muted); }

/* contact.html: church info card next to the form select */
.church-hint {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy-soft);
  font-size: var(--fs-sm);
  color: var(--ink);
}
.church-hint svg { width: 18px; height: 18px; flex: none; margin-top: 0.15rem; color: var(--heading); }
.church-hint strong { color: var(--heading); }

/* 12. About: mission, journey --------------------------------------------- */
.mission-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .mission-grid { grid-template-columns: 1fr 1fr; } }
.mission-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mission-card h2 { font-size: var(--fs-xl); color: var(--on-dark); }
.mission-card p { color: #C9D4E8; }

.timeline { list-style: none; position: relative; display: flex; flex-direction: column; gap: 2rem; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem; top: 0.4rem; bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(var(--gold), var(--navy-soft));
}
.timeline li { position: relative; display: flex; flex-direction: column; gap: 0.4rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -2rem; top: 0.35rem;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
}
.timeline .when { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.timeline h3 { font-size: var(--fs-lg); }
.timeline p { color: var(--muted); }

.journey-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .journey-layout { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.journey-intro { display: flex; flex-direction: column; gap: 1rem; }
.journey-intro h2 { font-size: var(--fs-2xl); }
.journey-intro p { color: var(--muted); }
.journey-quote {
  margin: 0.5rem 0 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--gold-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--heading);
}
.journey-quote cite { display: block; margin-top: 0.5rem; font-family: var(--font-body); font-style: normal; font-size: var(--fs-xs); font-weight: 700; color: var(--gold-deep); letter-spacing: 0.05em; }

.leaders { margin-top: 0.5rem; }
.leader { flex-direction: row; align-items: center; gap: 1rem; }
.leader-avatar {
  width: 56px; height: 56px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
}
.leader h3 { font-size: var(--fs-base); font-family: var(--font-body); font-weight: 700; }
.leader p { font-size: var(--fs-sm); }

/* 13. Sermons: filter bar & cards ----------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.filter-btn {
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 600 var(--fs-sm)/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter-btn:hover { border-color: var(--heading); color: var(--heading); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.filter-btn .count { margin-left: 0.35rem; font-variant-numeric: tabular-nums; opacity: 0.65; font-weight: 500; }

.filter-status { margin: -1rem 0 1.5rem; font-size: var(--fs-sm); color: var(--muted); }
.filter-empty { padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

[data-filter-item] { transition: opacity .25s var(--ease), transform .25s var(--ease); }
[data-filter-item].is-entering { opacity: 0; transform: translateY(8px); }

.sermon-card { gap: 1rem; }
.sermon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sermon-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.sermon-meta svg { width: 14px; height: 14px; color: var(--gold-deep); }
.sermon-card h3 { font-size: var(--fs-xl); }
.sermon-scripture {
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 6px 6px 0;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--heading);
}
.takeaways-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--heading); }
.takeaways { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.takeaways li {
  position: relative;
  padding-left: 1.6rem;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.takeaways li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 0.7rem; height: 0.7rem;
  border-radius: 3px;
  background: var(--gold);
  transform: rotate(45deg) scale(0.75);
}
.sermon-card .btn { margin-top: auto; align-self: flex-start; }
.card-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; align-items: center; }

/* 14. Locations: church cards & news -------------------------------------- */
.church-card { position: relative; overflow: hidden; padding-top: 0; }
.church-card::before {
  content: "";
  display: block;
  height: 6px;
  margin: 0 calc(-1 * clamp(1.5rem, 3vw, 2rem)) 0.75rem;
  background: var(--navy);
}
.church-card.is-main::before { background: var(--gold); }
.church-card h3 { font-size: var(--fs-lg); }
.church-card .tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }
.church-details { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: var(--fs-sm); }
.church-details li { display: flex; gap: 0.6rem; align-items: flex-start; }
.church-details svg { width: 16px; height: 16px; flex: none; margin-top: 0.25rem; color: var(--heading); }
.church-card .badge { align-self: flex-start; }
.church-card .btn { margin-top: auto; }

.news-list { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .news-list { grid-template-columns: repeat(2, 1fr); } }
.news-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.news-item > div { min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.news-date {
  display: grid;
  place-items: center;
  align-content: center;
  width: 64px; height: 68px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--on-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.news-date .d { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.news-date .m { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 0.25rem; font-weight: 700; }
.news-item .badge { align-self: flex-start; }
.news-item h3 { font-size: var(--fs-base); font-family: var(--font-body); font-weight: 700; }
.news-item p { font-size: var(--fs-sm); color: var(--muted); }

/* 15. Contact: info, FAQ, map, form --------------------------------------- */
.info-band { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .info-band { grid-template-columns: repeat(3, 1fr); } }
.info-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.info-tile .icon-badge { background: var(--gold); color: var(--navy-deep); width: 46px; height: 46px; flex: none; }
.info-tile .icon-badge svg { width: 22px; height: 22px; }
.info-tile strong { display: block; color: var(--on-dark); font-size: var(--fs-lg); font-family: var(--font-display); font-weight: 600; }
.info-tile span { font-size: var(--fs-sm); color: #C2CDE2; }

.faq { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item.is-open { border-color: color-mix(in srgb, var(--gold) 70%, transparent); box-shadow: var(--shadow-sm); }
.faq-item h3 { font-size: inherit; font-family: inherit; font-weight: inherit; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.25rem;
  border: 0;
  background: transparent;
  color: var(--heading);
  font: 600 var(--fs-base)/1.4 var(--font-body);
  text-align: left;
  cursor: pointer;
}
.faq-question:hover { background: var(--surface-2); }
.faq-icon {
  position: relative;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--navy-soft);
  transition: background-color .2s, transform .3s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-question[aria-expanded="true"] .faq-icon { background: var(--gold); transform: rotate(180deg); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

.contact-layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-layout > * { min-width: 0; }

.map-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(color-mix(in srgb, var(--navy) 6%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, color-mix(in srgb, var(--navy) 6%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--navy-soft);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}
.map-pin { width: 48px; height: 48px; color: var(--heading); filter: drop-shadow(0 6px 8px color-mix(in srgb, var(--navy) 30%, transparent)); }
.map-placeholder strong { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--heading); }
.map-placeholder p { font-size: var(--fs-sm); color: var(--muted); max-width: 26rem; }
.map-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; align-items: center; }
.map-meta address { font-style: normal; color: var(--muted); font-size: var(--fs-sm); }

.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-card h2 { font-size: var(--fs-2xl); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-grid .half { grid-column: span 1; } .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--heading); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: 400 var(--fs-base)/1.4 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 18px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--heading);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field-error { font-size: var(--fs-xs); color: var(--err); font-weight: 600; min-height: 0; }
.field-hint { font-size: var(--fs-xs); color: var(--muted); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 0.2rem; accent-color: var(--heading); flex: none; }

.form-status {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}
.form-status.is-success { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-line); }
.form-status.is-info { background: var(--gold-soft); color: var(--gold-ink); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--white)); }
.form-status.is-error { background: var(--err-bg); color: var(--err-ink); border: 1px solid var(--err-line); }
.form-status a { color: inherit; font-weight: 700; }

/* 16. Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #A9B6CE;
  padding-block: clamp(3rem, 6vw, 4.5rem) 6rem;
  font-size: var(--fs-sm);
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-grid h2 { font-size: var(--fs-sm); font-family: var(--font-body); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid a { color: #DCE4F2; text-decoration: none; }
.footer-grid a:hover { color: var(--gold); text-decoration: underline; }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; max-width: 22rem; }
.footer-verse { font-family: var(--font-display); font-style: italic; color: #DCE4F2; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
}

/* 17. Floating "Chat with Us" widget (Messenger) ------------------------------------------- */
.messenger-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 56px;
  padding: 0 1.1rem 0 0.5rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--navy-deep) 60%, transparent);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.messenger-fab:hover { color: var(--on-dark); background: var(--navy-deep); transform: translateY(-3px); box-shadow: 0 18px 34px -10px color-mix(in srgb, var(--navy-deep) 70%, transparent); }
.messenger-fab .fab-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A7CFF, #A033FF 70%, #FF5C87);
}
.messenger-fab .fab-icon svg { width: 22px; height: 22px; }
.messenger-fab .fab-label { white-space: nowrap; }
@media (max-width: 520px) {
  .messenger-fab { height: 52px; padding-right: 1rem; }
  .messenger-fab .fab-icon { width: 40px; height: 40px; }
}

/* 18. Utilities & motion -------------------------------------------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.muted { color: var(--muted); }
.placeholder-note { font-size: var(--fs-xs); color: var(--muted); font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { animation: none; }
  .reveal-ready [data-reveal].is-below { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 18b. Logos ------------------------------------------------------------- */
.brand-logo { width: 40px; height: auto; flex: none; transition: transform .4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
/* "CFFCC" wordmark picks up the orange-to-yellow gradient from the church logos */
.brand-name {
  background: linear-gradient(90deg, #EE9A57, #F3BE66 55%, #F6D66E);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.brand-sub { color: #C9D4E8; letter-spacing: 0.04em; text-transform: none; font-size: 0.72rem; font-weight: 500; }
.fb-avatar img { width: 26px; height: auto; }
.church-logo {
  flex: none;
  max-width: none;
  border-radius: 50%;
  background: #FFFFFF;
  object-fit: contain;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent), 0 6px 16px -8px color-mix(in srgb, var(--navy-deep) 45%, transparent);
  transition: box-shadow .5s var(--ease), transform .4s var(--ease);
}
.card:hover .church-logo, .church-option:hover .church-logo { transform: rotate(-6deg) scale(1.04); }
.option-logo { grid-row: 1 / span 2; box-shadow: 0 0 0 2px var(--line); }
.church-option:has(.option-logo) { grid-template-columns: auto 1fr auto; }
.church-option:has(.option-logo) span { grid-column: 2; }
.church-option:has(.option-logo) small { grid-column: 2; }
.church-option:has(.option-logo) .tick { grid-column: 3; }
.hero-panel-head { align-items: center; justify-content: flex-start; gap: 1rem; }
.logo-head { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.logo-head > div { min-width: 0; }
.church-card .card-top { align-items: flex-start; }
.about-logo { width: 120px; height: auto; margin-bottom: 0.5rem; }
:root[data-theme="dark"] .about-logo { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .about-logo { filter: brightness(0) invert(1); } }

/* 19. Hero background video --------------------------------------------- */
.hero.has-video {
  display: flex;
  align-items: center;
  min-height: min(92vh, 860px);
  padding-block: clamp(5rem, 12vw, 8rem) clamp(5rem, 10vw, 7rem);
  background: var(--navy-deep);
  isolation: isolate;
}
.hero.has-video::before { display: none; }
.hero.has-video > .container { z-index: 2; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video, .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.hero-video { transform: scale(1.04); animation: hero-drift 24s ease-in-out infinite alternate; }
@keyframes hero-drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
/* Navy wash + church-colored glow so text stays readable over any footage */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 520px at 85% 0%, color-mix(in srgb, var(--gold) 34%, transparent), transparent 62%),
    linear-gradient(to top, color-mix(in srgb, var(--navy-ink) 92%, transparent) 0%, transparent 45%),
    linear-gradient(100deg, color-mix(in srgb, var(--navy-deep) 88%, transparent) 0%, color-mix(in srgb, var(--navy-deep) 50%, transparent) 50%, color-mix(in srgb, var(--navy-deep) 24%, transparent) 100%);
  transition: background .7s var(--ease);
}
@media (max-width: 959px) {
  .hero-overlay { background:
    radial-gradient(600px 420px at 90% 0%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 60%),
    linear-gradient(to bottom, color-mix(in srgb, var(--navy-deep) 72%, transparent), color-mix(in srgb, var(--navy-ink) 92%, transparent)); }
}
.hero-controls {
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  top: 1rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}
.video-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: color-mix(in srgb, var(--navy-ink) 45%, transparent);
  color: var(--on-dark);
  font: 600 var(--fs-xs)/1 var(--font-body);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color .2s, border-color .2s;
}
.video-toggle:hover { background: color-mix(in srgb, var(--navy-ink) 70%, transparent); border-color: var(--gold); }
.video-toggle svg { width: 14px; height: 14px; }
.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: block; }
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateX(-50%);
}
.scroll-cue:hover { color: var(--gold); }
.scroll-cue svg { width: 22px; height: 22px; animation: cue-bob 1.8s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (min-width: 768px) { .scroll-cue { display: flex; } }

/* 20. Interactive color & motion ---------------------------------------- */
/* Shimmering accent headline */
.hero h1 em {
  background: linear-gradient(100deg, var(--gold) 0%, color-mix(in srgb, var(--gold) 45%, #fff) 45%, var(--gold) 60%, var(--gold) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }

/* Button sheen + accent glow */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn-gold { box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--gold) 85%, transparent); }
.btn-gold:hover { box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--gold) 95%, transparent); }
.btn-navy:hover, .btn-outline:hover { box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--navy-deep) 60%, transparent), 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }

/* Cards: pointer-following accent spotlight + lift */
.card {
  position: relative;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, -30%), color-mix(in srgb, var(--gold) var(--spot), transparent), transparent 70%),
    var(--white);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), --spot .35s var(--ease), background-color .4s var(--ease);
}
.card:hover { --spot: 16%; border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.pillar:hover, .church-card:hover, .sermon-card:hover, .belief:hover, .step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vision-card { background: radial-gradient(320px circle at var(--mx, 80%) var(--my, 0%), color-mix(in srgb, var(--gold) calc(var(--spot) + 14%), transparent), transparent 70%), var(--navy); }
.icon-badge { transition: background-color .3s var(--ease), color .3s var(--ease), transform .4s var(--ease); }
.card:hover .icon-badge { background: var(--gold); color: var(--navy-deep); transform: rotate(-6deg) scale(1.06); }
.step-num { transition: transform .4s var(--ease); }
.step:hover .step-num { transform: scale(1.12) rotate(-8deg); }
.news-item { transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.news-item:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: var(--shadow-sm); }
.news-date { background: linear-gradient(160deg, var(--navy), color-mix(in srgb, var(--navy) 70%, var(--gold))); }

/* Countdown digits pop when they change */
.countdown-unit span.is-tick { animation: tick-pop .45s var(--ease); }
@keyframes tick-pop { 0% { transform: translateY(-35%); opacity: 0.2; } 100% { transform: none; opacity: 1; } }
.countdown-unit span { display: inline-block; }

/* Scroll reveal: only elements below the fold start hidden, and only once script.js runs */
.reveal-ready [data-reveal].is-below {
  opacity: 0;
  transform: translateY(26px);
}
.reveal-ready [data-reveal] {
  transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), --spot .35s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* 21. Color / theme panel ------------------------------------------------ */
.theme-fab {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
}
.theme-fab-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #D4AF37, #F0A43A, #EF8A6F, #E58BB1, #7AAEF5, #2FB8A6, #D4AF37);
  box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--navy-deep) 55%, transparent);
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.theme-fab-btn:hover { transform: rotate(35deg) scale(1.05); }
.theme-fab-btn span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
}
.theme-fab-btn svg { width: 20px; height: 20px; }
.theme-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: min(300px, calc(100vw - 2rem));
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -18px color-mix(in srgb, var(--navy-deep) 50%, transparent);
  transform-origin: bottom left;
  animation: panel-in .25s var(--ease);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.theme-panel h2 { font-size: var(--fs-lg); }
.theme-panel fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.theme-panel legend { padding: 0; margin-bottom: 0.5rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--navy-soft); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 38px;
  border-radius: 9px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.segmented svg { width: 15px; height: 15px; }
.segmented input:checked + span { background: var(--white); color: var(--heading); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 1px; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.swatch:hover span { transform: scale(1.08); }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--heading); }
.swatch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.swatch.is-church span { width: auto; padding: 0 0.8rem; border-radius: 999px; background: var(--navy-soft); color: var(--heading); font-size: var(--fs-xs); font-weight: 700; box-shadow: inset 0 0 0 2px var(--gold); gap: 0.35rem; display: inline-flex; align-items: center; }
.swatch.is-church span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.theme-note { font-size: var(--fs-xs); color: var(--muted); }

/* Two-tone swatches in the color panel */
.swatch span { background: linear-gradient(135deg, var(--sw) 0 52%, var(--sw2, var(--sw)) 52% 100%); }

/* 23. Sign-in: account button, menu and dialog --------------------------- */
.account { position: relative; flex: none; }
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.3rem 0.85rem 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
  font: 600 var(--fs-xs)/1 var(--font-body);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.account-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold); }
.account-btn svg { width: 18px; height: 18px; }
.account-btn.is-signed-in { padding-left: 0.3rem; }
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font: 700 0.72rem/1 var(--font-body);
  object-fit: cover;
}
img.avatar { max-width: none; }
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: min(280px, calc(100vw - 2rem));
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--navy-deep) 45%, transparent);
}
.account-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.6rem 0.8rem; border-bottom: 1px solid var(--line); margin-bottom: 0.35rem; }
.account-head > div { min-width: 0; }
.account-head strong { display: block; color: var(--heading); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-head span { font-size: var(--fs-xs); color: var(--muted); overflow-wrap: anywhere; }
.account-demo { margin: 0 0.6rem 0.35rem; padding: 0.35rem 0.6rem; border-radius: 8px; background: var(--gold-soft); color: var(--gold-ink); font-size: var(--fs-xs); font-weight: 600; }
.account-menu a, .account-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink);
  font: 500 var(--fs-sm)/1.3 var(--font-body);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.account-menu a:hover, .account-menu button:hover { background: var(--navy-soft); color: var(--heading); }
.account-menu svg { width: 18px; height: 18px; color: var(--gold-deep); flex: none; }
.account-menu [data-admin-link] { color: var(--heading); font-weight: 700; }

@media (max-width: 1599px) { .account-label { display: none; } .account-btn { padding: 0; width: 42px; justify-content: center; } .account-btn.is-signed-in { padding: 0; } }
@media (min-width: 1200px) and (max-width: 1599px) { .brand-sub { display: none; } }
@media (max-width: 380px) { .brand-name { display: none; } .header-inner { gap: 0.6rem; } }
@media (min-width: 1200px) { .lang { order: 4; } .account { order: 5; } }

.signin-dialog {
  width: min(420px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px color-mix(in srgb, var(--navy-ink) 50%, transparent);
  text-align: center;
}
.signin-dialog::backdrop { background: color-mix(in srgb, var(--navy-ink) 70%, transparent); backdrop-filter: blur(4px); }
.signin-dialog[open] { animation: panel-in .25s var(--ease); }
.signin-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: var(--navy-soft); color: var(--heading);
  cursor: pointer;
}
.signin-close svg { width: 18px; height: 18px; }
.signin-logo { width: 56px; height: auto; margin: 0 auto 0.75rem; }
:root[data-theme="dark"] .signin-logo { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .signin-logo { filter: brightness(0) invert(1); } }
.signin-dialog h2 { font-size: var(--fs-xl); margin-bottom: 0.4rem; }
.signin-lead { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 1rem; }
.signin-note { margin-bottom: 0.75rem; font-weight: 600; color: var(--heading); font-size: var(--fs-sm); }
.demo-note { margin-bottom: 1rem; padding: 0.65rem 0.8rem; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--gold-ink); font-size: var(--fs-xs); text-align: left; }
.signin-step { display: flex; flex-direction: column; gap: 0.6rem; text-align: left; }
.signin-step label { font-weight: 600; font-size: var(--fs-sm); color: var(--heading); }
.signin-step input {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: 500 1.1rem/1.2 var(--font-body);
  letter-spacing: 0.04em;
}
.signin-step input:focus { outline: none; border-color: var(--heading); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent); }
.signin-step .link-btn { align-self: center; }
.provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 var(--fs-sm)/1.2 var(--font-body);
  cursor: pointer;
  transition: transform .15s var(--ease), filter .2s, box-shadow .2s;
}
.provider-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: var(--shadow-sm); }
.provider-btn svg { width: 22px; height: 22px; flex: none; }
.provider-btn.is-facebook { background: #1877F2; color: #fff; }
.provider-btn.is-google { background: #fff; color: #1F1F1F; border-color: #DADCE0; }
.provider-btn.is-line { background: #06C755; color: #fff; }
.provider-btn.is-whatsapp { background: #25D366; color: #0B2E17; }
.signin-status { min-height: 1.4em; margin-top: 0.75rem; font-size: var(--fs-sm); font-weight: 600; }
.signin-status.is-error { color: var(--err); }
.signin-status.is-ok { color: var(--ok-ink); }
.signin-status.is-info { color: var(--muted); }
.signin-fine { display: flex; gap: 0.4rem; align-items: flex-start; justify-content: center; margin-top: 0.5rem; font-size: var(--fs-xs); color: var(--muted); text-align: left; }
.signin-fine svg { width: 14px; height: 14px; flex: none; margin-top: 0.15rem; }

/* 24. Next steps & ministries --------------------------------------------- */
.next-card .btn { margin-top: auto; align-self: flex-start; }
.next-card .verse { margin-top: 0; }
.ministry-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ministry-chips li, .ministry-chips a {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
}
.ministry-chips li:has(a) { padding: 0; background: none; }
.ministry-chips a:hover { background: var(--gold); color: var(--navy-deep); }
.ministry-chips .more { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.ministry-chips.small li { background: var(--gold-soft); color: var(--gold-ink); }

/* Connect form extras */
.form-signed { display: flex; gap: 0.6rem; align-items: center; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); background: var(--navy-soft); font-size: var(--fs-sm); color: var(--ink); }
.form-signed:empty { display: none; }
.form-signed svg { width: 18px; height: 18px; flex: none; color: var(--heading); }
.form-signed strong { color: var(--heading); }
.ministry-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.ministry-field legend { padding: 0; margin-bottom: 0.5rem; font-weight: 600; font-size: var(--fs-sm); color: var(--heading); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.5rem; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: border-color .2s, background-color .2s;
}
.choice span::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  border: 2px solid var(--input-line);
  border-radius: 5px;
  background: var(--white) center / 12px no-repeat;
  transition: background-color .2s, border-color .2s;
}
.choice input:checked + span { border-color: var(--heading); background: var(--navy-soft); color: var(--heading); font-weight: 600; }
.choice input:checked + span::before { border-color: var(--heading); background-color: var(--heading); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E"); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.other-input {
  grid-column: 1 / -1;
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: 400 var(--fs-base)/1.4 var(--font-body);
}
.form-info { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--gold-ink); font-size: var(--fs-sm); }
.form-info svg { width: 20px; height: 20px; flex: none; margin-top: 0.1rem; }
.form-grid .form-info, .form-grid .ministry-field { grid-column: 1 / -1; }

/* 25. Events ---------------------------------------------------------------- */
.events-list { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { [data-events-preview].events-list { grid-template-columns: repeat(3, 1fr); } }
.container-events { max-width: 900px; }
.event-month { font-size: var(--fs-lg); margin-top: 1rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--gold); justify-self: start; }
.event-month:first-child { margin-top: 0; }
.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.event-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: var(--shadow); }
.event-body { min-width: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.event-date {
  display: grid;
  place-items: center;
  align-content: center;
  width: 66px;
  height: 78px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--navy), color-mix(in srgb, var(--navy) 70%, var(--gold)));
  color: var(--on-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.event-date .w { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; opacity: 0.85; }
.event-date .d { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; margin: 0.15rem 0; }
.event-date .m { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: var(--gold); }
.event-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.event-cat { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.event-card h3 { font-size: var(--fs-lg); }
.event-meta { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; font-size: var(--fs-sm); color: var(--muted); }
.event-meta li { display: flex; gap: 0.5rem; align-items: flex-start; }
.event-meta svg { width: 15px; height: 15px; flex: none; margin-top: 0.25rem; color: var(--gold-deep); }
.event-card p { font-size: var(--fs-sm); color: var(--ink); }
.event-cal { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.25rem; font-size: var(--fs-xs); font-weight: 700; color: var(--heading); }
.event-cal svg { width: 15px; height: 15px; }

/* 26. Admin dashboard -------------------------------------------------------- */
.page-hero-compact { padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.admin-section { padding-top: clamp(2rem, 4vw, 3rem); }
.admin-banner { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.5rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); background: var(--gold-soft); color: var(--gold-ink); font-size: var(--fs-sm); }
.admin-banner svg { width: 22px; height: 22px; flex: none; }
.admin-gate { max-width: 520px; margin-inline: auto; align-items: center; text-align: center; }
.admin-gate > svg { width: 44px; height: 44px; color: var(--gold-deep); }
.admin-id { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; }
.admin-id code { padding: 0.4rem 0.6rem; border-radius: 6px; background: var(--navy-soft); color: var(--heading); font-size: var(--fs-xs); overflow-wrap: anywhere; user-select: all; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.admin-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--navy-soft); }
.admin-tabs button { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.4rem 1rem; border: 0; border-radius: 9px; background: none; color: var(--ink); font: 600 var(--fs-sm)/1 var(--font-body); cursor: pointer; }
.admin-tabs button[aria-selected="true"] { background: var(--white); color: var(--heading); box-shadow: var(--shadow-sm); }
.tab-count:not(:empty) { min-width: 1.4rem; padding: 0.15rem 0.4rem; border-radius: 999px; background: var(--err); color: #fff; font-size: 0.72rem; text-align: center; }
.admin-flash { margin-bottom: 1rem; padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 600; }
.admin-flash.is-ok { background: var(--ok-bg); color: var(--ok-ink); }
.admin-flash.is-error { background: var(--err-bg); color: var(--err-ink); }
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); }
.stat .n { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; line-height: 1; }
.stat .l { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.stat.is-new { border-top-color: var(--err); }
.stat.is-prayer { border-top-color: #7C5CC4; }
.stat.is-ministry { border-top-color: var(--gold); }
.admin-filters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; align-items: end; margin-bottom: 0.75rem; }
@media (min-width: 900px) { .admin-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr) auto; } }
.admin-filters .field span { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.admin-filters select, .admin-filters input { min-height: 42px; padding: 0.5rem 0.75rem; font-size: var(--fs-sm); }
.admin-search { grid-column: 1 / -1; }
@media (min-width: 900px) { .admin-search { grid-column: auto; } }
.admin-filters .btn { grid-column: 1 / -1; }
@media (min-width: 900px) { .admin-filters .btn { grid-column: auto; } }
.admin-list { display: flex; flex-direction: column; gap: 0.85rem; }
.inbox-item { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--err); border-radius: var(--radius); }
.inbox-item.is-in_progress { border-left-color: var(--gold); }
.inbox-item.is-done { border-left-color: var(--line); opacity: 0.8; }
.inbox-head { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: center; font-size: var(--fs-xs); color: var(--muted); }
.inbox-head time { margin-left: auto; font-variant-numeric: tabular-nums; }
.inbox-church { font-weight: 600; }
.type-pill { padding: 0.25rem 0.6rem; border-radius: 999px; font-weight: 700; font-size: var(--fs-xs); background: var(--navy-soft); color: var(--heading); }
.type-pill.tone-prayer { background: #EDE7FA; color: #4B2C8F; }
.type-pill.tone-baptism { background: #E3F3FB; color: #0B5A7A; }
.type-pill.tone-ministry { background: var(--gold-soft); color: var(--gold-ink); }
.type-pill.tone-disc { background: #E6F4EA; color: #1E6B3A; }
.type-pill.tone-visit { background: #FDEBDD; color: #8A3E0B; }
.private-pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--err-bg); color: var(--err-ink); font-weight: 700; }
.private-pill svg { width: 13px; height: 13px; }
.inbox-item h3 { font-size: var(--fs-lg); font-family: var(--font-body); font-weight: 700; }
.inbox-contact { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; font-size: var(--fs-sm); color: var(--ink); }
.inbox-contact a { font-weight: 700; color: var(--heading); }
.inbox-message { white-space: pre-wrap; font-size: var(--fs-sm); color: var(--ink); padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.inbox-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding-top: 0.25rem; }
.inbox-actions select, .inbox-actions input { min-height: 40px; padding: 0.4rem 0.7rem; border: 1px solid var(--input-line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: 500 var(--fs-sm)/1.2 var(--font-body); }
.inbox-actions select { appearance: none; padding-right: 2.2rem; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 0.6rem center; background-size: 16px; }
.note-field { flex: 1 1 14rem; min-width: 0; }
.note-field input { width: 100%; }
.link-btn.danger, .confirm-del { color: var(--err); }
.confirm-del { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: var(--fs-sm); font-weight: 600; }
.btn-danger { background: var(--err); color: #fff; }
.admin-events { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .admin-events { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.admin-event-form h2, .admin-h2 { font-size: var(--fs-xl); }
.admin-h2 { margin-bottom: 1rem; }
.ev-times { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ev-times > div { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.admin-event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.8rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-event .event-date { width: 56px; height: 64px; }
.admin-event .event-date .d { font-size: 1.4rem; }
.admin-event strong { display: block; color: var(--heading); }
.admin-event span { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 520px) { .admin-event { grid-template-columns: auto minmax(0, 1fr); } .admin-event > :last-child { grid-column: 1 / -1; justify-self: end; } }

/* 27. Prayer requests ---------------------------------------------------- */
.prayer-band { background: var(--navy-soft); border-block: 1px solid var(--line); }
.prayer-band-inner { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center; padding-block: clamp(1.75rem, 4vw, 2.5rem); }
@media (min-width: 768px) { .prayer-band-inner { grid-template-columns: auto 1fr auto; gap: 1.5rem; } }
.prayer-band-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: var(--gold); }
.prayer-band-icon svg { width: 28px; height: 28px; }
.prayer-band h2 { font-size: var(--fs-xl); margin-bottom: 0.25rem; }
.prayer-band p { color: var(--muted); }
.prayer-band .btn { justify-self: start; }
.scripture-banner .prayer-verse { margin-top: 0.5rem; padding-left: 1.1rem; border-left: 3px solid var(--gold); }
.scripture-banner .prayer-verse p { font-size: var(--fs-lg); text-transform: none; font-style: italic; letter-spacing: 0; }
.page-hero h1 strong { color: var(--gold); }
.prayer-steps { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.prayer-steps li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.prayer-steps strong { display: block; color: var(--heading); margin-bottom: 0.2rem; }
.prayer-steps p { color: var(--muted); font-size: var(--fs-sm); }
.prayer-urgent { display: flex; gap: 0.6rem; align-items: center; margin-top: 1.75rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--gold-ink); font-size: var(--fs-sm); }
.prayer-urgent svg { width: 20px; height: 20px; flex: none; }
.prayer-urgent a { color: inherit; font-weight: 700; }
.privacy-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.privacy-field legend { padding: 0; margin-bottom: 0.5rem; font-weight: 600; font-size: var(--fs-sm); color: var(--heading); }
.choices-2 { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.choice-radio span::before { border-radius: 50%; }
.choice-radio input:checked + span::before { background-image: none; box-shadow: inset 0 0 0 3px var(--white); }
.form-card > .form-info a { color: inherit; font-weight: 700; }
.callback-pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 700; }
.callback-pill svg { width: 13px; height: 13px; }

/* 28. More menu & translation ---------------------------------------------- */
.sub-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; width: 100%;
  padding: 0.85rem 0.25rem; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: none; color: #DCE4F2; font: 500 var(--fs-base)/1.4 var(--font-body); cursor: pointer;
}
.sub-toggle svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.has-sub.is-current > .sub-toggle { color: var(--gold); }
.sub-menu { list-style: none; display: none; padding-left: 0.75rem; }
.has-sub.is-open .sub-menu { display: block; }
@media (min-width: 1200px) {
  .has-sub { position: relative; }
  .sub-toggle { width: auto; padding: 0.5rem 0.6rem; border: 0; font-size: var(--fs-sm); }
  .sub-toggle:hover, .has-sub.is-current > .sub-toggle { color: var(--gold); }
  .sub-menu {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 130; min-width: 240px; padding: 0.4rem;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--navy-deep) 45%, transparent);
  }
  .sub-menu a { display: block; padding: 0.6rem 0.75rem; border-radius: 9px; color: var(--ink); font-size: var(--fs-sm); }
  .sub-menu a::after { display: none; }
  .sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--navy-soft); color: var(--heading); }
}

.lang { position: relative; flex: none; display: none; }
@media (min-width: 1200px) { .lang:not(.lang-inline) { display: block; } .lang-inline { display: none !important; } }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 42px; padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; background: transparent; color: var(--on-dark);
  font: 700 var(--fs-xs)/1 var(--font-body); cursor: pointer;
}
.lang-btn:hover { border-color: var(--gold); background: rgba(255, 255, 255, 0.1); }
.lang-btn svg { width: 18px; height: 18px; }
.lang-menu {
  list-style: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 120; width: 220px; padding: 0.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--navy-deep) 45%, transparent);
}
.lang-menu button {
  display: block; width: 100%; padding: 0.55rem 0.75rem; border: 0; border-radius: 9px; background: none; color: var(--ink);
  font: 500 var(--fs-sm)/1.3 var(--font-body); text-align: left; cursor: pointer;
}
.lang-menu button:hover { background: var(--navy-soft); }
.lang-menu button[aria-pressed="true"] { background: var(--navy); color: var(--on-dark); font-weight: 700; }
.lang-inline { display: block; padding-top: 0.5rem; }
.lang-inline-title { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; color: var(--gold); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.lang-inline-title svg { width: 16px; height: 16px; }
.lang-grid { position: static; width: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.35rem; padding: 0; background: none; border: 0; box-shadow: none; }
.lang-grid button { color: #DCE4F2; border: 1px solid rgba(255, 255, 255, 0.15); }
.lang-grid button:hover { background: rgba(255, 255, 255, 0.08); }
.lang-grid button[aria-pressed="true"] { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }

/* 29. Photo slideshow -------------------------------------------------------- */
.carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-deep); box-shadow: var(--shadow); }
.carousel-viewport { overflow: hidden; touch-action: pan-y; }
.carousel-track { display: flex; transition: transform .7s var(--ease); }
.carousel-slide { position: relative; flex: 0 0 100%; margin: 0; aspect-ratio: 16 / 9; max-width: 100%; }
@media (max-width: 600px) { .carousel-slide { aspect-ratio: 4 / 3; } }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.carousel-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  padding: 3rem 1.25rem 3.6rem; background: linear-gradient(to top, rgba(6, 12, 24, 0.85), transparent);
  color: #fff; font-weight: 600; font-size: var(--fs-base);
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center;
  width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(6, 12, 24, 0.5); color: #fff; cursor: pointer;
}
.carousel-btn:hover { background: var(--gold); color: var(--navy-deep); }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn.prev { left: 0.75rem; }
.carousel-btn.next { right: 0.75rem; }
@media (max-width: 600px) { .carousel-btn { display: none; } }
.carousel-bar { position: absolute; left: 0; right: 0; bottom: 0.9rem; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding-inline: 1rem; }
.carousel-dots { display: flex; gap: 0.45rem; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.55); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.carousel-dots button[aria-current="true"] { width: 28px; background: var(--gold); }
.carousel-pause { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 32px; padding: 0.2rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; background: rgba(6, 12, 24, 0.45); color: #fff; font: 600 0.75rem/1 var(--font-body); cursor: pointer; }
.carousel-pause svg { width: 12px; height: 12px; }
.carousel-pause .icon-play { display: none; }
.carousel-pause[aria-pressed="true"] .icon-play { display: block; }
.carousel-pause[aria-pressed="true"] .icon-pause { display: none; }

/* 30. Ministries -------------------------------------------------------------- */
.ministry-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.ministry-card h3 { font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: 0.02em; }
.ministry-card .btn { margin-top: auto; align-self: flex-start; }
.ministry-card.is-compact { padding: 1.25rem; gap: 0.6rem; }
.ministry-card.is-compact h3 { font-size: var(--fs-base); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; color: var(--heading); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 31. Testimonies --------------------------------------------------------------- */
.testimony-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 22rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; scrollbar-width: thin; }
.testimony-row > * { scroll-snap-align: start; }
@media (min-width: 1080px) { .testimony-row { grid-auto-columns: calc((100% - 2rem) / 3); } }
.testimony-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.testimony {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem 1.5rem 1.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0;
}
.testimony-mark { color: var(--gold); }
.testimony-mark svg { width: 34px; height: 34px; }
.testimony h3 { font-size: var(--fs-lg); }
.testimony-body { color: var(--ink); font-size: var(--fs-sm); line-height: 1.7; }
.testimony footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; padding-top: 0.8rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.testimony footer strong { color: var(--heading); }
.testimony footer span { color: var(--muted); }
.sample-chip { padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink) !important; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

/* 32. Freedom Wall ---------------------------------------------------------------- */
.comm-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.wall-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .wall-layout { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); } }
.wall-form h3 { font-size: var(--fs-lg); }
.wall-rules { padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: var(--navy-soft); font-size: var(--fs-sm); }
.wall-rules summary { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--heading); cursor: pointer; }
.wall-rules summary svg { width: 16px; height: 16px; }
.wall-rules ul { margin-top: 0.5rem; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.2rem; color: var(--ink); }
.wall-board { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); align-items: start; }
.wall-note {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1.1rem 1.1rem 0.9rem; border-radius: 4px 4px 14px 4px;
  box-shadow: 0 10px 20px -14px rgba(0, 0, 0, 0.5); font-size: var(--fs-sm); color: #2B2410; transform: rotate(-1deg);
  transition: transform .25s var(--ease);
}
.wall-note:nth-child(even) { transform: rotate(1.2deg); }
.wall-note:hover { transform: rotate(0) scale(1.03); }
.wall-note.tone-0 { background: #FFF4C2; }
.wall-note.tone-1 { background: #DDF0FF; color: #102A43; }
.wall-note.tone-2 { background: #FDE2E4; color: #4A1520; }
.wall-note.tone-3 { background: #E2F5E1; color: #133B1A; }
.wall-note p { overflow-wrap: anywhere; line-height: 1.55; }
.wall-note footer { display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; align-items: center; font-size: 0.75rem; opacity: 0.85; }

/* 33. Merch -------------------------------------------------------------------------- */
.merch-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.merch-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.merch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.merch-img { aspect-ratio: 1; max-width: 100%; background: #F0F2F6; overflow: hidden; }
.merch-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.merch-card:hover .merch-img img { transform: scale(1.05); }
.merch-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.merch-body h3 { font-size: var(--fs-base); font-weight: 700; }
.merch-body p { font-size: var(--fs-xs); color: var(--muted); }
.merch-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.price { font-weight: 800; font-size: var(--fs-lg); color: var(--heading); font-variant-numeric: tabular-nums; }

/* 34. Give ---------------------------------------------------------------------------- */
.give-band { background: var(--navy); color: #DCE4F2; }
.give-band-inner { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center; padding-block: clamp(2rem, 5vw, 3rem); }
@media (min-width: 768px) { .give-band-inner { grid-template-columns: auto 1fr auto; gap: 2rem; } }
.give-band h2 { color: var(--on-dark); font-size: var(--fs-xl); margin-block: 0.25rem; }
.give-band h2 strong { color: var(--gold); }
.give-band p { color: #C9D4E8; max-width: 38rem; }
.give-band .btn { justify-self: start; }
.give-band-qr { width: 110px; height: 110px; border-radius: 14px; background: #fff; padding: 6px; }
.give-uses { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.5rem; }
.give-uses li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.give-uses strong { color: var(--heading); display: block; }
.give-uses p { color: var(--muted); font-size: var(--fs-sm); }
.give-card { align-items: center; text-align: center; }
.give-card h2 { font-size: var(--fs-xl); }
.give-qr { width: min(300px, 100%); height: auto; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.give-steps { text-align: left; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: var(--fs-sm); align-self: stretch; }
.give-details { margin: 0; width: 100%; display: flex; flex-direction: column; gap: 0.4rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); background: var(--navy-soft); text-align: left; font-size: var(--fs-sm); }
.give-details div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.give-details dt { color: var(--muted); }
.give-details dd { margin: 0; font-weight: 700; color: var(--heading); }

/* 35. This Week + subscribe --------------------------------------------------------------- */
.week-layout { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .week-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.week-card h2 { font-size: var(--fs-2xl); }
.week-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; font-size: var(--fs-sm); color: var(--muted); }
.week-meta svg { width: 16px; height: 16px; color: var(--gold-deep); }
.week-notes { padding: 0.9rem 1rem; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--gold-ink); font-size: var(--fs-sm); }
.week-notes p { white-space: pre-line; margin-top: 0.25rem; }
.subscribe-card h2 { font-size: var(--fs-xl); }

/* 36. Pastors ---------------------------------------------------------------------------- */
.pastor-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.pastor-list li { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.pastor-list li > div { min-width: 0; }
.pastor-list strong { display: block; color: var(--heading); }
.pastor-list span:not(.pastor-photo) { font-size: var(--fs-sm); color: var(--muted); }
.pastor-photo { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; background: var(--navy); color: var(--gold); font-weight: 700; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 50%, transparent); }
.pastor-list.is-compact .pastor-photo { width: 44px; height: 44px; }
.pastors-title { font-size: var(--fs-base) !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted) !important; padding-top: 0.75rem; border-top: 1px dashed var(--line); }
.pastor-churches { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.pastor-church .tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.pastor-church h3 { font-size: var(--fs-lg); }
.photo-section { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.footer-admin { display: inline-flex; align-items: center; gap: 0.35rem; color: #A9B6CE !important; }
.footer-admin svg { width: 14px; height: 14px; }

@media print {
  .site-header, .service-bar, .messenger-fab, .theme-fab, .hero-media, .hero-controls, .filter-bar { display: none !important; }
  body { background: #fff; color: #1E293B; }
}

/* Countdown bar: church without a confirmed time shows text only */
.service-bar.no-countdown .countdown { display: none; }
.service-bar [data-countdown-status] strong { font-weight: 700; }

/* Tighter desktop nav on small laptops */
@media (min-width: 1200px) and (max-width: 1340px) {
  .nav-list { gap: 0; }
  .nav-list a { padding: 0.5rem 0.45rem; font-size: 0.84rem; }
  .nav-list a::after { left: 0.45rem; right: 0.45rem; }
  .site-nav { gap: 0.5rem; }
}

/* 37. Admin additions ------------------------------------------------------------ */
.admin-who { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 1rem; font-size: var(--fs-sm); color: var(--muted); }
.admin-who-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.role-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.8rem; border-radius: 999px; font-weight: 700; font-size: var(--fs-xs); }
.role-pill svg { width: 15px; height: 15px; }
.role-pill.is-pastor { background: #EDE7FA; color: #4B2C8F; }
.role-pill.is-leader { background: var(--gold-soft); color: var(--gold-ink); }
.admin-tabs-wrap { overflow-x: auto; margin-bottom: 1rem; scrollbar-width: thin; }
.admin-tabs { flex-wrap: nowrap; }
.admin-tabs button { white-space: nowrap; }
.admin-intro { margin-bottom: 1rem; color: var(--muted); font-size: var(--fs-sm); }
.admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .admin-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } .admin-search { grid-column: auto; } }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0.75rem 0; padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); font-size: var(--fs-sm); }
.bulk-count { font-weight: 700; color: var(--heading); }
.bulk-hint { color: var(--muted); }
.bulk-bar .tidy { margin-left: auto; }
.pick input { width: 18px; height: 18px; accent-color: var(--navy); }
.inbox-item.is-checked { outline: 2px solid var(--gold); }
.inbox-item.is-archived { opacity: 0.6; border-left-color: var(--line); }
.admin-two { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .admin-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.admin-form { gap: 0.9rem; }
.admin-form h2 { font-size: var(--fs-xl); font-weight: 600; }
.admin-form .field input, .admin-form .field select, .admin-form .field textarea { min-height: 44px; }
.admin-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-row > div:first-child { min-width: 0; flex: 1 1 16rem; display: flex; flex-direction: column; gap: 0.2rem; }
.admin-row strong { color: var(--heading); }
.admin-row span { font-size: var(--fs-xs); color: var(--muted); }
.admin-row p { font-size: var(--fs-sm); color: var(--ink); }
.admin-row.is-muted { opacity: 0.6; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pin-tag { padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--gold); color: var(--navy-deep); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.mod-item { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.mod-item.is-approved { border-left-color: #2E9D5B; }
.mod-item.is-hidden { border-left-color: var(--line); opacity: 0.7; }
.mod-item h3 { font-size: var(--fs-base); font-weight: 700; }
.mod-by { font-size: var(--fs-sm); color: var(--muted); }
.status-pill { padding: 0.2rem 0.6rem; border-radius: 999px; font-weight: 700; background: var(--gold-soft); color: var(--gold-ink); }
.status-pill.is-approved { background: var(--ok-bg); color: var(--ok-ink); }
.status-pill.is-hidden { background: var(--navy-soft); color: var(--muted); }
.demo-role { margin-top: 0.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.chip-btn { padding: 0.3rem 0.8rem; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; font: 700 var(--fs-xs)/1 var(--font-body); cursor: pointer; }
.chip-btn.is-on { background: var(--gold-ink); color: var(--gold-soft); }
.admin-fine { font-size: var(--fs-sm); color: var(--muted); }
.admin-toast { position: fixed; right: 1rem; top: calc(env(safe-area-inset-top, 0px) + 84px); z-index: 300; display: flex; gap: 0.75rem; align-items: flex-start; max-width: min(360px, calc(100vw - 2rem)); padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--navy); color: var(--on-dark); border: 2px solid var(--gold); box-shadow: var(--shadow); animation: panel-in .3s var(--ease); }
.admin-toast svg { width: 22px; height: 22px; flex: none; color: var(--gold); }
.admin-toast strong { display: block; }
.admin-toast span { font-size: var(--fs-sm); color: #C9D4E8; }
@media (max-width: 600px) {
  .inbox-actions { flex-direction: column; align-items: stretch; }
  .inbox-actions .btn, .inbox-actions select { width: 100%; }
  .bulk-bar .tidy { margin-left: 0; }
  .inbox-head time { margin-left: 0; width: 100%; }
}

/* 38. Social links in the top bar --------------------------------------------- */
.bar-actions { display: inline-flex; align-items: center; gap: 0.5rem 0.9rem; flex-wrap: wrap; justify-content: center; }
.social-links { display: inline-flex; align-items: center; gap: 0.3rem; }
.social-links a {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in srgb, var(--navy-deep) 12%, transparent); color: var(--navy-deep);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social-links a:hover { background: var(--navy-deep); color: var(--gold); transform: translateY(-1px); }
.social-links svg { width: 15px; height: 15px; }
.service-bar .container { row-gap: 0.4rem; }

/* 39. Fonts for translated languages (system fonts take over where Montserrat has no letters) */
:root[data-lang="th"] { --font-body: "Montserrat", "Noto Sans Thai", "Leelawadee UI", "Thonburi", Tahoma, sans-serif; --font-display: var(--font-body); }
:root[data-lang="my"] { --font-body: "Montserrat", "Noto Sans Myanmar", "Myanmar Text", "Myanmar Sangam MN", sans-serif; --font-display: var(--font-body); }
:root[data-lang="zh"] { --font-body: "Montserrat", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; --font-display: var(--font-body); }
:root[data-lang="ja"] { --font-body: "Montserrat", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif; --font-display: var(--font-body); }
:root[data-lang="ko"] { --font-body: "Montserrat", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; --font-display: var(--font-body); }
:root[data-lang="th"] body, :root[data-lang="my"] body { line-height: 1.8; }
:root[data-lang="my"] h1, :root[data-lang="my"] h2, :root[data-lang="th"] h1, :root[data-lang="th"] h2 { line-height: 1.4; letter-spacing: 0; }

/* 40. Header fit on small phones (any language) -------------------------- */
.church-picker { min-width: 0; }
.church-picker-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) {
  .header-inner { gap: 0.6rem; }
  .brand { gap: 0.5rem; }
}
/* Long words in some languages must wrap instead of pushing the page wider */
h1, h2, h3, h4, p, li, label, legend, .btn, .eyebrow { overflow-wrap: break-word; }
.contact-layout > *, .form-grid > * { min-width: 0; }
/* Desktop: "More" lines up exactly with the other menu links */
@media (min-width: 1200px) {
  .nav-list { align-items: center; }
  .nav-list > li > .sub-toggle { line-height: 1.65; padding: 8px 10px 8px 12px; }
}
/* Thai, Burmese, Chinese, Japanese and Korean: no extra letter spacing (it breaks up the letters) */
:root[data-lang="th"] body *, :root[data-lang="my"] body *, :root[data-lang="zh"] body *,
:root[data-lang="ja"] body *, :root[data-lang="ko"] body * { letter-spacing: 0 !important; }
:root[data-lang="ko"] body { word-break: keep-all; }
:root[data-lang="zh"] h1, :root[data-lang="zh"] h2, :root[data-lang="ja"] h1, :root[data-lang="ja"] h2,
:root[data-lang="ko"] h1, :root[data-lang="ko"] h2 { line-height: 1.3; }
/* Phones: church list pill breaks cleanly onto two lines */
@media (max-width: 520px) {
  .hero .pill { flex-wrap: wrap; row-gap: 0.35rem; }
  .hero .pill .divider:nth-child(4) { display: none; }
  .hero .pill > span:last-child { flex-basis: 100%; }
}
/* Desktop "More" menu: one line per item */
@media (min-width: 1200px) { .sub-menu { min-width: 15rem; } .sub-menu a { white-space: nowrap; } }

/* 41. Live church maps ----------------------------------------------------- */
.map-block { display: flex; flex-direction: column; gap: 0.75rem; min-height: 320px; }
.church-detail-grid .map-block .map-frame { flex: 1; min-height: 280px; height: auto; }
.map-frame.has-map iframe { z-index: 1; }
.map-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.map-actions .btn { flex: 1 1 auto; justify-content: center; }

/* 42. Shared small controls ------------------------------------------------ */
.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  min-width: 40px; height: 40px; padding: 0 0.6rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--heading);
  font: 700 var(--fs-sm)/1 var(--font-body); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--heading); background: var(--surface-2); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.icon-btn.me-del:hover { color: var(--err); border-color: var(--err); }
.chip-link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0.35rem 0.85rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--heading); font-size: var(--fs-xs); font-weight: 600; text-decoration: none;
}
.chip-link:hover { border-color: var(--heading); }
.section-tight { padding-block: clamp(2rem, 5vw, 3rem) 0; }

/* 43. Bible page ----------------------------------------------------------- */
.bible-top { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bible-top { grid-template-columns: 1.6fr 1fr; align-items: stretch; } }
.votd-card { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border-color: transparent; color: var(--on-dark); }
.votd-card .eyebrow { color: var(--gold); }
.votd-card blockquote { display: flex; flex-direction: column; gap: 0.75rem; }
.votd-card blockquote p { color: var(--on-dark); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); line-height: 1.5; font-weight: 500; }
.votd-card cite { font-style: normal; font-weight: 700; color: var(--gold); }
.votd-card cite small { margin-left: 0.4rem; font-weight: 500; opacity: .8; color: var(--on-dark); }
.bible-side { justify-content: center; }
.bible-side [data-bible-continue] { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.bible-side [data-bible-continue][hidden] { display: none; }
.bible-side [data-bible-continue] h3 { font-size: var(--fs-lg); }
.bible-side-tip { display: flex; gap: 0.9rem; align-items: flex-start; }
.bible-side-tip p { font-size: var(--fs-sm); color: var(--muted); margin-top: 0.2rem; }

.bible-reader { --bible-scale: 1; display: flex; flex-direction: column; gap: 1rem; max-width: 52rem; margin-inline: auto; }
.bible-toolbar { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; align-items: end; }
.bible-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; font-size: var(--fs-xs); font-weight: 700; color: var(--heading); text-transform: uppercase; letter-spacing: .06em; }
.bible-field select, .me-select {
  width: 100%; min-height: 46px; padding: 0.6rem 2.4rem 0.6rem 0.85rem;
  border: 1px solid var(--input-line); border-radius: var(--radius-sm);
  background: var(--white) var(--select-arrow) no-repeat right 0.75rem center / 18px; appearance: none;
  color: var(--ink); font: 500 var(--fs-sm)/1.3 var(--font-body); text-transform: none; letter-spacing: 0;
}
.bible-field-version { grid-column: 1 / -1; }
.bible-size { display: flex; gap: 0.4rem; grid-column: 1 / -1; justify-content: flex-end; }
@media (min-width: 720px) {
  .bible-toolbar { grid-template-columns: 1.6fr 1.2fr 0.7fr auto; }
  .bible-field-version, .bible-size { grid-column: auto; }
}
.bible-page { padding: clamp(1.25rem, 4vw, 2.75rem); gap: 1.25rem; }
.bible-page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bible-page-head h3 { font-size: var(--fs-2xl); text-align: center; }
.bible-page-head .icon-btn { font-size: 1.4rem; }
.bible-verses { font-size: calc(1.125rem * var(--bible-scale)); line-height: 1.9; color: var(--ink); }
.verse { cursor: pointer; border-radius: 4px; padding: 0.05em 0.1em; transition: background-color .15s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.verse sup { font-size: 0.62em; font-weight: 700; color: var(--gold-deep); margin-right: 0.2em; vertical-align: super; }
.verse:hover { background: var(--surface-2); }
.verse:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.verse.is-highlight { background: var(--gold-soft); }
.verse.is-selected { background: color-mix(in srgb, var(--gold) 38%, transparent); text-decoration: underline dotted color-mix(in srgb, var(--gold-deep) 70%, transparent); text-underline-offset: 4px; }
.bible-status { color: var(--muted); }
.bible-offline { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.bible-page-foot { display: flex; justify-content: space-between; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.bible-ext { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); color: var(--muted); }
.bible-ext-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.plan-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.plan-card { position: relative; }
.plan-card h3 { font-size: var(--fs-lg); }
.plan-card p { color: var(--muted); font-size: var(--fs-sm); flex: 1; }
.plan-days { font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--gold-deep); }
.plan-days-label { margin-top: -0.6rem; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan-card .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.verse-bar {
  position: fixed; z-index: 60; left: 50%; bottom: calc(5.25rem + env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(40rem, calc(100% - 2rem));
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem;
  padding: 0.75rem 0.9rem 0.75rem 1.1rem; border-radius: var(--radius);
  background: var(--navy-deep); color: var(--on-dark); box-shadow: var(--shadow);
}
.verse-bar[hidden] { display: none; }
.verse-bar-ref { font-weight: 700; }
.verse-bar-status { font-size: var(--fs-xs); color: var(--gold); flex: 1; }
.verse-bar-actions { display: flex; gap: 0.5rem; margin-left: auto; }
.verse-bar .icon-btn { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.35); }

/* 44. My Page --------------------------------------------------------------- */
.page-hero .me-hero { display: grid; grid-template-columns: 1fr; gap: 1.5rem 2.5rem; align-items: end; }
@media (min-width: 900px) { .page-hero .me-hero { grid-template-columns: minmax(0, 1fr) auto; } }
.me-hero > div:first-child { display: flex; flex-direction: column; gap: 1rem; max-width: 40rem; }
.me-stats { display: grid; grid-template-columns: repeat(4, minmax(4.5rem, 1fr)); gap: 0.6rem; }
.me-stats[hidden] { display: none; }
.me-stats div { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.75rem 0.5rem; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.me-stats strong { font-size: 1.6rem; line-height: 1; color: var(--gold); }
.me-stats span { font-size: var(--fs-xs); color: rgba(255,255,255,.85); }
.me-gate { max-width: 34rem; margin-inline: auto; align-items: center; text-align: center; }
.me-gate h2 { font-size: var(--fs-xl); }
.me-gate p { color: var(--muted); }
.me-app { display: flex; flex-direction: column; gap: 1.75rem; }
.me-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; padding: 0.35rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm);
  max-width: 36rem; width: 100%; margin-inline: auto;
}
.me-tabs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 44px; padding: 0.4rem 0.6rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font: 600 var(--fs-sm)/1.2 var(--font-body); cursor: pointer;
}
.me-tabs button svg { width: 18px; height: 18px; flex: none; }
.me-tabs button[aria-selected="true"] { background: var(--navy); color: var(--on-dark); }
@media (max-width: 420px) { .me-tabs button { flex-direction: column; gap: 0.15rem; font-size: var(--fs-xs); } }
.me-panel { display: flex; flex-direction: column; gap: 1.25rem; max-width: 52rem; width: 100%; margin-inline: auto; }
.me-panel[hidden] { display: none; }
.me-panel-head { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; justify-content: space-between; }
.me-panel-head h2 { font-size: var(--fs-xl); }
.me-panel-head p { color: var(--muted); font-size: var(--fs-sm); margin-top: 0.25rem; }
.me-add { gap: 0.75rem; padding: 1rem; }
.me-add-row { display: flex; gap: 0.6rem; }
.me-add-row input, .me-search input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0.7rem 0.9rem;
  border: 1px solid var(--input-line); border-radius: var(--radius-sm); background: var(--white);
  color: var(--ink); font: 400 var(--fs-base)/1.4 var(--font-body);
}
.me-search input { width: 100%; }
.me-add .field-error:empty { display: none; }
.me-prayers, .me-verses, .me-days { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.me-prayer {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 0.85rem 0.85rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: opacity .3s var(--ease), background-color .3s var(--ease);
}
.me-prayer-check { display: grid; place-items: center; flex: none; cursor: pointer; }
.me-prayer-check input, .me-day input { width: 24px; height: 24px; accent-color: var(--heading); cursor: pointer; }
.me-prayer-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.me-prayer-body p { overflow-wrap: anywhere; color: var(--ink); }
.me-prayer.is-answered { background: var(--surface-2); }
.me-prayer.is-answered .me-prayer-body p { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); color: var(--muted); }
.me-meta { font-size: var(--fs-xs); color: var(--muted); }
.me-answered { font-weight: 700; color: var(--ok-ink); }
.me-note-form-head { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; }
.me-note-form-head h3 { font-size: var(--fs-lg); }
.me-note-form[hidden] { display: none; }
.me-notes { display: flex; flex-direction: column; gap: 1rem; }
.me-note { gap: 0.75rem; padding: clamp(1.1rem, 3vw, 1.5rem); }
.me-note header { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.me-note header > div:first-child { min-width: 0; }
.me-note h3 { font-size: var(--fs-lg); overflow-wrap: anywhere; }
.me-note .me-meta { margin-top: 0.25rem; }
.me-scripture { color: var(--gold-deep); font-weight: 600; }
.me-note-actions { display: flex; gap: 0.35rem; flex: none; }
.me-note-actions .icon-btn { min-width: 36px; height: 36px; padding: 0; }
.me-note-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font-size: var(--fs-sm); line-height: 1.7; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.me-bible-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .me-bible-grid { grid-template-columns: 1.3fr 1fr; } }
.me-bible-grid > * { min-width: 0; }
.me-plan-head { display: flex; flex-direction: column; gap: 0.6rem; }
.me-plan-head h3, .me-bible-side h3 { font-size: var(--fs-lg); }
.me-progress { height: 10px; border-radius: 999px; background: var(--navy-soft); overflow: hidden; }
.me-progress-bar { height: 100%; width: 0; border-radius: inherit; background: var(--gold); transition: width .4s var(--ease); }
.me-progress-text { font-size: var(--fs-sm); color: var(--muted); }
.me-days { max-height: 26rem; overflow-y: auto; gap: 0.35rem; padding-right: 0.25rem; }
.me-day { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.me-day label { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-weight: 600; color: var(--heading); font-size: var(--fs-sm); }
.me-day a { font-size: var(--fs-sm); font-weight: 600; }
.me-day.is-done { background: var(--surface-2); }
.me-day.is-done .me-day-n { color: var(--muted); }
.me-bible-side { gap: 1.25rem; }
.me-continue-ref { font-size: var(--fs-lg); font-weight: 700; color: var(--heading); }
.me-verses li { display: flex; gap: 0.75rem; align-items: flex-start; justify-content: space-between; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.me-verses li:last-child { border-bottom: 0; padding-bottom: 0; }
.me-verses li.filter-empty { display: block; border: 1px dashed var(--line); padding: 1.25rem; }
.me-verses p { font-size: var(--fs-sm); color: var(--ink); margin-top: 0.25rem; overflow-wrap: anywhere; }
.me-verse-ref { font-weight: 700; }
.me-verses small { color: var(--muted); font-size: var(--fs-xs); }

/* 45. "Hi, name" in the header -------------------------------------------- */
.account-btn.is-signed-in { width: auto; padding: 0 0.95rem; }
.account-hi { display: inline-flex; align-items: baseline; gap: 0.3rem; white-space: nowrap; font-weight: 700; font-size: var(--fs-sm); }
.account-hi > span:first-child { font-weight: 500; opacity: .85; }
.account-hi-name { max-width: 7.5em; overflow: hidden; text-overflow: ellipsis; color: var(--gold); }
@media (max-width: 1599px) { .account-btn.is-signed-in { width: auto; padding: 0 0.85rem; } }
@media (max-width: 420px) { .account-btn.is-signed-in { padding: 0 0.6rem; } .account-hi { font-size: var(--fs-xs); } .account-hi-name { max-width: 4.2em; } }

/* 46. Event photos --------------------------------------------------------- */
.event-card.has-photo { grid-template-columns: auto 1fr; }
.event-photo { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-sm); }

/* 47. Bible: copyrighted versions ----------------------------------------- */
.bible-ext-note { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1rem 1.1rem; margin-bottom: 1.25rem; border-radius: var(--radius); background: var(--gold-soft); color: var(--gold-ink); }
.bible-ext-note p { font-size: var(--fs-sm); }
.bible-ext-sub { opacity: .85; }

/* 48. Page editor (admins) ------------------------------------------------- */
.page-edit-fab {
  position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.55rem 1.1rem;
  border: 2px solid var(--gold); border-radius: 999px; background: var(--navy-deep); color: var(--on-dark);
  font: 700 var(--fs-sm)/1 var(--font-body); box-shadow: var(--shadow); cursor: pointer;
}
.page-edit-fab[hidden] { display: none; }
.page-edit-fab svg { width: 16px; height: 16px; }
.is-page-editing [contenteditable="true"] { outline: 2px dashed color-mix(in srgb, var(--gold) 80%, transparent); outline-offset: 3px; border-radius: 4px; cursor: text; }
.is-page-editing [contenteditable="true"]:focus { outline-style: solid; background: color-mix(in srgb, var(--gold) 10%, transparent); }
.is-page-editing img[data-edit-img] { outline: 3px dashed var(--gold); outline-offset: 3px; cursor: pointer; }
.is-page-editing .messenger-fab, .is-page-editing .theme-fab { display: none !important; }
.banner-edit-btn {
  position: absolute; z-index: 2; right: 1rem; bottom: 1rem; min-height: 40px; padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: rgba(0,0,0,.45); color: #fff;
  font: 700 var(--fs-xs)/1 var(--font-body); cursor: pointer;
}
.page-edit-bar {
  position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(0.75rem + env(safe-area-inset-bottom));
  width: min(60rem, calc(100% - 1.5rem)); display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.8rem 1rem; border-radius: var(--radius); background: var(--navy-deep); color: var(--on-dark); box-shadow: var(--shadow);
  font-size: var(--fs-sm);
}
.page-edit-bar p { flex: 1 1 18rem; color: rgba(255,255,255,.9); }
.page-edit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.page-edit-actions .link-btn { color: rgba(255,255,255,.8); }
.page-edit-status { font-size: var(--fs-xs); color: var(--gold); }
.page-edit-status.is-error { color: #FFB4A8; }
.page-edit-toast { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: 5rem; padding: 0.75rem 1.1rem; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; box-shadow: var(--shadow); }

/* 49. Admin: website content ----------------------------------------------- */
.ct-card { gap: 1rem; margin-bottom: 1.5rem; }
.ct-card h2 { font-size: var(--fs-xl); }
.ct-h3 { font-size: var(--fs-lg); margin-top: 0.5rem; }
.ct-list { display: flex; flex-direction: column; gap: 0.75rem; }
.ct-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem 1rem; align-items: center; padding: 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.ct-row[data-row="ministries"] { grid-template-columns: minmax(0, 1fr); }
.ct-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); background: var(--navy-soft); display: grid; place-items: center; font-size: var(--fs-xs); color: var(--muted); }
.ct-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--navy-soft); display: grid; place-items: center; font-size: 0.7rem; color: var(--muted); text-align: center; }
.ct-logo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--white); border: 1px solid var(--line); }
.ct-fields { display: grid; gap: 0.6rem 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); min-width: 0; }
.ct-fields .field span, .ct-label, .admin-form .field > span { font-size: var(--fs-xs); font-weight: 700; color: var(--heading); }
.ct-fields input, .ct-fields select, .ct-card .form-grid input, .ct-card .form-grid select, .ct-card .form-grid textarea { min-height: 42px; padding: 0.5rem 0.7rem; font-size: var(--fs-sm); }
.ct-wide { grid-column: 1 / -1; }
.ct-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.icon-mini { min-width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--heading); font-weight: 700; cursor: pointer; }
.icon-mini:disabled { opacity: .35; cursor: default; }
.ct-save { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ct-unsaved { font-size: var(--fs-xs); font-weight: 700; color: var(--gold-deep); }
.ct-banner { height: 140px; border-radius: var(--radius); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.ct-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--navy) 80%, transparent), color-mix(in srgb, var(--navy-deep) 90%, transparent)); }
.ct-banner span { position: absolute; left: 1rem; bottom: 0.75rem; color: #fff; font-weight: 700; font-size: var(--fs-sm); }
.ct-church-pick { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.ct-logo-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.ct-logo-row h2 { margin-bottom: 0.4rem; }
.ct-steps { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; color: var(--ink); }
.ct-pages { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.ct-page { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-weight: 600; text-decoration: none; }
.ct-page:hover { border-color: var(--heading); }
.ev-photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.admin-event .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-left: auto; }
.admin-event.is-editing { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
@media (max-width: 600px) { .ct-row { grid-template-columns: minmax(0, 1fr); } .ct-thumb { width: 100%; height: 140px; } }
.ct-church-pick .chip-btn { padding: 0.5rem 0.9rem; color: var(--heading); border-color: var(--line); background: var(--white); }
.ct-church-pick .chip-btn.is-on { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
@media (max-width: 480px) {
  .site-header:has(.account-btn.is-signed-in) .brand-name { display: none; }
  .account-btn.is-signed-in { flex: 0 1 auto; min-width: 0; }
}
@media (max-width: 700px) { .page-edit-fab { bottom: calc(5.25rem + env(safe-area-inset-bottom)); padding: 0.45rem 0.9rem; font-size: var(--fs-xs); min-height: 38px; } }
.bible-copy { margin-top: 1.25rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.bible-ext[hidden] { display: none; }
.bible-ext-note a { font-weight: 700; color: inherit; }
.admin-shortcut {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0.75rem; padding: 0.4rem 0.85rem;
  border: 1.5px dashed var(--gold-deep); border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink);
  font-size: var(--fs-xs); font-weight: 700; text-decoration: none; width: max-content; max-width: 100%;
}
.admin-shortcut svg { width: 14px; height: 14px; }
.admin-shortcut:hover { background: var(--gold); color: var(--navy-deep); }

/* 50. Testimonies slider with photos ---------------------------------------- */
.testimony-row.has-carousel, .testimony-grid.has-carousel { display: block; overflow: visible; padding: 0; }
.t-carousel { display: flex; flex-direction: column; gap: 1rem; }
.t-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.t-track::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .t-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
.t-slide { scroll-snap-align: start; display: grid; grid-template-columns: 1fr; gap: 1rem; align-content: start; }
.t-slide .testimony-text { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.testimony-face { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--gold); font-size: 2rem; font-weight: 800; border: 3px solid var(--gold-soft); }
.testimony-face img { width: 100%; height: 100%; object-fit: cover; }
.t-slide.has-photo .testimony-face { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); border: 0; }
@media (min-width: 600px) {
  .t-slide { grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; }
  .t-slide.has-photo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .t-slide.has-photo .testimony-face { aspect-ratio: 3 / 4; }
}
.t-slide .testimony-mark svg { width: 28px; height: 28px; }
.t-controls { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.t-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.t-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--heading) 25%, transparent); cursor: pointer; transition: width .25s var(--ease), background-color .25s; }
.t-dots button[aria-current="true"] { width: 26px; background: var(--gold-deep); }
.t-pause { border: 0; background: none; color: var(--muted); font: 600 var(--fs-xs)/1 var(--font-body); text-decoration: underline; cursor: pointer; min-height: 40px; }
.mod-photo { width: 96px; height: 72px; margin-bottom: 0.25rem; }
/* 51. Admin: Google Drive uploads -------------------------------------------- */
.drive-head { display: flex; gap: 0.9rem; align-items: center; }
.drive-icon svg { width: 44px; height: 44px; }
.drive-link { word-break: break-all; }
.drive-open { align-self: flex-start; }
.drive-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.drive-row input { flex: 1 1 16rem; min-width: 0; min-height: 42px; padding: 0.5rem 0.75rem; border: 1px solid var(--input-line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: 400 var(--fs-sm)/1.4 var(--font-body); }
.drive-set summary { cursor: pointer; font-weight: 700; color: var(--heading); margin-bottom: 0.6rem; }
.footer-links-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.footer-links-row a:first-child { color: #A9B6CE !important; }

/* 52. Sign-up & email sign-in ------------------------------------------------- */
.signin-or { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: var(--fs-xs); margin: 0.25rem 0; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signin-or[hidden] { display: none; }
.provider-btn.is-email { background: var(--white); color: var(--heading); border: 1px solid var(--heading); }
.signin-switch { font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.signin-switch[hidden] { display: none; }
.signin-step label:not(.check) { font-weight: 600; font-size: var(--fs-sm); color: var(--heading); }
.signin-step input:not([type="checkbox"]), .signin-step select { width: 100%; min-height: 46px; padding: 0.6rem 0.85rem; border: 1px solid var(--input-line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: 400 var(--fs-base)/1.4 var(--font-body); }
.signin-step select { appearance: none; padding-right: 2.4rem; background: var(--white) var(--select-arrow) no-repeat right 0.75rem center / 18px; }
.signin-step .opt { font-weight: 400; color: var(--muted); }
.signin-links { justify-content: space-between; }
.signin-help { font-size: var(--fs-sm); color: var(--ink); }
.signin-done { text-align: center; align-items: center; }
.signin-done-icon svg { width: 44px; height: 44px; color: var(--gold-deep); }
.signin-done h3 { font-size: var(--fs-xl); }
.me-gate-btns { justify-content: center; flex-wrap: wrap; gap: 0.6rem; }

/* 53. App & privacy pages ------------------------------------------------------ */
.app-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); max-width: 52rem; }
.app-card[hidden] { display: none; }
.app-card h2 { font-size: var(--fs-xl); }
.app-os { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.app-steps { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.app-card .btn { align-self: flex-start; }
.prose-page { max-width: 46rem; display: flex; flex-direction: column; gap: 0.9rem; }
.prose-page h2 { font-size: var(--fs-xl); margin-top: 1rem; }
.prose-page ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.signin-step label.check { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 500; color: var(--ink); }
.signin-step label.check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin-top: 0.1rem; flex: none; accent-color: var(--heading); }
@media (min-width: 900px) {
  .admin-tabs-wrap { overflow: visible; }
  .admin-tabs { display: flex; flex-wrap: wrap; }
}

/* 54. Sermons: coming up + Bible chapter, recent ------------------------------ */
.sermon-next-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.sermon-next { gap: 0.75rem; border-top: 4px solid var(--gold); }
.sermon-next-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.sermon-next-when { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.sermon-next h3 { font-size: var(--fs-xl); }
.sermon-summary { color: var(--ink); font-size: var(--fs-sm); line-height: 1.7; }
.sermon-ready { font-size: var(--fs-sm); color: var(--gold-ink); background: var(--gold-soft); padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); }
.sermon-passage { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.sermon-passage-head h4 { font-size: var(--fs-lg); color: var(--heading); margin-top: 0.15rem; }
.sermon-verses { font-size: 1.02rem; line-height: 1.85; color: var(--ink); }
.sermon-verses .verse { cursor: default; }
.sermon-verses.is-clipped { max-height: 18rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.sermon-passage-ver { font-size: var(--fs-xs); color: var(--muted); }
.sermon-passage .btn { align-self: flex-start; }
.sermon-home { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .sermon-home { grid-template-columns: 1.4fr 1fr; } .sermon-home .sermon-next-grid { grid-template-columns: 1fr; } }
.sermon-home-h { font-size: var(--fs-lg); margin-bottom: 0.75rem; }
.sermon-recent-list { display: flex; flex-direction: column; gap: 1rem; }
.sermon-actions:empty { display: none; }
.prep-card { gap: 0.9rem; border-left: 4px solid var(--gold); margin-bottom: 1.5rem; }
.prep-card[hidden] { display: none; }
.prep-head h3 { font-size: var(--fs-xl); }
.prep-done { font-weight: 600; color: var(--heading); }
/* Admin: sermon upload */
.sermon-drop { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem; border: 2px dashed color-mix(in srgb, var(--gold-deep) 60%, transparent); border-radius: var(--radius); background: var(--gold-soft); color: var(--gold-ink); cursor: pointer; text-align: center; }
.sermon-drop:hover, .sermon-drop.is-over, .sermon-drop:focus-visible { background: color-mix(in srgb, var(--gold) 28%, var(--white)); outline: none; }
.sermon-drop strong { font-size: var(--fs-base); color: var(--heading); }
.sermon-drop span { font-size: var(--fs-xs); }
.sermon-drop-file { font-weight: 700; }
.sermon-analysis { font-size: var(--fs-sm); padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.sermon-analysis.is-ok { background: var(--ok-bg); color: var(--ok-ink); }
.sermon-analysis.is-bad { background: var(--err-bg); color: var(--err-ink); }
.ref-hint { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 0.3rem; }
.ref-hint.is-ok { color: var(--ok-ink); }
.ref-hint.is-bad { color: var(--err-ink); }
/* Weekly schedule */
.schedule { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.schedule > li { display: flex; flex-direction: column; gap: 0.35rem; }
.sched-day { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.schedule ul { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.schedule ul li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.15rem 0.75rem; padding-bottom: 0.3rem; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.sched-title { font-weight: 600; color: var(--heading); }
.sched-time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-shortcuts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: -0.5rem 0 1rem; }
.admin-shortcuts .admin-shortcut { margin: 0; }
.sched-row .ct-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
.sched-row .ct-wide-2 { grid-column: span 2; }
@media (max-width: 600px) { .sched-row .ct-wide-2 { grid-column: 1 / -1; } }

/* 55. Get-the-app sheet, top-bar app link, back to top ------------------------ */
.bar-app { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.65rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--navy-deep) 35%, transparent); color: inherit; font-size: var(--fs-xs); font-weight: 700; text-decoration: none; white-space: nowrap; }
.bar-app svg { width: 14px; height: 14px; }
.bar-app:hover { background: rgba(0,0,0,.08); }
.bar-app[hidden] { display: none; }
.app-sheet { width: min(26rem, calc(100% - 2rem)); padding: 1.75rem 1.5rem 1.4rem; border: 0; border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: var(--shadow); text-align: center; }
.app-sheet::backdrop { background: rgba(8, 18, 38, 0.55); }
.app-sheet[open] { display: flex; flex-direction: column; gap: 0.8rem; align-items: stretch; }
.app-sheet-icon { align-self: center; border-radius: 18px; box-shadow: var(--shadow-sm); }
.app-sheet h2 { font-size: var(--fs-xl); color: var(--heading); }
.app-sheet p { font-size: var(--fs-sm); color: var(--muted); }
.app-sheet .app-steps { text-align: left; font-size: var(--fs-sm); background: var(--surface-2); border-radius: var(--radius-sm); padding: 0.75rem 0.75rem 0.75rem 2rem; }
.app-sheet .app-steps[hidden], .app-sheet [hidden] { display: none; }
.app-sheet-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 1rem; }
.to-top {
  position: fixed; z-index: 55; right: 1.15rem; bottom: calc(5.4rem + env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent); background: var(--navy-deep); color: var(--gold);
  box-shadow: var(--shadow); cursor: pointer; opacity: .92; transition: opacity .2s, transform .2s var(--ease);
}
.to-top:hover { opacity: 1; transform: translateY(-2px); }
.to-top[hidden] { display: none; }
.to-top svg { width: 20px; height: 20px; }
.is-page-editing .to-top { display: none; }

/* 56. Show/hide password, sign-in notes, email-link notice, admin SQL ---- */
.pw-field { position: relative; }
.signin-step .pw-field input { padding-right: 3.2rem; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { background: var(--surface-2); color: var(--heading); }
.pw-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.pw-toggle svg { width: 22px; height: 22px; }
.pw-toggle .eye-off, .pw-toggle[aria-pressed="true"] .eye-open { display: none; }
.pw-toggle[aria-pressed="true"] .eye-off { display: block; }
.signin-detail { display: block; margin-top: 0.35rem; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); word-break: break-word; }

.site-notice {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 1200; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.75rem;
  width: min(560px, calc(100% - 32px)); padding: 0.85rem 0.75rem 0.85rem 1.1rem;
  border-radius: 14px; box-shadow: var(--shadow-sm, 0 6px 24px rgba(0,0,0,.18));
  font: 600 var(--fs-sm)/1.4 var(--font-body);
  animation: noticeIn .35s var(--ease, ease) both;
}
.site-notice span { flex: 1; }
.site-notice button { border: 0; background: transparent; color: inherit; font-size: 1.4rem; line-height: 1; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.site-notice.is-ok { background: #0F5132; color: #fff; }
.site-notice.is-error { background: #842029; color: #fff; }
.site-notice.is-leaving { opacity: 0; transition: opacity .5s; }
@keyframes noticeIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .site-notice { animation: none; } }

.admin-sql { margin: 1rem 0; text-align: left; }
.admin-sql summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.admin-sql p { margin: 0.6rem 0; font-size: var(--fs-sm); }
.admin-sql-role { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.6rem; }
.admin-sql pre { margin: 0 0 0.6rem; padding: 0.8rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); overflow-x: auto; font-size: 0.8rem; white-space: pre-wrap; word-break: break-all; }

/* 57. Announcements carousel ---------------------------------------------- */
.t-carousel.is-single .t-track { grid-auto-columns: 100%; }
.ann-slide { align-content: start; }
.ann-slide:hover { transform: none; }
.ann-slide.has-photo .ann-photo { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.ann-slide.is-compact { padding: 1rem; gap: 0.75rem; }
.ann-slide.is-compact h3 { font-size: var(--fs-sm); }
.church-news { margin-bottom: 1.25rem; }
.church-news .t-controls { margin-top: -0.25rem; }
.drive-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-bottom: 1rem; }
.drive-grid .drive-card { display: flex; flex-direction: column; gap: 0.8rem; }
.prep-top { padding-bottom: 0; }
.prep-top:has([data-sermon-prep][hidden]) { display: none; }

/* 58. Prayer Wall, church prayer needs, notifications --------------------- */
.choices-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.pw-h { font-size: var(--fs-lg); margin: 1.75rem 0 0.85rem; color: var(--heading); }
.needs-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.need-card { display: flex; gap: 0.85rem; padding: 1.1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); }
.need-card.is-answered { border-top-color: var(--ok-ink); }
.need-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); }
.need-card.is-answered .need-icon { background: color-mix(in srgb, var(--ok-ink) 15%, transparent); color: var(--ok-ink); }
.need-icon svg { width: 20px; height: 20px; }
.need-card > div { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.need-card h3 { font-size: var(--fs-base); font-family: var(--font-body); font-weight: 700; overflow-wrap: anywhere; }
.need-card p { font-size: var(--fs-sm); color: var(--muted); }
.need-church { align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink); }
.need-status { font-size: var(--fs-xs); color: var(--muted); }
.need-status strong { color: var(--ok-ink); }
.pw-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); align-items: start; }
.pw-card { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.pw-card header { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; }
.pw-card p { overflow-wrap: anywhere; line-height: 1.55; }
.pw-card footer { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); }
.pw-card.is-answered { background: var(--surface-2); }
.pw-new { padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--gold); color: #1B1405; font-size: 0.68rem; font-weight: 800; }
.pw-answered { display: inline-flex; gap: 0.25rem; align-items: center; color: var(--ok-ink); font-size: var(--fs-xs); font-weight: 700; }
.pw-answered svg { width: 14px; height: 14px; }
.pw-pray { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--heading); font: 700 var(--fs-xs)/1 var(--font-body); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.pw-pray svg { width: 16px; height: 16px; }
.pw-pray b { padding-left: 0.4rem; border-left: 1px solid var(--line); }
.pw-pray:hover { border-color: var(--gold); }
.pw-pray.is-on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); cursor: default; }
.pw-pray.is-on svg { fill: currentColor; }
.push-wrap { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; max-width: 22rem; }
.push-wrap[hidden] { display: none; }
.push-btn svg { width: 18px; height: 18px; }
.push-btn.is-on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); }

/* 59. Outreach photos, set list, serving schedule ------------------------- */
.outreach-gallery .t-track { grid-auto-columns: 100%; }
@media (min-width: 760px) { .outreach-gallery .t-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (min-width: 1100px) { .outreach-gallery .t-track { grid-auto-columns: calc((100% - 2rem) / 3); } }
.og-slide { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); aspect-ratio: 4 / 3; }
.og-slide img { width: 100%; height: 100%; object-fit: cover; }
.og-slide figcaption { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 0.15rem; padding: 2.5rem 1rem 0.9rem; background: linear-gradient(transparent, rgba(5, 14, 30, 0.85)); color: #fff; }
.og-slide figcaption strong { font-size: var(--fs-base); }
.og-slide figcaption span { font-size: var(--fs-xs); color: #D7DEEA; }
.setlist-home { margin-top: 1.5rem; }
.setlist-home[hidden] { display: none; }
.setlist-grid, .roster-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.setlist-card { gap: 0.9rem; border-left: 4px solid var(--gold); }
.setlist-card header .eyebrow { display: inline-flex; gap: 0.35rem; align-items: center; }
.setlist-card header .eyebrow svg { width: 15px; height: 15px; }
.setlist-card h3 { font-size: var(--fs-lg); }
.setlist-meta { font-size: var(--fs-sm); color: var(--muted); }
.setlist-songs { list-style: none; counter-reset: song; display: flex; flex-direction: column; gap: 0.5rem; }
.setlist-songs li { counter-increment: song; display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.setlist-songs li::before { content: counter(song); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--on-dark); font-size: var(--fs-xs); font-weight: 700; }
.setlist-songs li > div { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; align-items: center; }
.setlist-songs strong { overflow-wrap: anywhere; color: var(--heading); }
.setlist-songs small { flex-basis: 100%; color: var(--muted); font-size: var(--fs-xs); }
.key-chip { display: inline-flex; gap: 0.25rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: var(--fs-xs); }
.yt-btn { flex: none; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0.35rem 0.75rem; border-radius: 999px; background: #FF0000; color: #fff; font-size: var(--fs-xs); font-weight: 700; text-decoration: none; }
.yt-btn svg { width: 18px; height: 18px; }
.yt-btn:hover { filter: brightness(0.92); }
.setlist-notes { font-size: var(--fs-sm); color: var(--muted); }
.roster-card { gap: 0.8rem; }
.roster-card header { display: flex; flex-wrap: wrap; gap: 0.3rem 0.75rem; align-items: baseline; }
.roster-card header h3 { font-size: var(--fs-lg); }
.roster-card header span { font-size: var(--fs-sm); color: var(--muted); }
.roster-list { display: flex; flex-direction: column; }
.roster-list > div { display: grid; grid-template-columns: minmax(7rem, 40%) 1fr; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); }
.roster-list > div:last-child { border-bottom: 0; }
.roster-list dt { font-size: var(--fs-sm); font-weight: 700; color: var(--heading); }
.roster-list dd { font-size: var(--fs-sm); overflow-wrap: anywhere; }
.roster-list .is-me { background: var(--gold-soft); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; border-radius: var(--radius-sm); }
.roster-gate { display: flex; gap: 1rem; align-items: flex-start; }
.roster-gate h3 { font-size: var(--fs-lg); }
.roster-gate p { color: var(--muted); margin: 0.3rem 0 0.75rem; }
.serve-cta { background: var(--navy); }

/* 60. Bible journal (S.O.A.P.) and reminders ------------------------------ */
.soap-wrap { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .soap-wrap { grid-template-columns: minmax(0, 1fr); } }
.soap-guide { gap: 0.9rem; }
.soap-guide h2 { font-size: var(--fs-xl); }
.soap-steps { list-style: none; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.soap-steps li { display: flex; gap: 0.75rem; align-items: flex-start; }
.soap-steps p { font-size: var(--fs-sm); color: var(--muted); }
.soap-letter { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--gold); font: 800 1rem/1 var(--font-body); }
.soap-field label { display: flex; align-items: center; gap: 0.6rem; }
.soap-field .soap-letter { width: 28px; height: 28px; font-size: 0.9rem; border-radius: 8px; }
.jr-card { gap: 0.75rem; }
.jr-card h3 { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-lg); }
.jr-card h3 svg { width: 20px; height: 20px; color: var(--gold-ink); }
.jr-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.switch { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--heading); cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--navy); }
.jr-time { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); }
.jr-time input { min-height: 42px; padding: 0.4rem 0.6rem; border: 1px solid var(--input-line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: 600 var(--fs-sm)/1 var(--font-body); }
.jr-days { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.jr-days .chip-btn { min-width: 44px; min-height: 36px; color: var(--heading); border-color: var(--line); background: var(--white); }
.jr-days .chip-btn.is-on { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.jr-actions { margin-top: 0.75rem; }
.jr-actions svg { width: 16px; height: 16px; }
.jr-hint { margin-top: 0.4rem; }
.me-journal-form[hidden] { display: none; }
.me-journal-form { gap: 0.9rem; margin-bottom: 1rem; }
.jr-fill { margin-top: -0.25rem; }
.me-journal { gap: 0.75rem; padding: clamp(1.1rem, 3vw, 1.5rem); }
.me-journal header { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.me-journal header > div:first-child { min-width: 0; }
.me-journal h3 { font-size: var(--fs-lg); overflow-wrap: anywhere; }
.soap-tag { display: inline-block; margin-bottom: 0.3rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--navy); color: var(--gold); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; }
.soap-part { display: flex; flex-direction: column; gap: 0.15rem; }
.soap-part b { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-ink); }
.soap-part p { white-space: pre-line; overflow-wrap: anywhere; }
.me-shared { display: inline-flex; gap: 0.25rem; align-items: center; color: var(--ok-ink); font-weight: 700; }
.me-shared svg { width: 13px; height: 13px; }
.me-share { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--gold-soft); }
.me-share h4 { color: var(--gold-ink); }
.me-share-parts { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.me-share .field-error:empty { display: none; }
.wall-soap { gap: 0.6rem; }
.wall-soap h3 { font-size: var(--fs-base); font-family: var(--font-body); }
.wall-soap .soap-part b { color: inherit; opacity: 0.75; }
.site-notice.is-journal { background: var(--navy); color: #fff; }
.site-notice.is-journal svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--gold); }
.site-notice .btn { flex: none; }

/* 61. My Page: dates, months and years ------------------------------------ */
.me-track { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; margin: 0.25rem 0 0.75rem; }
.me-summary { font-size: var(--fs-sm); color: var(--muted); }
.me-summary strong { color: var(--heading); }
.me-month { list-style: none; margin-top: 0.75rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); }
.me-month:first-child { margin-top: 0; }
h3.me-month { font-family: var(--font-body); }
.me-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; }
.me-stamp { display: inline-flex; align-items: center; gap: 0.3rem; }
.me-stamp svg { width: 13px; height: 13px; flex: none; }
.me-answered-stamp svg { color: var(--ok-ink); }
.me-stamps { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; font-size: var(--fs-xs); color: var(--muted); }
.me-search { display: flex; gap: 0.6rem; align-items: center; }
.me-search .me-select { flex: none; width: auto; }

/* 62. Admin: new tabs ----------------------------------------------------- */
.need-row, .slot-row, .member-row, .role-list .ct-row { grid-template-columns: minmax(0, 1fr); }
.ct-wide-2 { grid-column: span 2; }
.ct-wide-3 { grid-column: 1 / -1; }
@media (max-width: 600px) { .ct-wide-2 { grid-column: 1 / -1; } }
.song-row { grid-template-columns: auto minmax(0, 1fr); }
.song-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--on-dark); font-weight: 700; font-size: var(--fs-xs); }
.role-ticks { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; padding-top: 0.25rem; }
.role-tick { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--fs-sm); font-weight: 500 !important; color: var(--ink) !important; }
.role-tick input { width: 18px; height: 18px; accent-color: var(--navy); }
.admin-h3 { margin: 1.25rem 0 0.5rem; font-size: var(--fs-base); color: var(--heading); }
.ct-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ct-chips .chip-btn { padding: 0.45rem 0.8rem; color: var(--heading); border-color: var(--line); background: var(--white); }
.pp-count { margin-left: auto; font-size: var(--fs-xs); font-weight: 700; color: var(--gold-ink); }
.vapid-box { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.75rem; }
.vapid-box label { display: flex; flex-direction: column; gap: 0.3rem; font-size: var(--fs-xs); font-weight: 700; color: var(--heading); }
.vapid-box textarea { font: 400 0.8rem/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 0.5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); word-break: break-all; }
.sermon-folder { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); }
.sermon-folder .drive-head > div { display: flex; flex-direction: column; gap: 0.2rem; }
.sermon-folder .drive-icon svg { width: 32px; height: 32px; }
.sermon-folder .btn { align-self: flex-start; }
.roster-head { align-items: end; }
.me-track .me-select { width: auto; min-width: 9rem; flex: none; }
.roster-list > div { grid-template-columns: minmax(8.5rem, 42%) 1fr; }
/* Compact rows for the serving schedule, roles and songs */
.slot-row, .role-list .ct-row, .song-row { padding: 0.55rem 0.75rem; gap: 0.4rem 0.75rem; }
.slot-row, .role-list .ct-row { grid-template-columns: minmax(0, 1fr) auto; }
.song-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.slot-row .ct-actions, .role-list .ct-actions, .song-row .ct-actions { grid-column: auto; flex-wrap: nowrap; }
.slot-row .ct-fields { grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr); }
.slot-row .ct-wide-2 { grid-column: auto; }
.slot-row + .slot-row .field > span, .song-row + .song-row .field > span { display: none; }
.role-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
@media (max-width: 600px) {
  .slot-row, .song-row { grid-template-columns: minmax(0, 1fr); }
  .song-row .song-n { display: none; }
  .slot-row .ct-actions, .song-row .ct-actions { grid-column: 1 / -1; }
  .slot-row + .slot-row .field > span, .song-row + .song-row .field > span { display: block; }
}
.ct-card h2 svg { width: 22px; height: 22px; vertical-align: -3px; margin-right: 0.3rem; color: var(--gold-ink); }

/* 58. Full church name under "CFFCC" beside the logo, at every screen size */
.site-header .brand-text { min-width: 0; line-height: 1.1; }
.site-header .brand-sub {
  display: block !important; max-width: 10.5rem; margin-top: 2px;
  font-size: 0.62rem; line-height: 1.2; letter-spacing: 0.01em; white-space: normal;
}
.site-header .brand-name { display: block !important; line-height: 1.05; }
@media (max-width: 420px) {
  .site-header .brand-logo { width: 34px; }
  .site-header .brand-name { font-size: 1.05rem; }
  .site-header .brand-sub { max-width: 6.9rem; font-size: 0.52rem; line-height: 1.15; }
  .site-header .church-picker-btn { padding-inline: 0.55rem; gap: 0.3rem; }
}
@media (max-width: 370px) {
  .site-header .brand-sub { max-width: 5.6rem; font-size: 0.5rem; }
  .site-header .church-picker-btn svg:first-child { display: none; }
}
@media (min-width: 769px) { .site-header .brand-sub { max-width: none; white-space: nowrap; font-size: 0.66rem; } }

/* 59. Gallery carousels (testimonies, outreach), photo/story viewer -------- */
.t-carousel.is-gallery .t-track { grid-auto-columns: 82%; }
@media (min-width: 600px) { .t-carousel.is-gallery .t-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (min-width: 1000px) { .t-carousel.is-gallery .t-track { grid-auto-columns: calc((100% - 2rem) / 3); } }

/* Testimony tiles: photo (or initial) with the story's first lines on top */
.tg-tile {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; text-align: left; color: #fff; font: inherit;
  background: linear-gradient(150deg, var(--navy), color-mix(in srgb, var(--navy) 55%, var(--gold-deep, #9A7B1C)));
}
.tg-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tg-tile:hover img, .tg-tile:focus-visible img { transform: scale(1.04); }
.tg-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tg-initial { position: absolute; inset: 0 0 40% 0; display: grid; place-items: center; font: 800 5rem/1 var(--font-display); color: color-mix(in srgb, #fff 30%, transparent); }
.tg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(5, 14, 30, 0.55) 50%, rgba(5, 14, 30, 0.94)); }
.tg-tile:not(.has-photo) .tg-shade { background: linear-gradient(180deg, transparent 30%, rgba(5, 14, 30, 0.6)); }
.tg-text { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.1rem 1.2rem; }
.tg-mark svg { width: 22px; height: 22px; color: var(--gold); }
.tg-title { font-size: var(--fs-base); line-height: 1.3; }
.tg-body { font-size: var(--fs-sm); color: #E3E8F1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tg-who { font-size: var(--fs-xs); color: #C9D4E8; }
.tg-more { align-self: flex-start; font-size: var(--fs-xs); font-weight: 700; color: var(--gold); text-decoration: underline; }

/* Outreach photo gallery */
.og-slide .og-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.og-kind { align-self: flex-start; margin-bottom: 0.2rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--gold); color: #0A1F40; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.og-slide figcaption { pointer-events: none; }
.og-filter { margin: 0; }
.og-gallery { margin-top: 0.5rem; }

/* Viewer dialog */
.viewer { width: min(920px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); overflow: auto; }
.viewer::backdrop { background: rgba(5, 12, 26, 0.82); }
.viewer-close { position: sticky; top: 8px; float: right; z-index: 2; width: 42px; height: 42px; margin: 8px 8px -50px 0; border: 0; border-radius: 50%; background: rgba(5, 14, 30, 0.7); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.viewer-photo { margin: 0; background: #050C1A; }
.viewer-photo img { display: block; width: 100%; max-height: 78dvh; object-fit: contain; }
.viewer-photo figcaption { padding: 0.9rem 1.1rem; background: var(--white); font-size: var(--fs-sm); color: var(--muted); }
.viewer-photo figcaption strong { color: var(--heading); }
.viewer-story { padding: 1.25rem; }
.viewer-story .testimony { border: 0; box-shadow: none; padding: 0; display: grid; gap: 1rem; }
.viewer-story .testimony.has-photo .testimony-face { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
@media (min-width: 760px) { .viewer-story .testimony.has-photo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } .viewer-story .testimony.has-photo .testimony-face { aspect-ratio: 3 / 4; } }
.viewer-story .testimony-body { white-space: pre-line; }
.pw-jump { margin-top: 0.75rem; display: inline-flex; gap: 0.45rem; }
.pw-jump svg { width: 18px; height: 18px; }

/* 60. Own reading plans ---------------------------------------------------- */
.plan-make { border: 2px dashed color-mix(in srgb, var(--gold) 60%, var(--line)); }
.plan-make .plan-days { color: var(--gold-deep, #9A7B1C); }
.plan-card.is-mine { border-left: 4px solid var(--gold); }
.plan-card.is-new { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent); }
.plan-mine-tag { align-self: flex-start; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.plan-maker { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.plan-maker .form-grid { gap: 0.6rem; }
.plan-maker select, .plan-maker input { width: 100%; min-height: 42px; padding: 0.45rem 0.6rem; border: 1px solid var(--input-line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: 400 var(--fs-sm)/1.3 var(--font-body); }
.plan-maker label { font-weight: 600; font-size: var(--fs-sm); color: var(--heading); }
.plan-maker-preview { font-size: var(--fs-sm); color: var(--muted); }
.plan-maker .btn { align-self: flex-start; }
.me-plan-tools { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin: 0.5rem 0; }
.me-plan-maker { margin-bottom: 1rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.me-day-when { margin-left: auto; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }

/* 61. App guide ------------------------------------------------------------ */
.app-guide { display: flex; flex-direction: column; gap: 1.5rem; }
.app-steps-pics { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.7rem; counter-reset: appstep; }
.app-steps-pics li { counter-increment: appstep; display: grid; grid-template-columns: 44px 1fr; gap: 0.75rem; align-items: center; text-align: left; font-size: var(--fs-sm); }
.app-step-icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-soft, var(--surface-2)); color: var(--heading); }
.app-step-icon svg { width: 22px; height: 22px; }
.app-step-icon::after { content: counter(appstep); position: absolute; top: -6px; left: -6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #0A1F40; font: 700 0.7rem/1 var(--font-body); }
.app-inapp { border-left: 4px solid var(--gold); background: var(--gold-soft); color: var(--gold-ink); text-align: left; padding: 0.9rem 1rem; border-radius: var(--radius-sm); }
.app-inapp.card { padding: 1.25rem; }
.app-inapp p { font-size: var(--fs-sm); margin-bottom: 0.6rem; }
.app-qr { display: grid; place-items: center; min-height: 168px; margin: 0.75rem auto; padding: 10px; background: #fff; border-radius: 12px; width: max-content; }
.app-qr img, .app-qr canvas { display: block; }
.app-qr-link { font-size: var(--fs-xs); word-break: break-all; color: #0F2C59; }
.app-desktop { text-align: center; font-size: var(--fs-sm); }
.app-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.app-features li { display: flex; gap: 0.8rem; align-items: flex-start; }
.app-features p { font-size: var(--fs-sm); color: var(--muted); }
.app-why { margin-top: 1rem; margin-bottom: 0; }
.app-faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); padding: 0.85rem 1rem; }
.app-faq summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.app-faq details p { margin-top: 0.6rem; font-size: var(--fs-sm); color: var(--muted); }
.app-share { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.app-sheet .app-steps-pics, .app-sheet .app-inapp, .app-sheet .app-desktop { margin: 0.75rem 0; }
.og-slide .og-open { position: absolute; inset: 0; }
.og-slide .og-open img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 62. My Page: Bible Journal tab, answered-prayer praise ------------------- */
.me-sub { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.me-sub:first-of-type { border-top: 0; padding-top: 0.5rem; }
.me-sub-head { margin-bottom: 1rem; }
.me-sub-title { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-lg); }
.me-sub-title svg { width: 22px; height: 22px; color: var(--gold-deep, #9A7B1C); }
.me-praise {
  display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 0.75rem; padding: 1.1rem 1.2rem;
  border-radius: var(--radius); list-style: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 22%, var(--white)), var(--white));
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
}
.me-praise-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #0A1F40; }
.me-praise-icon svg { width: 22px; height: 22px; }
.me-praise strong { display: block; font-size: var(--fs-lg); color: var(--heading); font-family: var(--font-display); }
.me-praise p { margin: 0.2rem 0 0.4rem; font-size: var(--fs-sm); color: var(--ink); }
.me-praise blockquote { margin: 0; font-style: italic; font-size: var(--fs-sm); color: var(--muted); }
.me-praise cite { font-style: normal; font-weight: 600; color: var(--gold-ink, #7A5F0C); }
/* Answered prayers are a testimony, not crossed out */
.me-prayer.is-answered { background: color-mix(in srgb, var(--gold) 7%, var(--white)); }
.me-prayer.is-answered .me-prayer-body p { text-decoration: none; color: var(--ink); }

/* 63. Phone header: church picker and "Hi, Name" share the space without overlapping */
.church-menu.is-sheet { position: fixed; left: 12px; right: 12px; width: auto; max-height: calc(100dvh - 140px); overflow-y: auto; }
@media (max-width: 480px) {
  .site-header .header-inner { gap: 0.45rem; }
  .site-header .church-picker { flex: 0 1 auto; min-width: 0; margin-left: auto; }
  .site-header .church-picker-btn { max-width: 100%; min-width: 0; padding-inline: 0.55rem; gap: 0.3rem; }
  .site-header .church-picker-label { min-width: 0; flex: 0 1 auto; }
  .site-header .account { flex: 0 1 auto; min-width: 0; }
  .site-header .account-btn.is-signed-in { max-width: 100%; min-width: 0; padding: 0 0.55rem; overflow: hidden; }
  .site-header .account-hi { min-width: 0; overflow: hidden; }
  .site-header .account-hi-name { max-width: 4.6em; }
  .site-header .nav-toggle { flex: none; }
  .site-header .brand { flex: 0 1 auto; min-width: 0; }
}
@media (max-width: 400px) {
  .site-header .church-picker-btn .pin { display: none; }
  .site-header .account-hi > span:first-child { display: none; }   /* show just the name, e.g. "Joshua" */
  .site-header .account-hi-name { max-width: 4.2em; }
}
@media (max-width: 400px) {
  .site-header .header-inner { gap: 0.35rem; }
  .site-header .brand { gap: 0.35rem; }
  .site-header .brand-logo { width: 30px; }
  .site-header .brand-name { font-size: 0.98rem; }
  .site-header .brand-sub { max-width: 4.9rem; font-size: 0.47rem; }
  .site-header .church-picker-btn { padding-inline: 0.5rem; font-size: 0.72rem; min-height: 40px; }
  .site-header .account-btn { min-height: 40px; height: 40px; }
  .site-header .account-btn.is-signed-in { padding: 0 0.5rem; }
  .site-header .account-hi { font-size: 0.72rem; }
  .site-header .account-hi-name { max-width: 5.2em; }
  .site-header .nav-toggle { width: 40px; height: 40px; }
}

/* 64. Bible page: numbered steps, quick links, verse of the day ------------ */
.bible-nav { position: sticky; top: var(--header-h, 64px); z-index: 40; background: color-mix(in srgb, var(--white) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bible-nav-inner { display: flex; gap: 0.4rem; overflow-x: auto; padding-block: 0.6rem; scrollbar-width: none; }
.bible-nav-inner::-webkit-scrollbar { display: none; }
.bible-nav a { display: inline-flex; align-items: center; gap: 0.45rem; flex: none; padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--heading); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; }
.bible-nav a:hover, .bible-nav a:focus-visible { border-color: var(--gold); }
.bible-nav a svg { width: 16px; height: 16px; }
.bible-nav-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.72rem; font-weight: 700; }
.bible-step { scroll-margin-top: calc(var(--header-h, 64px) + 60px); }
#read { scroll-margin-top: calc(var(--header-h, 64px) + 60px); }
.bible-step-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.bible-step-head .eyebrow { margin-bottom: 0.25rem; }
.bible-step-head p { color: var(--muted); margin-top: 0.35rem; }
.bible-step-n { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #0A1F40; font: 800 1.2rem/1 var(--font-display); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--gold-deep, #9A7B1C) 80%, transparent); }
#this-week .bible-step-n { width: 52px; height: 52px; font-size: 1.4rem; }
.prep-empty { color: var(--muted); font-size: var(--fs-sm); }
.prep-card:not([hidden]) + .prep-empty { display: none; }
.votd-quote p { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.45; color: var(--heading); }
.votd-quote cite { display: block; margin-top: 0.5rem; font-style: normal; font-weight: 700; color: var(--gold-ink, #7A5F0C); }
.votd-credit { margin-top: 0.75rem; font-size: var(--fs-xs); color: var(--muted); }
.votd-credit a { color: inherit; }
.votd-home-card { display: flex; flex-direction: column; gap: 0.75rem; border-left: 4px solid var(--gold); }
.votd-home-head { display: flex; align-items: center; gap: 0.75rem; }
.votd-home-head .link-arrow { margin-left: auto; }
.votd-home-head .eyebrow { margin: 0; }

/* Highlights */
.verse.hl-yellow { background: #FFF1A8; }
.verse.hl-green { background: #CDEFC6; }
.verse.hl-blue { background: #CFE3FA; }
.verse.hl-pink { background: #F9D2E3; }
:root[data-theme="dark"] .verse.hl-yellow, :root[data-theme="dark"] .verse.hl-green, :root[data-theme="dark"] .verse.hl-blue, :root[data-theme="dark"] .verse.hl-pink { color: #1E293B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verse[class*="hl-"] { color: #1E293B; } }
.verse-bar { flex-wrap: wrap; }
.verse-bar-hl { display: flex; gap: 0.35rem; align-items: center; }
.hl-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.85); cursor: pointer; padding: 0; font-size: 0.8rem; line-height: 1; }
.hl-swatch.hl-yellow { background: #FFE45C; } .hl-swatch.hl-green { background: #8BD77C; } .hl-swatch.hl-blue { background: #7FB6F2; } .hl-swatch.hl-pink { background: #F29BC1; }
.hl-swatch.hl-none { background: transparent; color: #fff; }
.hl-swatch:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Verse pop-ups in notes and journals */
.vref { display: inline; padding: 0 0.15em; border: 0; border-bottom: 1.5px dotted var(--gold-deep, #9A7B1C); background: color-mix(in srgb, var(--gold) 14%, transparent); color: inherit; font: inherit; cursor: pointer; border-radius: 3px; }
.vref:hover, .vref:focus-visible { background: color-mix(in srgb, var(--gold) 30%, transparent); outline: none; }
.vref-pop { position: absolute; z-index: 1300; padding: 0.85rem 1rem; border-radius: 12px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(5, 14, 30, 0.45); font-size: var(--fs-sm); line-height: 1.55; }
.vref-pop[hidden] { display: none; }
.vref-pop strong { display: block; margin-bottom: 0.3rem; color: var(--heading); }
.vref-pop strong small { font-weight: 600; color: var(--muted); }
.vref-pop p { max-height: 14em; overflow: auto; margin: 0 0 0.45rem; }
.vref-pop sup { font-size: 0.7em; color: var(--gold-ink, #7A5F0C); margin-right: 0.15em; }
.vref-pop a { font-weight: 700; font-size: var(--fs-xs); }
.vref-loading { color: var(--muted); }

/* My serving */
.my-serving { margin-bottom: 1.25rem; }
.my-serving[hidden] { display: none; }
.serving-card { border-left: 4px solid var(--gold); display: flex; flex-direction: column; gap: 0.8rem; }
.serving-card header { display: flex; gap: 0.8rem; align-items: center; }
.serving-card h3 { margin: 0; }
.serving-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.serving-list li { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.serving-when { font-weight: 700; color: var(--gold-ink, #7A5F0C); font-size: var(--fs-sm); }
.serving-what, .serving-notes { font-size: var(--fs-sm); color: var(--muted); }
.serve-remind { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1150; display: flex; align-items: center; gap: 0.75rem;
  width: min(600px, calc(100% - 24px)); padding: 0.75rem 0.75rem 0.75rem 1rem; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: 0 18px 40px -14px rgba(5, 14, 30, 0.6); }
.serve-remind > div { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: var(--fs-sm); }
.serve-remind > div span { color: #D7DEEA; font-size: var(--fs-xs); }
.serve-remind-icon svg { width: 22px; height: 22px; color: var(--gold); }
.serve-remind-x { border: 0; background: none; color: #fff; font-size: 1.4rem; width: 36px; height: 36px; cursor: pointer; }
.roster-times { margin-top: 0.5rem; }

/* People & Roles */
.person-row { align-items: center; }
.person-who { display: flex; gap: 0.75rem; align-items: center; min-width: 0; flex: 1; }
.person-who > div { display: flex; flex-direction: column; min-width: 0; }
.person-who span { font-size: var(--fs-xs); color: var(--muted); overflow-wrap: anywhere; }
.person-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.person-role select { min-height: 40px; padding: 0.35rem 0.6rem; border: 1px solid var(--input-line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: 600 var(--fs-sm)/1.2 var(--font-body); }
.role-pill.is-worker { background: #DDF3E4; color: #1E6B3A; }
.role-pill.is-member { background: var(--surface-2); color: var(--heading); }
.admin-search input { width: 100%; min-height: 42px; margin: 0.75rem 0; padding: 0.5rem 0.8rem; border: 1px solid var(--input-line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); }
.me-role { display: inline-block; margin-top: 0.75rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(255,255,255,0.14); color: #fff; font-weight: 700; font-size: var(--fs-xs); border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); }
.me-role.is-pastor, .me-role.is-worker { background: var(--gold); color: #0A1F40; }
/* Verse of the day sits on the dark card */
.votd-card .votd-quote { margin: 0; }
.votd-card .votd-quote p { color: #fff; }
.votd-card .votd-quote cite { color: var(--gold); }
.votd-card .votd-quote cite small { color: #C9D4E8; font-weight: 600; }
.votd-card .link-arrow, .votd-card .votd-bg { color: var(--gold); }
.votd-card .votd-credit, .votd-card .votd-credit a { color: #B9C4D8; }
.votd-home-head .icon-badge { flex: none; }
@media (max-width: 700px) { .serve-remind { bottom: calc(5.25rem + env(safe-area-inset-bottom)); } }

/* 65. "Chat with Us": choose a church first --------------------------------- */
.chat-picker { position: fixed; right: 16px; bottom: calc(5.5rem + env(safe-area-inset-bottom)); z-index: 1250; width: min(340px, calc(100% - 32px));
  padding: 0.9rem; border-radius: 18px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 48px -18px rgba(5, 14, 30, 0.5); }
.chat-picker[hidden] { display: none; }
.chat-picker-head { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.6rem; }
.chat-picker-head strong { flex: 1; color: var(--heading); font-size: var(--fs-base); line-height: 1.3; }
.chat-picker-x { border: 0; background: none; font-size: 1.4rem; line-height: 1; width: 32px; height: 32px; cursor: pointer; color: var(--muted); }
.chat-picker-list { display: flex; flex-direction: column; gap: 0.4rem; }
.chat-picker-opt { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.7rem; border-radius: 12px; border: 1px solid var(--line); color: var(--heading); text-decoration: none; }
.chat-picker-opt:hover, .chat-picker-opt:focus-visible { border-color: #0084FF; background: color-mix(in srgb, #0084FF 6%, var(--white)); outline: none; }
.chat-picker-opt.is-current { border-color: var(--gold); }
.chat-picker-opt > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-picker-opt small { color: var(--muted); font-size: var(--fs-xs); }
.chat-picker-opt > svg { width: 20px; height: 20px; color: #0084FF; flex: none; }
.chat-picker-opt img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
/* Chat picker: readable hover in light and dark mode */
.chat-picker-opt:hover, .chat-picker-opt:focus-visible { background: #E8F2FF; border-color: #0084FF; color: #0A1F40; }
.chat-picker-opt:hover strong, .chat-picker-opt:focus-visible strong { color: #0A1F40; }
.chat-picker-opt:hover small, .chat-picker-opt:focus-visible small { color: #3B4A63; }
.chat-picker-opt strong { color: var(--heading); }

/* 66. My Page stands out in the menu --------------------------------------- */
.nav-list .nav-mypage a { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.6rem 0; padding: 0.6rem 1rem; border: 0; border-radius: 999px; background: var(--gold); color: #0A1F40; font-weight: 700; }
.nav-list .nav-mypage a svg { width: 17px; height: 17px; }
.nav-list .nav-mypage a:hover, .nav-list .nav-mypage a[aria-current="page"] { background: #F3CB52; color: #0A1F40; }
@media (min-width: 1200px) {
  .nav-list .nav-mypage a { margin: 0 0.25rem; padding: 0.4rem 0.85rem; }
  .nav-list .nav-mypage a::after { display: none; }
}

/* Home banner church links */
.pill-links a { color: inherit; text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent); }
.pill-links a:hover, .pill-links a:focus-visible { color: var(--gold); border-bottom-style: solid; }

/* What you can do here + welcome guide */
.feature-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.feature-card { display: flex; gap: 0.8rem; align-items: flex-start; text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), border-color .2s; }
.feature-card:hover, .feature-card:focus-visible { transform: translateY(-2px); border-color: var(--gold); }
.feature-card > span:last-child { display: flex; flex-direction: column; gap: 0.2rem; }
.feature-card strong { color: var(--heading); }
.feature-card > span:last-child > span { font-size: var(--fs-sm); color: var(--muted); }
.feature-grid.is-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.6rem; text-align: left; }
.feature-grid.is-compact .feature-card { padding: 0.75rem; }
.discover-cta { align-self: center; }
.welcome-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; border: 0; border-radius: var(--radius); padding: 1.5rem; background: var(--surface-1, var(--white)); color: var(--ink); text-align: center; }
.welcome-dialog::backdrop { background: rgba(5, 12, 26, 0.7); }
.welcome-dialog h2 { margin: 0.5rem 0 0.25rem; }
.welcome-lead { color: var(--muted); margin-bottom: 1rem; }
.welcome-btns { justify-content: center; margin-top: 1.25rem; }

/* Pioneers */
.pioneer-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); max-width: 900px; margin: 0 auto; }
.pioneer-card { display: flex; gap: 1.1rem; align-items: center; }
.pioneer-photo { flex: none; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border: 3px solid var(--gold); }
.pioneer-photo img { width: 100%; height: 100%; object-fit: cover; }
.pioneer-photo span { color: var(--gold); font: 800 2.4rem/1 var(--font-display); }
.pioneer-card h3 { margin: 0.2rem 0; }
.pioneer-card p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 480px) { .pioneer-card { flex-direction: column; text-align: center; } }
.signin-gmail-note { font-size: var(--fs-xs); color: var(--muted); text-align: center; margin: 0.25rem 0; }

/* 67. Shared sermon notes --------------------------------------------------- */
.sn-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); align-items: start; }
.sn-card { display: flex; flex-direction: column; gap: 0.6rem; }
.sn-card header { display: flex; gap: 0.7rem; align-items: center; }
.sn-card header > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sn-card header span { font-size: var(--fs-xs); color: var(--muted); }
.sn-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #0A1F40; font-weight: 800; }
.sn-card h3 { margin: 0; font-size: var(--fs-lg); }
.sn-meta { font-size: var(--fs-sm); color: var(--muted); }
.sn-body { white-space: pre-line; font-size: var(--fs-sm); line-height: 1.6; }
.sn-body.is-clipped { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.sn-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.sn-like, .sn-comment-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--heading); font: 600 var(--fs-sm)/1 var(--font-body); cursor: pointer; }
.sn-like svg, .sn-comment-btn svg { width: 17px; height: 17px; }
.sn-like.is-on { background: #FDE8EF; border-color: #E86A92; color: #B4235A; }
.sn-like.is-on svg { fill: currentColor; }
.sn-comments { display: flex; flex-direction: column; gap: 0.55rem; padding: 0.75rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.sn-comment strong { font-size: var(--fs-sm); color: var(--heading); }
.sn-comment p { margin: 0.1rem 0; font-size: var(--fs-sm); white-space: pre-line; }
.sn-comment span { font-size: var(--fs-xs); color: var(--muted); }
.sn-form { display: flex; gap: 0.5rem; align-items: flex-end; }
.sn-form textarea { flex: 1; min-height: 44px; padding: 0.5rem 0.7rem; border: 1px solid var(--input-line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: 400 var(--fs-sm)/1.4 var(--font-body); resize: vertical; }
.me-shared { color: var(--ok-ink, #1E6B3A); }
.me-shared .link-btn { margin-left: 0.4rem; }

/* 68. Reading a plan day in the Bible -------------------------------------- */
.plan-read-bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--gold) 16%, var(--white)); border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--line)); }
.plan-read-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.plan-read-info .eyebrow { margin: 0; }
.plan-read-info strong { color: var(--heading); }
.plan-read-step { font-size: var(--fs-xs); color: var(--muted); }
.plan-read-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.plan-read-done { display: inline-flex; gap: 0.35rem; align-items: center; font-weight: 700; color: var(--ok-ink, #1E6B3A); font-size: var(--fs-sm); }
.plan-read-x { border: 0; background: none; font-size: 1.3rem; width: 32px; height: 32px; cursor: pointer; color: var(--muted); }
.plan-end-mark { height: 1px; }
.plan-card.is-suggested { border-left: 4px solid var(--navy); }
.plan-mine-tag.is-pastor { background: var(--navy); color: #fff; }
.me-plan-go { margin-left: 0.5rem; }
.me-plan-finished { color: var(--ok-ink, #1E6B3A); margin-left: 0.5rem; }
@media (min-width: 1200px) { .nav-list a { white-space: nowrap; } .nav-list .nav-mypage a { padding: 0.4rem 0.75rem; } }
@media (min-width: 1200px) and (max-width: 1440px) { :root[lang="th"] .nav-list a, html[lang="th"] .nav-list a { padding-inline: 0.5rem; } }
/* Header menu: never wrap a menu item onto two lines (long Thai labels) */
@media (min-width: 1200px) { .nav-list a { white-space: nowrap; } .nav-list .nav-mypage a { padding: 0.4rem 0.75rem; } }
@media (min-width: 1200px) and (max-width: 1500px) { html[lang="th"] .nav-list a, html[lang="my"] .nav-list a { padding-inline: 0.45rem; font-size: 0.85rem; } }

/* 66. Menu groups (Grow, Prayer, Church Life, About) ------------------------- */
.sub-menu a { display: flex; flex-direction: column; gap: 0.05rem; }
.sub-label { font-weight: 600; }
.sub-desc { font-size: 0.78rem; opacity: 0.72; font-weight: 400; }
@media (min-width: 1200px) {
  .nav-list > .has-sub:not(:last-child) > .sub-menu { left: 0; right: auto; }
  .sub-menu { min-width: 16.5rem; }
  .sub-menu a { white-space: normal; }
  .sub-desc { color: var(--muted); opacity: 1; }
}
@media (max-width: 1199px) {
  .sub-menu { padding: 0.25rem 0 0.5rem 0.5rem; }
  .sub-menu a { padding: 0.55rem 0.5rem; border-radius: 10px; color: #E4EAF5; }
  .sub-menu a[aria-current="page"] { background: rgba(255,255,255,0.08); color: var(--gold); }
  .sub-desc { color: #AEBBD3; }
}

/* 67. Phones: folding sections -------------------------------------------- */
.fold-btn { display: none; }
@media (max-width: 700px) {
  .fold-head { position: relative; padding-right: 3.2rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .fold-btn { display: grid; place-items: center; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--white); color: var(--heading); cursor: pointer; box-shadow: var(--shadow-sm); }
  .fold-btn svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
  .fold-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .is-folded { padding-block: 1.1rem !important; }
  .is-folded .fold-head { margin-bottom: 0 !important; }
  .is-folded .fold-head p, .is-folded .split-head .btn, .is-folded .split-head .link-arrow { display: none; }
  .is-folded .fold-head h2 { margin-bottom: 0; font-size: clamp(1.25rem, 5.2vw, 1.5rem); }
  .is-folded .bible-step-n { width: 36px; height: 36px; font-size: 1rem; }
  section[data-collapse-mobile] + section[data-collapse-mobile].is-folded { border-top: 1px solid var(--line); }
  .split-head.fold-head { align-items: center; }
}

/* 68. Bible search and God's promises -------------------------------------- */
.bsearch-title { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-lg); margin-bottom: 0.75rem; }
.bsearch-title svg { width: 22px; height: 22px; color: var(--gold-deep, #9A7B1C); }
.bsearch-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; }
.bsearch-form input[type="search"] { min-height: 48px; padding: 0.6rem 0.9rem; border: 1px solid var(--input-line); border-radius: 12px; background: var(--white); color: var(--ink); font: 400 var(--fs-base)/1.3 var(--font-body); min-width: 0; }
.bsearch-opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bsearch-opts select { min-height: 40px; padding: 0.35rem 0.6rem; border: 1px solid var(--input-line); border-radius: 10px; background: var(--white); color: var(--ink); font: 500 var(--fs-sm)/1.2 var(--font-body); max-width: 100%; }
.bsearch-form .field-hint { grid-column: 1 / -1; margin: 0; }
.bsearch-out { margin-top: 0.75rem; }
.bsearch-status { font-size: var(--fs-sm); color: var(--muted); }
.bsearch-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.4rem; max-height: 32rem; overflow-y: auto; }
.bsearch-list a { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.65rem 0.8rem; border-radius: 10px; background: var(--surface-2); color: var(--ink); text-decoration: none; }
.bsearch-list a:hover, .bsearch-list a:focus-visible { background: color-mix(in srgb, var(--gold) 14%, var(--white)); }
.bsearch-list strong { color: var(--heading); font-size: var(--fs-sm); }
.bsearch-list mark { background: #FFF1A8; color: inherit; padding: 0 0.1em; border-radius: 3px; }
.bsearch-ref { margin-bottom: 0.5rem; }
.promise-chips { display: flex; gap: 0.45rem; overflow-x: auto; padding-bottom: 0.4rem; margin-bottom: 0.9rem; scrollbar-width: thin; }
.promise-chips .chip-btn { flex: none; }
.promise-chips .chip-btn.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.promise-card { display: flex; flex-direction: column; gap: 0.75rem; border-top: 4px solid var(--gold); }
.promise-ask { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink, #7A5F0C); }
.promise-card h3 { margin-top: 0.15rem; }
.promise-verses { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.promise-verses blockquote { margin: 0; font-family: var(--font-display); font-size: var(--fs-base); line-height: 1.55; color: var(--ink); }
.promise-verses cite { display: block; margin-top: 0.2rem; font-style: normal; font-weight: 700; font-size: var(--fs-sm); }
.promise-verses cite small { color: var(--muted); font-weight: 600; }
.promise-actions { margin-top: auto; }
.promise-more { margin-top: 1rem; }
.promise-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); align-items: start; }
.promises-tools { margin-top: 1rem; }
.bible-step-heart svg { width: 22px; height: 22px; }
.prayer-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.prayer-band-link { display: inline-flex; align-items: center; gap: 0.4rem; color: inherit; font-weight: 600; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; }
.prayer-band-link svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.print-only { display: none; }

/* 69. My Page: print / Google Drive ----------------------------------------- */
.me-export { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.me-export .btn svg { width: 16px; height: 16px; }
.me-head-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: flex-end; }
.me-note-actions { position: relative; }
.me-item-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; display: flex; flex-direction: column; min-width: 13rem; padding: 0.35rem; border-radius: 12px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 34px -14px rgba(5,14,30,.45); }
.me-item-menu button { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.7rem; border: 0; border-radius: 8px; background: none; color: var(--heading); font: 600 var(--fs-sm)/1.2 var(--font-body); cursor: pointer; text-align: left; }
.me-item-menu button:hover, .me-item-menu button:focus-visible { background: var(--surface-2); }
.me-item-menu svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .me-panel-head { flex-direction: column; align-items: stretch; }
  .me-head-actions { justify-content: flex-start; }
  .me-export .btn { flex: 1 1 auto; }
}

/* 70. Printing God's promises (and any page) -------------------------------- */
@media print {
  .print-only { display: block !important; }
  .print-head { display: flex !important; gap: 12px; align-items: center; margin-bottom: 14px; }
  .print-head strong { display: block; font-size: 20px; color: #0F2C59; }
  .print-head span { font-size: 11px; color: #555; }
  .page-hero, .bible-nav, .promise-actions, .promises-tools, .verse-bar, .serve-remind, .chat-picker, .to-top, .page-edit-fab, footer, .site-footer { display: none !important; }
  .promise-grid { display: block; }
  .promise-card { break-inside: avoid; page-break-inside: avoid; border: 1px solid #ccc; box-shadow: none; margin-bottom: 10px; padding: 10px 14px; }
  .promise-verses { gap: 6px; }
  .promise-verses blockquote { font-size: 11.5pt; }
  .promise-verses cite a { color: #0F2C59; text-decoration: none; }
  .print-foot { margin-top: 12px; font-style: italic; text-align: center; }
  body { background: #fff !important; }
}
.promise-chips .chip-btn { padding: 0.55rem 0.95rem; color: var(--heading); border-color: var(--line); background: var(--white); font-size: var(--fs-sm); }
@media (min-width: 1200px) {
  .nav-list > li > .sub-toggle { white-space: nowrap; }
  .nav-list .nav-mypage a svg { width: 16px; height: 16px; flex: none; }
}
.sub-toggle svg.chev, .sub-toggle > svg { flex: none; width: 14px !important; height: 14px !important; opacity: 0.85; }
@media (max-width: 1199px) { .sub-toggle svg.chev, .sub-toggle > svg { width: 18px !important; height: 18px !important; } }
@media (min-width: 1200px) and (max-width: 1499px) {
  .nav-list > li > .sub-toggle { padding-inline: 0.4rem; gap: 0.2rem; }
  .nav-list > li:not(.nav-mypage) > a { padding-inline: 0.45rem; }
  .site-header .church-picker-btn { max-width: 9.5rem; }
  .site-header .header-inner { gap: 0.6rem; }
}
@media (min-width: 1200px) and (max-width: 1499px) { .site-header .church-picker-btn { max-width: 10.6rem; padding-inline: 0.65rem; } }
@media print {
  .promise-grid { columns: 2; column-gap: 14px; }
  .promise-card { display: inline-block; width: 100%; padding: 8px 12px; border-top: 3px solid #D4AF37; }
  .promise-card h3 { font-size: 13pt; margin: 0 0 4px; }
  .promise-ask { font-size: 8pt; }
  .promise-verses blockquote { font-size: 10pt; line-height: 1.4; }
  .promise-verses cite { font-size: 9pt; }
}

/* 71. Desktop header fit (classes added by script when the header is crowded) */
@media (min-width: 1200px) {
  .site-header .church-picker { flex: none; }
  .site-header.is-tight .header-inner { gap: 0.5rem; }
  .site-header.is-tight .nav-list > li > a, .site-header.is-tight .nav-list > li > .sub-toggle { padding-inline: 0.35rem; font-size: 0.86rem; }
  .site-header.is-tight .account-hi > span:first-child { display: none; }
  .site-header.is-tight .account-hi-name { max-width: 5em; }
  .site-header.is-tight .lang-btn { padding-inline: 0.5rem; }
  .site-header.is-tighter .brand-sub { display: none !important; }
  .site-header.is-tighter .church-picker-btn { max-width: 9rem; }
  .site-header.is-tighter .lang-label { display: none; }
  .site-header.is-tightest .brand-name { display: none !important; }
  .site-header.is-tightest .nav-list > li > a, .site-header.is-tightest .nav-list > li > .sub-toggle { font-size: 0.8rem; padding-inline: 0.28rem; }
  .site-header.is-tightest .nav-list .nav-mypage a { padding-inline: 0.55rem; }
  .site-header.is-tightest .account-btn.is-signed-in { padding: 0 0.6rem; }
}

/* 72. Account menu: My Page highlighted, Support the church --------------- */
.account-menu a.account-mypage { margin: 0.15rem 0 0.35rem; padding: 0.7rem 0.75rem; background: var(--gold); color: #0A1F40; }
.account-menu a.account-mypage svg { color: #0A1F40; width: 20px; height: 20px; }
.account-menu a.account-mypage span { display: flex; flex-direction: column; min-width: 0; }
.account-menu a.account-mypage strong { font-weight: 800; }
.account-menu a.account-mypage small { font-size: var(--fs-xs); font-weight: 500; opacity: 0.85; }
.account-menu a.account-mypage:hover { background: #F3CB52; color: #0A1F40; }
.account-menu a.account-give { color: var(--heading); font-weight: 600; }
.account-menu a.account-give svg { color: #D9534F; }

/* 73. Giving: PromptPay + worldwide online giving ------------------------- */
.give-cards { display: grid; gap: 1.25rem; }
.give-world h2 { display: inline-flex; align-items: center; gap: 0.5rem; }
.give-world h2 svg { width: 26px; height: 26px; color: var(--gold-deep); }
.give-world-note { color: var(--muted); font-size: var(--fs-sm); }
.give-world-qr { display: grid; place-items: center; width: max-content; max-width: 100%; margin-inline: auto; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.give-world-qr[hidden] { display: none; }
.give-world-qr img, .give-world-qr canvas { display: block; max-width: 100%; height: auto; }
.give-world-soon { padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--gold-ink); font-size: var(--fs-sm); }
.give-band-actions { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
@media (min-width: 768px) { .give-band-actions { align-items: stretch; } }
.ct-row-flex { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }

/* 74. Hearts & comments (Testimonies, Freedom Wall, Prayer Wall) ---------- */
.rx { display: flex; flex-direction: column; gap: 0.6rem; }
.rx:empty { display: none; }
.rx-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.rx-heart, .rx-toggle { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: color-mix(in srgb, #fff 70%, transparent); color: inherit; font: 600 var(--fs-xs)/1 var(--font-body); cursor: pointer; }
.rx-heart svg, .rx-toggle svg { width: 16px; height: 16px; }
.rx-heart:hover, .rx-toggle:hover { border-color: currentColor; }
.rx-heart.is-on { background: #FDE8EF; border-color: #E86A92; color: #B4235A; }
.rx-heart.is-on svg { fill: currentColor; }
.rx-panel { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem; border-radius: 12px; background: color-mix(in srgb, #fff 75%, transparent); color: #1D2433; font-size: var(--fs-sm); }
.rx-comment { padding-bottom: 0.45rem; border-bottom: 1px dashed rgba(16, 32, 64, 0.15); }
.rx-comment p { margin-top: 0.15rem; overflow-wrap: anywhere; }
.rx-when { color: #667085; font-size: var(--fs-xs); }
.rx-form { display: grid; gap: 0.45rem; }
.rx-form textarea { width: 100%; min-height: 3.2rem; padding: 0.55rem 0.7rem; border: 1px solid #C9D2E3; border-radius: 10px; font: inherit; background: #fff; color: #1D2433; resize: vertical; }
.rx-form .btn { justify-self: end; }
.rx-err { color: #B42318; font-size: var(--fs-xs); }
.rx-gate { font-size: var(--fs-sm); }
.wall-note:has(.rx-panel) { transform: none; }
.wall-note:has(.rx-panel):hover { transform: none; }
.pw-card .rx { margin-top: 0.6rem; }
.viewer-story .rx { margin-top: 1rem; color: var(--heading); }
.tg-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.rx-compact { flex-direction: row; gap: 0.7rem; color: #E3E8F1; font-size: var(--fs-xs); }
.rx-compact > span { display: inline-flex; align-items: center; gap: 0.25rem; }
.rx-compact svg { width: 14px; height: 14px; }
[data-theme="dark"] .rx-panel { background: rgba(255, 255, 255, 0.92); }

/* 75. Visitors vs church family ------------------------------------------- */
html.is-member [data-audience="visitor"], html:not(.is-member) [data-audience="member"] { display: none !important; }
.audience-bar { background: var(--navy-soft); border-bottom: 1px solid var(--line); }
.audience-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding-block: 0.7rem; }
.audience-label { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.audience-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.audience-switch button { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.45rem 1rem; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 600 var(--fs-sm)/1 var(--font-body); cursor: pointer; }
.audience-switch button svg { width: 17px; height: 17px; }
.audience-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.audience-switch button[data-audience-set="member"][aria-pressed="true"] { background: var(--gold); color: #0A1F40; }
.audience-hint { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--fs-sm); font-weight: 700; color: var(--heading); }
.audience-hint svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .audience-label { width: 100%; } .audience-switch { width: 100%; } .audience-switch button { flex: 1; justify-content: center; padding-inline: 0.5rem; } .audience-hint { margin-left: 0; } }
.member-home { background: linear-gradient(180deg, var(--gold-soft), transparent 70%); }
.member-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.member-head h2 { font-size: var(--fs-2xl, 1.8rem); margin-block: 0.2rem; }
.member-head h2 strong { color: var(--gold-deep); }
.member-head p { color: var(--muted); }
.member-gate { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.member-gate[hidden] { display: none; }
.member-gate p { font-size: var(--fs-sm); max-width: 22rem; }
.member-tiles { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .member-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.member-tile { display: flex; align-items: center; gap: 0.75rem; min-height: 72px; padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--heading); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.member-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px color-mix(in srgb, var(--navy-deep) 50%, transparent); }
.member-tile > svg { width: 26px; height: 26px; flex: none; color: var(--gold-deep); }
.member-tile span { display: flex; flex-direction: column; min-width: 0; }
.member-tile strong { font-size: var(--fs-sm); line-height: 1.25; }
.member-tile small { font-size: var(--fs-xs); color: var(--muted); }
.member-tile.is-main { background: var(--gold); border-color: var(--gold); color: #0A1F40; }
.member-tile.is-main > svg, .member-tile.is-main small { color: #0A1F40; }
@media (max-width: 420px) { .member-tile { flex-direction: column; align-items: flex-start; gap: 0.4rem; } }

/* 76. Church photos (admin > Church Info) --------------------------------- */
.church-photos { margin-top: 1.5rem; }
.church-photos h3 { margin-bottom: 0.75rem; }
.church-card.has-cover { overflow: hidden; }
.church-cover { display: block; margin: -1.6rem calc(-1 * clamp(1.5rem, 3vw, 2rem)) 0; aspect-ratio: 16 / 9; overflow: hidden; }
.church-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.church-card:hover .church-cover img { transform: scale(1.04); }

/* 77. Sunday flyer (admin > Sunday Flyer): A4 landscape trifold ----------- */
.flyer-ready-list { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.flyer-ready { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.flyer-ready > div { flex: 1; min-width: 12rem; display: flex; flex-direction: column; }
.flyer-ready span { font-size: var(--fs-xs); color: var(--muted); }
.fl-controls { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 0.8rem 1rem; margin-bottom: 0.8rem; }
.fl-controls .field { min-width: 11rem; }
.fl-actions { margin-left: auto; }
.fl-source { flex-basis: 100%; font-size: var(--fs-sm); color: var(--muted); }
.fl-edited { color: var(--gold-deep); font-weight: 700; }
.fl-save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0.5rem 0 1rem; }
.fl-side { margin: 1.2rem 0 0.5rem; font-size: var(--fs-base); color: var(--heading); }
.fl-side small { font-weight: 500; color: var(--muted); }
.fl-fit { position: relative; width: 100%; overflow: hidden; border-radius: 6px; box-shadow: 0 16px 36px -22px rgba(10, 31, 64, .55); }
.fl-settings { margin-top: 1.5rem; }
.fl-settings summary { cursor: pointer; }
.fl-settings summary span { color: var(--muted); font-size: var(--fs-sm); }

.fl-sheet { position: absolute; top: 0; left: 0; width: 1123px; height: 794px; transform-origin: 0 0; display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; color: #1D2433; font-family: 'Montserrat', Arial, sans-serif; font-size: 13px; line-height: 1.45; text-align: left; }
.fl-panel { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 34px 30px; overflow: hidden; min-width: 0; }
.fl-panel + .fl-panel { border-left: 1px dashed #D5DCE8; }
.fl-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A07F1E; }
.fl-h1 { font-size: 26px; line-height: 1.15; font-weight: 800; color: #0F2C59; margin: 0; }
.fl-h2 { font-size: 21px; line-height: 1.2; font-weight: 800; color: #0F2C59; margin: 0; }
.fl-h3 { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #0F2C59; margin: 6px 0 0; }
.fl-p { margin: 0; color: #3A4458; }
.fl-line { display: block; height: 26px; border-bottom: 1px solid #C9D2E3; }
[data-fk] { border-radius: 4px; outline: none; min-width: 1ch; }
[data-fk]:hover { box-shadow: 0 0 0 2px rgba(212, 175, 55, .45); }
[data-fk]:focus { box-shadow: 0 0 0 2px #D4AF37; background: rgba(212, 175, 55, .08); }
[data-fk]:empty::before { content: attr(data-ph); color: #9AA5B8; font-style: italic; }
.fl-ui { font-family: inherit; cursor: pointer; }
.fl-add { align-self: flex-start; padding: 4px 10px; border: 1px dashed #A07F1E; border-radius: 999px; background: #FFF8E1; color: #7A5F0C; font-size: 11px; font-weight: 700; }
.fl-x { position: absolute; top: 0; right: -6px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #FDE2E4; color: #B42318; font-size: 14px; line-height: 1; opacity: 0; }
li:hover > .fl-x, .fl-x:focus { opacity: 1; }
/* cover */
.fl-cover { background: radial-gradient(120% 80% at 50% 0%, #1B3F7A 0%, #0F2C59 55%, #0A1F40 100%); color: #fff; align-items: center; text-align: center; justify-content: center; gap: 12px; }
.fl-logo { width: 130px; height: auto; }
.fl-brand { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.fl-brand strong { font-size: 30px; letter-spacing: .12em; }
.fl-brand span { font-size: 10px; letter-spacing: .06em; color: #C9D4E8; }
.fl-church { margin: 0; font-size: 14px; font-weight: 700; color: #D4AF37; }
.fl-rule { width: 60px; height: 3px; border-radius: 3px; background: #D4AF37; }
.fl-sunday { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.fl-date { margin: 0; font-size: 13px; color: #DCE4F2; }
.fl-cover-msg { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(212, 175, 55, .55); background: rgba(255, 255, 255, .06); }
.fl-cover-msg span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #D4AF37; font-weight: 700; }
.fl-cover-msg strong { font-size: 20px; line-height: 1.2; }
.fl-cover-msg em { font-style: normal; font-size: 12px; color: #C9D4E8; }
.fl-tagline { margin: 0; font-size: 12px; font-style: italic; color: #DCE4F2; }
/* contact */
.fl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.fl-list b { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #A07F1E; }
.fl-qr-wrap { display: flex; gap: 12px; align-items: center; margin-top: auto; padding: 12px; border-radius: 14px; background: #F1F4FA; }
.fl-qr { flex: none; width: 132px; height: 132px; padding: 0; background: #fff; }
.fl-qr img, .fl-qr canvas { display: block; width: 132px !important; height: 132px !important; }
.fl-qr-wrap strong { display: block; color: #0F2C59; font-size: 13px; }
.fl-qr-wrap span { display: block; font-size: 11px; color: #3A4458; word-break: break-all; }
.fl-qr-wrap small { display: block; margin-top: 4px; font-size: 10px; color: #667085; }
.fl-verse { margin: 0; font-size: 11px; font-style: italic; color: #3A4458; text-align: center; }
/* involve */
.fl-involve { background: #FFF8E1; }
.fl-min { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-weight: 600; color: #0F2C59; }
.fl-min li { display: flex; align-items: center; gap: 8px; }
.fl-box { width: 14px; height: 14px; flex: none; border: 2px solid #0F2C59; border-radius: 3px; }
.fl-signup { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #EBDDB0; }
.fl-signup strong { color: #0F2C59; }
.fl-signup span { font-size: 10px; color: #667085; margin-top: 6px; }
.fl-signup .fl-line { height: 18px; }
.fl-signup small { font-size: 10px; color: #667085; margin-top: 6px; }
/* sermon */
.fl-welcome { margin: 0 0 4px; padding: 10px 12px; border-left: 3px solid #D4AF37; background: #F7F9FC; font-size: 11.5px; color: #3A4458; }
.fl-ref { margin: 0; font-weight: 700; color: #A07F1E; }
.fl-speaker { margin: 0; font-size: 12px; color: #3A4458; }
.fl-points { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.fl-points li { position: relative; padding-right: 14px; }
.fl-points .fl-line { height: 20px; }
/* notes */
.fl-notes .fl-lines { flex: 1; }
.fl-prompts { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #0F2C59; }
.fl-prompts p { margin: 0; }
.fl-prompts .fl-line { height: 18px; }
/* announcements */
.fl-ann-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fl-ann-list li { position: relative; padding: 0 14px 10px 14px; border-bottom: 1px solid #E3E8F1; }
.fl-ann-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #D4AF37; }
.fl-ann-list strong { display: block; color: #0F2C59; font-size: 13px; }
.fl-ann-list p { margin: 2px 0 0; font-size: 11.5px; color: #3A4458; }
.fl-prayer { margin-top: auto; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: #0F2C59; color: #DCE4F2; font-size: 11px; }
.fl-prayer strong { color: #D4AF37; font-size: 13px; }
/* PDF stage (off screen) and printing */
.fl-stage { position: fixed; left: -12000px; top: 0; width: 1123px; }
.fl-stage .fl-sheet { position: relative; }
.fl-stage .fl-ui, .fl-print-host .fl-ui { display: none !important; }
.fl-stage [data-fk]:empty::before, .fl-print-host [data-fk]:empty::before { content: none; }
.fl-print-host { display: none; }
html.is-printing-flyer .fl-print-host { display: block; }
.contact-layout:has(> .give-cards) { grid-template-columns: 1fr; }
.give-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
@media (min-width: 960px) { .give-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; align-items: start; } .give-info .section-head { grid-column: 1 / -1; } }

/* 78. My Prayer List: short term, long term, praise reports ---------------- */
.me-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.me-kind button { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.65rem 0.8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--heading); text-align: left; font: inherit; cursor: pointer; }
.me-kind button strong { font-size: var(--fs-sm); }
.me-kind button small { font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
.me-kind button[aria-pressed="true"] { border-color: var(--heading); background: var(--navy-soft); box-shadow: inset 0 0 0 1px var(--heading); }
.me-kind button[data-kind="long"][aria-pressed="true"] { border-color: var(--gold-deep); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-deep); }
.me-kind-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--navy-soft); color: var(--heading); font-weight: 600; }
.me-prayer-actions { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.15rem; font-size: var(--fs-xs); }
.me-prayer-actions .link-btn { font-size: var(--fs-xs); }
.me-prayer.is-answering { border-color: var(--gold); background: var(--gold-soft); }
.me-praise-form { display: grid; gap: 0.45rem; margin-top: 0.5rem; }
.me-praise-form p { font-size: var(--fs-sm); color: var(--ink); }
.me-praise-form textarea { width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: var(--fs-sm); background: var(--white); color: var(--ink); resize: vertical; }
.me-prayer.is-long { border-left: 4px solid var(--gold); }
.me-pray-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; flex: none; width: 74px; min-height: 64px; padding: 0.4rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--heading); font: 700 0.7rem/1.15 var(--font-body); text-align: center; cursor: pointer; }
.me-pray-btn svg { width: 20px; height: 20px; opacity: 0.35; }
.me-pray-btn.is-on { border-color: #1E8E5A; background: #E6F6EE; color: #146C43; }
.me-pray-btn.is-on svg { opacity: 1; }
.me-prayer.is-prayed .me-prayer-body > p { color: var(--muted); }
.me-daily { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.25rem; padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--gold-soft); color: var(--ink); }
.me-daily > div:first-child { flex: 1 1 18rem; }
.me-daily strong { color: var(--heading); }
.me-daily p { font-size: var(--fs-sm); color: var(--muted); }
.me-daily-meter { display: grid; justify-items: center; gap: 0.15rem; min-width: 7rem; }
.me-daily-meter span { font-size: 1.4rem; font-weight: 800; color: var(--heading); }
.me-daily-meter small { font-size: var(--fs-xs); color: var(--muted); }
.me-daily-meter i { display: block; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #1E8E5A var(--p), color-mix(in srgb, var(--heading) 15%, transparent) var(--p)); }
.me-prayer.is-praise { background: linear-gradient(90deg, var(--gold-soft), var(--white) 60%); }
.me-praise-dot { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #0A1F40; }
.me-praise-dot svg { width: 16px; height: 16px; }
.me-prayer.is-praise .me-prayer-body > p { font-weight: 600; color: var(--heading); }
.me-praise-note { margin: 0.2rem 0; padding: 0.45rem 0.75rem; border-left: 3px solid var(--gold); background: var(--white); font-size: var(--fs-sm); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.me-notice { margin: 0.25rem 0; padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); background: #E6F6EE; color: #146C43; font-size: var(--fs-sm); }
.me-notice.is-warn { background: var(--gold-soft); color: var(--gold-ink); }
.me-notice[hidden] { display: none; }
.my-list-field[hidden] { display: none; }
@media (max-width: 480px) { .me-kind { grid-template-columns: 1fr; } .me-pray-btn { width: 62px; } }
.me-prayer.is-praise, .me-prayer.is-long { align-items: flex-start; }

/* 79. Prayer Wall: filters, waiting-for-approval card, show more ---------- */
.pw-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.pw-bar .pw-h { margin: 0; }
.pw-filter { margin: 0.5rem 0 1rem; }
.pw-card.is-pending { border-style: dashed; border-color: var(--gold); background: var(--gold-soft); }
.pw-card.is-pending footer { font-size: var(--fs-xs); color: var(--gold-ink); }
.pw-wait { display: inline-flex; align-items: center; gap: 0.3rem; font-size: var(--fs-xs); font-weight: 700; color: var(--gold-ink); }
.pw-wait svg { width: 14px; height: 14px; }
.pw-more { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; margin-top: 1.25rem; }
.pw-more[hidden] { display: none; }
.pw-shown { font-size: var(--fs-xs); color: var(--muted); }

/* 80. Admin dashboard: grouped menu + overview ---------------------------- */
.admin-layout { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .admin-layout { grid-template-columns: 230px minmax(0, 1fr); } }
.admin-main { min-width: 0; }
.admin-side { position: relative; }
@media (min-width: 1000px) { .admin-side { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; } }
.admin-side-toggle { display: flex; align-items: center; gap: 0.5rem; width: 100%; min-height: 48px; padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--heading); font: 600 var(--fs-sm)/1.2 var(--font-body); cursor: pointer; text-align: left; }
.admin-side-toggle > span:first-child { color: var(--muted); font-weight: 500; }
.admin-side-chev { margin-left: auto; transition: transform .2s var(--ease); }
.admin-side.is-open .admin-side-chev { transform: rotate(180deg); }
.admin-side-groups { display: none; flex-direction: column; gap: 0.9rem; margin-top: 0.5rem; padding: 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.admin-side.is-open .admin-side-groups { display: flex; }
@media (min-width: 1000px) { .admin-side-toggle { display: none; } .admin-side-groups { display: flex; margin-top: 0; } }
.admin-side-group { display: flex; flex-direction: column; gap: 2px; }
.admin-side-label { padding: 0 0.6rem 0.25rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.admin-side-group button { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; padding: 0.5rem 0.6rem; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 var(--fs-sm)/1.25 var(--font-body); text-align: left; cursor: pointer; }
.admin-side-group button:hover { background: var(--navy-soft); color: var(--heading); }
.admin-side-group button[aria-current="page"] { background: var(--navy); color: #fff; font-weight: 700; }
.admin-side-group button[aria-current="page"] .tab-count { background: var(--gold); color: #0A1F40; }
.ov-cards { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); margin-bottom: 1.25rem; }
.ov-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.ov-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ov-n { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--muted); }
.ov-card.has-items { border-color: var(--gold); background: var(--gold-soft); }
.ov-card.has-items .ov-n { color: var(--heading); }
.ov-l { font-size: var(--fs-sm); font-weight: 600; color: var(--heading); }
.ov-go { margin-top: auto; font-size: var(--fs-xs); font-weight: 700; color: var(--gold-ink); }
.ov-two { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .ov-two { grid-template-columns: 1.3fr 1fr; } }
.ov-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.ov-row > div { display: flex; flex-direction: column; min-width: 0; }
.ov-row span { font-size: var(--fs-xs); color: var(--muted); }
.ov-actions { display: grid; gap: 0.4rem; }
.ov-action { padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--heading); font: 600 var(--fs-sm)/1.2 var(--font-body); text-align: left; cursor: pointer; }
.ov-action:hover { background: var(--navy-soft); }
.pw-churches { margin: -0.4rem 0 0.6rem; }
.pw-churches[hidden] { display: none; }
.pw-count { margin: 0 0 0.6rem; font-size: var(--fs-xs); color: var(--muted); }
.pw-wall .pw-card { height: 100%; }
.pw-wall .t-track { align-items: stretch; padding-bottom: 0.25rem; }
.pw-wall .pw-card footer { margin-top: auto; }

/* 81. Keep Chat with Us and Back to top clear of the host's corner badge
   ("Powered by Netlify" sits in the bottom-right corner) */
.messenger-fab { bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px)); }
.to-top { bottom: calc(8.6rem + env(safe-area-inset-bottom, 0px)); }
.chat-picker { bottom: calc(9rem + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 700px) { .page-edit-fab { bottom: calc(1rem + env(safe-area-inset-bottom)); left: 4.75rem; transform: none; } }

/* 82. Easier reading: text size A+ / A++ (theme panel) --------------------- */
html[data-text="large"] { font-size: 112.5%; }
html[data-text="xlarge"] { font-size: 125%; }
.text-size label span { font-weight: 800; }

/* 83. Dark mode: Bible highlights and selected verses stay readable -------- */
:root[data-theme="dark"] .verse.hl-yellow { background: rgba(255, 214, 10, 0.30); }
:root[data-theme="dark"] .verse.hl-green { background: rgba(110, 220, 120, 0.28); }
:root[data-theme="dark"] .verse.hl-blue { background: rgba(110, 170, 255, 0.30); }
:root[data-theme="dark"] .verse.hl-pink { background: rgba(255, 120, 180, 0.30); }
:root[data-theme="dark"] .verse.hl-yellow, :root[data-theme="dark"] .verse.hl-green, :root[data-theme="dark"] .verse.hl-blue, :root[data-theme="dark"] .verse.hl-pink { color: #F4F7FC; }
:root[data-theme="dark"] .verse.is-selected { background: rgba(212, 175, 55, 0.42); color: #FFFFFF; text-decoration-color: #F3CB52; }
:root[data-theme="dark"] .verse.is-highlight { background: rgba(212, 175, 55, 0.25); color: #FFFFFF; }
:root[data-theme="dark"] .verse[class*="hl-"] sup, :root[data-theme="dark"] .verse.is-selected sup { color: #FFD966; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .verse.hl-yellow { background: rgba(255, 214, 10, 0.30); }
  :root:not([data-theme="light"]) .verse.hl-green { background: rgba(110, 220, 120, 0.28); }
  :root:not([data-theme="light"]) .verse.hl-blue { background: rgba(110, 170, 255, 0.30); }
  :root:not([data-theme="light"]) .verse.hl-pink { background: rgba(255, 120, 180, 0.30); }
  :root:not([data-theme="light"]) .verse[class*="hl-"] { color: #F4F7FC; }
  :root:not([data-theme="light"]) .verse.is-selected { background: rgba(212, 175, 55, 0.42); color: #FFFFFF; text-decoration-color: #F3CB52; }
  :root:not([data-theme="light"]) .verse.is-highlight { background: rgba(212, 175, 55, 0.25); color: #FFFFFF; }
  :root:not([data-theme="light"]) .verse[class*="hl-"] sup, :root:not([data-theme="light"]) .verse.is-selected sup { color: #FFD966; }
}

/* 84. Share with the church family (composer) ------------------------------ */
.share-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 1.4rem; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.share-dialog::backdrop { background: rgba(5, 14, 30, 0.6); }
.share-dialog[open] { display: flex; flex-direction: column; gap: 0.8rem; }
.share-dialog h2 { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-lg); color: var(--heading); text-transform: none; padding-right: 2rem; }
.share-dialog h2 svg { width: 22px; height: 22px; color: var(--gold-deep); }
.share-kinds { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.share-kinds button { min-height: 40px; padding: 0.4rem 0.85rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--heading); font: 600 var(--fs-sm)/1 var(--font-body); cursor: pointer; }
.share-kinds button[aria-pressed="true"] { background: var(--navy); border-color: var(--gold); color: #fff; }
.share-dialog textarea, .share-dialog input { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--input-line, var(--line)); border-radius: 12px; font: inherit; background: var(--white); color: var(--ink); }
.share-dialog [hidden] { display: none !important; }
.share-quote blockquote, .feed-quote { margin: 0; padding: 0.8rem 1rem; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--gold-soft); color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 1.02em; line-height: 1.6; white-space: pre-wrap; }
.share-quote cite, .feed-quote cite { display: block; margin-top: 0.4rem; font: 700 var(--fs-sm)/1.3 var(--font-body); font-style: normal; color: var(--gold-ink); }
.share-note { display: flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); color: var(--muted); }
.share-note svg { width: 16px; height: 16px; flex: none; }
.share-actions .btn svg { width: 18px; height: 18px; }

/* 85. Church Feed ---------------------------------------------------------- */
.feed-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .feed-layout { grid-template-columns: minmax(0, 1fr) 300px; } .feed-side { position: sticky; top: 90px; } }
.feed-main { display: flex; flex-direction: column; gap: 1rem; max-width: 680px; width: 100%; }
.feed-compose { gap: 0.8rem; padding: 1rem; }
.feed-compose[hidden], .feed-filter[hidden] { display: none; }
.feed-compose-btn { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.4rem; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.feed-compose-btn > span:last-child { flex: 1; padding: 0.8rem 1rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: var(--fs-base); }
.feed-compose-btn:hover > span:last-child { background: var(--navy-soft); }
.feed-compose-kinds { display: flex; flex-wrap: wrap; gap: 0.35rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.feed-compose-kinds button { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0.4rem 0.75rem; border: 0; border-radius: 10px; background: none; color: var(--heading); font: 600 var(--fs-sm)/1 var(--font-body); cursor: pointer; }
.feed-compose-kinds button:hover { background: var(--surface-2); }
.feed-compose-kinds svg { width: 20px; height: 20px; color: var(--gold-deep); }
.feed-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.05rem; }
.feed-list { display: flex; flex-direction: column; gap: 1rem; }
.feed-post { gap: 0.75rem; padding: 1.1rem 1.2rem; }
.feed-post header { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.feed-post header > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.feed-post header strong { color: var(--heading); }
.feed-post header > div span { font-size: var(--fs-xs); color: var(--muted); }
.feed-kind { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--navy-soft); color: var(--heading); font-size: var(--fs-xs); font-weight: 700; }
.feed-kind svg { width: 14px; height: 14px; }
.feed-post.is-prayer .feed-kind { background: #E8F1FF; color: #1D4E89; }
.feed-post.is-praise .feed-kind { background: var(--gold-soft); color: var(--gold-ink); }
.feed-msg { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--heading); font-size: var(--fs-xs); font-weight: 700; text-decoration: none; }
.feed-msg svg { width: 14px; height: 14px; }
.feed-ref { font-weight: 700; color: var(--gold-ink); }
.feed-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.02rem; line-height: 1.6; color: var(--ink); }
.feed-own { text-align: right; }
.feed-post .rx { padding-top: 0.6rem; border-top: 1px solid var(--line); }
.feed-post .rx-heart, .feed-post .rx-toggle { background: var(--surface-2); }
.rx-heart span, .rx-toggle span { font-weight: 700; }
.rx-prayed.is-on { background: #E8F1FF; border-color: #6A9BE8; color: #1D4E89; }
.rx-prayed.is-on svg { fill: none; }
.feed-more { text-align: center; }
.feed-more [hidden] { display: none; }
.feed-side { display: flex; flex-direction: column; gap: 0.8rem; }
.feed-tip h2 { display: flex; align-items: center; gap: 0.4rem; font-size: var(--fs-base); text-transform: none; color: var(--heading); }
.feed-tip h2 svg { width: 18px; height: 18px; color: var(--gold-deep); }
.feed-tip ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: var(--fs-sm); color: var(--muted); }
.feed-side-link { flex-direction: row; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem; color: var(--heading); text-decoration: none; }
.feed-side-link > svg { width: 26px; height: 26px; color: var(--gold-deep); flex: none; }
.feed-side-link span { display: flex; flex-direction: column; }
.feed-side-link small { color: var(--muted); font-size: var(--fs-xs); }
.me-feed-btn { align-self: flex-start; margin-top: 0.4rem; }
.me-feed-btn svg { width: 16px; height: 16px; }

/* 86. Messages (member-to-member chat) ------------------------------------ */
.chat-shell { display: grid; grid-template-columns: 1fr; height: min(78vh, 720px); min-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
@media (min-width: 800px) { .chat-shell { grid-template-columns: 320px minmax(0, 1fr); } }
.chat-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.chat-list-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
.chat-list-head h2 { font-size: var(--fs-lg); text-transform: none; color: var(--heading); margin: 0; flex: 1; }
.chat-items { list-style: none; margin: 0; padding: 0.4rem; overflow-y: auto; flex: 1; }
.chat-item { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.7rem; border: 0; border-radius: 12px; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.chat-item:hover { background: var(--surface-2); }
.chat-item.is-open { background: var(--navy-soft); }
.chat-avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--heading), color-mix(in srgb, var(--heading) 60%, var(--gold))); color: #fff; font-weight: 800; font-size: 1.1rem; }
.chat-item-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-item-main strong { color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-main span { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item.is-unread .chat-item-main span { color: var(--ink); font-weight: 700; }
.chat-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.chat-item-side small { font-size: var(--fs-xs); color: var(--muted); }
.chat-unread, .acct-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #D93A3A; color: #fff; font-size: 0.75rem; font-weight: 800; }
.acct-badge[hidden] { display: none; }
.account-menu .acct-badge { margin-left: auto; }
.account-btn.has-unread { position: relative; }
.account-btn.has-unread::after { content: ''; position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: #D93A3A; border: 2px solid var(--navy); }
.chat-empty { padding: 1.5rem 1rem; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.chat-search { padding: 0.6rem 1rem; }
.chat-search input { width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: var(--surface-2); color: var(--ink); }
.chat-thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-thread-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.chat-thread-head strong { color: var(--heading); font-size: var(--fs-lg); }
.chat-thread-head .chat-avatar { width: 40px; height: 40px; }
.chat-back { display: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.45rem; background: var(--surface-2); }
.chat-day { align-self: center; margin: 0.5rem 0; padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--white); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.chat-msg { align-self: flex-start; max-width: min(78%, 520px); padding: 0.55rem 0.85rem; border-radius: 18px 18px 18px 6px; background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chat-msg.is-me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--navy); color: #fff; }
.chat-msg small { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--gold-ink); }
.chat-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.02rem; line-height: 1.45; }
.chat-msg time { display: block; margin-top: 0.15rem; font-size: 0.7rem; opacity: 0.7; text-align: right; }
.chat-compose { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid var(--line); }
.chat-compose textarea { flex: 1; min-height: 46px; max-height: 140px; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 22px; font: inherit; font-size: 1rem; background: var(--surface-2); color: var(--ink); resize: none; }
.chat-send { width: 48px; height: 48px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.chat-send svg { width: 20px; height: 20px; }
.chat-err { padding: 0 1rem 0.5rem; margin: 0; }
.chat-err:empty { display: none; }
.chat-placeholder { flex: 1; display: grid; place-content: center; justify-items: center; gap: 0.6rem; color: var(--muted); text-align: center; padding: 2rem; }
.chat-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
@media (max-width: 799px) {
  .chat-shell { height: calc(100dvh - 190px); }
  .chat-shell .chat-thread { display: none; }
  .chat-shell.has-open .chat-list { display: none; }
  .chat-shell.has-open .chat-thread { display: flex; }
  .chat-back { display: grid; }
}
body:has([data-chat-app]) .messenger-fab, body:has([data-chat-app]) .page-edit-fab { display: none; }
@media (max-width: 799px) {
  body:has([data-chat-app]) .page-hero { display: none; }
  body:has([data-chat-app]) .to-top { display: none; }
  .chat-shell { height: calc(100dvh - 150px); }
}
/* Bigger text makes the page easier to read; the desktop menu bar keeps its normal size so it still fits */
@media (min-width: 1200px) {
  html[data-text="large"] .site-header { zoom: 0.889; }
  html[data-text="xlarge"] .site-header { zoom: 0.8; }
}
@media (min-width: 1200px) {
  .site-header.is-tightest2 .nav-list > li > .sub-toggle svg { display: none; }
  .site-header.is-tightest2 .account-hi-name { max-width: 3.2em; }
  .site-header.is-tightest2 .church-picker-btn { max-width: 7.5rem; }
  .site-header.is-tightest2 .header-inner { gap: 0.35rem; }
}

/* 87. Bible page: tabs with icons, one part at a time ---------------------- */
.bible-hero .container { padding-block: clamp(1.4rem, 3vw, 2.2rem); }
.bible-hero h1 { margin: 0; }
.bible-nav-inner { gap: 0.35rem; justify-content: flex-start; }
@media (min-width: 1100px) { .bible-nav-inner { justify-content: center; } }
.bible-nav a { gap: 0.4rem; min-height: 42px; padding: 0.45rem 0.95rem; }
.bible-nav a svg { width: 18px; height: 18px; color: var(--gold-deep); flex: none; }
.bible-nav a.is-active { background: var(--navy); border-color: var(--gold); color: #fff; }
.bible-nav a.is-active svg { color: var(--gold); }
.bible-panel { scroll-margin-top: calc(var(--header-h, 64px) + 70px); }
.bible-panel[hidden] { display: none; }
.bible-panel-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.bible-panel-head h2 { margin: 0.1rem 0 0; font-size: var(--fs-xl); }
.bible-panel-head p { margin-top: 0.25rem; color: var(--muted); font-size: var(--fs-sm); }
.bible-panel-head .eyebrow { margin: 0; }
.bible-panel-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-deep); }
.bible-panel-icon svg { width: 24px; height: 24px; }
#read .bible-panel-head { display: none; }

/* 88. Freedom Wall: colorful notes, like sticky notes on a wall ------------- */
.fw-top { margin-bottom: 0.75rem; }
.fw-top .feed-compose { max-width: 760px; }
.fw-hint { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.fw-board { columns: 3 280px; column-gap: 1.1rem; margin-top: 0.5rem; }
.fw-board > .filter-empty { column-span: all; }
.fw-note { break-inside: avoid; display: flex; flex-direction: column; gap: 0.65rem; width: 100%; margin: 0 0 1.1rem; padding: 1.1rem 1.1rem 0.9rem; border-radius: 6px 6px 18px 6px;
  box-shadow: 0 12px 22px -16px rgba(0, 0, 0, 0.55); color: #24201A; transform: rotate(-0.8deg); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.fw-note:nth-child(even) { transform: rotate(0.9deg); }
.fw-note:nth-child(3n) { transform: rotate(-0.3deg); }
.fw-note:hover, .fw-note:focus-within { transform: rotate(0) translateY(-3px); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6); }
.fw-note:has(.rx-panel) { transform: none; }
.fw-note.tone-0 { background: #FFF4C2; }
.fw-note.tone-1 { background: #DDF0FF; color: #102A43; }
.fw-note.tone-2 { background: #FDE2E4; color: #4A1520; }
.fw-note.tone-3 { background: #E2F5E1; color: #133B1A; }
.fw-note.tone-4 { background: #EDE4FF; color: #2D1B5A; }
.fw-note.tone-5 { background: #FFE8D2; color: #4A2A10; }
.fw-note.tone-prayer { background: #E3ECFF; color: #13285A; border-top: 4px solid #6A8FE0; }
.fw-note.tone-praise { background: #FFF0C7; color: #3D2E05; border-top: 4px solid var(--gold); }
.fw-note header { display: flex; align-items: center; gap: 0.6rem; }
.fw-note .feed-avatar { width: 38px; height: 38px; font-size: 0.95rem; background: rgba(15, 44, 89, 0.85); }
.fw-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fw-who strong { color: inherit; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-who span { font-size: 0.72rem; opacity: 0.75; }
.fw-note .feed-kind { background: rgba(255, 255, 255, 0.6); color: inherit; }
.fw-note .feed-quote { background: rgba(255, 255, 255, 0.55); border-left-color: rgba(0, 0, 0, 0.25); color: inherit; font-size: 0.98rem; }
.fw-note .feed-quote cite, .fw-note .feed-ref { color: inherit; opacity: 0.85; }
.fw-note .feed-body { color: inherit; font-size: 0.98rem; }
.fw-note .rx { padding-top: 0.55rem; border-top: 1px dashed rgba(0, 0, 0, 0.18); }
.fw-note .rx-heart, .fw-note .rx-toggle { background: rgba(255, 255, 255, 0.65); border-color: rgba(0, 0, 0, 0.12); color: inherit; }
.fw-note .rx-heart.is-on { background: #FDE8EF; border-color: #E86A92; color: #B4235A; }
.fw-note .rx-prayed.is-on { background: #E8F1FF; border-color: #6A9BE8; color: #1D4E89; }
.fw-note .feed-own { display: flex; justify-content: flex-end; }
.fw-note .feed-own .link-btn.danger { color: #9B1C1C; }
.fw-note .feed-msg { background: rgba(255, 255, 255, 0.6); border-color: rgba(0, 0, 0, 0.12); color: inherit; }
.fw-note .sample-chip { align-self: flex-start; }
.fw-promo { flex-direction: row; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; color: var(--heading); text-decoration: none; flex-wrap: wrap; }
.fw-promo > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 14rem; }
.fw-promo strong { font-size: var(--fs-lg); }
.fw-promo small { color: var(--muted); }
.fw-promo-notes { display: flex; flex: none; }
.fw-promo-notes i { display: block; width: 34px; height: 34px; border-radius: 4px 4px 10px 4px; margin-left: -10px; box-shadow: 0 6px 10px -6px rgba(0,0,0,.4); }
.fw-promo-notes i:nth-child(1) { background: #FFF4C2; transform: rotate(-8deg); margin-left: 0; }
.fw-promo-notes i:nth-child(2) { background: #DDF0FF; transform: rotate(5deg); }
.fw-promo-notes i:nth-child(3) { background: #FDE2E4; transform: rotate(-3deg); }
@media (prefers-reduced-motion: reduce) { .fw-note, .fw-note:nth-child(even), .fw-note:nth-child(3n) { transform: none; } }
.me-prayer-actions { align-items: center; }
.me-share-mini { min-height: 32px; padding: 0.25rem 0.7rem; font-size: var(--fs-xs); }
.me-share-mini svg, .me-feed-btn svg { width: 15px; height: 15px; }

/* 89. Chat pop-up (new message on any page) -------------------------------- */
.chat-pop { position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(8.6rem + env(safe-area-inset-bottom, 0px)); z-index: 1300; width: min(340px, calc(100% - 2rem));
  display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem; border-radius: 18px; background: var(--white); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 24px 50px -18px rgba(5, 14, 30, 0.55); animation: chatPopIn .35s var(--ease); }
@keyframes chatPopIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-pop header { display: flex; align-items: center; gap: 0.6rem; }
.chat-pop header > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chat-pop header strong { color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-pop header span { font-size: var(--fs-xs); color: var(--muted); }
.chat-pop .chat-avatar { width: 40px; height: 40px; font-size: 1rem; }
.chat-pop-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.chat-pop-msg { margin: 0; padding: 0.6rem 0.85rem; border-radius: 16px 16px 16px 6px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-pop-reply { display: flex; gap: 0.4rem; }
.chat-pop-reply input { flex: 1; min-width: 0; min-height: 44px; padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 22px; font: inherit; background: var(--white); color: var(--ink); }
.chat-pop .chat-send { width: 44px; height: 44px; }
.chat-pop-open { align-self: flex-end; font-size: var(--fs-sm); font-weight: 700; color: var(--heading); }
.chat-pop-sent { margin: 0; display: flex; align-items: center; gap: 0.35rem; color: #1E8E5A; font-weight: 700; }
.chat-pop-sent svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .chat-pop { animation: none; } }

/* 90. Dark mode: hover colors stay readable -------------------------------- */
:root[data-theme="dark"] { --link-hover: #F3CB52; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --link-hover: #F3CB52; } }
:root[data-theme="dark"] .rx-heart, :root[data-theme="dark"] .rx-toggle { background: rgba(255, 255, 255, 0.08); }
:root[data-theme="dark"] .rx-panel { background: rgba(255, 255, 255, 0.94); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rx-heart, :root:not([data-theme="light"]) .rx-toggle { background: rgba(255, 255, 255, 0.08); }
}
/* Colorful notes keep dark text in dark mode too */
.fw-note .rx-heart:not(.is-on), .fw-note .rx-toggle { background: rgba(255, 255, 255, 0.65) !important; color: inherit; }
.fw-note a:hover { color: inherit; text-decoration: underline; }

/* 91. Admin: search box + results --------------------------------------- */
.admin-search-box { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.admin-search-box:focus-within { border-color: var(--gold); }
.admin-search-box svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.admin-search-box input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: var(--fs-sm); color: var(--ink); outline: none; }
.admin-side-list { display: flex; flex-direction: column; gap: 0.9rem; }
.admin-search-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.admin-search-head h2 { margin: 0; font-size: var(--fs-xl); text-transform: none; }
.admin-search-head span { color: var(--muted); font-size: var(--fs-sm); }
.admin-results { gap: 0.25rem; margin-bottom: 1rem; }
.admin-results h3 { margin: 0 0 0.4rem; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-ink); }
.admin-result { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; width: 100%; padding: 0.65rem 0.75rem; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.admin-result:hover { background: var(--surface-2); }
.admin-result strong { color: var(--heading); }
.admin-result span { grid-column: 1; font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-result em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 700; font-size: var(--fs-sm); color: var(--gold-ink); }
.page-hero.bible-hero { padding-block: clamp(1.6rem, 4vw, 2.4rem); }
.page-hero.bible-hero .container { padding-block: 0; }
.pw-jump { align-self: flex-start; width: auto; }
.section-head .pw-jump { display: inline-flex; }
.my-list-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.my-list-field legend { padding: 0; margin-bottom: 0.5rem; font-weight: 600; font-size: var(--fs-sm); color: var(--heading); }
.my-list-field .choices { display: grid; gap: 0.5rem; }
@media (max-width: 600px) {
  .feed-compose-kinds { display: grid; grid-template-columns: 1fr 1fr; }
  .feed-compose-kinds button { justify-content: flex-start; }
  .pw-bar { flex-direction: column; align-items: stretch; }
}

/* 92. Five main categories in the menu ------------------------------------- */
[data-admin-only][hidden] { display: none !important; }
.nav-gicon { display: inline-grid; place-items: center; margin-right: 0.35rem; }
.nav-gicon svg { width: 17px !important; height: 17px !important; opacity: 0.85; }
.sub-toggle { display: inline-flex; align-items: center; }
@media (min-width: 1200px) { .site-header.is-tightest .nav-gicon, .site-header.is-tightest2 .nav-gicon { display: none; } }
@media (max-width: 1199px) { .nav-gicon svg { width: 20px !important; height: 20px !important; } }

/* 93. No hidden sideways scrolling: every row of buttons is fully visible --- */
.bible-nav-inner { flex-wrap: wrap; overflow: visible; justify-content: center; }
@media (max-width: 760px) {
  .bible-nav { position: static; }
  .bible-nav-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; padding-block: 0.75rem; }
  .bible-nav a { flex-direction: column; justify-content: center; gap: 0.25rem; min-height: 64px; padding: 0.45rem 0.25rem; border-radius: 14px; font-size: 0.74rem; line-height: 1.15; text-align: center; white-space: normal; }
  .bible-nav a svg { width: 22px; height: 22px; }
}
@media (max-width: 360px) { .bible-nav-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.church-tabs, .promise-chips { flex-wrap: wrap; overflow: visible; }
.church-tabs .church-tab, .promise-chips .chip-btn { flex: none; }
.feed-filter, .pw-filter, .pw-churches, .filter-bar { flex-wrap: wrap; }

/* Big, clear arrows on every slider (easy for all ages) */
.t-controls { gap: 0.9rem; margin-top: 0.6rem; }
.t-controls .icon-btn { width: 50px; height: 50px; font-size: 1.7rem; line-height: 1; border: 2px solid var(--heading); background: var(--white); color: var(--heading); box-shadow: var(--shadow-sm); }
.t-controls .icon-btn:hover { background: var(--heading); color: var(--white); }
:root[data-theme="dark"] .t-controls .icon-btn:hover { background: var(--gold); color: #0A1F40; border-color: var(--gold); }
.t-count { min-width: 4.5rem; text-align: center; font-weight: 700; color: var(--muted); font-size: var(--fs-sm); }
.t-count b { color: var(--heading); font-size: 1.05rem; }

/* Freedom Wall as a row of notes you can move through */
.fw-board.has-carousel { columns: auto; }
.fw-board .t-track { align-items: start; padding: 0.6rem 0.3rem 1rem; }
.fw-board .fw-note { margin: 0; height: auto; }
.fw-board .t-slide.fw-note { display: flex; }

/* 94. Admin edit tools: small pencil buttons instead of long labels -------- */
.page-edit-fab { width: 48px; height: 48px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; left: auto; right: max(1rem, env(safe-area-inset-right, 0px)); transform: none; bottom: calc(12.2rem + env(safe-area-inset-bottom, 0px)); }
.page-edit-fab svg { width: 20px; height: 20px; }
@media (max-width: 700px) { .page-edit-fab { left: auto; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(12.2rem + env(safe-area-inset-bottom, 0px)); } }
.admin-shortcut.is-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; font-weight: 800; font-size: 1.1rem; line-height: 1; }
.admin-shortcut.is-icon svg { width: 15px; height: 15px; }

/* 95. Profile menu: everything for signed-in people, grouped ---------------- */
.account-menu { width: min(300px, calc(100vw - 1.5rem)); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); }
.account-scroll { overflow-y: auto; display: flex; flex-direction: column; gap: 0.35rem; min-height: 0; flex: 1; }
.account-group { display: flex; flex-direction: column; padding: 0.25rem 0; border-bottom: 1px solid var(--line); }
.account-group[hidden] { display: none; }
.account-group:last-child { border-bottom: 0; }
.account-group-label { padding: 0.35rem 0.6rem 0.15rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.account-group.is-admin { background: color-mix(in srgb, var(--gold-soft) 60%, transparent); border-radius: 10px; border-bottom: 0; }
.account-head strong { white-space: normal; }
.account-menu > button[data-signout] { margin-top: 0.3rem; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; }

/* 96. Bible + journal side by side (phones: swipe between the two) */
.study-switch { display: flex; gap: 0.5rem; justify-content: center; margin: 0 auto 1rem; max-width: 52rem; }
.study-tab { flex: 1 1 0; max-width: 16rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.6rem 1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 700 1rem/1.2 var(--font-body); cursor: pointer; }
.study-tab svg { width: 20px; height: 20px; flex: none; }
.study-tab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.study-tab:hover { border-color: var(--gold); }
.study-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.bible-study { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; align-items: flex-start; }
.bible-study::-webkit-scrollbar { display: none; }
.study-pane { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.study-journal { padding: 1.1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.study-j-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.study-j-head h3 { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 1.2rem; }
.study-j-head h3 svg { width: 22px; height: 22px; color: var(--gold-ink); }
.study-close { display: none; }
.study-journal > .field-hint { margin: 0; }
.study-signin { margin: 0; padding: 0.55rem 0.75rem; border-radius: 10px; background: var(--gold-soft); color: var(--ink); font-size: 0.92rem; }
.study-form { display: flex; flex-direction: column; gap: 0.75rem; }
.study-row { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; }
.study-field { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; font-size: 0.92rem; }
.study-field > span { display: inline-flex; align-items: center; gap: 0.45rem; }
.study-field .soap-letter { width: 26px; height: 26px; border-radius: 8px; font-size: 0.85rem; }
.study-field input, .study-field textarea { width: 100%; font: 400 1rem/1.5 var(--font-body); padding: 0.55rem 0.7rem; border: 1.5px solid var(--input-line); border-radius: 10px; background: var(--white); color: var(--ink); }
.study-field textarea { resize: vertical; min-height: 4.6rem; }
.study-date input { min-width: 9.5rem; }
.study-soap { display: flex; flex-direction: column; gap: 0.75rem; }
.study-use { align-self: flex-start; margin-top: -0.3rem; }
.study-use svg { width: 16px; height: 16px; }
.study-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.study-actions .btn svg { width: 18px; height: 18px; }
.study-status { margin: 0; font-weight: 700; color: var(--ink); }
.study-form .field-error:empty { display: none; }
@media (max-width: 999px) {
  .study-journal { margin-bottom: 0.25rem; }
}
@media (max-width: 420px) {
  .study-row { grid-template-columns: 1fr; }
}
@media (min-width: 1000px) {
  .bible-study { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; max-width: 52rem; margin-inline: auto; }
  .bible-study.is-open { grid-template-columns: minmax(0, 1.45fr) minmax(330px, 1fr); max-width: none; gap: 1.5rem; }
  .study-journal { display: none; }
  .bible-study.is-open .study-journal { display: flex; position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; }
  .bible-study.is-open .bible-reader { max-width: none; }
  .study-close { display: inline-grid; }
  .study-tab[data-study-show="bible"] { display: none; }
  .study-switch { justify-content: flex-end; }
  .study-switch.is-open-wide { display: none; }
  .study-tab[data-study-show="journal"] { flex: 0 0 auto; }
}

/* 97. My Page: Bible beside the journal form */
.jr-study.is-open { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; align-items: flex-start; }
.jr-study.is-open::-webkit-scrollbar { display: none; }
.jr-study.is-open > * { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; margin: 0; }
.jr-switch { margin-top: 0.5rem; }
.jr-bible { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; }
.jr-bible[hidden] { display: none; }
.jr-bible-head { display: grid; grid-template-columns: auto minmax(0, 1fr) 5.2rem auto; gap: 0.4rem; align-items: center; }
.jr-bible-head .me-select { width: 100%; min-width: 0; }
.jr-bible-hint { margin: 0; }
.jr-bible-text { max-height: 62vh; overflow-y: auto; padding: 0.25rem 0.35rem 0.5rem; font-size: 1.05rem; line-height: 1.85; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.jr-bible-text h4 { margin: 0.5rem 0; font-size: 1.1rem; color: var(--heading); }
.jr-bible-text h4 small { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.jr-bible-text .verse { cursor: pointer; border-radius: 4px; }
.jr-bible-text .verse sup { color: var(--gold-deep); font-weight: 700; margin-right: 0.15rem; }
.jr-bible-text .verse:hover { background: var(--surface-2); }
.jr-bible-text .verse.is-selected { background: var(--gold-soft); color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.jr-bible-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.jr-bible-sel { font-weight: 700; color: var(--heading); }
.jr-bible-foot .btn svg { width: 16px; height: 16px; }
@media (min-width: 1000px) {
  .jr-switch { display: none !important; }
  .jr-study.is-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem; overflow: visible; }
  .jr-study.is-open > * { flex: none; }
  .jr-study.is-open .jr-bible { position: sticky; top: 96px; max-height: calc(100vh - 112px); }
  .jr-study.is-open .jr-bible-text { max-height: none; flex: 1 1 auto; min-height: 0; }
}

/* My Page header: role badge fits its text; the 5 counts sit in one row */
.me-role { align-self: flex-start; width: max-content; max-width: 100%; }
.me-stats { grid-template-columns: repeat(5, minmax(4.6rem, 1fr)); }
@media (max-width: 560px) {
  .me-stats { gap: 0.4rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .me-stats div { padding: 0.6rem 0.2rem; }
  .me-stats strong { font-size: 1.35rem; }
  .me-stats span { font-size: 0.72rem; text-align: center; line-height: 1.25; }
}

/* 98. Sign-out confirmation */
.confirm-dialog { width: min(400px, calc(100% - 32px)); border: 0; border-radius: var(--radius); padding: 1.6rem 1.4rem 1.3rem; background: var(--white); color: var(--ink); text-align: center; box-shadow: 0 20px 60px rgba(5, 12, 26, 0.35); }
.confirm-dialog::backdrop { background: rgba(5, 12, 26, 0.6); }
.confirm-dialog h2 { margin: 0.6rem 0 0.3rem; font-size: 1.5rem; }
.confirm-dialog p { margin: 0 0 1.2rem; color: var(--muted); }
.confirm-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); }
.confirm-icon svg { width: 26px; height: 26px; }
.confirm-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.confirm-actions .btn { flex: 1 1 9rem; min-height: 48px; }

/* 99. Messenger-style chat dock: window + round chat heads on every page */
.chat-dock { position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(8.4rem + env(safe-area-inset-bottom, 0px)); z-index: 1300; display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; pointer-events: none; }
.chat-dock[hidden] { display: none; }
.chat-dock > * { pointer-events: auto; }
.chat-dock .chat-pop { position: static; width: min(340px, calc(100vw - 2rem)); padding: 0.75rem; gap: 0.55rem; }
.chat-pop header a { font-size: var(--fs-xs); font-weight: 700; color: var(--gold-deep); text-decoration: none; }
.chat-pop header a:hover { text-decoration: underline; }
.chat-pop header .chat-pop-x { flex: none; width: 32px; height: 32px; display: inline-grid; place-items: center; font-size: 1.2rem; }
.chat-pop-sound svg { width: 16px; height: 16px; }
.chat-pop-sound.is-off { opacity: 0.55; position: relative; }
.chat-pop-sound.is-off::after { content: ""; position: absolute; left: 7px; right: 7px; top: 50%; height: 2px; background: currentColor; transform: rotate(-40deg); }
.chat-pop-thread { display: flex; flex-direction: column; gap: 0.3rem; max-height: min(260px, 40vh); overflow-y: auto; padding: 0.15rem 0.1rem; overscroll-behavior: contain; }
.chat-pop-thread:empty { display: none; }
.chat-pop-wait { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.chat-pop-b { display: flex; }
.chat-pop-b p { margin: 0; max-width: 85%; padding: 0.5rem 0.8rem; border-radius: 16px 16px 16px 6px; background: var(--surface-2); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.chat-pop-b.is-me { justify-content: flex-end; }
.chat-pop-b.is-me p { border-radius: 16px 16px 6px 16px; background: var(--navy); color: #fff; }
.chat-pop-b:last-child p { animation: chatPopIn .3s var(--ease); }
.chat-heads { display: flex; flex-direction: row-reverse; gap: 0.5rem; }
.chat-heads[hidden] { display: none; }
.chat-head { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--white); background: linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--navy) 60%, var(--gold))); color: #fff; font: 800 1.2rem/1 var(--font-body); cursor: pointer; box-shadow: 0 10px 24px -8px rgba(5, 14, 30, 0.6); animation: chatPopIn .35s var(--ease); }
.chat-head:hover { transform: scale(1.06); }
.chat-head:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.chat-head-n { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #E0245E; color: #fff; font-size: 0.75rem; line-height: 22px; border: 2px solid var(--white); }
@media (max-width: 560px) {
  .chat-dock { left: 0.6rem; right: 0.6rem; align-items: stretch; }
  .chat-dock .chat-pop { width: auto; }
  .chat-heads { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .chat-head, .chat-pop-b:last-child p { animation: none; } }

/* 100. Emoji button and picker */
.emoji-wrap { position: relative; display: block; min-width: 0; }
.chat-compose .emoji-wrap, .chat-pop-reply .emoji-wrap { flex: 1 1 auto; display: flex; }
.chat-compose .emoji-wrap > textarea, .chat-pop-reply .emoji-wrap > input { flex: 1; width: 100%; }
.emoji-wrap > textarea, .emoji-wrap > input { padding-right: 2.9rem !important; }
.emoji-wrap > textarea { width: 100%; }
.emoji-btn { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; font-size: 1.25rem; line-height: 1; cursor: pointer; filter: grayscale(0.15); }
.emoji-wrap:not(.is-area) .emoji-btn { top: 50%; bottom: auto; transform: translateY(-50%); }
.emoji-btn:hover, .emoji-btn[aria-expanded="true"] { background: var(--gold-soft); filter: none; }
.emoji-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.emoji-panel { position: fixed; z-index: 2000; width: 320px; max-width: calc(100vw - 16px); padding: 0.5rem; border-radius: 16px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 50px -16px rgba(5, 14, 30, 0.5); }
.emoji-panel[hidden] { display: none; }
.emoji-tabs { display: flex; gap: 0.15rem; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 0.35rem; }
.emoji-tabs button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; font-size: 1.2rem; cursor: pointer; }
.emoji-tabs button[aria-selected="true"] { background: var(--gold-soft); }
.emoji-tabs .emoji-close { margin-left: auto; font-size: 1.4rem; color: var(--muted); }
.emoji-title { margin: 0.4rem 0.25rem 0.2rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.1rem; max-height: 210px; overflow-y: auto; }
.emoji-grid button { aspect-ratio: 1; border: 0; border-radius: 8px; background: transparent; font-size: 1.45rem; line-height: 1; cursor: pointer; }
.emoji-grid button:hover, .emoji-grid button:focus-visible { background: var(--surface-2); outline: none; }
@media (max-width: 559px) { .emoji-panel { width: auto; } .emoji-grid button { font-size: 1.6rem; } }
.chat-pop header .chat-avatar { color: #fff; font-size: 1rem; font-weight: 800; flex: none; }

/* 99. Titles on Freedom Wall, Prayer Wall and prayer requests */
.fw-title { margin: 0.2rem 0 0.1rem; font-size: 1.2rem; line-height: 1.3; color: inherit; font-weight: 800; letter-spacing: 0; text-transform: none; }
.pw-title { margin: 0.35rem 0 0; font-size: 1.12rem; line-height: 1.3; font-weight: 800; color: var(--heading); text-transform: none; letter-spacing: 0; }
.inbox-title { margin: 0.2rem 0 0; color: var(--heading); }
.share-title-field { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; }
.share-title-field input { width: 100%; font: 600 1.05rem/1.4 var(--font-body); padding: 0.6rem 0.75rem; border: 1.5px solid var(--input-line); border-radius: 10px; background: var(--white); color: var(--ink); }

/* 99. Bro./Sis. names */
.bro-sis { border: 0; padding: 0; margin: 0.2rem 0 0.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bro-sis legend { font-weight: 700; margin-bottom: 0.35rem; padding: 0; }
.bro-sis-opt { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.4rem 0.9rem; border: 1.5px solid var(--input-line); border-radius: 999px; cursor: pointer; font-weight: 600; }
.bro-sis-opt:has(input:checked) { border-color: var(--navy); background: var(--gold-soft); }
.gender-dialog h2 { font-size: 1.3rem; }
.gender-dialog .link-btn { margin-top: 0.8rem; }
.account-honor { display: block; margin-top: 0.2rem; font-size: 0.78rem; color: var(--muted); white-space: normal; }
.account-honor b { color: var(--heading); }
.account-honor .link-btn { font-size: 0.78rem; }

/* 100. "Edited by …" */
.edited-by { margin: 0.5rem 0 0; font-size: 0.78rem; line-height: 1.4; color: var(--muted); font-style: italic; }
.edited-by b { font-style: normal; font-weight: 700; color: var(--ink); }
.page-edited { margin: 1.5rem auto 1.5rem; font-size: 0.8rem; color: var(--muted); font-style: italic; text-align: center; }
.page-edited b { font-style: normal; color: var(--ink); }
.page-hero .edited-by, .on-dark .edited-by { color: rgba(255,255,255,.75); }

/* 101. People & Roles: Admin / Pastor access, set by the pastor */
.role-pill.is-admin { background: var(--gold-soft); color: var(--gold-ink); }
.role-guide { list-style: none; margin: 0.25rem 0 0.75rem; padding: 0; display: grid; gap: 0.45rem; }
.role-guide li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; font-size: var(--fs-sm); color: var(--ink); }
.role-guide .role-pill { flex: none; min-width: 8.5rem; justify-content: center; }
.person-role { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; justify-content: flex-end; }
.person-scope { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.person-scope select { min-height: 40px; padding: 0.35rem 0.6rem; border: 1px solid var(--input-line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: 600 var(--fs-sm)/1.2 var(--font-body); }
.person-changed { display: block; margin-top: 0.15rem; font-size: 0.76rem; font-style: italic; color: var(--muted); }
.person-changed b { font-style: normal; color: var(--ink); }
.person-you { font-weight: 600; color: var(--muted); font-size: 0.85em; }
.person-row.is-admin, .person-row.is-pastor { border-left: 4px solid var(--gold); }
@media (max-width: 640px) { .person-role { justify-content: flex-start; width: 100%; } }
.admin-row.person-row > .person-who { flex-direction: row; align-items: center; gap: 0.75rem; }

/* 102. Messages on phones: nothing cut off, even with big phone text */
.chat-shell { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .chat-shell { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); } }
.chat-list, .chat-thread { min-width: 0; }
.chat-list-head { flex-wrap: wrap; }
.chat-list-head h2 { min-width: 0; }
.chat-list-head .btn { flex: none; max-width: 100%; white-space: normal; }
.chat-item-main { min-width: 0; }
.chat-item-side { flex: none; }
.chat-thread-head { flex-wrap: wrap; row-gap: 0.4rem; }
.chat-thread-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-popout { flex: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.chat-popout svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .chat-popout span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .chat-popout { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; } }

/* 103. Smaller text (A−) and smaller, calmer floating buttons */
html[data-text="small"] { font-size: 90%; }
.text-size { grid-template-columns: repeat(4, 1fr); }
.theme-fab-btn { width: 42px; height: 42px; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--navy-deep) 55%, transparent); }
.theme-fab-btn span { width: 32px; height: 32px; }
.theme-fab-btn svg { width: 17px; height: 17px; }
.messenger-fab { height: 44px; gap: 0.45rem; padding: 0 0.9rem 0 0.35rem; font-size: 0.85rem; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--navy-deep) 60%, transparent); }
.messenger-fab .fab-icon { width: 34px; height: 34px; }
.messenger-fab .fab-icon svg { width: 18px; height: 18px; }
.to-top { width: 36px; height: 36px; right: max(1.05rem, env(safe-area-inset-right, 0px)); bottom: calc(7.6rem + env(safe-area-inset-bottom, 0px)); opacity: .85; }
.to-top svg { width: 16px; height: 16px; }
.page-edit-fab { width: 38px; height: 38px; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(10.4rem + env(safe-area-inset-bottom, 0px)); }
.page-edit-fab svg { width: 16px; height: 16px; }
@media (max-width: 700px) { .page-edit-fab { bottom: calc(10.4rem + env(safe-area-inset-bottom, 0px)); } }
/* Signed in: no "Chat with Us" (members use Messages), so the others move down */
.is-member .messenger-fab { display: none !important; }
.is-member .to-top { bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
.is-member .page-edit-fab { bottom: calc(7.4rem + env(safe-area-inset-bottom, 0px)); }
.is-member .chat-dock { bottom: calc(10.4rem + env(safe-area-inset-bottom, 0px)); }
/* While verses are selected, the verse bar gets the space (nothing covers its buttons) */
.verse-bar { z-index: 95; }
body:has(.verse-bar:not([hidden])) .messenger-fab,
body:has(.verse-bar:not([hidden])) .to-top,
body:has(.verse-bar:not([hidden])) .page-edit-fab { display: none !important; }

/* 104. Freedom Wall: pick your note color */
.share-colors { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.share-colors legend { font-weight: 700; font-size: var(--fs-sm); margin-bottom: 0.35rem; padding: 0; }
.share-color { position: relative; cursor: pointer; }
.share-color input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.share-color > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); font-size: 0.72rem; font-weight: 800; color: var(--ink); }
.share-color.is-auto > span { width: auto; padding: 0 0.7rem; border-radius: 999px; background: var(--surface-2); border-color: var(--input-line); }
.share-color.tone-0 > span { background: #FFF4C2; }
.share-color.tone-1 > span { background: #DDF0FF; }
.share-color.tone-2 > span { background: #FDE2E4; }
.share-color.tone-3 > span { background: #E2F5E1; }
.share-color.tone-4 > span { background: #EDE4FF; }
.share-color.tone-5 > span { background: #FFE8D2; }
.share-color input:checked + span { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--navy); }
.share-color input:focus-visible + span { outline: 3px solid var(--heading); outline-offset: 2px; }

/* 105. Comments: Like and Reply */
.rx-cm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.9rem; margin-top: 0.25rem; }
.rx-cm-like, .rx-cm-reply { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 32px; padding: 0.15rem 0.2rem; border: 0; background: none; color: var(--muted); font: 700 0.8rem/1 var(--font-body); cursor: pointer; }
.rx-cm-like svg, .rx-cm-reply svg { width: 15px; height: 15px; }
.rx-cm-like:hover, .rx-cm-reply:hover { color: var(--heading); }
.rx-cm-like.is-on { color: #D93A3A; }
.rx-cm-like.is-on svg { fill: currentColor; }
.rx-cm-like b { font-weight: 800; }
.rx-replies { margin: 0.35rem 0 0.2rem 1.1rem; padding-left: 0.8rem; border-left: 2px solid color-mix(in srgb, var(--gold) 55%, transparent); display: flex; flex-direction: column; gap: 0.5rem; }
.rx-comment.is-reply { font-size: 0.95em; }
.rx-reply-form textarea { min-height: 3.2rem; }
.rx-reply-btns { display: flex; justify-content: flex-end; align-items: center; gap: 0.8rem; }
.rx-cm-group + .rx-cm-group { margin-top: 0.4rem; }

/* 106. My notes on Bible verses */
.bible-text .verse.has-note { position: relative; }
.verse-note-mark { position: relative; top: -0.55em; display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; margin-right: 0.15em; padding: 0; border: 0; border-radius: 50%; background: var(--gold); color: #1A1405; vertical-align: baseline; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.verse-note-mark svg { width: 0.8em; height: 0.8em; }
.verse-note-mark:focus-visible { outline: 3px solid var(--heading); outline-offset: 2px; }
.verse-note-dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; border: 0; border-radius: var(--radius); padding: 1.4rem 1.25rem 1.2rem; background: var(--white); color: var(--ink); box-shadow: 0 20px 60px rgba(5, 12, 26, 0.35); }
.verse-note-dialog::backdrop { background: rgba(5, 12, 26, 0.6); }
.verse-note-dialog h2 { margin: 0 2rem 0.75rem 0; font-size: 1.25rem; text-transform: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.vn-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1A1405; font-size: 0.95rem; }
.vn-quote { margin: 0 0 0.9rem; padding: 0.7rem 0.9rem; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--surface-2); font-style: italic; line-height: 1.6; }
.vn-quote cite { font-style: normal; font-weight: 700; font-size: 0.8rem; color: var(--muted); }
.vn-text { white-space: pre-wrap; font-size: 1.05rem; line-height: 1.6; margin: 0 0 0.4rem; }
.vn-when { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 0.9rem; }
.verse-note-dialog textarea { width: 100%; padding: 0.7rem 0.85rem; border: 1.5px solid var(--input-line); border-radius: 10px; font: 400 1rem/1.5 var(--font-body); background: var(--white); color: var(--ink); resize: vertical; }
.vn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.75rem; }

/* 107. "Need a prayer?" band and verse-of-the-day header: neat at every width and text size */
.prayer-band-inner { grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; }
.prayer-band-inner > div:nth-child(2) { min-width: 0; }
.prayer-band-actions { grid-column: 1 / -1; }
@media (max-width: 767px) { .prayer-band-inner { grid-template-columns: minmax(0, 1fr); } .prayer-band-icon { width: 52px; height: 52px; } }
@media (min-width: 768px) { .prayer-band-inner { grid-template-columns: auto minmax(0, 1fr); } .prayer-band-actions { grid-column: 2; } }
@media (min-width: 1100px) { .prayer-band-inner { grid-template-columns: auto minmax(0, 1fr) minmax(16rem, auto); } .prayer-band-actions { grid-column: 3; } }
.prayer-band-link { align-items: flex-start; }
.prayer-band-link svg { flex: none; margin-top: 0.3em; }
.votd-home-head { flex-wrap: wrap; row-gap: 0.4rem; }
.votd-home-head .link-arrow { white-space: nowrap; }
.verse-bar-actions { flex-wrap: wrap; row-gap: 0.45rem; margin-left: 0; width: 100%; }
@media (min-width: 640px) { .verse-bar-actions { width: auto; margin-left: auto; } }
.verse-bar-actions .btn { padding-inline: 0.85rem; }

/* 108. One edit button: the pencil turns on "edit mode" for the whole page.
   Section edit buttons only appear while editing (labelled, easy to tap). */
.admin-shortcut, .admin-shortcuts { display: none !important; }
body.is-page-editing .admin-shortcuts { display: flex !important; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
body.is-page-editing .admin-shortcut { display: inline-flex !important; align-items: center; gap: 0.4rem; width: auto; height: auto; min-height: 40px; margin: 0.4rem 0.4rem 0.6rem 0; padding: 0.45rem 0.95rem; border-radius: 999px; border: 2px dashed #1A1405; background: var(--gold); color: #1A1405; font: 700 0.85rem/1.2 var(--font-body); text-decoration: none; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); position: relative; z-index: 5; }
body.is-page-editing .admin-shortcut svg { width: 15px; height: 15px; }
body.is-page-editing .admin-shortcut b { font-size: 1.05rem; line-height: 1; }
body.is-page-editing .admin-shortcut:hover { filter: brightness(1.06); }
body.is-page-editing .admin-shortcuts .admin-shortcut { margin: 0; }
.page-edit-actions .link-btn { color: var(--on-dark); }

/* 109. Group chats */
.chat-new-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.chat-new-btns .btn svg { width: 16px; height: 16px; }
.chat-avatar.is-group svg { width: 22px; height: 22px; }
.chat-avatar.sm { width: 30px; height: 30px; font-size: 0.85rem; }
.chat-head-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-head-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-members-btn { align-self: flex-start; font-size: var(--fs-xs); padding: 0; }
.chat-addppl { flex: none; display: inline-flex; align-items: center; gap: 0.15rem; font-weight: 800; }
.chat-addppl svg { width: 16px; height: 16px; }
.chat-members { padding: 0.6rem 1rem 0.8rem; border-bottom: 1px solid var(--line); background: var(--white); }
.chat-members ul { list-style: none; margin: 0 0 0.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
.chat-members li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); color: var(--ink); }
.chat-members-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.chat-gname { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; font-size: var(--fs-sm); color: var(--heading); }
.chat-pick-hint { margin: 0.2rem 1rem 0; font-size: var(--fs-sm); color: var(--muted); }
.chat-item.is-pickable { position: relative; }
.chat-check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--input-line); color: #1A1405; font-weight: 900; }
.chat-item.is-picked { background: var(--gold-soft); }
.chat-item.is-picked .chat-check { background: var(--gold); border-color: var(--gold); }
.chat-group-go { position: sticky; bottom: 0; padding: 0.7rem 1rem; border-top: 1px solid var(--line); background: var(--white); }
.chat-group-go .btn { width: 100%; }
.chat-list { overflow: hidden; }
.chat-list .chat-items { min-height: 0; }
.me-honor { margin: 0.35rem 0 0; font-size: var(--fs-xs); color: rgba(255,255,255,.8); }
.me-honor b { color: #fff; }
.me-honor .link-btn { color: var(--gold); font-size: var(--fs-xs); }
.me-month-select { margin-left: 0.4rem; }
.page-hero .me-honor, .me-hero .me-honor { margin: 0.1rem 0 0; font-size: 0.85rem; line-height: 1.4; color: rgba(255,255,255,.8); }

/* 110. Chat settings: color, group name, members (tap the chat name) */
.chat-msg.is-me { background: var(--chat-me, var(--navy)); }
.chat-thread .chat-send { background: var(--chat-me, var(--gold)); color: var(--chat-me-ink, #1A1405); border-color: transparent; }
.chat-thread[style*="--chat-me"] .chat-send { --chat-me-ink: #fff; }
.chat-thread[style*="--chat-me"] .chat-thread-head { box-shadow: inset 0 -3px 0 var(--chat-me); }
.chat-thread[style*="--chat-me"] .chat-head-who .chat-avatar, .chat-items .chat-avatar[style*="--chat-me"] { background: var(--chat-me); }
.chat-head-who { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; padding: 0.25rem 0.4rem; margin: -0.25rem 0; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.chat-head-who:hover { background: var(--surface-2); }
.chat-head-title small { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-gear svg, .chat-popout svg { width: 18px; height: 18px; }
.chat-popout span { display: none; }
.chat-settings { padding: 0.4rem 1rem 0.6rem; border-bottom: 1px solid var(--line); background: var(--white); max-height: 55%; overflow-y: auto; animation: chatSetIn .18s ease-out; }
@keyframes chatSetIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat-settings { animation: none; } }
.chat-set-row { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.chat-set-row h3 { margin: 0 0 0.5rem; font-size: 0.95rem; text-transform: none; letter-spacing: 0; color: var(--heading); display: flex; align-items: center; gap: 0.4rem; }
.chat-set-hint { margin: 0.4rem 0 0; font-size: var(--fs-xs); color: var(--muted); }
.chat-colors { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chat-color { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 3px solid var(--white); background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .15s; }
.chat-color:hover { transform: scale(1.08); }
.chat-color.is-on { box-shadow: 0 0 0 3px var(--c), 0 0 0 5px var(--white), 0 0 0 6px var(--line); }
.chat-color:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.chat-rename-row { display: flex; gap: 0.5rem; }
.chat-rename-row input { flex: 1; min-width: 0; padding: 0.55rem 0.85rem; border: 1.5px solid var(--input-line); border-radius: 999px; font: inherit; background: var(--white); color: var(--ink); }
.chat-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); font-size: 0.75rem; }
.chat-member-list { list-style: none; margin: 0 0 0.6rem; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.chat-member-list li { display: flex; align-items: center; gap: 0.55rem; font-size: var(--fs-sm); color: var(--ink); }
.chat-member-list em { margin-left: auto; font-style: normal; font-size: var(--fs-xs); color: var(--muted); }
.chat-set-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.chat-set-last { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; border-bottom: 0; }
.chat-set-last .btn svg { width: 16px; height: 16px; }
.chat-thread-head { flex-wrap: nowrap; }
.chat-list-head h2 { min-width: max-content; }
@media (min-width: 800px) {
  .chat-list > .chat-list-head:first-child { flex-wrap: wrap; }
  .chat-list .chat-new-btns { width: 100%; }
  .chat-list .chat-new-btns .btn { flex: 1 1 0; justify-content: center; }
}
@media (max-width: 520px) { .chat-tap-hint { display: none; } }
.chat-settings { max-height: 68%; }
.chat-color { outline: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); outline-offset: 0; }
.chat-color.is-on { outline: 0; }

/* 110. Calmer home page: today row, family invite, explore tiles, and
   "Get to know us" sections that open with one tap (on every screen) */
.today-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .today-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; } }
.prayer-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: clamp(1.1rem, 3vw, 1.6rem); background: var(--navy-soft); border-color: var(--line); }
.prayer-card h2 { font-size: var(--fs-xl); margin: 0; }
.prayer-card p { color: var(--muted); margin: 0; }
.prayer-card .prayer-band-actions { margin-top: auto; padding-top: 0.4rem; }
.family-invite { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem 1rem; align-items: center; margin-top: 1.25rem; padding: clamp(1rem, 3vw, 1.5rem); border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--on-dark); }
.family-invite[hidden] { display: none; }
.family-invite-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #1A1405; }
.family-invite-icon svg { width: 26px; height: 26px; }
.family-invite h3 { margin: 0 0 0.25rem; color: #fff; font-size: var(--fs-lg); }
.family-invite p { margin: 0; color: rgba(255,255,255,.85); }
.family-invite .btn-row { grid-column: 1 / -1; margin: 0.3rem 0 0; }
.family-invite .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.family-invite .btn svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .family-invite { grid-template-columns: auto minmax(0, 1fr) auto; } .family-invite .btn-row { grid-column: 3; margin: 0; } }
.explore-grid { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.explore-tile { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; }
.explore-tile:hover, .explore-tile:focus-visible { transform: translateY(-2px); border-color: var(--gold); color: var(--ink); }
.explore-tile > svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--navy-soft); color: var(--gold-deep); }
.explore-tile span { display: flex; flex-direction: column; min-width: 0; }
.explore-tile strong { color: var(--heading); }
.explore-tile small { color: var(--muted); font-size: var(--fs-sm); }
.home-more-label { padding-top: 1.5rem; }
.home-more-label .eyebrow { margin: 0; }
/* Sections that fold on every screen: a tidy row you tap to open */
@media (min-width: 701px) {
  section[data-fold-always] .fold-head { position: relative; padding-right: 3.6rem; cursor: pointer; }
  section[data-fold-always] .fold-btn { display: grid; place-items: center; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--white); color: var(--heading); cursor: pointer; box-shadow: var(--shadow-sm); }
  section[data-fold-always] .fold-btn svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
  section[data-fold-always] .fold-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  section[data-fold-always].is-folded { padding-block: 1.2rem !important; }
  section[data-fold-always].is-folded .fold-head { margin-bottom: 0 !important; }
  section[data-fold-always].is-folded .fold-head p, section[data-fold-always].is-folded .split-head .btn, section[data-fold-always].is-folded .split-head .link-arrow { display: none; }
  section[data-fold-always].is-folded .fold-head h2 { margin-bottom: 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
  section[data-fold-always] + section[data-fold-always].is-folded { border-top: 1px solid var(--line); }
}

/* 111. A bigger church logo in the header */
.site-header .brand-logo { width: 54px; }
.site-header .brand-name { font-size: 1.4rem; }
.site-header .brand-sub { font-size: 0.68rem; max-width: 12rem; }
@media (max-width: 1100px) { .site-header .brand-logo { width: 48px; } .site-header .brand-name { font-size: 1.28rem; } }
@media (max-width: 420px) { .site-header .brand-logo { width: 44px; } .site-header .brand-name { font-size: 1.12rem; } .site-header .brand-sub { max-width: 6.6rem; font-size: 0.52rem; } }
@media (max-width: 400px) { .site-header .brand-logo { width: 40px; } .site-header .brand-name { font-size: 1.02rem; } .site-header .brand-sub { max-width: 4.9rem; font-size: 0.47rem; } }
.site-header.is-tight .brand-logo { width: 48px; } .site-header.is-tightest .brand-logo, .site-header.is-tightest2 .brand-logo { width: 44px; }

/* 112. More colors in Appearance: a tidy grid of swatches */
.theme-panel .swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 0.45rem; }
.theme-panel .swatch.is-church { grid-column: 1 / -1; }
.theme-panel { max-height: calc(100dvh - 7rem); overflow-y: auto; overscroll-behavior: contain; }
.theme-panel .swatch { justify-self: center; }
.theme-panel .swatch.is-church { justify-self: stretch; }

/* 113. First-time tour */
.tour { position: fixed; inset: 0; z-index: 2000; }
.tour.is-center { background: rgba(5, 12, 26, 0.62); display: grid; place-items: center; padding: 16px; }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(5, 12, 26, 0.62), 0 0 0 3px var(--gold); transition: all .3s var(--ease); pointer-events: none; }
.tour-card { position: fixed; width: min(340px, calc(100vw - 24px)); padding: 1.1rem 1.15rem 1rem; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 24px 60px -12px rgba(0,0,0,.5); transition: top .3s var(--ease), left .3s var(--ease); }
.tour.is-center .tour-card { position: relative; width: min(380px, 100%); text-align: center; }
.tour-card h2 { margin: 0.1rem 0 0.4rem; font-size: 1.3rem; text-transform: none; color: var(--heading); }
.tour-card p { margin: 0; line-height: 1.5; }
.tour-count { font-size: var(--fs-xs) !important; font-weight: 800; letter-spacing: 0.1em; color: var(--gold-ink); }
.tour-dots { display: flex; gap: 5px; margin: 0.8rem 0 0.2rem; }
.tour.is-center .tour-dots { justify-content: center; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { width: 20px; border-radius: 4px; background: var(--gold); }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.7rem; }
.tour-nav { display: flex; gap: 0.5rem; }
.footer-tour { display: inline-flex; align-items: center; gap: 0.3rem; color: inherit; font: inherit; }
.footer-tour svg { width: 15px; height: 15px; }
.account-menu .account-tour { display: flex; align-items: center; gap: 0.6rem; }

/* 114. Home: lighter on phones */
.sermon-home .sermon-passage { display: none; }          /* the full chapter is one tap away (Open in the Bible reader) */
@media (max-width: 700px) {
  #discover .feature-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  #discover .feature-card { flex-direction: column; align-items: flex-start; gap: 0.45rem; padding: 0.75rem; }
  #discover .feature-card > span:last-child > span { display: none; }
  #discover .feature-card strong { font-size: 0.95rem; line-height: 1.25; }
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .explore-tile { flex-direction: column; align-items: flex-start; gap: 0.45rem; padding: 0.75rem; }
  .explore-tile small { display: none; }
}

/* 112. Floating buttons you can drag (pencil and chat heads) */
.page-edit-fab, .chat-heads, .chat-dock .chat-pop > header { touch-action: none; }
.page-edit-fab { cursor: grab; }
.is-dragging, .is-dragging * { cursor: grabbing !important; transition: none !important; }
.page-edit-fab.is-dragging { transform: scale(1.12); box-shadow: 0 14px 30px -8px rgba(0,0,0,.45); }
.chat-dock.is-dragging .chat-head { transform: scale(1.08); }
.pos-reset { align-self: flex-start; }

/* 113. "New message" floating button (signed in) */
.newmsg-fab { position: fixed; z-index: 90; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 0.45rem; height: 42px; padding: 0 1rem 0 0.8rem; border-radius: 999px; background: var(--navy); color: #fff; font: 700 0.85rem/1 var(--font-body); text-decoration: none; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--navy-deep) 70%, transparent); border: 1.5px solid color-mix(in srgb, var(--gold) 60%, transparent); touch-action: none; cursor: grab; }
.newmsg-fab svg { width: 18px; height: 18px; color: var(--gold); }
.newmsg-fab:hover { color: #fff; background: var(--navy-deep); }
.newmsg-fab.is-dragging { transform: scale(1.06); }
html:not(.is-member) .newmsg-fab { display: none; }
body:has(.verse-bar:not([hidden])) .newmsg-fab, body.is-page-editing .newmsg-fab { display: none !important; }
@media (max-width: 480px) { .newmsg-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .newmsg-fab { width: 46px; height: 46px; padding: 0; justify-content: center; } .newmsg-fab svg { width: 20px; height: 20px; } }
/* members' stack on the right (above the host's "Powered by" badge): new message, to top, pencil, chat heads */
.newmsg-fab { bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px)); }
.is-member .to-top { bottom: calc(7.6rem + env(safe-area-inset-bottom, 0px)); }
.is-member .page-edit-fab { bottom: calc(10.3rem + env(safe-area-inset-bottom, 0px)); }
.is-member .chat-dock { bottom: calc(13.2rem + env(safe-area-inset-bottom, 0px)); }

/* 113. A−− (smallest text) */
html[data-text="xsmall"] { font-size: 81.25%; }
.text-size { grid-template-columns: repeat(5, 1fr); }
.text-size label span { white-space: nowrap; letter-spacing: -0.04em; }

/* 114. Chat color fills the whole chat background; emoji reactions */
.chat-thread .chat-msgs { background: linear-gradient(180deg, color-mix(in srgb, var(--chat-me, var(--navy)) 20%, var(--white)), color-mix(in srgb, var(--chat-me, var(--navy)) 9%, var(--white))); }
.chat-thread .chat-thread-head { background: color-mix(in srgb, var(--chat-me, var(--navy)) 12%, var(--white)); }
.chat-thread .chat-compose { background: color-mix(in srgb, var(--chat-me, var(--navy)) 6%, var(--white)); }
.chat-thread .chat-day { background: color-mix(in srgb, var(--white) 85%, transparent); }
.chat-msg-wrap { display: flex; flex-direction: column; align-items: flex-start; position: relative; max-width: 100%; }
.chat-msg-wrap.is-me { align-items: flex-end; }
.chat-msg-wrap .chat-msg { align-self: auto; cursor: pointer; }
.chat-react-btn { position: absolute; top: 0.3rem; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.chat-msg-wrap:not(.is-me) .chat-react-btn { left: calc(min(78%, 520px) + 0.4rem); }
.chat-msg-wrap.is-me .chat-react-btn { right: calc(min(78%, 520px) + 0.4rem); }
.chat-msg-wrap:hover .chat-react-btn, .chat-react-btn:focus-visible { opacity: 1; }
@media (hover: none) { .chat-react-btn { display: none; } }
.chat-rx { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: -0.35rem; padding: 0 0.4rem; position: relative; z-index: 1; }
.chat-rx-chip { display: inline-flex; align-items: center; gap: 0.15rem; min-height: 26px; padding: 0.1rem 0.45rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 0.95rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.chat-rx-chip b { font-size: 0.75rem; color: var(--ink); }
.chat-rx-chip.is-mine { border-color: var(--chat-me, var(--navy)); background: color-mix(in srgb, var(--chat-me, var(--navy)) 14%, var(--white)); }
.chat-rx-pick { display: flex; gap: 0.15rem; margin-top: 0.3rem; padding: 0.25rem 0.35rem; border-radius: 999px; background: var(--white); box-shadow: 0 6px 18px rgba(0,0,0,.18); border: 1px solid var(--line); }
.chat-rx-pick button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 1.35rem; cursor: pointer; transition: transform .12s; }
.chat-rx-pick button:hover, .chat-rx-pick button:focus-visible { transform: scale(1.25); background: var(--surface-2); }

/* 113. Pastors/admins edit the Local / Network update in place */
.update-edit-btn { display: inline-flex; align-items: center; gap: 0.3rem; margin-left: 0.5rem; padding: 0.2rem 0.6rem; border: 1px dashed rgba(255,255,255,.55); border-radius: 999px; background: rgba(255,255,255,.08); color: var(--gold); font: 700 0.75rem/1.2 var(--font-body); cursor: pointer; vertical-align: middle; }
.update-edit-btn svg { width: 13px; height: 13px; }
.update-edit-btn:hover { background: rgba(255,255,255,.18); }
[data-panel-update] textarea { display: block; width: 100%; margin: 0.4rem 0; padding: 0.55rem 0.7rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.95); color: #1E293B; font: 400 0.95rem/1.45 var(--font-body); resize: vertical; }
.update-edit-row { display: flex; gap: 0.5rem; }


/* 115. Header: the full name "Christ Faith Fellowship International" sits on two short lines
   so it never runs into the menu (it hides when the header is tight) */
@media (min-width: 769px) { .site-header .brand-sub { white-space: normal; max-width: 13.5rem; line-height: 1.2; } }
.site-header .brand { flex-shrink: 0; }
.site-header .brand-text { min-width: 0; }

/* 116. Local / Network update on light cards (editable by pastors and admins) */
.panel-update.is-light { margin: 0.8rem 0; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--gold-soft); color: var(--ink); border-left: 4px solid var(--gold); }
.panel-update.is-light b { display: block; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 0.2rem; }
.panel-update.is-light .update-edit-btn { color: var(--heading); border-color: color-mix(in srgb, var(--heading) 40%, transparent); background: var(--white); margin-left: 0.4rem; }
.panel-update.is-light textarea { width: 100%; margin-top: 0.3rem; padding: 0.5rem 0.7rem; border: 1.5px solid var(--input-line); border-radius: 10px; font: inherit; background: var(--white); color: var(--ink); }
.panel-update.is-light .btn-ghost-light { color: var(--heading); border-color: var(--input-line); }

/* 117. "New message" panel (floating, like Facebook) */
.nm-panel { width: min(340px, calc(100vw - 2rem)); height: min(470px, calc(100dvh - 9rem)); display: flex; flex-direction: column; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 18px 50px -12px rgba(5, 12, 26, .45); border: 1px solid var(--line); overflow: hidden; }
.nm-panel > header { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.6rem 0.6rem 0.9rem; border-bottom: 1px solid var(--line); }
.nm-panel > header strong { flex: 1; font-size: 1.05rem; color: var(--heading); }
.nm-panel > header .link-btn { font-size: 0.8rem; }
.nm-panel .chat-pop-x { color: var(--heading); }
.nm-search, .nm-gname { display: block; padding: 0.55rem 0.7rem 0; }
.nm-search input, .nm-gname input { width: 100%; padding: 0.6rem 0.9rem; border: 1.5px solid var(--input-line); border-radius: 999px; font: inherit; font-size: 0.95rem; background: var(--surface-2); color: var(--ink); }
.nm-gname[hidden] { display: none; }
.nm-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0.4rem; }
.nm-person { display: flex; align-items: center; gap: 0.65rem; width: 100%; padding: 0.5rem 0.55rem; border: 0; border-radius: 12px; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.nm-person:hover { background: var(--surface-2); }
.nm-person.is-picked { background: var(--gold-soft); }
.nm-person .chat-avatar { width: 38px; height: 38px; font-size: 0.95rem; }
.nm-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nm-who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--heading); font-size: 0.95rem; }
.nm-who small { color: var(--muted); font-size: 0.78rem; }
.nm-person.is-picked .chat-check { background: var(--gold); border-color: var(--gold); }
.nm-empty { padding: 1rem; color: var(--muted); text-align: center; font-size: 0.9rem; }
.nm-foot { padding: 0.55rem 0.7rem 0.7rem; border-top: 1px solid var(--line); }
.nm-foot .btn { width: 100%; }
.nm-foot:has(.btn[hidden]) { display: none; }
@media (max-width: 768px) { .site-header .brand-sub { max-width: 8.6rem; font-size: 0.5rem; line-height: 1.12; white-space: normal; } }
@media (max-width: 400px) { .site-header .brand-sub { max-width: 7.4rem; font-size: 0.46rem; } }

/* 118. New message: just the round chat icon; its panel opens to the left of it.
   Chat text a little smaller (it still follows A−− … A++ in the palette). */
.newmsg-fab { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
.newmsg-fab svg { width: 21px; height: 21px; }
.nm-panel { z-index: 1350; }
.chat-msg p { font-size: 0.95rem; line-height: 1.45; }
.chat-pop-b p { font-size: 0.92rem; }
.chat-item-main strong { font-size: 0.98rem; }
.chat-item-main span { font-size: 0.85rem; }
.chat-compose textarea, .chat-pop-reply input { font-size: 1rem; }
.chat-thread-head strong { font-size: 1.1rem; }

/* 118. Facebook-style chats: the chat window sits at the bottom of the screen;
   chat heads are rounded name tags ("Ptr. J", "Bro. Aldrin") in a column on the right.
   Hover a tag: Open and × appear inside it. Hidden on the Messages page. */
.chat-dock, .is-member .chat-dock { position: static; display: contents; }
.chat-dock .chat-heads { position: fixed; z-index: 1290; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(13.2rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 0.45rem; max-height: calc(100dvh - 15rem); }
.chat-dock .chat-heads[hidden] { display: none; }
.chat-head { position: relative; display: inline-flex; align-items: center; width: auto; height: 40px; padding: 0; border-radius: 14px; border: 2px solid var(--white); background: var(--navy); color: #fff; box-shadow: 0 8px 20px -8px rgba(5, 12, 26, .55); overflow: visible; animation: none; }
.chat-head:hover { transform: none; }
.chat-head-main { display: inline-flex; align-items: center; gap: 0.45rem; height: 100%; padding: 0 0.75rem 0 0.35rem; border: 0; border-radius: 12px; background: none; color: inherit; font: 700 0.85rem/1 var(--font-body); cursor: pointer; white-space: nowrap; }
.chat-head-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--gold); color: #1A1405; font-weight: 800; font-size: 0.8rem; flex: none; }
.chat-head-name { max-width: 7.5rem; overflow: hidden; text-overflow: ellipsis; }
.chat-head .chat-head-n { top: -7px; right: -7px; }
.chat-head-tools { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 0.35rem; border-radius: 12px; background: var(--navy-deep); }
.chat-head:hover .chat-head-tools, .chat-head:focus-within .chat-head-tools { display: flex; }
.chat-head-tool { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 9px; background: rgba(255,255,255,.14); color: #fff; font: 800 1.1rem/1 var(--font-body); cursor: pointer; }
.chat-head-tool svg { width: 16px; height: 16px; }
.chat-head-tool:hover { background: var(--gold); color: #1A1405; }
.chat-head-tool.is-x:hover { background: #E0245E; color: #fff; }
/* touch screens have no hover: a small × stays on each tag */
@media (hover: none) {
  .chat-head:hover .chat-head-tools, .chat-head:focus-within .chat-head-tools { display: none; }
  .chat-head-tools { display: flex; inset: auto -8px auto auto; top: -9px; background: none; }
  .chat-head-tools .chat-head-tool:not(.is-x) { display: none; }
  .chat-head-tool.is-x { width: 22px; height: 22px; border-radius: 50%; background: #444; font-size: 0.85rem; border: 2px solid var(--white); }
  .chat-head .chat-head-n { right: auto; left: -7px; }
}
/* the chat window: at the bottom, like Facebook */
.chat-dock .chat-pop { position: fixed; z-index: 1300; bottom: 0; right: calc(max(1rem, env(safe-area-inset-right, 0px)) + 60px); left: auto; top: auto; width: min(340px, calc(100vw - 2rem)); height: min(470px, calc(100dvh - 5rem)); display: flex; flex-direction: column; border-radius: 14px 14px 0 0; padding: 0.7rem 0.7rem calc(0.6rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 30px -8px rgba(5, 12, 26, .45); }
.chat-dock .chat-pop .chat-pop-thread { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
@media (max-width: 600px) {
  .chat-dock .chat-pop { left: 0; right: 0; width: auto; height: min(72dvh, 540px); }
  .chat-dock .chat-heads { bottom: calc(13.2rem + env(safe-area-inset-bottom, 0px)); }
}
/* Messages page: no chat heads there (the chats are on the page itself) */
body:has([data-chat-app]) .chat-dock, body:has([data-chat-app]) .chat-heads, body:has([data-chat-app]) .chat-pop { display: none !important; }
@media (min-width: 601px) { .chat-dock .chat-pop { right: calc(max(1rem, env(safe-area-inset-right, 0px)) + 9.5rem); } }
.chat-head-tools { background: var(--navy); }
.chat-head-tools { cursor: pointer; }
.chat-dock .chat-pop .chat-pop-thread, .chat-dock .chat-pop .chat-pop-thread:empty { display: flex; flex-direction: column; gap: 0.35rem; }
.chat-dock .chat-pop .chat-pop-reply { margin-top: auto; }

/* 119. Floating chats and chat heads use the chat's color (picked in Messages) */
.chat-head.has-color { background: var(--chat-me); }
.chat-head.has-color .chat-head-tools { background: color-mix(in srgb, var(--chat-me) 80%, #000); }
.chat-head.has-color .chat-head-av { background: #fff; color: var(--chat-me); }
.chat-dock .chat-pop.has-color { background: linear-gradient(180deg, color-mix(in srgb, var(--chat-me) 22%, var(--white)), color-mix(in srgb, var(--chat-me) 10%, var(--white))); border-color: color-mix(in srgb, var(--chat-me) 40%, transparent); }
.chat-dock .chat-pop.has-color > header { margin: -0.7rem -0.7rem 0; padding: 0.7rem; border-radius: 14px 14px 0 0; background: var(--chat-me); color: #fff; }
.chat-dock .chat-pop.has-color > header strong, .chat-dock .chat-pop.has-color > header a { color: #fff; }
.chat-dock .chat-pop.has-color > header .chat-pop-x { color: #fff; background: rgba(255,255,255,.16); }
.chat-dock .chat-pop.has-color > header .chat-avatar { background: #fff; color: var(--chat-me); }
.chat-dock .chat-pop.has-color .chat-pop-b.is-me p { background: var(--chat-me); color: #fff; }
.chat-dock .chat-pop.has-color .chat-pop-b:not(.is-me) p { background: var(--white); }
.chat-dock .chat-pop.has-color .chat-send { background: var(--chat-me); color: #fff; border-color: transparent; }
/* the chats list in the floating panel */
.nm-panel > header .nm-new { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--gold-soft); color: var(--heading); cursor: pointer; }
.nm-panel > header .nm-new svg { width: 16px; height: 16px; }
.nm-chat .nm-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-chat.is-unread .nm-who small { color: var(--ink); font-weight: 700; }
.nm-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; flex: none; }
.nm-side small { font-size: 0.72rem; color: var(--muted); }
.nm-empty .btn { margin-top: 0.6rem; }

/* 120. The chat finder (floating chat button) opens like a chat window at the bottom */
.nm-panel { position: fixed; z-index: 1300; bottom: 0; right: calc(max(1rem, env(safe-area-inset-right, 0px)) + 9.5rem); left: auto; top: auto; width: min(340px, calc(100vw - 2rem)); height: min(470px, calc(100dvh - 5rem)); border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 30px -8px rgba(5, 12, 26, .45); }
@media (max-width: 600px) { .nm-panel { left: 0; right: 0; width: auto; height: min(72dvh, 540px); } }
.nm-sec { margin: 0.5rem 0.55rem 0.2rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); }

/* 121. Floating chat and name tag = the same background as the chat in Messages */
.chat-dock .chat-pop, .chat-dock .chat-pop.has-color { background: linear-gradient(180deg, color-mix(in srgb, var(--chat-me, var(--navy)) 20%, var(--white)), color-mix(in srgb, var(--chat-me, var(--navy)) 9%, var(--white))); border: 1px solid color-mix(in srgb, var(--chat-me, var(--navy)) 30%, transparent); }
.chat-dock .chat-pop > header, .chat-dock .chat-pop.has-color > header { margin: -0.7rem -0.7rem 0; padding: 0.7rem; border-radius: 14px 14px 0 0; background: color-mix(in srgb, var(--chat-me, var(--navy)) 12%, var(--white)); color: var(--ink); box-shadow: inset 0 -3px 0 var(--chat-me, var(--navy)); }
.chat-dock .chat-pop > header strong, .chat-dock .chat-pop.has-color > header strong { color: var(--heading); }
.chat-dock .chat-pop.has-color > header a { color: var(--gold-ink); }
.chat-dock .chat-pop > header .chat-pop-x, .chat-dock .chat-pop.has-color > header .chat-pop-x { color: var(--heading); background: rgba(255,255,255,.7); }
.chat-dock .chat-pop > header .chat-avatar, .chat-dock .chat-pop.has-color > header .chat-avatar { background: var(--chat-me, var(--navy)); color: #fff; }
.chat-dock .chat-pop .chat-pop-b.is-me p { background: var(--chat-me, var(--navy)); color: #fff; }
.chat-dock .chat-pop .chat-pop-b:not(.is-me) p { background: var(--white); color: var(--ink); }
.chat-dock .chat-pop .chat-pop-reply { background: color-mix(in srgb, var(--chat-me, var(--navy)) 6%, var(--white)); margin: auto -0.7rem calc(-0.6rem - env(safe-area-inset-bottom, 0px)); padding: 0.55rem 0.7rem calc(0.6rem + env(safe-area-inset-bottom, 0px)); }
.chat-dock .chat-pop.has-color .chat-send { background: var(--chat-me); color: #fff; }
/* name tags: the chat's background color, with the chat color as border and badge */
.chat-head, .chat-head.has-color { background: color-mix(in srgb, var(--chat-me, var(--navy)) 20%, var(--white)); color: var(--heading); border: 2px solid var(--chat-me, var(--navy)); }
.chat-head .chat-head-av, .chat-head.has-color .chat-head-av { background: var(--chat-me, var(--navy)); color: #fff; }
.chat-head .chat-head-tools, .chat-head.has-color .chat-head-tools { background: color-mix(in srgb, var(--chat-me, var(--navy)) 20%, var(--white)); }
.chat-head .chat-head-tool { background: var(--chat-me, var(--navy)); color: #fff; }

/* 122. Nickname editor and chat color in floating chats */
.name-dialog .name-field { display: flex; flex-direction: column; gap: 0.3rem; text-align: left; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 0.7rem; }
.name-dialog .name-field input { padding: 0.65rem 0.85rem; border: 1.5px solid var(--input-line); border-radius: 10px; font: inherit; font-weight: 600; background: var(--white); color: var(--ink); }
.name-bs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 0.6rem; }
.name-bs label { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0.35rem 0.9rem; border: 1.5px solid var(--input-line); border-radius: 999px; cursor: pointer; font-weight: 700; }
.name-bs label:has(input:checked) { border-color: var(--navy); background: var(--gold-soft); }
.name-preview { margin: 0 0 1rem; color: var(--muted); }
.name-preview b { color: var(--heading); }
.pop-dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#1D4ED8, #6D28D9, #BE185D, #B91C1C, #C2410C, #A16207, #15803D, #0F766E, #1D4ED8); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.pop-colors { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.55rem 0.1rem 0.2rem; }
.pop-color { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: var(--sw); box-shadow: 0 0 0 1px rgba(0,0,0,.18); cursor: pointer; }
.pop-color.is-on { box-shadow: 0 0 0 3px var(--gold); }

/* 122. Chat heads on/off (palette panel and the chat finder) */
html:not(.is-member) .pop-toggle { display: none; }
.pop-check, .nm-popups { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.pop-check input, .nm-popups input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.nm-popups { padding: 0.55rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); background: var(--surface-2); }
.newmsg-fab.has-unread::after { content: ''; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #D93A3A; border: 2px solid var(--navy); }
.newmsg-fab { position: fixed; }

/* 122. Floating chat and the chat finder sit just above the host's "Powered by Netlify"
   badge, so the reply box and Send are never covered (phones and computers) */
.chat-dock .chat-pop, .nm-panel { bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px)); border-radius: 14px; height: min(470px, calc(100dvh - 9.5rem)); }
.chat-dock .chat-pop .chat-pop-reply { border-radius: 0 0 14px 14px; margin-bottom: -0.6rem; padding-bottom: 0.6rem; }
.chat-dock .chat-pop { padding-bottom: 0.6rem; }
@media (max-width: 600px) {
  .chat-dock .chat-pop, .nm-panel { left: 0.5rem; right: 0.5rem; height: min(64dvh, 520px); }
}

/* 123. Phones: the × sits inside the name tag (big enough to tap) */
@media (hover: none) {
  .chat-head { padding-right: 0.25rem; }
  .chat-head-tools { position: static; inset: auto; display: flex; background: none !important; margin-left: -0.2rem; }
  .chat-head-tools .chat-head-tool:not(.is-x) { display: none; }
  .chat-head-tool.is-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.12); color: var(--heading); font-size: 1rem; }
  .chat-head .chat-head-n { left: auto; right: -7px; }
}

/* 124. Press and hold a message: react, Copy, Edit, Unsend (like Messenger) ---------- */
.chat-pop-b { flex-direction: column; align-items: flex-start; position: relative; }
.chat-pop-b.is-me { align-items: flex-end; }
.chat-pop-b p, .chat-msg { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (hover: hover) { .chat-pop-b p, .chat-msg { -webkit-user-select: text; user-select: text; } }
.chat-pop-b .chat-rx { margin-top: -0.3rem; }
.chat-pop-more { position: absolute; top: 0.2rem; right: -0.1rem; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--white); color: var(--muted); box-shadow: 0 1px 4px rgba(0,0,0,.15); font-size: 0.95rem; cursor: pointer; opacity: 0; transition: opacity .15s; }
.chat-pop-b.is-me .chat-pop-more { right: auto; left: -0.1rem; }
.chat-pop-b:hover .chat-pop-more, .chat-pop-more:focus-visible { opacity: 1; }
@media (hover: none) { .chat-pop-more { display: none; } }
.chat-edited { font-size: 0.7rem; color: var(--muted); padding: 0.1rem 0.4rem 0; }
.chat-msg.is-me .chat-edited { color: inherit; opacity: .8; padding: 0; }
.chat-pop-b.is-unsent p, .chat-msg.is-unsent { background: transparent !important; color: var(--muted) !important; border: 1px dashed var(--line); font-style: italic; }
.chat-msg.is-unsent p { color: var(--muted); }
.is-held { transform: scale(.97); transition: transform .15s; }

.msg-menu { position: fixed; z-index: 2100; width: max-content; max-width: min(340px, calc(100vw - 16px)); padding: 0.45rem; border-radius: 18px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(0,0,0,.24); animation: chatPopIn .18s var(--ease); }
.msg-menu.is-sheet { left: 8px !important; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); top: auto !important; width: auto; max-width: none; padding: 0.6rem; border-radius: 20px; }
.msg-menu-rx { display: flex; justify-content: space-between; gap: 0.15rem; padding: 0.1rem 0.15rem 0.35rem; }
.msg-menu-rx button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 1.5rem; cursor: pointer; transition: transform .12s, background .12s; }
.msg-menu-rx button:hover, .msg-menu-rx button:focus-visible { transform: scale(1.2); background: var(--surface-2); }
.msg-menu-rx button.is-mine { background: color-mix(in srgb, var(--navy) 14%, var(--white)); }
.msg-menu-acts { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 0.3rem; }
.msg-menu-rx:empty + .msg-menu-acts, .msg-menu-acts:first-child { border-top: 0; padding-top: 0; }
.msg-menu-acts button { min-height: 44px; padding: 0.4rem 0.8rem; border: 0; border-radius: 12px; background: none; color: var(--heading); font: inherit; font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer; }
.msg-menu-acts button:hover, .msg-menu-acts button:focus-visible { background: var(--surface-2); }
.msg-menu-acts button.danger { color: var(--err); }
.msg-menu-edit, .msg-menu-confirm { display: grid; gap: 0.5rem; padding: 0.35rem; min-width: min(300px, calc(100vw - 40px)); }
.msg-menu-edit textarea { width: 100%; font: inherit; font-size: 1rem; padding: 0.55rem 0.7rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); resize: vertical; }
.msg-menu-confirm p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.msg-menu-row { display: flex; justify-content: flex-end; align-items: center; gap: 0.75rem; }

.nm-open-all { display: flex; align-items: center; gap: 0.5rem; margin: 0 0.6rem 0.4rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--surface-2); color: var(--heading); font-weight: 700; text-decoration: none; }
.nm-open-all svg { width: 18px; height: 18px; flex: none; }
.nm-open-all span:nth-of-type(1) { flex: 1; }
.nm-open-all:hover, .nm-open-all:focus-visible { background: color-mix(in srgb, var(--navy) 12%, var(--white)); }
.chat-pop-line { display: flex; align-items: center; gap: 0.3rem; max-width: 92%; }
.chat-pop-b.is-me .chat-pop-line { flex-direction: row-reverse; }
.chat-pop-line p { max-width: none !important; min-width: 0; }
.chat-pop-b .chat-pop-more { position: static; flex: none; }

/* 125. Crowded walls: search, month picker, pinned posts ------------------------------- */
.wall-find { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 1rem; }
.wall-find[hidden] { display: none; }
.wall-find-q { position: relative; flex: 1 1 220px; display: flex; align-items: center; }
.wall-find-q svg { position: absolute; left: 0.8rem; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.wall-find-q input, .wall-find-m select { width: 100%; min-height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; }
.wall-find-q input { padding: 0.5rem 1rem 0.5rem 2.4rem; }
.wall-find-m { flex: 0 1 200px; }
.wall-find-m select { padding: 0.5rem 1rem; cursor: pointer; }
.wall-find-note { flex: 1 0 100%; margin: 0; font-size: 0.9rem; color: var(--muted); }
.wall-find-note:empty { display: none; }
.wall-find-note .link-btn { font-size: 0.9rem; }
.wall-more { grid-column: 1 / -1; display: flex; justify-content: center; padding: 0.5rem 0; }
.pin-badge { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--gold, #D4A017); color: #1b1b1b; font-size: 0.75rem; font-weight: 700; letter-spacing: .02em; }
.wall-note > .pin-badge { margin-bottom: 0.4rem; align-self: flex-start; }
.wall-note.is-pinned, .pw-card.is-pinned { box-shadow: 0 0 0 2px var(--gold, #D4A017), 0 10px 24px -14px rgba(0,0,0,.35); }
.tg-pin { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2; }
.pin-btn { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.5rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.pin-btn:hover, .pin-btn:focus-visible { color: var(--heading); border-style: solid; }
.pin-btn.is-on { color: var(--heading); border-style: solid; border-color: var(--gold, #D4A017); }
.fw-note > .pin-badge, .pw-card .pin-badge { align-self: flex-start; width: max-content; margin-bottom: 0.4rem; }
.pin-btn { align-self: flex-start; width: max-content; }

/* 126. Who is online: green dot (online), grey dot (away), "Active 5m ago" ------------- */
[data-pres] { position: relative; overflow: visible !important; }
.pres-dot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: #9CA3AF; border: 2px solid var(--white, #fff); box-sizing: border-box; pointer-events: none; }
.pres-dot.is-on { background: #22C55E; }
.chat-head-av .pres-dot { width: 11px; height: 11px; right: -2px; bottom: -2px; }
.pres-text { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.pres-text.is-on { color: #15803D; font-weight: 600; }
.chat-head-title small .pres-text:not([hidden])::after { content: ' · '; color: var(--muted); font-weight: 400; }
.chat-pop header .pres-text { display: block; line-height: 1.2; }
.chat-pop header .pres-text[hidden] { display: none; }
.chat-pop header .pres-text.is-on { color: #15803D; opacity: 1; }
/* The color button: in front of the header and chats while its panel is open */
.theme-fab.is-front { z-index: 1400; }
.theme-fab.is-front .theme-panel { max-height: calc(100dvh - 5.5rem - env(safe-area-inset-bottom, 0px)); }

/* 127. Floating chat header buttons follow light and dark mode; colors in one swipeable row */
.chat-dock .chat-pop > header .chat-pop-x, .chat-dock .chat-pop.has-color > header .chat-pop-x {
  color: var(--heading);
  background: color-mix(in srgb, var(--chat-me, var(--navy)) 14%, var(--white));
  border: 1px solid color-mix(in srgb, var(--chat-me, var(--navy)) 28%, transparent);
}
.chat-dock .chat-pop > header .chat-pop-x:hover, .chat-dock .chat-pop > header .chat-pop-x:focus-visible {
  background: color-mix(in srgb, var(--chat-me, var(--navy)) 28%, var(--white));
}
.chat-dock .chat-pop > header .chat-pop-x svg { color: inherit; stroke: currentColor; }
.pop-dot { border-color: var(--white); }
.chat-pop .pop-colors { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.25rem; padding: 0.5rem 0 0.2rem; }
.pop-colors-track { flex: 1; min-width: 0; display: flex; gap: 0.45rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.pop-colors-track::-webkit-scrollbar { display: none; }
.pop-colors-track .pop-color { flex: none; scroll-snap-align: center; width: 30px; height: 30px; border-color: var(--white); }
.pop-colors-arrow { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--chat-me, var(--navy)) 28%, transparent); background: color-mix(in srgb, var(--chat-me, var(--navy)) 14%, var(--white)); color: var(--heading); font-size: 1.1rem; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; }
.pop-colors-arrow:disabled { opacity: .35; cursor: default; }
@media (hover: none) { .pop-colors-arrow { display: none; } }

/* 128. Safety and church-family extras --------------------------------------------- */
.safe-dialog { width: min(480px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; border: 0; border-radius: 20px; padding: 1.4rem 1.3rem 1.2rem; background: var(--white); color: var(--ink); box-shadow: 0 30px 70px -20px rgba(5, 14, 30, .55); }
.safe-dialog::backdrop { background: rgba(8, 16, 32, .55); }
.safe-dialog h2 { margin: 0 2rem 0.6rem 0; font-size: 1.35rem; color: var(--heading); }
.safe-dialog form { display: grid; gap: 0.8rem; }
.safe-dialog .check { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 1rem; line-height: 1.4; }
.safe-dialog .check input { margin-top: 0.2rem; width: 18px; height: 18px; flex: none; }
.safe-dialog textarea, .safe-dialog input:not([type=checkbox]):not([type=radio]), .safe-dialog select { width: 100%; font: inherit; font-size: 1rem; padding: 0.6rem 0.75rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.report-reasons { border: 0; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.report-urgent { color: var(--err); }
.guide-list { margin: 0 0 0.6rem; padding-left: 1.2rem; display: grid; gap: 0.45rem; line-height: 1.45; }
.safety-row { border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 0.9rem; margin: 0; display: grid; gap: 0.5rem; }
.safety-row legend { font-weight: 700; color: var(--heading); padding: 0 0.3rem; }
.safety-bday { display: grid; grid-template-columns: 2fr 1fr; gap: 0.5rem; }
.safety-blocked { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.safety-blocked li { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.safety-delete { border-top: 1px solid var(--line); padding-top: 0.7rem; }
.safety-delete summary { cursor: pointer; color: var(--err); font-weight: 700; }
.safety-delete p { color: var(--muted); font-size: 0.92rem; }
.post-report, .rx-report { font-size: 0.8rem; color: var(--muted); }
.post-report { display: inline-block; margin-top: 0.4rem; }
.post-report:hover, .rx-report:hover { color: var(--err); }
.chat-push { display: flex; flex-direction: column; gap: 0.2rem; margin: 0 0.6rem 0.6rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: color-mix(in srgb, var(--gold) 14%, var(--white)); }
.chat-push[hidden] { display: none; }
.chat-push p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.chat-push-btn { display: inline-flex; align-items: center; gap: 0.4rem; border: 0; background: none; padding: 0; color: var(--heading); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.chat-push-btn svg { width: 18px; height: 18px; }
/* birthdays */
.bday-banner { display: flex; align-items: center; gap: 0.8rem; margin: 0 auto 1rem; max-width: var(--container, 1200px); padding: 0.8rem 1rem; border-radius: 16px; background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 26%, var(--white)), color-mix(in srgb, var(--gold) 10%, var(--white))); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.bday-cake { font-size: 1.9rem; }
.bday-banner div { flex: 1; display: flex; flex-direction: column; }
.bday-banner strong { color: var(--heading); }
.bday-banner span { color: var(--ink); }
/* events: going */
.event-rsvp { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0.6rem 0 0.2rem; }
.event-rsvp:empty { display: none; }
.rsvp-btn { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.35rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--navy); background: transparent; color: var(--heading); font: inherit; font-weight: 700; cursor: pointer; }
.rsvp-btn svg { width: 16px; height: 16px; opacity: .35; }
.rsvp-btn.is-on { background: var(--navy); color: #fff; }
.rsvp-btn.is-on svg { opacity: 1; }
.rsvp-count { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.going-pill { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: color-mix(in srgb, var(--gold) 25%, var(--white)); color: var(--heading); font-size: 0.75rem; font-weight: 700; }
/* small groups */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.group-card { display: flex; flex-direction: column; gap: 0.6rem; }
.group-card h3 { margin: 0; color: var(--heading); }
.group-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; color: var(--muted); }
.group-meta li { display: flex; gap: 0.45rem; align-items: center; }
.group-meta svg { width: 16px; height: 16px; flex: none; }
.group-card .btn-row { margin-top: auto; align-items: center; }
/* serving swaps */
.serving-swap { display: block; margin-top: 0.3rem; font-size: 0.85rem; }
.swaps-box { margin-top: 1rem; }
.swaps-card h3 { margin-top: 0; }
.swaps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.swaps-list li { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.7rem 0.8rem; border-radius: 12px; background: var(--surface-2); }
.swaps-list li div { display: flex; flex-direction: column; }
/* sermon videos */
.video-find { max-width: 520px; margin-bottom: 1rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.video-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy); display: grid; place-items: center; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: relative; width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.video-play svg { width: 22px; height: 22px; }
.video-text { padding: 0.75rem 0.9rem; display: flex; flex-direction: column; gap: 0.2rem; }
.video-text strong { color: var(--heading); }
.video-text span { font-size: 0.85rem; color: var(--muted); }
/* I'm new here */
.newhere-form { display: grid; gap: 0.9rem; }
.newhere-wants { border: 0; padding: 0; display: grid; gap: 0.45rem; }
.newhere-note { text-align: center; margin-top: 1rem; }
.newhere-thanks { text-align: center; padding: 1rem 0; }
.fl-qr-wrap.fl-qr-new { margin-top: 10px; padding: 8px; }
/* admin */
.ov-stats { margin-bottom: 1rem; }
.ov-stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; }
.ov-stat { display: flex; flex-direction: column; padding: 0.7rem 0.8rem; border-radius: 12px; background: var(--surface-2); }
.ov-stat b { font-size: 1.6rem; color: var(--heading); line-height: 1.1; }
.ov-stat span { font-size: 0.82rem; color: var(--muted); }
.report-row { align-items: flex-start; }
.report-row.is-urgent { border-left: 4px solid var(--err); }
.report-main { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; min-width: 0; }
.report-main blockquote { margin: 0; padding: 0.5rem 0.7rem; border-left: 3px solid var(--line); background: var(--surface-2); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.person-youth { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); margin-left: 0.6rem; white-space: nowrap; }

/* 129. Events in the account menu, Birthdays for leaders, admin search button ---------- */
.acct-events { display: grid; gap: 0.15rem; }
.account-menu .acct-event { display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.6rem; }
.acct-ev-date { flex: none; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 20%, var(--white)); color: var(--heading); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.acct-ev-date b { font-size: 1rem; }
.acct-ev-date span { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.acct-ev-text { display: flex; flex-direction: column; min-width: 0; }
.acct-ev-text strong { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-ev-text small { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-menu .acct-ev-all { font-size: 0.85rem; color: var(--gold-ink, var(--heading)); font-weight: 700; }
.bday-row { align-items: center; }
.bday-row.is-soon { border-left: 4px solid var(--gold); }
.bday-date { flex: none; width: 52px; height: 52px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 22%, var(--white)); color: var(--heading); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.bday-date b { font-size: 1.3rem; }
.bday-date span { font-size: 0.7rem; text-transform: uppercase; }
.bday-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-search-box .admin-search-go { flex: none; border: 0; border-radius: 9px; padding: 0.35rem 0.7rem; background: var(--navy); color: #fff; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.admin-search-box .admin-search-go:hover, .admin-search-box .admin-search-go:focus-visible { background: var(--navy-deep, var(--navy)); }
.bday-remind { bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); }
.admin-h2.bday-h { font-size: 1.05rem; letter-spacing: 0.06em; margin: 1.4rem 0 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.account-menu .acct-event { min-width: 0; overflow: hidden; }
.acct-ev-text { flex: 1; }

/* 129. Church family walls: one row of tabs, Praise Reports, Testimonies ------------- */
.comm-tabs { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.comm-tabs-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.comm-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; min-height: 64px; padding: 0.5rem 0.3rem; border-radius: 14px; text-decoration: none; color: var(--heading); font-weight: 700; font-size: 0.92rem; text-align: center; line-height: 1.2; }
.comm-tabs a svg { width: 22px; height: 22px; color: var(--gold-ink, #8a6a12); }
.comm-tabs a:hover, .comm-tabs a:focus-visible { background: var(--surface-2); }
.comm-tabs a[aria-current="page"] { background: var(--navy); color: #fff; }
.comm-tabs a[aria-current="page"] svg { color: var(--gold); }
@media (min-width: 700px) { .comm-tabs a { flex-direction: row; min-height: 52px; font-size: 1rem; } }
.acct-walls { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; padding: 0.2rem 0.4rem 0.4rem; }
.acct-walls a { display: flex !important; align-items: center; gap: 0.45rem; padding: 0.55rem 0.6rem !important; border-radius: 12px; background: var(--surface-2); font-size: 0.9rem; }
.acct-walls a svg { width: 18px; height: 18px; flex: none; }
.praise-compose .praise-what { padding: 0.4rem 0.2rem 0; }
.praise-what p { margin: 0.3rem 0; }
.praise-examples { list-style: none; margin: 0.4rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.praise-examples li { padding: 0.3rem 0.7rem; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, var(--white)); font-size: 0.9rem; color: var(--heading); }
.rx-praise span[aria-hidden] { font-size: 1.05rem; }
.rx-praise.is-on { background: color-mix(in srgb, var(--gold) 25%, var(--white)); }
.testimony-help { margin: 0.4rem 0 0.8rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--surface-2); }
.testimony-help summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.testimony-help ol { margin: 0.5rem 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }

/* 130. God's promises: search, "how do you feel", a promise for you, save ------------- */
.promise-find { display: grid; gap: 0.8rem; margin-bottom: 1.2rem; padding: 1rem; border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm, 0 2px 10px rgba(15,44,89,.06)); }
.promise-search { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.35rem 0.3rem 0.8rem; border: 2px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.promise-search:focus-within { border-color: var(--gold); }
.promise-search-ic svg { width: 20px; height: 20px; color: var(--muted); display: block; }
.promise-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: 0.45rem 0; color: var(--ink); outline: none; }
.promise-search .btn { border-radius: 999px; flex: none; }
.promise-feel { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.promise-feel-h { width: 100%; font-weight: 700; color: var(--heading); font-size: 0.95rem; }
.promise-feel .chip-btn { padding: 0.45rem 0.8rem; font-size: 0.88rem; border: 1px solid var(--line); background: var(--white); color: var(--heading); border-radius: 999px; cursor: pointer; }
.promise-feel .chip-btn.is-on, .promise-feel .chip-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.promise-find-actions { margin: 0; }
.promise-today { padding: 1rem 1.1rem; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 18%, var(--white)), var(--white)); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); }
.promise-today blockquote { margin: 0.4rem 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.55; color: var(--ink); }
.promise-today cite { display: block; font-style: normal; font-weight: 700; margin-bottom: 0.6rem; }
.promise-today cite small { color: var(--muted); }
.promise-found { margin: 0; color: var(--heading); }
.promise-verses li.is-match blockquote { background: color-mix(in srgb, var(--gold) 22%, transparent); border-radius: 8px; padding: 0.15rem 0.35rem; }
.promise-card.is-flash { animation: promiseFlash 1.4s ease; }
@keyframes promiseFlash { 0%, 60% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 70%, transparent); } 100% { box-shadow: none; } }
.promise-save { margin-left: 0.5rem; border: 1px solid var(--line); background: var(--white); color: var(--heading); border-radius: 999px; padding: 0.1rem 0.55rem; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.promise-save.is-on { background: color-mix(in srgb, #e0457b 14%, var(--white)); color: #b8285c; border-color: color-mix(in srgb, #e0457b 40%, var(--line)); }
.promise-toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 150%); z-index: 90; margin: 0; padding: 0.7rem 1.1rem; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 600; max-width: calc(100vw - 2rem); transition: transform .25s ease; }
.promise-toast.is-on { transform: translate(-50%, 0); }
@media print { .promise-find, .promise-save, .promise-toast { display: none !important; } .promise-card[hidden] { display: block !important; } }

/* 131. Today with God (today.html) ------------------------------------------------- */
.today-wrap { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .today-wrap { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } .today-week { grid-column: 1 / -1; } }
.today-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35rem; }
.today-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: 0.5rem 0.2rem; border-radius: 14px; border: 1px solid var(--line); background: var(--white); color: var(--heading); font: inherit; cursor: pointer; }
.today-day span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.today-day b { font-size: 1.15rem; }
.today-day i { position: absolute; top: 3px; right: 6px; font-style: normal; font-size: 0.75rem; color: #1f8a4c; font-weight: 800; }
.today-day.is-today { border-color: var(--gold); }
.today-day.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.today-day.is-on span { color: rgba(255,255,255,.75); }
.today-day:disabled { opacity: 0.45; cursor: default; }
.today-card { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.3rem; border-top: 5px solid var(--gold); }
.today-step { margin: 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink, #7A5F0C); }
.today-from { margin: 0; color: var(--muted); }
.today-title { margin: 0.2rem 0 0; font-size: clamp(1.4rem, 4vw, 1.9rem); }
.today-kind { margin: 0; display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: 0.92rem; }
.today-step-h { margin-top: 0.6rem; font-weight: 800; color: var(--heading); font-size: 1.02rem; display: flex; gap: 0.4rem; align-items: center; }
.today-verse { margin: 0.2rem 0; padding: 0.8rem 1rem; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--surface-2); font-family: var(--font-display); font-size: 1.08rem; line-height: 1.6; color: var(--ink); }
.today-verse cite { display: block; margin-top: 0.35rem; font-family: var(--font-body, inherit); font-style: normal; font-weight: 700; font-size: 0.9rem; }
.today-verse cite small { color: var(--muted); font-weight: 600; }
.today-note { line-height: 1.65; }
.today-q { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--heading); }
.today-pray { margin: 0; font-style: italic; line-height: 1.6; }
.today-kids { margin: 0.4rem 0 0; padding: 0.6rem 0.8rem; border-radius: 12px; background: color-mix(in srgb, #4aa3df 14%, var(--white)); }
.today-also { margin: 0.2rem 0; }
.today-deeper summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.today-actions { margin-top: 0.8rem; }
.today-actions .is-done { pointer-events: auto; }
.today-streak { margin: 0; font-weight: 600; }
.today-invite { margin: 0; padding: 0.6rem 0.8rem; border-radius: 12px; background: color-mix(in srgb, var(--gold) 16%, var(--white)); font-weight: 600; }
.today-checks { list-style: none; margin: 0.4rem 0; padding: 0; display: grid; gap: 0.5rem; }
.today-checks li { padding: 0.65rem 0.8rem; border-radius: 12px; background: var(--surface-2); }
.today-checks .check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; }
.today-checks input { width: 22px; height: 22px; flex: none; margin-top: 0.05rem; }
.today-when { display: flex; gap: 0.4rem; align-items: center; margin: 0; }
.today-when svg { width: 18px; height: 18px; flex: none; }
.today-notes-h { margin: 0.8rem 0 0; }
.today-np textarea { width: 100%; }
.today-side { display: grid; gap: 1rem; }
.today-side .card { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.today-side h2 { font-size: 1.15rem; margin: 0; }
.today-coming { border-top: 5px solid var(--navy); }
.today-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.today-links a { display: flex; gap: 0.55rem; align-items: center; padding: 0.55rem 0.6rem; border-radius: 12px; text-decoration: none; color: var(--heading); font-weight: 600; background: var(--surface-2); }
.today-links svg { width: 20px; height: 20px; flex: none; color: var(--gold-ink, #8a6a12); }
.today-notify-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.switch-row { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; }
.switch-row input { width: 22px; height: 22px; flex: none; margin-top: 0.1rem; }
.switch-row span { display: flex; flex-direction: column; }
.switch-row small { color: var(--muted); }
.journal-guide { margin: 0.3rem 0 0.6rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: color-mix(in srgb, var(--gold) 16%, var(--white)); }

/* 132. Admin: Today with God ----------------------------------------------------------- */
.devo-pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: var(--surface-2); }
.devo-pill.is-approved { background: color-mix(in srgb, #1f8a4c 16%, var(--white)); color: #146b39; }
.devo-pill.is-draft { background: color-mix(in srgb, var(--gold) 22%, var(--white)); color: #7A5F0C; }
.devo-mode { border: 0; padding: 0; margin: 0.4rem 0; display: grid; gap: 0.4rem; }
.devo-mode legend { font-weight: 700; margin-bottom: 0.3rem; }
.devo-h3 { margin: 1rem 0 0.2rem; font-size: 1.05rem; }
.devo-points { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.7rem; }
.devo-point { padding: 0.8rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 0.45rem; }
.devo-point-top { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem; align-items: center; }
.devo-point-top .devo-pt-ref { grid-column: 2; }
.devo-point-top button { grid-column: 2; justify-self: end; }
@media (min-width: 760px) { .devo-point-top { grid-template-columns: auto 1fr 13rem auto; } .devo-point-top .devo-pt-ref, .devo-point-top button { grid-column: auto; } }
.devo-num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; }
.devo-point input, .devo-point textarea, .devo-day input, .devo-day textarea { width: 100%; }
.devo-kinds { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.devo-kind { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 0.88rem; font-weight: 600; }
.devo-kind input { position: absolute; opacity: 0; pointer-events: none; }
.devo-kind.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.devo-kind:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.devo-days { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.devo-day { padding: 0.9rem; display: grid; gap: 0.3rem; }
.devo-day-h { margin: 0; font-weight: 800; color: var(--gold-ink, #7A5F0C); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; }
.devo-ai { margin: 1rem 0; padding: 0.8rem 1rem; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--gold) 60%, var(--line)); }
.devo-ai summary { cursor: pointer; font-weight: 800; color: var(--heading); }
.devo-ai-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0.4rem 0; }
.devo-ai-steps { display: grid; gap: 0.6rem; padding-left: 0; list-style: none; }
.devo-ai-steps textarea { width: 100%; }
.devo-auto { margin: 0.8rem 0; }
.devo-coming { border-top: 4px solid var(--gold); }
.plan-mine-tag.is-beginner { background: color-mix(in srgb, #1f8a4c 16%, var(--white)); color: #146b39; }
.pw-meeting { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: color-mix(in srgb, var(--navy) 10%, var(--white)); color: var(--heading); font-size: 0.78rem; font-weight: 700; }

/* 133. Start here (new believers and newcomers) ------------------------------------- */
.start-doors { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-top: 1.2rem; max-width: 44rem; }
.start-door { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.1rem; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; }
.start-door:hover, .start-door:focus-visible { background: rgba(255,255,255,.2); }
.start-door strong { font-size: 1.15rem; }
.start-door span:last-child { opacity: 0.85; font-size: 0.92rem; }
.start-door-ic { font-size: 1.6rem; }
.start-steps { position: sticky; top: var(--header-h, 64px); z-index: 3; background: var(--white); border-bottom: 1px solid var(--line); }
.start-steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.3rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.start-steps a { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: 0.35rem; border-radius: 12px; text-decoration: none; color: var(--heading); font-weight: 700; font-size: 0.85rem; text-align: center; }
.start-steps a b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 0.85rem; }
@media (min-width: 700px) { .start-steps a { flex-direction: row; justify-content: center; gap: 0.45rem; font-size: 0.95rem; } }
.start-sec { scroll-margin-top: 130px; }
.gospel-steps { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.8rem; }
.gospel-steps li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.1rem; }
.gospel-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 1.15rem; }
.gospel-steps h3 { margin: 0 0 0.25rem; }
.gospel-steps p { margin: 0.2rem 0; }
.gospel-ref { font-weight: 700; color: var(--gold-ink, #7A5F0C); }
.start-prayer { padding: 1.2rem; border-left: 5px solid var(--gold); }
.start-prayer > p:first-of-type { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.6; }
.start-new-believer { margin-top: 1rem; padding: 1.2rem; }
.start-firststeps { display: grid; gap: 0.5rem; padding-left: 1.2rem; }
.start-expect { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.start-expect li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.9rem 1rem; }
.start-expect li > span { font-size: 1.6rem; line-height: 1; }
.start-expect h3 { margin: 0; font-size: 1.05rem; }
.start-expect p { margin: 0.2rem 0 0; }
.start-next { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin-top: 1rem; }
.start-next-item { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem; text-decoration: none; color: var(--ink); }
.start-next-item svg { width: 26px; height: 26px; color: var(--gold-ink, #8a6a12); }
.start-next-item strong { color: var(--heading); font-size: 1.05rem; }
.start-next-item span { color: var(--muted); font-size: 0.92rem; }
.decision-dialog form { display: grid; gap: 0.6rem; text-align: left; }

/* 134. Talk with a pastor ------------------------------------------------------------- */
.talk-wrap { display: grid; gap: 1rem; }
.talk-how, .talk-urgent, .talk-form-card { padding: 1.2rem; }
.talk-steps { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.talk-steps li { display: flex; gap: 0.8rem; align-items: flex-start; }
.talk-steps li > span { font-size: 1.5rem; line-height: 1.1; }
.talk-steps p { margin: 0.1rem 0 0; color: var(--muted); }
.talk-urgent { border-left: 5px solid #c0392b; background: color-mix(in srgb, #c0392b 6%, var(--white)); }
.talk-urgent h2 { font-size: 1.1rem; margin: 0 0 0.3rem; }
.talk-form { display: grid; gap: 0.7rem; }
.talk-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.talk-form legend { font-weight: 700; margin-bottom: 0.3rem; }
.talk-auto { padding: 0.8rem 1rem; border-radius: 12px; background: var(--surface-2); }

/* 135. Welcome desk ---------------------------------------------------------------- */
.welcome-wrap { display: grid; gap: 1rem; }
.welcome-tabs, .d-tabs { display: flex; gap: 0.35rem; overflow-x: auto; padding-bottom: 0.2rem; }
.welcome-tabs button, .d-tabs button { flex: none; padding: 0.55rem 0.95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--heading); font: inherit; font-weight: 700; cursor: pointer; }
.welcome-tabs button[aria-selected="true"], .d-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.welcome-big { text-align: center; padding: 1rem 0; }
.welcome-new { font-size: 1.3rem; padding: 1rem 2rem; border-radius: 18px; }
.welcome-qr { display: grid; justify-items: center; gap: 0.4rem; margin-top: 0.6rem; }
.welcome-qr [data-qr] { background: #fff; padding: 10px; border-radius: 12px; }
.welcome-form, .welcome-return, .welcome-today, .welcome-month { padding: 1.2rem; display: grid; gap: 0.6rem; }
.welcome-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.welcome-form legend { width: 100%; font-weight: 700; margin-bottom: 0.3rem; }
.welcome-return input[type=search] { width: 100%; }
.w-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.w-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; align-items: center; padding: 0.7rem 0.8rem; border-radius: 14px; background: var(--surface-2); }
.w-row > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.w-row span { color: var(--muted); font-size: 0.9rem; }
.w-row .w-contact { color: var(--heading); }
.w-row-act { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.w-say-yes { padding: 0.15rem 0.55rem; border-radius: 999px; background: color-mix(in srgb, #1f8a4c 16%, var(--white)); color: #146b39 !important; font-weight: 700; }
.w-say-no { padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--white); }
.w-thanked { color: #146b39 !important; font-weight: 700; }
.w-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 0.6rem; margin: 0.6rem 0; }
.w-stats > div { padding: 0.8rem; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; }
.w-stats b { font-size: 1.6rem; color: var(--heading); }
.w-stats span { color: var(--muted); font-size: 0.88rem; }
.welcome-read { padding: 0.9rem 1rem; border-radius: 14px; border: 2px solid var(--gold); }
.welcome-names { font-size: 1.2rem; line-height: 1.6; }
.welcome-slide { position: fixed; inset: 0; z-index: 200; background: radial-gradient(circle at 50% 30%, #1b3f78, #0b1f40 70%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; }
.welcome-slide h2 { color: #fff; font-size: clamp(3rem, 12vw, 8rem); margin: 0; letter-spacing: 0.02em; }
.welcome-slide-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 2rem; margin: 0; }
.welcome-slide-names span { display: flex; flex-direction: column; font-size: clamp(1.8rem, 6vw, 4rem); font-weight: 800; color: var(--gold); }
.welcome-slide-names small { font-size: 0.4em; color: rgba(255,255,255,.75); font-weight: 600; }
.welcome-slide-more { font-size: clamp(1.3rem, 4vw, 2.5rem); margin: 0; }
.welcome-slide-foot { position: absolute; bottom: 1.5rem; opacity: 0.7; margin: 0; }
.welcome-slide-x { position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.8rem; cursor: pointer; }

/* 136. Prayer meeting and the Prayer screen ---------------------------------------- */
.meeting-wrap { display: grid; gap: 1rem; }
.pm-live, .pm-start, .pm-prev { padding: 1.2rem; }
.pm-live-h { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; align-items: center; }
.pm-live-h h2 { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.pm-dot { width: 12px; height: 12px; border-radius: 50%; background: #e0453a; box-shadow: 0 0 0 0 rgba(224,69,58,.6); animation: pmPulse 1.6s infinite; }
@keyframes pmPulse { 0% { box-shadow: 0 0 0 0 rgba(224,69,58,.6); } 70% { box-shadow: 0 0 0 10px rgba(224,69,58,0); } 100% { box-shadow: 0 0 0 0 rgba(224,69,58,0); } }
.pm-post { display: grid; gap: 0.6rem; margin-top: 0.8rem; }
.pm-post textarea, .pm-post input:not([type=checkbox]) { width: 100%; }
.pm-quick { display: flex; gap: 0.35rem; margin-top: 0.35rem; }
.pm-post-btn { justify-self: start; min-width: 9rem; font-size: 1.1rem; }
.pm-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.pm-req { display: flex; gap: 0.6rem; justify-content: space-between; align-items: flex-start; padding: 0.7rem 0.85rem; border-radius: 14px; background: var(--surface-2); }
.pm-req p { margin: 0.15rem 0 0; }
.pm-req.is-private { background: color-mix(in srgb, var(--navy) 8%, var(--white)); }
.pm-edit { display: grid; gap: 0.4rem; width: 100%; }
.pm-new { display: grid; gap: 0.6rem; }
html.pm-screen-mode .service-bar, html.pm-screen-mode .site-header, html.pm-screen-mode .site-footer, html.pm-screen-mode .page-hero,
html.pm-screen-mode .chat-picker, html.pm-screen-mode .to-top, html.pm-screen-mode .page-edit-fab, html.pm-screen-mode .chat-heads, html.pm-screen-mode .chat-finder { display: none !important; }
html.pm-screen-mode body, html.pm-screen-mode main, html.pm-screen-mode .section { background: #0b1f40 !important; padding: 0 !important; }
html.pm-screen-mode .meeting-wrap { max-width: none; padding: 0; }
.pm-screen { min-height: 100vh; background: radial-gradient(circle at 50% 0%, #1b3f78, #0b1f40 65%); color: #fff; padding: clamp(1rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1.2rem; }
.pm-screen header { display: flex; align-items: center; gap: 0.9rem; }
.pm-screen header div { display: flex; flex-direction: column; flex: 1; }
.pm-screen header strong { font-size: clamp(1.2rem, 2.6vw, 2rem); color: var(--gold); }
.pm-screen header span { opacity: 0.75; }
.pm-full { border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; border-radius: 999px; padding: 0.4rem 0.9rem; font: inherit; cursor: pointer; }
.pm-top { padding: clamp(1.2rem, 3vw, 2.4rem); border-radius: 24px; background: rgba(255,255,255,.08); border: 2px solid rgba(212,175,55,.6); }
.pm-top.is-new { animation: pmGlow 2.4s ease; }
@keyframes pmGlow { 0% { transform: translateY(20px); opacity: 0; box-shadow: 0 0 0 0 rgba(212,175,55,.0); } 30% { transform: none; opacity: 1; box-shadow: 0 0 60px 10px rgba(212,175,55,.55); } 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); } }
.pm-top-body { margin: 0; font-size: clamp(1.8rem, 5vw, 4rem); line-height: 1.25; font-weight: 700; color: #fff; }
.pm-top-name { margin: 0.6rem 0 0; font-size: clamp(1.1rem, 2.5vw, 2rem); color: var(--gold); font-weight: 700; }
.pm-older { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.pm-older li { padding: 0.8rem 1rem; border-radius: 16px; background: rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 0.2rem; font-size: clamp(1rem, 1.6vw, 1.35rem); }
.pm-older b { color: var(--gold); font-weight: 700; font-size: 0.85em; }
.pm-wait { font-size: clamp(1.3rem, 3vw, 2.2rem); opacity: 0.8; text-align: center; margin-top: 20vh; }

/* 137. Discipleship ------------------------------------------------------------------ */
.disciple-wrap { display: grid; gap: 1rem; }
.d-home-top { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.d-groups { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.d-group-card { position: relative; display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem; text-decoration: none; color: var(--ink); border-top: 4px solid var(--gold); }
.d-group-card h3 { margin: 0; color: var(--heading); }
.d-group-card p { margin: 0; }
.d-role-tag { display: inline-block; align-self: flex-start; padding: 0.12rem 0.55rem; border-radius: 999px; background: var(--surface-2); font-size: 0.8rem; font-weight: 700; color: var(--heading); }
.d-role-tag.is-leader { background: color-mix(in srgb, var(--gold) 25%, var(--white)); }
.d-role-tag.is-co { background: color-mix(in srgb, var(--navy) 12%, var(--white)); }
.d-live-pill { position: absolute; top: 0.8rem; right: 0.8rem; color: #e0453a; font-weight: 800; font-size: 0.82rem; }
.d-new, .d-session, .d-finish, .d-week, .d-ask, .d-lessons, .d-catchup { padding: 1.2rem; display: grid; gap: 0.6rem; }
.d-back { margin: 0; }
.d-head h2 { margin: 0; }
.d-head p { margin: 0.2rem 0 0.4rem; color: var(--muted); }
.d-live-banner { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; border-radius: 14px; background: color-mix(in srgb, #e0453a 10%, var(--white)); border: 1px solid color-mix(in srgb, #e0453a 40%, var(--line)); }
.d-live-banner strong { color: #c0392b; }
.d-body { display: grid; gap: 1rem; }
.d-timebar { display: flex; gap: 0.3rem; }
.d-tb-step { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0.05rem; padding: 0.45rem 0.2rem; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--heading); font: inherit; cursor: pointer; }
.d-tb-step b { font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.d-tb-step small { font-size: 0.7rem; color: var(--muted); }
.d-tb-step.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.d-tb-step.is-on small { color: rgba(255,255,255,.75); }
.d-tb-step.is-done { background: color-mix(in srgb, #1f8a4c 12%, var(--white)); }
@media (min-width: 700px) { .d-tb-step b { font-size: 0.85rem; } }
.d-timer { margin: 0; font-size: 0.9rem; color: var(--muted); }
.d-over { color: #c0392b; }
.d-step-body { padding: 1rem; border-radius: 16px; background: var(--surface-2); min-height: 8rem; }
.d-step-body h3 { margin: 0 0 0.6rem; }
.d-ice-cats { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
.d-ice-cats .chip-btn, .d-present-chips .chip-btn, .pm-quick .chip-btn { padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--heading); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.d-ice-cats .chip-btn.is-on, .d-present-chips .chip-btn.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.d-ice-q { font-size: clamp(1.25rem, 3.5vw, 1.7rem); font-weight: 700; color: var(--heading); line-height: 1.35; margin: 0.4rem 0 0.8rem; }
.d-present { display: grid; gap: 0.6rem; }
.d-slide-big { background: #111; border-radius: 12px; overflow: hidden; display: grid; place-items: center; aspect-ratio: 16 / 9; }
.d-slide-big img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.d-present-ctl { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.d-present-ctl .btn { min-width: 3rem; font-size: 1.3rem; }
.d-thumbs { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.3rem; }
.d-thumbs.is-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); overflow: visible; }
.d-thumb { flex: none; width: 7rem; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #ddd; padding: 0; cursor: pointer; display: block; }
.d-thumbs.is-wide .d-thumb { width: auto; }
.d-thumb.is-on { border-color: var(--gold); }
.d-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-disc ol, .d-qs ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.5rem; font-size: 1.08rem; }
.d-sermon-q { margin-top: 0.8rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--white); font-weight: 600; }
.d-sermon-q:empty { display: none; }
.d-prlist { list-style: none; margin: 0.4rem 0; padding: 0; display: grid; gap: 0.4rem; }
.d-prlist li { display: flex; gap: 0.6rem; justify-content: space-between; align-items: center; padding: 0.55rem 0.7rem; border-radius: 12px; background: var(--white); }
.d-praddform { display: grid; grid-template-columns: 1fr; gap: 0.4rem; }
@media (min-width: 640px) { .d-praddform { grid-template-columns: 11rem 1fr auto; } }
.d-present-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.d-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.d-person { padding: 0.75rem 0.85rem; border-radius: 14px; background: var(--surface-2); display: grid; gap: 0.45rem; }
.d-person-top { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.d-progress { flex: 1; min-width: 5rem; height: 8px; border-radius: 999px; background: var(--white); overflow: hidden; }
.d-progress span { display: block; height: 100%; background: var(--gold); }
.d-person-act { gap: 0.4rem; }
.d-note textarea { width: 100%; margin: 0.4rem 0; }
.d-note summary { cursor: pointer; font-weight: 600; }
.d-add input { width: 100%; }
.d-found { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.d-found li { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem; border-radius: 10px; background: var(--surface-2); }
.d-lessons-h { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.d-lessons-h h3 { margin: 0; }
.d-lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.d-lesson-list li { display: flex; gap: 0.6rem; align-items: center; padding: 0.55rem 0.7rem; border-radius: 12px; background: var(--surface-2); }
.d-lesson-list li > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.d-lesson-list small { color: var(--muted); }
.d-lesson-form { display: grid; gap: 0.55rem; padding: 1rem; }
.d-lesson-form textarea, .d-lesson-form input[type=text], .d-lesson-form input:not([type]) { width: 100%; }
.d-num input { max-width: 6rem; }
.d-mins { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.4rem; }
.d-mins legend { font-weight: 700; margin-bottom: 0.3rem; }
.d-mins label { display: flex; flex-direction: column; font-size: 0.88rem; }
.d-mins input { max-width: 6rem; }
.d-lbl { font-weight: 700; }
.d-qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.d-qlist li { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; padding: 0.6rem 0.75rem; border-radius: 12px; background: var(--surface-2); }
.d-qlist li p { margin: 0; flex: 1 1 100%; font-weight: 600; }
.d-qlist li.is-done { opacity: 0.7; }
.d-ask textarea { width: 100%; }
.d-week h4, .d-ask h4 { margin: 0.6rem 0 0.2rem; }
.d-recap summary { cursor: pointer; font-weight: 700; }
.d-live-view { position: fixed; inset: 0; z-index: 210; background: #0b1020; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 3.5rem 0.8rem 1rem; }
.d-live-h { margin: 0; font-weight: 700; color: #ff8a80; }
.d-live-img { width: 100%; max-width: 1100px; flex: 1; min-height: 0; display: grid; place-items: center; }
.d-live-img img { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; }
.d-live-note { width: 100%; max-width: 700px; display: grid; gap: 0.2rem; font-size: 0.9rem; }
.d-live-note textarea { width: 100%; border-radius: 10px; padding: 0.5rem; font: inherit; }
.d-live-x { position: absolute; top: 0.7rem; right: 0.7rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.6rem; cursor: pointer; }
.d-live-wait { font-size: 1.2rem; }
.field-row { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.start-here-cta { margin-top: 1.2rem; justify-content: center; }
html.pm-screen-mode body > *:not(main) { display: none !important; }

/* 138. "Start here" in the header and the top bar --------------------------------------- */
.bar-start { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--navy-deep, #0A1F40); color: #fff !important; font-size: var(--fs-xs); font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.bar-start svg { width: 11px; height: 13px; color: var(--gold); }
.bar-start:hover, .bar-start:focus-visible { background: #000; }
.nav-list .nav-start a { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.6rem 0 0.2rem; padding: 0.6rem 1.1rem; border: 0; border-radius: 999px; background: var(--gold); color: #0A1F40; font-weight: 800; }
.nav-list .nav-start a svg { width: 13px; height: 16px; }
.nav-list .nav-start a:hover, .nav-list .nav-start a[aria-current="page"] { background: #F3CB52; color: #0A1F40; }
@media (min-width: 1100px) {
  .nav-list .nav-start { display: flex; align-items: center; margin-right: 0.3rem; }
  .nav-list .nav-start a { margin: 0; padding: 0.45rem 0.95rem; font-size: 0.92rem; animation: startGlow 3s ease-in-out 2; }
}
@keyframes startGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); } 50% { box-shadow: 0 0 0 6px rgba(212,175,55,.35); } }
/* church family members know the way: the header pill stays smaller for them */
html.is-member .nav-list .nav-start a { animation: none; }

/* 139. The floating Bible window ---------------------------------------------------- */
.bwin { position: fixed; z-index: 6000; right: 20px; bottom: 20px; width: min(440px, calc(100vw - 40px)); height: min(640px, 72vh); display: none; flex-direction: column; background: var(--white); color: var(--ink); border-radius: 18px; box-shadow: 0 24px 70px rgba(10,31,64,.35), 0 0 0 1px var(--line); overflow: hidden; }
.bwin.is-open { display: flex; animation: bwinIn .2s ease; }
@keyframes bwinIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.bwin-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.75rem 0.55rem 1rem; background: var(--navy); color: #fff; cursor: move; user-select: none; touch-action: none; }
.bwin-head strong { flex: 1; font-size: 1.05rem; color: #fff; }
.bwin-grip { display: none; }
.bwin-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.bwin-x:hover, .bwin-x:focus-visible { background: rgba(255,255,255,.3); }
.bwin-tools { display: flex; gap: 0.35rem; align-items: center; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.bwin-tools select { min-width: 0; flex: 1; font: inherit; font-size: 0.9rem; padding: 0.35rem 0.4rem; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.bwin-tools select[data-bw-chap] { flex: 0 0 4.2rem; }
.bwin-tools select[data-bw-ver] { flex: 0 0 5.6rem; }
.bwin-tools button { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--heading); font-size: 1.3rem; cursor: pointer; }
.bwin-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem 1.4rem; overscroll-behavior: contain; }
.bwin-text { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.75; }
.bwin-v sup { font-family: var(--font-body, inherit); font-size: 0.65em; font-weight: 800; color: var(--gold-ink, #8a6a12); margin-right: 0.15em; }
.bwin-v.is-on { background: color-mix(in srgb, var(--gold) 30%, transparent); border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0.05em 0.1em; }
.bwin-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.45rem 0.9rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.bwin-foot a { font-weight: 700; white-space: nowrap; }
@media (max-width: 699px) {
  .bwin:not(.is-floating) { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: 100%; height: 82vh; border-radius: 20px 20px 0 0; }
  .bwin.is-floating { width: calc(100vw - 24px); height: min(70vh, 560px); }
  .bwin-head { cursor: grab; flex-wrap: wrap; padding-top: 0.4rem; }
  .bwin-grip { display: block; width: 100%; height: 4px; }
  .bwin-grip::before { content: ""; display: block; width: 44px; height: 4px; margin: 0 auto; border-radius: 4px; background: rgba(255,255,255,.45); }
  html.bwin-open:not(.bwin-floating) body { overflow: hidden; }
  .bwin-body { padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); }
}
.today-verse[data-bw-ref] { cursor: pointer; transition: background .15s; }
.today-verse[data-bw-ref]:hover, .today-verse[data-bw-ref]:focus-visible { background: color-mix(in srgb, var(--gold) 14%, var(--surface-2)); outline: none; }
.today-verse-hint { margin: 0; font-size: 0.82rem; color: var(--muted); }
.bwin.is-open { z-index: 1250; }

/* 140. Pictures and files: chats, profile pictures, walls, "Seen" -------------------- */
.pic-face { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--navy) 14%, var(--white)); color: var(--heading); font-weight: 800; font-size: 0.8rem; }
.pic-face.is-xs { width: 16px; height: 16px; font-size: 0.55rem; border: 1.5px solid var(--white); }
.pic-face.is-sm { width: 30px; height: 30px; }
.pic-face img, [data-face].has-pic img, .chat-avatar.has-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
[data-face].has-pic, .chat-avatar.has-pic { padding: 0; overflow: hidden; background: var(--surface-2); }
.chat-avatar.is-lg { width: 56px; height: 56px; font-size: 1.3rem; }
.chat-photo-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.chat-compose { align-items: flex-end; }
.chat-attach { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; padding: 0; }
.chat-attach:hover, .chat-attach:focus-visible { background: var(--surface-2); }
.chat-pop-reply .chat-attach { width: 34px; height: 34px; font-size: 1rem; }
.chat-pending { display: flex; gap: 0.45rem; overflow-x: auto; padding: 0.45rem 0.7rem 0; }
.chat-pend { position: relative; flex: none; display: grid; place-items: center; min-width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.chat-pend img { width: 64px; height: 64px; object-fit: cover; display: block; }
.chat-pend-file { padding: 0 0.6rem; font-size: 0.8rem; max-width: 10rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-pend button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 0.9rem; line-height: 1; cursor: pointer; }
.msg-img { display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; margin: 0.15rem 0; border-radius: 14px; overflow: hidden; max-width: min(260px, 70vw); }
.msg-img img { display: block; width: 100%; max-height: 320px; object-fit: cover; min-height: 80px; background: rgba(0,0,0,.06); }
.chat-pop-b .msg-img { max-width: 200px; }
.msg-file { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.7rem; margin: 0.15rem 0; border-radius: 12px; background: rgba(255,255,255,.85); color: #13213C; text-decoration: none; max-width: 260px; }
.msg-file-ic { font-size: 1.5rem; }
.msg-file-main { display: flex; flex-direction: column; min-width: 0; }
.msg-file-main strong { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-file-main small { font-size: 0.75rem; opacity: 0.75; }
.seen-row { display: flex; justify-content: flex-end; align-items: center; gap: 0.35rem; margin: -0.1rem 0.3rem 0.35rem; min-height: 16px; }
.seen-row small { font-size: 0.72rem; color: var(--muted); }
.seen-faces { display: inline-flex; }
.seen-faces .pic-face + .pic-face { margin-left: -4px; }
.seen-faces b { font-size: 0.7rem; color: var(--muted); margin-left: 3px; }
.chat-pop-thread .seen-row { margin: -0.15rem 0.2rem 0.3rem; }
.pic-lightbox { position: fixed; inset: 0; z-index: 1400; background: rgba(5,10,20,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; padding: 3.5rem 0.8rem 1.2rem; }
.pic-lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.pic-lightbox-x { position: absolute; top: 0.8rem; right: 0.8rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.7rem; cursor: pointer; }
.pic-lightbox-save { color: #fff; font-weight: 700; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); text-decoration: none; }
.me-photo { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin: 0.4rem 0; }
.me-photo-pic { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 30%, var(--white)); color: var(--navy); font-weight: 800; font-size: 1.6rem; border: 3px solid var(--white); box-shadow: 0 2px 10px rgba(15,44,89,.15); }
.me-photo-pic img { width: 100%; height: 100%; object-fit: cover; }
.me-photo-act { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.share-pic { margin: 0.3rem 0 0.6rem; }
.share-pic-prev { position: relative; display: inline-block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.share-pic-prev img { display: block; max-width: 220px; max-height: 160px; object-fit: cover; }
.share-pic-prev button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.feed-pic { display: block; width: 100%; padding: 0; border: 0; background: transparent; margin: 0.5rem 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.feed-pic img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.feed-avatar.has-pic { overflow: hidden; }
.chat-msg.is-pic { padding: 4px 4px 6px; } .chat-msg.is-pic time { padding: 0 6px; } .chat-msg.is-pic .msg-img { margin: 0; }

/* 141. Quick look windows, "‹ Back", and pages shown inside a quick look ---------------- */
html.is-peek .service-bar, html.is-peek .site-header, html.is-peek .site-footer, html.is-peek .chat-dock, html.is-peek .chat-finder, html.is-peek .chat-picker,
html.is-peek .theme-fab, html.is-peek .page-edit-fab, html.is-peek .to-top, html.is-peek .skip-link, html.is-peek .serve-remind, html.is-peek .page-back, html.is-peek .comm-tabs, html.is-peek .newmsg-fab, html.is-peek .live-bar { display: none !important; }
html.is-peek .page-hero { padding-top: 1.4rem !important; padding-bottom: 1.4rem !important; min-height: 0 !important; }
.peek { position: fixed; inset: 0; z-index: 1260; display: none; }
.peek.is-open { display: block; }
.peek-backdrop { position: absolute; inset: 0; background: rgba(5,14,30,.5); animation: peekFade .2s ease; }
.peek-win { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(980px, calc(100vw - 48px)); height: min(86vh, 900px); display: flex; flex-direction: column; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(5,14,30,.45); animation: peekIn .22s ease; }
.peek-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.7rem 0.6rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--white); position: relative; }
.peek-head strong { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--heading); font-size: 1.05rem; }
.peek-grip { display: none; }
.peek-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--heading); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.peek-body { position: relative; flex: 1; min-height: 0; background: var(--bg, var(--surface-2)); }
.peek-body iframe { width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity .2s; }
.peek.is-loaded .peek-body iframe { opacity: 1; }
.peek-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); }
.peek.is-loaded .peek-loading { display: none; }
@keyframes peekFade { from { opacity: 0; } }
@keyframes peekIn { from { opacity: 0; transform: translate(-50%, -46%); } }
@media (max-width: 700px) {
  .peek-win { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; height: 92vh; height: 92dvh; border-radius: 20px 20px 0 0; animation: peekUp .25s ease; }
  .peek-head { padding-top: 0.9rem; }
  .peek-grip { display: block; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 4px; background: var(--line); }
  .peek-full { font-size: 0.8rem; padding: 0.4rem 0.7rem; }
  @keyframes peekUp { from { transform: translateY(100%); } }
}
html.peek-open { overflow: hidden; }
.page-back { display: inline-flex; align-items: center; gap: 0.3rem; margin-bottom: 0.7rem; padding: 0.35rem 0.85rem 0.35rem 0.6rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.page-back span { font-size: 1.3rem; line-height: 1; }
main > .section:first-child .page-back, .section .page-back { color: var(--heading); border-color: var(--line); background: var(--white); }

/* 142. Sticky-note colors (sermon notes, discipleship notes, live notes) --------------- */
.sn-yellow { --sn: #FFF3A3; } .sn-pink { --sn: #FFD1DC; } .sn-mint { --sn: #C8F2DC; } .sn-sky { --sn: #CBE7FF; }
.sn-lavender { --sn: #E2D6FF; } .sn-peach { --sn: #FFD9B8; } .sn-lime { --sn: #E6F5B0; } .sn-coral { --sn: #FFC4B8; }
.sn-aqua { --sn: #BDF0EE; } .sn-sand { --sn: #F1E3C6; } .sn-rose { --sn: #F9C6E0; } .sn-white { --sn: #FFFFFF; }
.sticky-note { background: var(--sn, #FFF3A3); color: #2a2a2a; border-radius: 4px 4px 14px 4px; box-shadow: 0 6px 16px -8px rgba(40,30,0,.35), 0 1px 0 rgba(0,0,0,.04); }
.sticky-note textarea, .sticky-note input { background: transparent; color: inherit; border-color: rgba(0,0,0,.12); }
:root[data-theme="dark"] .sticky-note { background: color-mix(in srgb, var(--sn, #FFF3A3) 28%, #1d2433); color: #f1f1f1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sticky-note { background: color-mix(in srgb, var(--sn, #FFF3A3) 28%, #1d2433); color: #f1f1f1; } }
.sticky-row { display: flex; align-items: center; gap: 0.25rem; min-width: 0; }
.sticky-track { display: flex; gap: 0.45rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px; flex: 1; min-width: 0; }
.sticky-track::-webkit-scrollbar { display: none; }
.sticky-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sn); border: 2px solid rgba(0,0,0,.12); cursor: pointer; scroll-snap-align: start; padding: 0; }
.sticky-dot.is-on { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--navy); }
.sticky-arrow { flex: none; width: 26px; height: 30px; border: 0; background: transparent; color: var(--heading); font-size: 1.3rem; cursor: pointer; }
@media (hover: none) { .sticky-arrow { display: none; } }

/* 143. Slides (slide maker, Sunday Live, discipleship) -------------------------------- */
.sl { --sl-gold: #E2BE57; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #0B1F40; color: #fff; container-type: inline-size; isolation: isolate; text-align: left; font-family: var(--font-body, inherit); }
.sl-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 10% 0%, #1b4a8a 0%, #0f2c59 45%, #091a36 100%); }
.sl-bg i { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; filter: blur(40px); opacity: .45; animation: slFloat 18s ease-in-out infinite alternate; }
.sl-bg i:nth-child(1) { background: #2a62b5; left: -15%; top: -25%; }
.sl-bg i:nth-child(2) { background: #c69a2c; right: -20%; bottom: -35%; opacity: .25; animation-duration: 22s; }
.sl-bg i:nth-child(3) { background: #3d7fd8; right: 10%; top: -40%; opacity: .2; animation-duration: 26s; }
.sl.is-thumb .sl-bg i { animation: none; }
@keyframes slFloat { to { transform: translate(12%, 10%) scale(1.15); } }
.sl-in { position: absolute; inset: 0; padding: 7cqw 8cqw; display: flex; flex-direction: column; justify-content: center; gap: 1.6cqw; }
.sl-eyebrow, .sl-pointn { margin: 0; color: var(--sl-gold); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: calc(2.1cqw * var(--slz, 1)); }
.sl-h1 { margin: 0; color: #fff; font-size: calc(6.6cqw * var(--slz, 1)); line-height: 1.08; font-weight: 800; }
.sl-h2 { margin: 0; color: #fff; font-size: calc(5.2cqw * var(--slz, 1)); line-height: 1.15; font-weight: 800; }
.sl-h3 { margin: 0; color: #fff; font-size: calc(4cqw * var(--slz, 1)); line-height: 1.15; font-weight: 800; }
.sl-sub { margin: 0; color: rgba(255,255,255,.82); font-size: calc(2.8cqw * var(--slz, 1)); line-height: 1.35; }
.sl-ref, .sl-vref { margin: 0; color: var(--sl-gold); font-weight: 700; font-size: 2.4cqw; }
.sl-vref small { color: rgba(255,255,255,.6); font-weight: 600; }
.sl-blank { background: transparent; color: var(--sl-gold); border-bottom: .35cqw solid var(--sl-gold); padding: 0 .3cqw; }
.sl-gap { letter-spacing: -.05em; color: rgba(255,255,255,.5); }
.sl-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4cqw; }
.sl-bullets li { font-size: 3.4cqw; line-height: 1.25; color: #fff; padding-left: 3.4cqw; position: relative; transition: opacity .5s ease, transform .5s ease; }
.sl-bullets li::before { content: ''; position: absolute; left: 0; top: .55em; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--sl-gold); }
.sl-bullets li.is-out { opacity: 0; transform: translateY(1.5cqw); }
.sl.is-thumb .sl-bullets li.is-out, .sl.is-phone .sl-bullets li.is-out { opacity: .35; transform: none; }
.sl-verse-in { justify-content: center; }
.sl-verse-in.has-two { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 4cqw; }
.sl-verse-in.has-two .sl-vcol { flex: 1 1 40%; }
.sl-verse-in.has-two .sl-vref { flex-basis: 100%; }
.sl-vtext { margin: 0; font-family: var(--font-display); font-size: calc(4.1cqw * var(--slz, 1)); line-height: 1.35; color: #fff; }
.has-two .sl-vtext { font-size: calc(3cqw * var(--slz, 1)); }
.sl-phrase { display: inline; opacity: 0; animation: slPhrase .8s ease forwards; }
.sl.is-thumb .sl-phrase, .sl.is-phone .sl-phrase { opacity: 1; animation: none; }
@keyframes slPhrase { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }
.sl.is-screen .sl-in > * { animation: slRise .7s ease both; }
.sl.is-screen .sl-in > *:nth-child(2) { animation-delay: .15s; } .sl.is-screen .sl-in > *:nth-child(3) { animation-delay: .35s; } .sl.is-screen .sl-in > *:nth-child(4) { animation-delay: .5s; }
.sl.is-screen .sl-late { animation-delay: .9s !important; }
@keyframes slRise { from { opacity: 0; transform: translateY(2.5cqw); } }
.sl-photo, .sl-pdf, .sl-qphoto { position: absolute; inset: 0; background: #000; }
.sl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-photo.is-kb img { animation: slKB 20s ease-in-out infinite alternate; transform-origin: 40% 40%; }
.sl.is-thumb .sl-photo.is-kb img { animation: none; }
@keyframes slKB { from { transform: scale(1); } to { transform: scale(1.15) translate(-2%, -2%); } }
.sl-pdf { background: #fff; }
.sl-pdf img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sl-caption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 4cqw 5cqw 3cqw; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 2.6cqw; font-weight: 700; }
.sl-video { position: absolute; inset: 0; background: #000; }
.sl-video iframe { width: 100%; height: 100%; border: 0; }
.sl-link { color: var(--sl-gold); font-size: 2.4cqw; font-weight: 700; }
.sl-quote { margin: 0; font-family: var(--font-display); font-size: 4.4cqw; line-height: 1.3; color: #fff; }
.sl-who { margin: 1.2cqw 0 0; display: flex; flex-direction: column; }
.sl-who strong { color: var(--sl-gold); font-size: 2.6cqw; }
.sl-who span { color: rgba(255,255,255,.75); font-size: 2cqw; }
.sl-face { flex: none; display: grid; place-items: center; width: 22cqw; aspect-ratio: 1; border-radius: 50%; background: #1b4a8a center / cover no-repeat; border: .6cqw solid var(--sl-gold); color: #fff; font-weight: 800; font-size: 8cqw; box-shadow: 0 2cqw 5cqw rgba(0,0,0,.35); }
.sl-q-portrait { flex-direction: row; align-items: center; gap: 5cqw; }
.sl-q-min .sl-q-foot { display: flex; align-items: center; gap: 2cqw; margin-top: 2cqw; }
.sl-q-min .sl-face { width: 9cqw; font-size: 3.5cqw; border-width: .35cqw; }
.sl-qmark { font-family: var(--font-display); color: var(--sl-gold); font-size: 16cqw; line-height: .6; height: 7cqw; }
.sl-qphoto { background: #0B1F40 center 25% / cover no-repeat; }
.sl-qphoto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,14,30,.88) 0%, rgba(5,14,30,.55) 60%, rgba(5,14,30,.2) 100%); }
.sl-q-over { z-index: 1; max-width: 75%; }
.sl.is-thumb { border-radius: 4px; }
/* transitions between slides (presenter screen, TV, phones) */
.sl-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.sl-stage > .sl { position: absolute; inset: 0; }
.sl-stage.tr-fade > .sl.is-enter { animation: trFade .6s ease both; }
.sl-stage.tr-slide > .sl.is-enter { animation: trSlide .55s cubic-bezier(.2,.8,.2,1) both; }
.sl-stage.tr-zoom > .sl.is-enter { animation: trZoom .6s ease both; }
.sl-stage.tr-page > .sl.is-enter { animation: trPage .7s ease both; transform-origin: left center; }
.sl-stage > .sl.is-build { animation: trFade .45s ease both !important; }
@keyframes trFade { from { opacity: 0; } }
@keyframes trSlide { from { transform: translateX(8%); opacity: 0; } }
@keyframes trZoom { from { transform: scale(.92); opacity: 0; } }
@keyframes trPage { from { transform: perspective(1400px) rotateY(-25deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sl *, .sl-stage > .sl { animation: none !important; } .sl-phrase { opacity: 1; } }

/* the slide maker */
.sm { display: grid; gap: 0.8rem; }
.sm-add { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.sm-add-h { font-weight: 700; margin-right: 0.2rem; }
.sm-add .chip-btn { padding: 0.4rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--heading); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.sm-add .chip-btn:hover { background: var(--surface-2); }
.sm-pdf { background: color-mix(in srgb, var(--gold) 18%, var(--white)) !important; }
.sm-busy { margin: 0; padding: 0.6rem 0.8rem; border-radius: 12px; background: color-mix(in srgb, var(--gold) 16%, var(--white)); font-weight: 600; }
.sm-cols { display: grid; gap: 0.9rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sm-cols { grid-template-columns: 15rem minmax(0, 1fr); align-items: start; } .sm-list { max-height: 78vh; overflow: auto; position: sticky; top: 90px; } }
.sm-list { list-style: none; margin: 0; padding: 0.2rem; display: grid; gap: 0.45rem; }
@media (max-width: 899px) { .sm-list { grid-auto-flow: column; grid-auto-columns: 9.5rem; overflow-x: auto; padding-bottom: 0.4rem; } }
.sm-item { position: relative; display: grid; gap: 0.25rem; padding: 0.35rem; border-radius: 10px; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; }
.sm-item.is-on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--white)); }
.sm-num { position: absolute; top: 0.45rem; left: 0.45rem; z-index: 2; min-width: 20px; height: 20px; border-radius: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.sm-thumb { display: block; pointer-events: none; }
.sm-thumb .sl { font-size: 0; }
.sm-acts { display: flex; gap: 0.2rem; justify-content: flex-end; }
.sm-acts button { width: 26px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--white); color: var(--heading); font-size: 0.8rem; cursor: pointer; padding: 0; }
.sm-acts .is-del { color: #b42318; }
.sm-edit { display: grid; gap: 0.8rem; min-width: 0; }
.sm-preview { border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px -14px rgba(5,14,30,.5); }
.sm-form { display: grid; gap: 0.5rem; }
.sm-form input, .sm-form textarea, .sm-form select { width: 100%; }
.sm-style { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--surface-2); }
.sm-mynotes textarea { background: color-mix(in srgb, var(--gold) 8%, var(--white)); }

/* 144. Sunday Live: presenter (laptop), TV window, phone remote, members' live page -------- */
html.present-mode .service-bar, html.present-mode .site-footer, html.present-mode .chat-dock, html.present-mode .theme-fab, html.present-mode .page-edit-fab, html.present-mode .to-top, html.present-mode .live-bar { display: none !important; }
html.present-screen .site-header, html.present-screen .skip-link { display: none !important; }
html.present-screen body, html.present-screen main, html.present-screen .section { background: #000 !important; padding: 0 !important; margin: 0 !important; }
html.present-screen .container { max-width: none !important; padding: 0 !important; }
.pr-screen { position: fixed; inset: 0; background: #000; display: grid; place-items: center; cursor: none; }
.pr-screen [data-pr-stage] { width: min(100vw, 177.78vh); }
.pr-screen .sl { border-radius: 0; }
.sl-black { background: #000 !important; }
.present-wrap { max-width: 1500px; }
.pr { display: grid; gap: 0.8rem; }
.pr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.6rem 0.9rem; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.pr-title { flex: 1 1 14rem; color: var(--heading); font-size: 1.05rem; }
.pr-clock { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--heading); }
.pr-elapsed { font-variant-numeric: tabular-nums; color: var(--muted); }
.pr-followers { color: var(--muted); font-weight: 600; }
.pr-live.is-live { background: #d93025; border-color: #d93025; color: #fff; }
.pr-opt { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; }
.pr-main { display: grid; gap: 0.9rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .pr-main { grid-template-columns: minmax(0, 2.3fr) minmax(16rem, 1fr); } }
.pr-curwrap { display: grid; gap: 0.3rem; }
.pr-pos { margin: 0; text-align: center; font-weight: 700; color: var(--muted); }
.pr-side { display: grid; gap: 0.4rem; align-content: start; }
.pr-lab { margin: 0.2rem 0 0; font-weight: 800; font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink, #7A5F0C); }
.pr-next .sl { opacity: 0.9; }
.pr-end { margin: 0; padding: 1.2rem; border-radius: 10px; background: var(--surface-2); text-align: center; color: var(--muted); }
.pr-notes { min-height: 6rem; padding: 0.8rem 0.9rem; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, var(--white)); font-size: 1.15rem; line-height: 1.5; white-space: pre-wrap; color: var(--ink); }
.pr-notes.is-empty::before { content: '—'; color: var(--muted); }
.pr-ctl { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pr-ctl .btn { min-height: 48px; }
.pr-nextbtn { min-width: 9rem; font-size: 1.1rem; }
[data-pr-black].is-on { background: #000; color: #fff; }
.pr-msg { margin: 0; }
.pr-strip { display: flex; gap: 0.45rem; overflow-x: auto; padding: 0.3rem 0.1rem 0.5rem; }
.pr-thumb { position: relative; flex: none; width: 8.5rem; padding: 0; border: 2px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; }
.pr-thumb.is-on { border-color: var(--gold); }
.pr-thumb > span { position: absolute; z-index: 2; top: 3px; left: 3px; padding: 0 5px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 0.7rem; font-weight: 800; }
.pr-qr { position: fixed; inset: 0; z-index: 1300; background: rgba(5,14,30,.6); display: grid; place-items: center; }
.pr-qr > div { background: var(--white); padding: 1.2rem; border-radius: 16px; text-align: center; max-width: 22rem; }
.pr-qr [data-qr] { display: inline-block; background: #fff; padding: 10px; }
.pr-remote { display: grid; gap: 0.8rem; max-width: 34rem; margin: 0 auto; }
.pr-rnotes { margin: 0; padding: 0.7rem; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, var(--white)); white-space: pre-wrap; min-height: 3rem; }
.pr-rbtns { display: grid; grid-template-columns: 1fr 2fr; gap: 0.6rem; }
.pr-rbtns .btn { min-height: 76px; font-size: 1.4rem; }
.pr-print h1 { font-size: 1.2rem; }
.pr-page { break-after: page; page-break-after: always; margin: 0 0 1rem; }
@media print { html.present-mode .site-header { display: none !important; } .pr-page .sl { border-radius: 0; } .sl-bg i { animation: none !important; } .sl-phrase, .sl * { animation: none !important; opacity: 1 !important; } }

/* members' live page */
.live-wrap { max-width: 860px; display: grid; gap: 0.8rem; padding-bottom: 14rem; }
.live-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.live-head strong { flex: 1; color: var(--heading); }
.live-dot { font-weight: 800; color: #d93025; }
.live-dot.is-off { color: var(--muted); }
.live-pos { color: var(--muted); font-weight: 600; }
.live-focus { padding: 0.55rem 0.8rem; border-radius: 12px; background: var(--surface-2); font-size: 0.9rem; }
.live-off { padding: 1.2rem; border-radius: 16px; background: var(--surface-2); text-align: center; }
.live-extra { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.live-extra:empty { display: none; }
.live-extra .chip-btn { padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--heading); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.live-nav { margin: 0; }
.live-points { padding: 0.8rem 1rem; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.live-lab { margin: 0 0 0.3rem; font-weight: 800; color: var(--heading); }
.live-points ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.35rem; }
.live-points li { color: var(--muted); }
.live-points li.is-seen { color: var(--ink); font-weight: 600; }
.live-points .sl-blank { color: var(--gold-ink, #7A5F0C); border-bottom: 2px solid var(--gold); background: none; }
.live-pref { color: var(--gold-ink, #7A5F0C); font-weight: 700; font-size: 0.9em; }
.live-notes { position: fixed; z-index: 120; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(380px, calc(100vw - 32px)); padding: 0.4rem 0.8rem 0.7rem; }
.live-notes:not(.is-open) { width: auto; padding: 0.3rem; border-radius: 999px; }
.live-notes:not(.is-open) .live-notes-body { display: none; }
.live-notes-toggle { display: flex; align-items: center; gap: 0.4rem; border: 0; background: transparent; font: inherit; font-weight: 800; color: inherit; cursor: pointer; padding: 0.4rem 0.3rem; }
.live-notes:not(.is-open) .live-notes-toggle { padding: 0.65rem 0.9rem; }
.live-notes-body { display: grid; gap: 0.35rem; }
.live-note-for { margin: 0; font-size: 0.82rem; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-notes textarea { width: 100%; min-height: 6rem; border-radius: 10px; padding: 0.55rem; font: inherit; resize: vertical; }
.live-saved { margin: 0; font-size: 0.8rem; opacity: 0.75; min-height: 1em; }
.live-ended { padding: 0.8rem 1rem; border-radius: 14px; background: color-mix(in srgb, #1f8a4c 12%, var(--white)); }
.live-ended p { margin: 0; }
.live-none { padding: 1.4rem; text-align: center; }
@media (max-width: 700px) { .live-notes { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } .live-notes:not(.is-open) { left: auto; } .live-notes textarea { min-height: 4.5rem; } }
html.is-focus .chat-dock, html.is-focus .chat-finder { display: none !important; }

/* the "Sunday Live" bar on every page */
.live-bar { position: fixed; z-index: 1100; left: 50%; transform: translateX(-50%); top: calc(var(--header-h, 64px) + 8px); display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.5rem 0.45rem 0.9rem; border-radius: 999px; background: #0B1F40; color: #fff; box-shadow: 0 10px 30px rgba(5,14,30,.35); max-width: calc(100vw - 24px); }
.live-bar[hidden] { display: none; }
.live-bar-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4d3d; animation: pmPulse 1.6s infinite; flex: none; }
.live-bar-text { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-bar-x { border: 0; background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; padding: 0 0.3rem; }
@media (max-width: 500px) { .live-bar-text strong { display: none; } }
.qw-card { margin: 0; display: flex; gap: 1.2rem; align-items: center; padding: 1.3rem 1.4rem; border-radius: 20px; background: radial-gradient(120% 120% at 0% 0%, #1b4a8a, #0f2c59 55%, #091a36); color: #fff; }
.qw-card blockquote { margin: 0.3rem 0; font-family: var(--font-display); font-size: clamp(1.15rem, 3vw, 1.6rem); line-height: 1.4; color: #fff; }
.qw-card figcaption { color: rgba(255,255,255,.8); }
.qw-card figcaption strong { color: #E2BE57; }
.qw-card .eyebrow { color: #E2BE57; }
.qw-card .link-arrow { color: #E2BE57; }
.qw-face { flex: none; width: 96px; height: 96px; border-radius: 50%; background: #1b4a8a center / cover no-repeat; border: 4px solid #E2BE57; }
@media (max-width: 560px) { .qw-card { flex-direction: column; align-items: flex-start; } .qw-face { width: 72px; height: 72px; } }

/* 145. Discipleship notes, sticky sermon notes, "What I learned" card ------------- */
.d-timebar.is-tabs .d-tb-step { flex: 1 1 0; }
.dn-open { overflow: hidden; }
.dn-sheet { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: flex-end; justify-content: center; }
.dn-back { position: absolute; inset: 0; background: rgba(5, 14, 30, .55); }
.dn-card { position: relative; width: min(680px, 100%); max-height: 92vh; max-height: 92dvh; overflow-y: auto; padding: 1.1rem 1rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; gap: .85rem; background: var(--white); animation: dnUp .22s ease-out; }
.dn-card.sticky-note { border-radius: 18px 18px 0 0; }
@media (min-width: 700px) { .dn-sheet { align-items: center; padding: 1.5rem; } .dn-card, .dn-card.sticky-note { border-radius: 6px 6px 22px 6px; padding: 1.4rem 1.5rem; } }
@keyframes dnUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dn-card { animation: none; } }
.dn-head { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.dn-head h2 { margin: .1rem 0 0; font-size: clamp(1.2rem, 4vw, 1.5rem); }
.dn-head .eyebrow { margin: 0; color: inherit; opacity: .75; }
.dn-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.08); color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.dn-sec { display: flex; flex-direction: column; gap: .35rem; }
.dn-sec h3 { margin: 0; font-size: 1rem; }
.dn-sec p { margin: 0; } .dn-sec ol { margin: .3rem 0 0; padding-left: 1.4rem; }
.dn-sec summary { cursor: pointer; font-weight: 700; }
.dn-q { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
.dn-q textarea { width: 100%; font: inherit; font-weight: 400; padding: .6rem .7rem; border-radius: 10px; border: 1px solid rgba(0,0,0,.15); resize: vertical; min-height: 3.2rem; }
.dn-missed { color: #b4471c; font-weight: 700; }
.dn-msg { margin: 0; min-height: 1.2em; font-weight: 600; }
.dn-share { font-weight: 700; }
.dn-catch { font-weight: 700; color: var(--heading); }
.dn-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.dn-tile { display: flex; flex-direction: column; gap: .35rem; text-align: left; padding: 1rem; min-height: 8.5rem; border: 0; font: inherit; cursor: pointer; transition: transform .15s; }
.dn-tile:hover { transform: rotate(-1deg) translateY(-2px); }
.dn-tile strong { font-size: 1.05rem; line-height: 1.3; }
.dn-tile small, .dn-tile-meta { font-size: .82rem; opacity: .8; }
.dn-tile-meta { margin-top: auto; font-weight: 700; }
.dn-tile.is-empty { outline: 2px dashed rgba(0,0,0,.18); outline-offset: -6px; }
.dn-shared { padding: .8rem .9rem; margin-top: .5rem; display: flex; flex-direction: column; gap: .3rem; }
.dn-shared p { margin: 0; }
.d-all { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-direction: column; gap: .4rem; }
.d-all li { display: flex; justify-content: space-between; gap: .6rem; align-items: center; flex-wrap: wrap; }
/* Sermon notes as sticky notes */
.me-notes.is-sticky { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); align-items: start; gap: 1rem; }
.me-notes.is-sticky .me-month { grid-column: 1 / -1; margin: .5rem 0 0; }
.me-note.sticky-note { border: 0; }
.me-note.sticky-note .me-meta, .me-note.sticky-note .me-stamps { color: inherit; opacity: .78; }
.me-note.sticky-note .icon-btn { color: inherit; }
.me-note-form.sticky-note { border: 0; }
.me-note-color .sticky-row { margin-top: .3rem; }
.me-color-filter { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: .2rem 0 .8rem; }
.me-color-filter .sticky-dot { width: 28px; height: 28px; }
.me-slide-notes summary { cursor: pointer; font-weight: 700; }
.me-slide-notes ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.me-note-btns { gap: .5rem; }
.lc-opts { display: flex; gap: .5rem; flex-wrap: wrap; }
.lc-opts select { flex: 1 1 10rem; }
.lc-preview { border-radius: 12px; overflow: hidden; background: #091A36; max-width: 420px; width: 100%; margin: 0 auto; }
.lc-preview canvas { display: block; }
.lc-opts select { min-height: 44px; padding: 0.5rem 0.7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--text); font: inherit; }
html.present-mode .serve-remind, html.present-mode .newmsg-fab, html.present-mode .notice-toast { display: none !important; }
html.present-screen .sl .vref { background: none !important; border: 0 !important; padding: 0 !important; color: inherit !important; pointer-events: none; text-decoration: none !important; box-shadow: none !important; }

/* 146. Mentions (@Name) ---------------------------------------------------------- */
.mention { display: inline; padding: 0 0.15em; margin: 0; border: 0; border-radius: 4px; background: color-mix(in srgb, var(--gold, #E2BE57) 26%, transparent); color: var(--heading); font: inherit; font-weight: 700; cursor: pointer; line-height: inherit; }
.mention:hover, .mention:focus-visible { background: color-mix(in srgb, var(--gold, #E2BE57) 45%, transparent); }
.mention.is-plain { cursor: inherit; background: none; padding: 0; }
.mention-box { position: fixed; z-index: 7000; max-height: 260px; overflow-y: auto; padding: 0.35rem; border-radius: 14px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 14px 34px -12px rgba(5, 14, 30, .45); }
.mention-h { margin: 0.2rem 0.5rem 0.3rem; font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mention-opt { display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 44px; padding: 0.35rem 0.55rem; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mention-opt.is-on, .mention-opt:hover { background: color-mix(in srgb, var(--navy) 9%, transparent); }
.mention-menu { position: fixed; z-index: 7000; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.5rem; border-radius: 14px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 14px 34px -12px rgba(5, 14, 30, .45); }
.mention-menu-h { display: flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.4rem 0.5rem; border-bottom: 1px solid var(--line); margin-bottom: 0.2rem; }
.mention-menu-h small { margin-left: auto; color: var(--muted); }
.mention-menu button { min-height: 44px; padding: 0.4rem 0.6rem; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.mention-menu button:hover { background: color-mix(in srgb, var(--navy) 9%, transparent); }
.mention-menu [data-mention-remove] { color: #b4471c; }
/* "Start here" is for newcomers: hidden after a week of using the site or app */
html.is-settled .nav-list .nav-start, html.is-settled #start-here, html.is-settled .start-here-cta { display: none !important; }

/* 147. Bible window above other pop-ups ------------------------------------------- */
.bwin-host { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
.bwin-host::backdrop { background: rgba(5, 14, 30, .25); }
.bwin-host .bwin { position: fixed; }
/* "Today with God" in the account menu: title on one line, the short line under it */
.account-menu a.account-today span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.account-menu a.account-today small { font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.sl-quick h3 { margin: 0 0 .3rem; }
.sl-busy { font-weight: 700; color: var(--heading); }
.sl-pdf-form { margin-top: .8rem; display: grid; gap: .7rem; }
.sl-where { display: grid; gap: .35rem; border: 0; padding: 0; margin: 0; }
.sl-meta { margin: .6rem 0; }
.sl-meta summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.sl-meta .form-grid { margin-top: .6rem; }
/* Set list: YouTube finder */
.yt-inline { display: flex; gap: .4rem; align-items: stretch; }
.yt-inline input { flex: 1; min-width: 0; }
.yt-find-btn { flex: none; white-space: nowrap; }
.yt-slot:empty { display: none; }
.yt-slot { flex-basis: 100%; }
.yt-msg { margin: .3rem 0; font-size: .9rem; color: var(--muted); }
.yt-card { display: flex; gap: .8rem; align-items: flex-start; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin-top: .3rem; }
.yt-thumb { position: relative; flex: none; width: 140px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-thumb span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.4rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.yt-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.yt-info strong { font-size: .95rem; line-height: 1.3; }
.yt-info small { color: var(--muted); }
.yt-info .btn-row { margin-top: .3rem; gap: .4rem; }
@media (max-width: 520px) { .yt-card { flex-direction: column; } .yt-thumb { width: 100%; } }

/* Slides & Sunday Live, easy to find for pastors */
.account-menu a.account-live { margin: 0.15rem 0 0.2rem; padding: 0.7rem 0.75rem; background: var(--navy); color: #fff; border-radius: 12px; }
.account-menu a.account-live svg { color: var(--gold); width: 22px; height: 22px; flex: none; }
.account-menu a.account-live span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.account-menu a.account-live strong { font-weight: 800; }
.account-menu a.account-live small { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,.8); overflow: hidden; text-overflow: ellipsis; }
.account-menu a.account-live:hover { background: #163a72; color: #fff; }
.account-menu a.account-present { margin: 0 0 0.35rem; justify-content: center; font-weight: 800; background: var(--gold); color: #0A1F40; border-radius: 12px; }
.account-menu a.account-present:hover { background: #F3CB52; color: #0A1F40; }
.admin-side [data-tab="slides"] { font-weight: 800; color: var(--heading); background: color-mix(in srgb, var(--gold) 22%, transparent); border-radius: 10px; }
.admin-side [data-tab="slides"]::before { content: "▶ "; color: #b8860b; }
.admin-side [data-tab="slides"][aria-current="page"] { color: #fff; background: var(--navy); }
.admin-side [data-tab="slides"][aria-current="page"]::before { color: var(--gold); }
.ov-live { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.2rem; padding: 1.2rem 1.3rem; border-radius: 18px; color: #fff;
  background: radial-gradient(circle at 10% 0%, #1b4a8a, #0F2C59 55%, #091A36); box-shadow: 0 14px 34px -18px rgba(9,26,54,.7); }
.ov-live-text { min-width: 0; flex: 1 1 18rem; }
.ov-live-tag { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #E2BE57; }
.ov-live h2 { margin: .25rem 0 .2rem; color: #fff; font-size: clamp(1.2rem, 3vw, 1.6rem); }
.ov-live p { margin: 0; color: rgba(255,255,255,.85); }
.ov-live-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 560px) { .ov-live-btns { width: 100%; } .ov-live-btns > * { flex: 1; text-align: center; } }
.account-live-wrap { padding: 0 0 .5rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
.ov-live .vref { color: inherit !important; background: rgba(255,255,255,.12) !important; border-color: transparent !important; }
/* The church computer waiting for the preacher (tv.html) */
.pr-tvwait { position: fixed; inset: 0; background: radial-gradient(circle at 50% 35%, #1b3f78, #091A36 70%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; text-align: center; padding: 2rem; cursor: default; }
.pr-tvwait h1 { margin: 0; color: #E2BE57; letter-spacing: .08em; }
.pr-tvwait p { margin: 0; max-width: 40rem; color: rgba(255,255,255,.85); font-size: 1.15rem; }
.pr-tvwait .pr-tvwait-big { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; color: #fff; }
.pr-tvwait-small { font-size: .9rem !important; opacity: .6; }
.pr-tvwait-ch { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: .6rem; }
.pr-tvwait-ch .chip-btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.pr-tvwait-ch .chip-btn.is-on { background: #E2BE57; color: #0A1F40; }
.pr-rstart { display: grid; gap: .6rem; padding: .9rem; border-radius: 14px; background: color-mix(in srgb, var(--gold) 14%, var(--white)); }
.pr-rstart p { margin: 0; }
.pr-rstart .btn { min-height: 56px; font-size: 1.1rem; }
.pr-tvurl { font-weight: 800; font-size: 1.05rem; word-break: break-all; color: var(--heading); }
.pr-rlive { margin: 0; font-weight: 800; color: #c0392b; }
.pr-rnotes:empty { display: none; }

/* 146. Worship screen (songs, Bible, announcements) ---------------------------------- */
.ws { position: relative; width: 100%; height: 100%; overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; font-family: Inter, Montserrat, system-ui, sans-serif; }
.ws-tv, .ws-thumb { aspect-ratio: 16 / 9; height: auto; }
.ws-bg { position: absolute; inset: 0; }
.ws-bg.is-photo i { position: absolute; inset: -4%; background-size: cover; background-position: center; animation: wsDrift 40s ease-in-out infinite alternate; }
.ws-bg.is-photo::after { content: ''; position: absolute; inset: 0; background: rgba(5, 12, 28, .55); }
@keyframes wsDrift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-2%, -1%); } }
@media (prefers-reduced-motion: reduce) { .ws-bg.is-photo i { animation: none; } }
.ws-black { position: absolute; inset: 0; background: #000; }
.ws-lyrics, .ws-text, .ws-bible { position: relative; z-index: 1; width: 92%; max-height: 86%; font-weight: 800; line-height: 1.22; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.ws-lyrics span, .ws-text p span, .ws-bible span { display: block; }
.ws-lyrics.is-two .ws-l2 { margin-top: .5em; font-size: .62em; font-weight: 600; color: #E2BE57; }
.ws-text h2 { margin: 0 0 .35em; font-size: 1.25em; color: #E2BE57; line-height: 1.1; }
.ws-text p { margin: 0; font-weight: 600; }
.ws-bible { font-family: Georgia, 'Noto Serif', serif; font-weight: 600; text-align: left; line-height: 1.32; }
.ws-bible span { margin-bottom: .3em; }
.ws-bible.is-two { display: grid; grid-template-columns: 1fr 1fr; gap: 4%; font-size: .9em; }
.ws-bible em { display: block; margin-top: .4em; font-style: normal; font-family: Inter, sans-serif; font-size: .5em; color: #E2BE57; font-weight: 800; }
.ws-ref { position: absolute; z-index: 1; left: 4%; bottom: 5%; font-weight: 800; color: #E2BE57; font-size: clamp(10px, 3.2cqw, 46px); }
.ws-ref small { color: rgba(255,255,255,.75); margin-left: .4em; }
.ws-ccli { position: absolute; z-index: 1; left: 3%; bottom: 3%; font-size: clamp(8px, 1.3cqw, 18px); color: rgba(255,255,255,.7); font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.ws { container-type: inline-size; }
.ws-logo { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .3em; font-size: clamp(10px, 4cqw, 64px); }
.ws-logo img { width: 3.2em; height: 3.2em; }
.ws-logo strong { letter-spacing: .12em; color: #E2BE57; }
.ws-logo span { font-size: .55em; color: rgba(255,255,255,.85); }
.ws.is-enter .ws-lyrics, .ws.is-enter .ws-text, .ws.is-enter .ws-bible { animation: wsIn .35s ease-out; }
@keyframes wsIn { from { opacity: 0; } to { opacity: 1; } }
.ws-screen { display: grid; place-items: center; }
.ws-tvbox { width: min(100vw, 177.78vh); aspect-ratio: 16 / 9; }
.ws-tvbox > .ws { width: 100%; height: 100%; }
/* stage view */
.ws-stage-wrap { position: fixed; inset: 0; background: #000; }
.ws-stage { height: 100%; display: grid; grid-template-rows: auto 1fr auto; color: #fff; font-family: Inter, sans-serif; padding: 2vh 3vw; gap: 2vh; }
.ws-st-top { display: flex; gap: 2vw; align-items: baseline; font-size: 3vh; color: rgba(255,255,255,.75); }
.ws-st-song { font-weight: 800; color: #fff; flex: 1; }
.ws-st-key { font-weight: 900; color: #000; background: #E2BE57; padding: .1em .6em; border-radius: .4em; }
.ws-st-clock { font-weight: 800; font-variant-numeric: tabular-nums; }
.ws-st-now small, .ws-st-next small { display: block; font-size: 2.4vh; font-weight: 800; color: #E2BE57; text-transform: uppercase; letter-spacing: .08em; }
.ws-st-text { white-space: pre-line; font-size: 7vh; font-weight: 800; line-height: 1.2; }
.ws-st-next { border-top: 2px solid rgba(255,255,255,.2); padding-top: 1.5vh; }
.ws-st-next div { white-space: pre-line; font-size: 4vh; color: rgba(255,255,255,.7); line-height: 1.25; }
/* operator */
.worship-wrap { max-width: 1500px; }
.w-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; align-items: center; padding: .8rem 1rem; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.w-top-l, .w-top-r { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.w-top label { display: flex; gap: .4rem; align-items: center; font-weight: 700; color: var(--heading); }
.w-top select, .w-top input { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); padding: .3rem .6rem; font: inherit; background: var(--white); color: var(--text); }
.w-top .is-live { background: #c0392b; border-color: #c0392b; color: #fff; }
.w-top .is-on { background: var(--navy); color: #fff; }
.w-tabs { display: flex; gap: .4rem; margin: 1rem 0 .3rem; }
.w-tabs button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 700; cursor: pointer; color: var(--heading); }
.w-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.w-msg { min-height: 1.3em; margin: .2rem 0 .6rem; font-weight: 700; color: var(--heading); }
.w-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .w-grid { grid-template-columns: 300px minmax(0, 1fr) 360px; align-items: start; } }
.w-col { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; min-width: 0; }
.w-col h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
.w-items { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .35rem; }
.w-items li { display: flex; align-items: center; gap: .3rem; border-radius: 10px; border: 1px solid var(--line); }
.w-items li.is-sel { border-color: var(--navy); box-shadow: 0 0 0 2px color-mix(in srgb, var(--navy) 25%, transparent); }
.w-items li.is-live { background: color-mix(in srgb, #c0392b 10%, var(--white)); }
.w-it { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; border: 0; background: transparent; padding: .55rem .6rem; font: inherit; cursor: pointer; color: var(--text); }
.w-it span { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-it small { color: var(--muted); }
.w-it-act { display: flex; flex: none; }
.w-it-act button { border: 0; background: transparent; width: 28px; height: 32px; cursor: pointer; color: var(--muted); font-size: .95rem; }
.w-it-act button:disabled { opacity: .3; }
.w-add { display: grid; gap: .5rem; }
.w-addrow { display: flex; flex-wrap: wrap; gap: .4rem; }
.w-adddet { border: 1px solid var(--line); border-radius: 10px; padding: .4rem .6rem; }
.w-adddet summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.w-adddet input, .w-adddet textarea, .w-adddet select { width: 100%; margin-top: .4rem; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; font: inherit; background: var(--white); color: var(--text); }
.w-form { display: grid; gap: .3rem; }
.w-form label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.w-hit { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: .45rem .2rem; font: inherit; cursor: pointer; color: var(--text); }
.w-sl-head { display: grid; gap: .5rem; margin-bottom: .8rem; }
.w-jump { display: flex; flex-wrap: wrap; gap: .35rem; }
.w-jump .chip-btn { min-width: 44px; font-weight: 800; }
.w-flowrow { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.w-flowrow label { display: flex; gap: .3rem; align-items: center; font-weight: 700; font-size: .9rem; }
.w-flowrow input { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: .2rem .5rem; font: inherit; width: 12rem; background: var(--white); color: var(--text); }
.w-flowrow input[data-w-key] { width: 4.5rem; }
.w-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.w-tile { display: flex; flex-direction: column; gap: .3rem; text-align: left; min-height: 110px; padding: .6rem .7rem; border-radius: 12px; border: 2px solid var(--line); background: #0F2C59; color: #fff; font: inherit; cursor: pointer; }
.w-tile small { color: #E2BE57; font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.w-tile span { white-space: pre-line; font-size: .9rem; line-height: 1.3; font-weight: 600; }
.w-tile:hover { border-color: #E2BE57; }
.w-tile.is-live { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.35); }
.w-lab { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: .2rem 0 .35rem; }
.w-onair { color: #c0392b; } .w-off { color: var(--muted); font-weight: 600; }
.w-prev { border-radius: 10px; overflow: hidden; background: #000; margin-bottom: .7rem; }
.w-prev.is-next { opacity: .85; }
.w-qb { display: flex; gap: .4rem; }
.w-qb input { flex: 1; min-width: 0; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: .3rem .6rem; font: inherit; background: var(--white); color: var(--text); }
.w-quick { margin: .4rem 0 .8rem; }
.w-bgs { display: flex; flex-wrap: wrap; gap: .4rem; }
.w-bg { width: 54px; height: 32px; border-radius: 8px; border: 2px solid var(--line); background-size: cover; background-position: center; cursor: pointer; padding: 0; }
.w-bg.is-on { border-color: #E2BE57; box-shadow: 0 0 0 2px #E2BE57; }
.w-bg-up { background: var(--white); color: var(--heading); font-weight: 800; }
.w-lines { display: flex; gap: .4rem; align-items: center; margin: .6rem 0; font-weight: 700; font-size: .9rem; }
.w-songs { display: grid; gap: 1rem; }
@media (min-width: 900px) { .w-songs { grid-template-columns: 340px minmax(0, 1fr); align-items: start; } }
.w-songs-h { display: flex; gap: .5rem; margin-bottom: .6rem; }
.w-songs-h input { flex: 1; min-width: 0; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: .3rem .6rem; font: inherit; background: var(--white); color: var(--text); }
.w-songlist { list-style: none; padding: 0; margin: 0; max-height: 70vh; overflow: auto; }
.w-songlist button { display: flex; flex-direction: column; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: .55rem .3rem; font: inherit; cursor: pointer; color: var(--text); }
.w-songlist button.is-sel { background: color-mix(in srgb, var(--gold) 18%, transparent); }
.w-songlist small { color: var(--muted); }
.w-songform textarea { font-family: inherit; }
html.worship-mode .live-bar, html.worship-mode .serve-remind { display: none !important; }
.account-menu a.account-worship { margin: 0 0 .2rem; font-weight: 700; }
.account-menu a.account-worship small { color: var(--muted); font-weight: 500; margin-left: .3rem; font-size: .78rem; }
.w-items li { overflow: hidden; }
.w-items li > .w-it { width: auto; flex: 1 1 auto; min-width: 0; }
.w-it-act button { min-width: 26px; min-height: 30px; padding: 0; }

/* 147. Presenting prayer requests (laptop → TV by HDMI) -------------------------------- */
.pmx { position: fixed; inset: 0; z-index: 9000; background: #091A36; color: #fff; display: flex; flex-direction: column; }
html.pmx-open { overflow: hidden; }
.pmx-stage { flex: 1; display: grid; place-items: center; min-height: 0; cursor: pointer; }
.pmx-stage.is-black { background: #000; }
.pmx.is-tv .pmx-stage { cursor: default; }
.pmx-slide { width: min(100vw, 177.78vh); aspect-ratio: 16 / 9; max-height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, #1b4a8a, #0F2C59 50%, #091A36); position: relative; overflow: hidden; container-type: inline-size; }
.pmx-slide.is-phone { width: 100%; border-radius: 14px; }
.pmx-in { width: 86%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2.2cqw; animation: wsIn .35s ease-out; }
.pmx-eye { margin: 0; font-size: 3cqw; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #E2BE57; }
.pmx-eye.is-praise { color: #7fe0a8; }
.pmx-body { margin: 0; font-weight: 800; line-height: 1.25; font-size: 6cqw; }
.pmx-name { margin: 0; font-size: 3.6cqw; font-weight: 700; color: #E2BE57; }
.pmx-name::before { content: '— '; }
.pmx-count { position: absolute; right: 3%; bottom: 4%; margin: 0; font-size: 2.2cqw; color: rgba(255,255,255,.6); font-weight: 700; }
.pmx-open img { width: 12cqw; height: auto; }
.pmx-open h2 { margin: 0; font-size: 6cqw; color: #fff; line-height: 1.1; }
.pmx-verse { margin: 0; font-family: Georgia, serif; font-size: 4cqw; font-weight: 600; color: rgba(255,255,255,.92); }
.pmx-ref { margin: 0; font-size: 2.6cqw; font-weight: 800; color: #E2BE57; }
.pmx-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; padding: .5rem; background: rgba(0,0,0,.55); opacity: .25; transition: opacity .2s; }
.pmx-bar:hover, .pmx-bar:focus-within { opacity: 1; }
.pmx-bar button { min-height: 40px; min-width: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pmx-bar span { font-weight: 800; min-width: 4.5rem; text-align: center; }
@media (hover: none) { .pmx-bar { opacity: 1; } }
.pm-follow { padding: 1rem; }
.pm-follow-h { margin: 0 0 .6rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; color: var(--heading); }
.pm-req.is-now { border-left: 4px solid #e0453a; background: color-mix(in srgb, #e0453a 7%, var(--white)); }
.pm-showname { font-weight: 600; }
.pmx-slide.is-phone .pmx-in { animation: none; }
/* Admin › Bible versions */
.bv-list { display: grid; gap: .5rem; margin: .6rem 0; }
.bv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: .5rem; align-items: center; }
.bv-row label span { color: var(--muted); font-size: .88rem; }
.bv-row input, .bv-row select { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: .3rem .6rem; font: inherit; background: var(--white); color: var(--text); min-width: 0; }
.bv-row.is-custom { grid-template-columns: 7rem minmax(0, 1fr) 7rem minmax(0, 1fr) auto auto; }
.bv-msg { font-size: .85rem; color: var(--muted); margin-left: .3rem; }
@media (max-width: 700px) { .bv-row, .bv-row.is-custom { grid-template-columns: 1fr; } }
/* the account menu: header and Sign out stay put, the middle scrolls */
.account-menu { overflow: hidden; }
.account-menu .account-head { flex: none; }
.account-scroll { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.account-menu > button { flex: none; }
.account-menu a.account-worship { display: flex; align-items: center; gap: .6rem; }
.account-menu a.account-worship span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.account-menu a.account-worship small { margin-left: 0; }
html.account-open .serve-remind, html.account-open .newmsg-fab { display: none !important; }
/* loop video backgrounds */
.ws-bg.is-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ws-bg.is-video::after { content: ''; position: absolute; inset: 0; background: rgba(5, 12, 28, .45); }
.w-bg.is-video { position: relative; overflow: hidden; background: #000; }
.w-bg.is-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-bg.is-video span { position: relative; color: #fff; font-size: .7rem; text-shadow: 0 1px 3px #000; }
.w-bgadd { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.account-group.is-ministry { background: color-mix(in srgb, var(--navy) 6%, transparent); border-radius: 10px; padding: .25rem .25rem .4rem; margin-bottom: .2rem; border-bottom: 0; }
.account-group.is-ministry[hidden] { display: none; }
/* Facebook Live */
.fb-live-bar { background: #1877F2; }
.fb-live-bar + .live-bar, .live-bar:not(.fb-live-bar):not([hidden]) ~ .fb-live-bar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.fb-watch { position: fixed; inset: 0; z-index: 7000; background: rgba(5, 14, 30, .75); display: grid; place-items: center; padding: 1rem; }
.fb-watch-in { width: min(900px, 100%); background: #0b1a33; color: #fff; border-radius: 16px; padding: .8rem; display: grid; gap: .6rem; }
.fb-watch-h { display: flex; justify-content: space-between; align-items: center; }
.fb-watch-h strong { color: #ff5a4e; }
.fb-watch-h button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; cursor: pointer; }
.fb-watch-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.fb-watch-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fb-watch .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); justify-self: start; }
.fb-status { font-weight: 800; color: var(--muted); margin: 0 0 .6rem; }
.fb-status.is-on { color: #c0392b; }
@media (max-width: 500px) { .fb-live-bar .live-bar-text strong { display: inline; } .fb-live-bar .live-bar-text span.fb-sub { display: none; } }

/* ==========================================================================
   Round 31: Prayer Room, Prayer Wave, Walk Together, Praise Moments, song
   finder, today's reminders, feedback
   ========================================================================== */
/* Prayer Room */
.pm-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .35rem .6rem; flex: none; max-width: 55%; }
.pm-req > div:first-child { min-width: 0; flex: 1; }
.pm-req.is-now { outline: 2px solid var(--gold); background: var(--gold-soft); }
.pm-req.is-pending { opacity: .85; }
.pm-del-ask { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: var(--fs-xs); font-weight: 700; color: var(--err); }
.pm-del-yes { background: var(--err); color: #fff; border: 0; min-height: 34px; }
.pm-prayed { display: block; margin-top: .25rem; color: var(--muted); font-weight: 700; }
.pm-people { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0 0; color: var(--muted); font-weight: 700; font-size: var(--fs-sm); }
.pr-faces { display: inline-flex; }
.pr-face { width: 30px; height: 30px; border-radius: 50%; margin-left: -8px; border: 2px solid var(--white); background: var(--navy) center / cover no-repeat; color: #fff; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 800; }
.pr-face:first-child { margin-left: 0; }
.pr-people-none { font-weight: 600; }
.pm-room-set { margin-top: .7rem; }
.pm-room-set summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.pm-room-set form { margin-top: .6rem; }
.pm-pending { border: 2px dashed var(--gold); padding: 1.2rem; }
.pm-prev-h { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center; }
.pm-prev-h h2 { margin: 0; }
.pm-prev-pick select { max-width: 16rem; }
.pr-closed { text-align: center; padding: 2rem 1.2rem; }
.pr-closed-icon { font-size: 2.6rem; margin: 0; }
.pr-closed .btn-row { justify-content: center; }
.pr-next { font-size: var(--fs-sm); color: var(--heading); }
.pr-room { padding: 1.2rem; background: linear-gradient(135deg, color-mix(in srgb, var(--navy) 92%, #000), var(--navy)); color: #fff; }
.pr-room h2 { color: #fff; margin: .2rem 0 0; }
.pr-room .pm-people { color: rgba(255,255,255,.85); }
.pr-room .pr-face { border-color: var(--navy); background-color: color-mix(in srgb, var(--gold) 70%, #000); }
.pr-room .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.pr-live { margin: 0; display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: var(--fs-xs); color: #ffb4ad; }
.pr-join { font-size: 1.05rem; min-height: 52px; padding-inline: 1.4rem; }
.pr-pray { flex: none; }
.pr-send .pm-post { margin-top: .4rem; }
.pr-wall-link { text-align: center; }
@media (max-width: 640px) { .pm-req { flex-direction: column; } .pm-acts { max-width: none; justify-content: flex-start; } }
/* Song finder (songs.js) */
html.sf-open { overflow: hidden; }
.sf-sheet { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 16px; }
.sf-back { position: absolute; inset: 0; background: rgba(5, 10, 20, .55); }
.sf-card { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--white); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.sf-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.sf-head h2 { margin: 0; font-size: 1.15rem; }
.sf-x { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); min-width: 44px; min-height: 44px; }
.sf-body { padding: 1rem 1.1rem 1.2rem; overflow: auto; }
.sf-search { display: flex; gap: .5rem; }
.sf-search input { flex: 1; min-width: 0; }
.sf-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.sf-item { display: flex; gap: .7rem; align-items: center; padding: .55rem; border: 1px solid var(--line); border-radius: 12px; }
.sf-art { flex: none; width: 56px; height: 56px; border-radius: 8px; background: var(--navy-soft) center / cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 1.4rem; }
.sf-info { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.sf-info strong { color: var(--heading); overflow-wrap: anywhere; }
.sf-info span, .sf-info small { color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.sf-info em { font-style: normal; font-size: var(--fs-xs); font-weight: 800; color: var(--muted); }
.sf-info em.is-yes { color: var(--ok-ink); }
.sf-acts { flex: none; display: flex; gap: .35rem; }
.sf-foot { margin-top: .8rem; }
.sf-song { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; margin: 0 0 .8rem; }
.sf-song textarea { font-family: inherit; }
@media (max-width: 520px) { .sf-item { flex-wrap: wrap; } .sf-acts { width: 100%; justify-content: flex-end; } }
.song-quick { display: grid; gap: .4rem; justify-items: start; padding: .8rem; margin: 0 0 1rem; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-2); }
.song-find { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; align-self: end; }
.song-words { font-weight: 700; color: var(--muted); }
.song-words.is-yes { color: var(--ok-ink); }
.w-songs-add { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
/* Sunday Live: home and "Show now" */
.pr-home { max-width: 760px; margin: 0 auto; display: grid; gap: 1rem; padding: 1rem 0; }
.pr-home h1 { margin-top: 0; }
.pr-hlist { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .5rem; }
.pr-hitem { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; }
.pr-hitem > div { display: grid; min-width: 0; }
.pr-hitem small { color: var(--muted); }
.pr-now { display: grid; gap: .4rem; margin: .6rem 0; padding: .7rem; border: 1px dashed var(--line); border-radius: 12px; }
.pr-nowf { display: flex; gap: .4rem; }
.pr-nowf input { flex: 1; min-width: 0; }
.pr-remote .pr-now { text-align: left; }
/* Prayer Wave */
.pw-wave { margin: .5rem 0 0; font-size: var(--fs-sm); color: var(--muted); }
.pw-wave p { margin: 0; }
.pw-wave strong { color: var(--heading); }
.pw-wave.is-empty { font-style: italic; }
.pw-wave-bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; margin: .35rem 0 .25rem; background: var(--line); }
.pw-wave-bar i { display: block; min-width: 6px; animation: pwGrow .8s ease-out; }
.pw-wave-c { font-size: var(--fs-xs); }
.wv-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .25rem; vertical-align: middle; }
.wv-bangkok { background: var(--navy); } .wv-huahin { background: #1C8C8C; } .wv-online { background: var(--gold); }
.pw-wave-bar i:not(.wv-bangkok):not(.wv-huahin):not(.wv-online), .wv-dot:not(.wv-bangkok):not(.wv-huahin):not(.wv-online) { background: #8E6CC0; }
.pw-wave-sum { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .6rem; padding: .45rem .9rem; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; font-size: var(--fs-sm); }
.pw-wave-pulse { width: .65rem; height: .65rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); animation: pwPulse 2s infinite; }
.pw-pray { position: relative; }
.pw-plus { position: absolute; right: .4rem; top: -.2rem; font-weight: 800; color: var(--gold-deep); pointer-events: none; animation: pwPlus 1.4s ease-out forwards; }
.pw-pray.is-wave { animation: pwRipple .9s ease-out; }
@keyframes pwPlus { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-2.2rem); } }
@keyframes pwRipple { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }
@keyframes pwPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes pwGrow { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .pw-plus, .pw-pray.is-wave, .pw-wave-pulse, .pw-wave-bar i { animation: none; } }
/* Walk Together */
.walk { margin-top: 1rem; }
.walk-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.walk-h h2 { margin: 0; font-size: 1.25rem; }
.walk-today { display: flex; gap: .3rem; flex-wrap: wrap; }
.chip-ok { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .6rem; border-radius: 99px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 700; font-size: var(--fs-xs); }
.walk-line { margin: .6rem 0; font-size: 1.05rem; }
.wk-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; margin: .4rem 0; }
.wk-day { display: grid; justify-items: center; gap: .15rem; padding: .4rem .1rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.wk-day b { font-size: var(--fs-xs); color: var(--muted); }
.wk-day i { font-style: normal; min-height: 1.3em; font-size: .9rem; color: var(--muted); }
.wk-day.is-on { background: var(--ok-bg); border-color: var(--ok-line); }
.wk-day.is-today { outline: 2px solid var(--gold); }
.wk-day.is-later { opacity: .55; }
.wk-day.is-sun { background: transparent; border-style: dashed; }
.walk-how { margin: .4rem 0 .8rem; }
.walk-badges summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.walk-badges ul { list-style: none; padding: 0; margin: .6rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.walk-badges li { display: grid; gap: .1rem; padding: .6rem; border-radius: 12px; border: 1px solid var(--line); opacity: .6; }
.walk-badges li.is-on { opacity: 1; background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.walk-badges li span { font-size: 1.4rem; }
.walk-badges li small { color: var(--muted); font-size: var(--fs-xs); }
.walk-partners { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.walk-partners h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.walk-p, .walk-ask { padding: .7rem; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 .6rem; }
.walk-ask { border-color: var(--gold); background: var(--gold-soft); }
.walk-ask p { margin: 0 0 .4rem; }
.walk-p-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; font-size: var(--fs-sm); }
.walk-p-h span { color: var(--muted); }
.walk-find { position: relative; max-width: 420px; }
.walk-find input { width: 100%; }
.walk-hits { display: grid; gap: .3rem; margin-top: .3rem; }
.walk-hit { text-align: left; padding: .5rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; min-height: 44px; }
.walk-hit:hover { background: var(--surface-2); }
/* Praise Moments */
.mo { margin: 0 0 1.2rem; overflow: hidden; }
.mo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.mo-head h2 { margin: 0; font-size: 1.25rem; }
.mo-head p { margin: .2rem 0 0; color: var(--muted); font-size: var(--fs-sm); }
.mo-row { display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; -webkit-overflow-scrolling: touch; }
.mo-card { position: relative; flex: none; width: 132px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--navy-ink); border: 0; padding: 0; cursor: pointer; scroll-snap-align: start; color: #fff; text-align: left; }
.mo-card img, .mo-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
.mo-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.85); color: var(--navy); font-size: 1rem; z-index: 1; }
.mo-meta { position: absolute; left: .5rem; right: .5rem; bottom: .5rem; z-index: 1; display: grid; gap: .1rem; }
.mo-meta strong { font-size: .8rem; }
.mo-meta small { font-size: .72rem; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mo-len { position: absolute; top: .4rem; right: .4rem; z-index: 1; font-size: .7rem; font-weight: 700; background: rgba(0,0,0,.55); padding: .1rem .35rem; border-radius: 6px; }
.mo-card.is-mine { cursor: default; outline: 2px dashed var(--gold); }
.mo-badge { position: absolute; left: .4rem; right: .4rem; bottom: .5rem; z-index: 1; font-size: .72rem; font-weight: 800; text-align: center; background: rgba(0,0,0,.6); border-radius: 8px; padding: .25rem; }
.mo-del { position: absolute; top: .35rem; right: .35rem; z-index: 2; border: 0; border-radius: 50%; width: 36px; height: 36px; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.mo-empty { color: var(--muted); margin: 0; }
html.mo-open { overflow: hidden; }
.mo-view { position: fixed; inset: 0; z-index: 4100; background: #000; }
.mo-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; }
.mo-slide { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; display: grid; place-items: center; }
.mo-slide video { width: 100%; height: 100%; max-width: calc(100dvh * 9 / 16); object-fit: cover; background: #000; }
.mo-info { position: absolute; left: 1rem; right: 5rem; bottom: 2.6rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.mo-info p { margin: .3rem 0 0; }
.mo-info span { opacity: .85; }
.mo-side { position: absolute; right: .7rem; bottom: 2.4rem; display: grid; gap: .9rem; }
.mo-side button { display: grid; justify-items: center; gap: .1rem; background: rgba(0,0,0,.35); color: #fff; border: 0; border-radius: 14px; padding: .45rem .5rem; min-width: 52px; cursor: pointer; }
.mo-side span { font-size: 1.5rem; }
.mo-side small, .mo-side b { font-size: .72rem; }
.mo-amen.is-on { background: color-mix(in srgb, var(--gold) 65%, #000); }
.mo-x { position: absolute; top: max(.6rem, env(safe-area-inset-top)); right: .6rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 1.8rem; cursor: pointer; }
.mo-tap { position: absolute; bottom: .6rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: .75rem; margin: 0; }
.mo-tips { padding-left: 1.1rem; margin: .4rem 0 1rem; }
.mo-cam { position: relative; width: min(100%, 300px); aspect-ratio: 9 / 16; margin: 0 auto .8rem; border-radius: 16px; overflow: hidden; background: #000; }
.mo-cam video { width: 100%; height: 100%; object-fit: cover; }
.mo-cam video.is-mirror { transform: scaleX(-1); }
.mo-timer { position: absolute; top: .5rem; left: .5rem; background: rgba(0,0,0,.55); color: #fff; padding: .15rem .45rem; border-radius: 8px; font-weight: 700; font-size: .8rem; }
.mo-recdot { position: absolute; top: .5rem; right: .5rem; color: #ff5a4e; font-weight: 800; font-size: .8rem; animation: pwPulse 1.4s infinite; border-radius: 8px; background: rgba(0,0,0,.55); padding: .15rem .45rem; }
.mo-recbtns { justify-content: center; }
.mo-prog { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: .6rem 0; }
.mo-prog span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
/* Admin: Praise Moments and Feedback */
.mo-admin { display: grid; gap: .8rem; margin-top: .8rem; }
.mo-adm { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 1rem; align-items: start; }
.mo-adm video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #000; }
@media (max-width: 560px) { .mo-adm { grid-template-columns: 1fr; } .mo-adm video { max-width: 260px; } }
.fb-adm { margin-top: .8rem; }
.fb-adm.is-new { border-left: 4px solid var(--gold); }
.fb-adm-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; font-weight: 700; margin: 0 0 .4rem; }
.fb-adm-h small { color: var(--muted); font-weight: 600; }
.fb-adm-msg { white-space: normal; margin: 0 0 .4rem; }
/* Feedback */
.fb-form fieldset { border: 0; padding: 0; margin: 0 0 .8rem; }
.fb-form legend { font-weight: 700; color: var(--heading); margin-bottom: .35rem; }
.fb-about { display: flex; flex-wrap: wrap; gap: .4rem; }
.fb-pill { position: relative; }
.fb-pill input { position: absolute; opacity: 0; inset: 0; }
.fb-pill span { display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; padding: .35rem .8rem; border-radius: 99px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 600; font-size: var(--fs-sm); }
.fb-pill input:checked + span { border-color: var(--navy); background: var(--navy-soft); color: var(--heading); }
.fb-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.fb-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .1rem; }
.fb-stars legend { float: left; width: 100%; }
.fb-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-stars label { font-size: 1.9rem; line-height: 1; color: var(--line); cursor: pointer; padding: .1rem; }
.fb-stars label:hover, .fb-stars label:hover ~ label, .fb-stars input:checked ~ label { color: var(--gold); }
.fb-stars input:focus-visible + label { outline: 2px solid var(--navy); border-radius: 4px; }
.fb-thanks { text-align: center; padding: 1rem 0; }
.fb-thanks-i { font-size: 2.4rem; margin: 0; }
.footer-feedback { color: inherit; }
/* What I learned: suggestions and share targets */
.lc-lab { margin: .6rem 0 .3rem; font-weight: 700; font-size: var(--fs-sm); color: var(--heading); }
.lc-sug { display: flex; flex-wrap: wrap; gap: .35rem; }
.lc-sug .chip-btn { text-align: left; max-width: 100%; white-space: normal; }
.lc-targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .4rem; }
.lc-t { display: grid; justify-items: center; gap: .2rem; padding: .55rem .3rem; min-height: 64px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 700; font-size: var(--fs-xs); cursor: pointer; }
.lc-t span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem; }
.lc-facebook span { background: #1877F2; } .lc-line span { background: #06C755; } .lc-messenger span { background: linear-gradient(135deg, #0695FF, #A334FA, #FF6968); }
.lc-instagram span { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); } .lc-save span { background: var(--navy); }
/* Today's schedule bar */
.today-bar { background: var(--gold-soft); color: var(--gold-ink); border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); font-size: var(--fs-sm); }
.today-bar-in { display: flex; align-items: center; gap: .6rem; padding-top: .4rem; padding-bottom: .4rem; }
.tb-lab { font-weight: 800; flex: none; }
.tb-items { display: flex; flex-wrap: wrap; gap: .2rem 1rem; flex: 1; min-width: 0; }
.tb-items a { color: inherit; text-decoration: none; }
.tb-items a:hover strong { text-decoration: underline; }
.tb-items small { opacity: .85; }
.tb-now { color: #C0392B; }
.tb-x { flex: none; border: 0; background: none; color: inherit; font-size: 1.4rem; line-height: 1; min-width: 40px; min-height: 40px; cursor: pointer; }
.song-row .yt-slot { grid-column: 1 / -1; min-width: 0; }
.song-row .yt-slot:empty { display: none; }

/* Round 32: Bible on the worship screen: the reference never covers the words */
.ws-m-bible .ws-bible { margin-bottom: 9%; max-height: 76%; }
.ws-m-bible .ws-ref { bottom: 4%; }
.w-grip { flex: none; cursor: grab; touch-action: none; user-select: none; padding: .55rem .35rem .55rem .55rem; color: var(--muted); font-size: 1.1rem; line-height: 1; }
.w-grip:active { cursor: grabbing; }
.w-items li.is-drag { opacity: .85; box-shadow: var(--shadow); background: var(--gold-soft); position: relative; z-index: 2; }
.w-drag-hint { margin: -.4rem 0 .6rem; }
.w-size { display: inline-flex; align-items: center; gap: .25rem; }
.w-size b { min-width: 3.2em; text-align: center; font-size: var(--fs-xs); color: var(--muted); }
.w-anns { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .4rem; }
.w-anns li { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: space-between; align-items: center; padding: .5rem; border: 1px solid var(--line); border-radius: 10px; }
.w-anns li > span:first-child { display: grid; min-width: 0; flex: 1 1 12rem; }
.w-anns small { color: var(--muted); }
.w-ann-act { display: flex; gap: .3rem; flex-wrap: wrap; }

/* Round 32: slides said on the spot, the logo, and bigger words */
.sl-say-in { text-align: center; }
.sl-say { font-size: calc(7cqw * var(--slz, 1)); line-height: 1.15; margin: 0; font-weight: 800; }
.sl-logo-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; }
.sl-logo-in img { width: 3.2em; height: 3.2em; }
.sl-logo-in strong { letter-spacing: .12em; color: #E2BE57; font-size: 1.6em; }
.pr-size { display: inline-flex; align-items: center; gap: .2rem; }
.pr-size b { min-width: 3em; text-align: center; font-size: var(--fs-xs); }
.pr-ver select { min-height: 36px; border-radius: 8px; }
.pr-rtools { justify-content: center; margin: .6rem 0; }
.pr-vstep { margin: .2rem 0; }
/* Round 32: the Sanctuary */
.live-wrap > [data-sanct-room], .live-wrap > [data-sanct-admin], .live-wrap > [data-sanct-stream], .live-wrap > [data-sanct-screen] { margin-bottom: 1rem; }
.live-wrap > div:empty { display: none; }
.sanct-room { padding: 1.1rem 1.2rem; }
.sanct-room.is-live { background: linear-gradient(135deg, color-mix(in srgb, var(--navy) 92%, #000), var(--navy)); color: #fff; }
.sanct-room.is-live .pm-people, .sanct-room.is-live .sanct-invite { color: rgba(255,255,255,.88); }
.sanct-room.is-live .link-btn { color: #fff; }
.sanct-room:not(.is-live) .pr-live { color: var(--muted); }
.sanct-room-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.sanct-ver select { min-height: 38px; border-radius: 10px; max-width: 12rem; }
.sanct-invite { margin: .5rem 0 .8rem; }
.sanct-lead-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.sanct-lead-h h2 { margin: 0; font-size: 1.15rem; }
.sanct-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; margin: .8rem 0; }
.sanct-tile { display: grid; gap: .35rem; justify-items: start; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; }
.sanct-tile span { color: var(--muted); font-size: var(--fs-sm); }
.sanct-tile.is-on { border-color: #c0392b; background: color-mix(in srgb, #c0392b 7%, var(--white)); }
.sanct-tile.is-on span { color: #c0392b; font-weight: 700; }
.sanct-lead.is-folded { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .9rem; border: 1px dashed var(--line); border-radius: 12px; font-size: var(--fs-sm); }
.sanct-stream-set summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.sanct-stream-set form { margin-top: .6rem; }
.sanct-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin-top: .4rem; }
.sanct-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sanct-lab { margin: 0 0 .4rem; font-weight: 800; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sanct-ws { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.sanct-ws > .ws { width: 100%; height: 100%; }
.live-wait { margin: 0 0 .8rem; padding: .6rem .8rem; border-radius: 10px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 600; font-size: var(--fs-sm); }
/* Round 32: "We're live" is hard to miss */
.live-bar.is-service { background: #B42318; padding: .55rem .6rem .55rem 1rem; animation: liveGlow 2.2s ease-in-out infinite; }
.live-bar.is-service .live-bar-dot { background: #fff; }
.live-bar.is-service .live-bar-ctl { color: #fff; border-color: rgba(255,255,255,.6); }
@keyframes liveGlow { 0%, 100% { box-shadow: 0 10px 30px rgba(180,35,24,.35); } 50% { box-shadow: 0 10px 40px rgba(180,35,24,.75); } }
.live-pop { position: fixed; inset: 0; z-index: 4200; display: grid; place-items: center; padding: 16px; background: rgba(5,10,20,.55); }
.live-pop-in { width: min(420px, 100%); background: var(--white); color: var(--ink); border-radius: 18px; padding: 1.4rem; text-align: center; box-shadow: var(--shadow); border-top: 6px solid #B42318; }
.live-pop-in strong { display: block; font-size: 1.4rem; color: #B42318; margin-top: .4rem; }
.live-pop-in .btn-row { justify-content: center; margin-top: .8rem; }
.live-pop-dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #B42318; animation: pwPulse 1.4s infinite; }
@media (prefers-reduced-motion: reduce) { .live-bar.is-service, .live-pop-dot { animation: none; } }
/* Round 33: Design panel (background, font, color, size) for every presentation */
.lk { border: 1px solid var(--line); border-radius: 12px; padding: .5rem .8rem; background: var(--white); color: var(--ink); text-align: left; }
.lk summary { cursor: pointer; font-weight: 800; color: var(--heading); }
.lk summary small { font-weight: 600; color: var(--muted); margin-left: .3rem; }
.lk-body { display: grid; gap: .7rem; padding: .7rem 0 .3rem; }
.lk-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .6rem; align-items: center; }
@media (max-width: 520px) { .lk-row { grid-template-columns: 1fr; gap: .3rem; } }
.lk-lab { font-weight: 700; font-size: var(--fs-sm); color: var(--heading); }
.lk-sws { display: flex; flex-wrap: wrap; gap: .35rem; }
.lk-sw { width: 52px; height: 32px; border-radius: 8px; border: 2px solid transparent; background-size: cover; background-position: center; cursor: pointer; color: #fff; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.lk-sw.is-on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--navy); }
.lk-sw.is-video { background: #1b2433; }
.lk-add { background: var(--surface-2); color: var(--heading); border: 1px dashed var(--line); font-size: 1.2rem; }
.lk-col { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.lk-col.is-on { border-color: var(--navy); box-shadow: 0 0 0 2px var(--gold); }
.lk select { min-height: 40px; border-radius: 10px; max-width: 16rem; }
.lk-size { display: inline-flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.lk-size b { min-width: 3em; text-align: center; font-size: var(--fs-xs); }
.sl.lk-font, .sl.lk-font * { font-family: var(--sl-font) !important; }
.sl.lk-color .sl-h1, .sl.lk-color .sl-h2, .sl.lk-color .sl-h3, .sl.lk-color .sl-vtext, .sl.lk-color .sl-say, .sl.lk-color .sl-sub, .sl.lk-color .sl-bullets li, .sl.lk-color .sl-quote { color: var(--sl-color) !important; }
.sl > .lk-bg { z-index: 0; }
.ws.lk-color .ws-lyrics, .ws.lk-color .ws-text, .ws.lk-color .ws-bible, .ws.lk-color .ws-text p { color: var(--lk-color); }
.pmx-stage.lk-color .pmx-body, .pmx-stage.lk-color .pmx-in h2 { color: var(--lk-color); }
.pmx-stage > .lk-bg { position: absolute; inset: 0; z-index: 0; }
.pmx-stage > .pmx-slide { position: relative; z-index: 1; }
.pmx-look { position: absolute; right: 1rem; bottom: 4.2rem; z-index: 5; width: min(520px, calc(100vw - 2rem)); max-height: 60vh; overflow: auto; }
.pmx-stage { position: relative; }
.w-font { width: 100%; min-height: 40px; border-radius: 10px; margin-bottom: .4rem; }
.ws.lk-color .ws-l2 { color: var(--lk-color); opacity: .8; }
.pmx-stage.has-lk-bg .pmx-slide { background: transparent !important; box-shadow: none; }
.pmx-stage.has-lk-bg { background: transparent; }
/* Round 34: discipleship sticky notes (add, edit, delete) */
.dsn-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.dsn-head h3 { margin: 0; }
.dsn-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; align-items: start; }
.dsn { position: relative; padding: 1rem 1rem .7rem; display: grid; gap: .45rem; min-height: 10rem; transform: rotate(-.6deg); transition: transform .15s ease; }
.dsn:nth-child(3n+2) { transform: rotate(.7deg); }
.dsn:nth-child(4n) { transform: rotate(-.2deg); }
.dsn:hover, .dsn:focus-within, .dsn-edit { transform: none; }
.dsn::before { content: ""; position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; transform: translateX(-50%) rotate(-2deg); background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.12); border-radius: 2px; }
.dsn.is-pinned::before { display: none; }
.dsn-pin { position: absolute; top: -12px; right: 10px; font-size: 1.3rem; }
.dsn-tag { margin: 0; font-size: var(--fs-xs); font-weight: 800; opacity: .8; }
.dsn-body { margin: 0; white-space: pre-line; line-height: 1.55; font-size: 1rem; font-family: 'Segoe Print', 'Bradley Hand', 'Comic Neue', var(--font-body); overflow-wrap: anywhere; }
.dsn-meta { margin: 0; font-size: var(--fs-xs); opacity: .65; }
.dsn-acts { display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: center; border-top: 1px dashed rgba(0,0,0,.15); padding-top: .4rem; }
.dsn .link-btn { color: inherit; min-height: 36px; }
.dsn .link-btn.danger { color: #9b1c12; }
.dsn-ask { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 700; font-size: var(--fs-sm); }
.dsn-yes { background: #B42318; color: #fff; border: 0; }
.dsn-edit textarea { width: 100%; min-height: 8rem; resize: vertical; font-size: 1rem; line-height: 1.5; padding: .5rem; border-radius: 6px; }
.dsn-lab { display: grid; gap: .25rem; font-size: var(--fs-xs); font-weight: 700; }
.dsn-lab select { min-height: 38px; border-radius: 8px; background: rgba(255,255,255,.55); color: inherit; border: 1px solid rgba(0,0,0,.12); }
.dsn-empty { grid-column: 1 / -1; }
.dsn-lessons-h { margin: 1.6rem 0 .6rem; }
@media (prefers-reduced-motion: reduce) { .dsn { transform: none !important; } }
/* Round 35–36: rich notes (MySword / e-Sword style)
   Colors come from a few tokens, so the words are clear in light and dark mode
   and on every sticky-note color. */
.rn { --rn-bg: #ffffff; --rn-ink: #1b2230; --rn-ph: #6b7487; --rn-line: color-mix(in srgb, var(--navy) 18%, #d9dee7);
  --rn-bar: var(--navy); --rn-bar-ink: #ffffff; --rn-bar-hover: rgba(255,255,255,.16); --rn-panel: color-mix(in srgb, var(--navy) 6%, #ffffff);
  display: grid; border: 1px solid var(--rn-line); border-radius: 12px; overflow: hidden; background: var(--rn-bg); color: var(--rn-ink); }
:root[data-theme="dark"] .rn { --rn-bg: #121826; --rn-ink: #eef2f8; --rn-ph: #9aa6bb; --rn-line: #2c3547; --rn-bar: color-mix(in srgb, var(--navy) 55%, #0b0f18); --rn-panel: #1a2232; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rn { --rn-bg: #121826; --rn-ink: #eef2f8; --rn-ph: #9aa6bb; --rn-line: #2c3547; --rn-bar: color-mix(in srgb, var(--navy) 55%, #0b0f18); --rn-panel: #1a2232; } }
/* inside a sticky note: the paper color shows through, the words stay dark (light mode) or light (dark mode) */
.sticky-note .rn { --rn-bg: color-mix(in srgb, var(--sn, #FFF3A3) 55%, #ffffff); --rn-ink: #1d1d1d; --rn-ph: #5d5d5d; --rn-line: rgba(0,0,0,.16); --rn-panel: color-mix(in srgb, var(--sn, #FFF3A3) 35%, #ffffff); }
:root[data-theme="dark"] .sticky-note .rn { --rn-bg: #161c29; --rn-ink: #f1f3f7; --rn-ph: #a3adbf; --rn-line: rgba(255,255,255,.14); --rn-panel: #1d2535; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sticky-note .rn { --rn-bg: #161c29; --rn-ink: #f1f3f7; --rn-ph: #a3adbf; --rn-line: rgba(255,255,255,.14); --rn-panel: #1d2535; } }
.rn-head { display: none; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .8rem; background: var(--rn-bar); color: var(--rn-bar-ink); }
.rn-title { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-head-acts { display: flex; gap: .2rem; }
.rn-bar { display: flex; flex-wrap: nowrap; gap: .1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: .3rem; background: var(--rn-bar); color: var(--rn-bar-ink); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent; }
.rn-bar::-webkit-scrollbar { height: 4px; } .rn-bar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 4px; }
.rn-b, .rn-hb { flex: none; display: inline-grid; place-items: center; min-width: 42px; height: 40px; padding: 0 .35rem; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; scroll-snap-align: start; font: 700 1rem/1 var(--font-body); }
.rn-b:hover, .rn-hb:hover, .rn-b:focus-visible, .rn-hb:focus-visible { background: var(--rn-bar-hover); outline: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.rn-t { font-size: 1.05rem; line-height: 1; }
.rn-ti { font-family: Georgia, serif; font-weight: 700; }
.rn-ta { position: relative; padding-bottom: 4px; font-weight: 800; }
.rn-tbar { position: absolute; left: -2px; right: -2px; bottom: -2px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #ef5350, #ffb300, #66bb6a, #42a5f5, #ab47bc); }
.rn-hlbar { stroke: #fff176; }
.rn-refs { font-size: .58rem; line-height: 1.05; font-weight: 800; letter-spacing: .02em; text-align: left; }
.rn-panel { position: relative; padding: .55rem 2.6rem .55rem .6rem; background: var(--rn-panel); border-bottom: 1px solid var(--rn-line); color: var(--rn-ink); }
.rn-pf { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.rn-pf input, .rn-pf select { flex: 1 1 10rem; min-height: 40px; border-radius: 8px; border: 1px solid var(--rn-line); background: var(--rn-bg); color: var(--rn-ink); padding: .35rem .6rem; font: inherit; }
.rn-pf select { flex: 0 1 7rem; }
.rn-plab { margin: 0 0 .35rem; font-weight: 700; font-size: var(--fs-sm); }
.rn-pmsg { margin: .3rem 0 0; font-size: var(--fs-sm); } .rn-pmsg:empty { display: none; }
.rn-px { position: absolute; top: .35rem; right: .35rem; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--rn-ink); font-size: 1.4rem; cursor: pointer; }
.rn-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.rn-sw { display: flex; flex-wrap: wrap; gap: .45rem; }
.rn-cs, .rn-hs { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--rn-line); background: var(--rn-bg); font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.rn-cs.is-none { color: var(--rn-ink); }
.rn-hs.is-none { color: var(--rn-ink); }
.rn-ed { padding: .8rem .9rem; outline: none; line-height: 1.6; font-size: 1.02rem; color: var(--rn-ink); background: var(--rn-bg); caret-color: var(--rn-ink); overflow-wrap: anywhere; cursor: text; }
.rn-ed.is-empty::before { content: attr(data-ph); color: var(--rn-ph); pointer-events: none; white-space: pre-line; }
.rn-ed:focus { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 75%, transparent); }
.rn-ed p, .rn-view p { margin: 0 0 .45em; }
.rn-ed h3, .rn-view h3 { font-size: 1.2em; margin: .5em 0 .3em; line-height: 1.25; }
.rn-view h4 { font-size: .95em; margin: .5em 0 .2em; opacity: .85; }
.rn-ed ul, .rn-ed ol, .rn-view ul, .rn-view ol { margin: .2em 0 .5em; padding-left: 1.5em; }
.rn-ed img, .rn-view img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: .5em 0; }
.rn-ed hr, .rn-view hr { border: 0; border-top: 2px solid currentColor; opacity: .25; margin: .8em 0; }
.rn-ed a, .rn-view a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.rn-ind { margin: .2em 0 .2em 1.6em; padding: 0; border: 0; background: none; }
mark.hl-y { background: #fff176; color: #1d1d1d; } mark.hl-g { background: #b9f6ca; color: #1d1d1d; } mark.hl-b { background: #b3e5fc; color: #1d1d1d; } mark.hl-p { background: #f8bbd0; color: #1d1d1d; }
.rn-ed mark, .rn-view mark { padding: 0 .12em; border-radius: 3px; }
.tc-red { color: #c62828; } .tc-orange { color: #d84315; } .tc-green { color: #2e7d32; } .tc-blue { color: #1565c0; } .tc-purple { color: #6a1b9a; } .tc-gold { color: #8d6800; }
:root[data-theme="dark"] .tc-red { color: #ff8a80; } :root[data-theme="dark"] .tc-orange { color: #ffab70; } :root[data-theme="dark"] .tc-green { color: #8ee59a; } :root[data-theme="dark"] .tc-blue { color: #8ec8ff; } :root[data-theme="dark"] .tc-purple { color: #d6a4ff; } :root[data-theme="dark"] .tc-gold { color: #f3cf5d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tc-red { color: #ff8a80; } :root:not([data-theme="light"]) .tc-orange { color: #ffab70; } :root:not([data-theme="light"]) .tc-green { color: #8ee59a; } :root:not([data-theme="light"]) .tc-blue { color: #8ec8ff; } :root:not([data-theme="light"]) .tc-purple { color: #d6a4ff; } :root:not([data-theme="light"]) .tc-gold { color: #f3cf5d; } }
.rn-cs.tc-red, .rn-cs.tc-orange, .rn-cs.tc-green, .rn-cs.tc-blue, .rn-cs.tc-purple, .rn-cs.tc-gold { background: var(--rn-bg); }
.rn-verse, .rn-view blockquote.rn-verse { margin: .5em 0; padding: .55em .85em; border-left: 4px solid var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); border-radius: 0 8px 8px 0; font-family: var(--font-display, Georgia, serif); }
.rn-verse cite, .rn-view blockquote.rn-verse cite { display: block; margin-top: .25em; font-style: normal; font-weight: 800; font-size: .8em; color: var(--gold-deep); font-family: var(--font-body); }
.rn-foot { display: none; gap: .6rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom, 0px)); background: var(--rn-bar); justify-content: center; }
.rn-foot .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
/* full screen (maximize) */
.rn.is-max { position: fixed; inset: 0; z-index: 6000; border-radius: 0; border: 0; grid-template-rows: auto auto auto 1fr auto; }
.rn.is-max .rn-head, .rn.is-max .rn-foot { display: flex; }
.rn.is-max .rn-ed { min-height: 0 !important; overflow-y: auto; font-size: 1.1rem; padding: 1rem 1.1rem; }
html.rn-max-open { overflow: hidden; }
/* Bible reader: my notes in this chapter */
.chapter-notes { margin-top: 1rem; }
.chapter-notes summary { cursor: pointer; font-weight: 800; color: var(--heading); }
.cn-list { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .8rem; }
.cn-list li { border-left: 3px solid var(--gold); padding-left: .8rem; }
.cn-ref { border: 0; background: none; padding: 0; font-weight: 800; color: var(--gold-deep); cursor: pointer; }
/* All my notes */
.nb { display: grid; gap: .8rem; }
.nb-search { display: flex; align-items: center; gap: .8rem; }
.nb-search input { flex: 1; min-height: 46px; border-radius: 12px; font-size: 1rem; }
.nb-count { color: var(--muted); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.nb-chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.nb-lab { font-weight: 800; font-size: var(--fs-sm); color: var(--heading); margin-right: .2rem; }
.nb-list { display: grid; gap: .8rem; }
.nb-item { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; background: var(--white); display: grid; gap: .5rem; }
.nb-item.sticky-note { border: 0; }
.nb-item header { display: flex; gap: .7rem; align-items: flex-start; }
.nb-kind { font-size: 1.4rem; line-height: 1; }
.nb-item h3 { margin: 0; font-size: 1.05rem; }
.nb-item header p { margin: .1rem 0 0; color: var(--muted); font-size: var(--fs-sm); }
.nb-item.sticky-note header p { color: inherit; opacity: .75; }
.nb-body { max-height: 9em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.nb-body.is-open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.nb-tags { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.nb-tag { border: 0; background: var(--navy-soft); color: var(--heading); border-radius: 99px; padding: .15rem .55rem; font-weight: 700; font-size: var(--fs-xs); cursor: pointer; }
.nb-item footer { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .5rem; }
.nb-move select { min-height: 36px; border-radius: 8px; max-width: 12rem; }
mark.nb-hit { background: #ffe082; color: #1d1d1d; border-radius: 2px; }
.nb-item.sticky-note { background: var(--sn, #FFF3A3); color: #2a2a2a; }
:root[data-theme="dark"] .nb-item.sticky-note { background: color-mix(in srgb, var(--sn, #FFF3A3) 28%, #1d2433); color: #f1f1f1; }
/* Round 36: Sanctuary "My notes" window – above the bottom bars, with minimize / maximize / close */
.live-notes { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 1150; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); overflow-y: auto; }
.live-notes:not(.is-open) { left: 16px; right: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.live-notes-h { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.live-notes-acts { display: flex; gap: .15rem; }
.ln-b { width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(0,0,0,.07); color: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer; }
.ln-b:hover, .ln-b:focus-visible { background: rgba(0,0,0,.14); }
:root[data-theme="dark"] .ln-b { background: rgba(255,255,255,.1); }
.live-notes.is-max { inset: 0; width: auto; max-height: none; height: 100vh; height: 100dvh; border-radius: 0; z-index: 5500; padding: .6rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-rows: auto 1fr; }
.live-notes.is-max .live-notes-body { min-height: 0; overflow-y: auto; align-content: start; }
.live-notes.is-max .rn-ed { min-height: 50vh !important; font-size: 1.1rem; }
.live-notes-reopen { justify-content: center; margin: .6rem 0; }
@media (max-width: 700px) {
  .live-notes { left: 10px; right: 10px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .live-notes:not(.is-open) { left: 12px; right: auto; }
  .live-notes.is-max { left: 0; right: 0; bottom: 0; }
}
/* Discipleship sticky notes: clear in dark mode */
:root[data-theme="dark"] .dsn .link-btn.danger { color: #ff9d94; }
:root[data-theme="dark"] .dsn-lab select { background: #161c29; color: #f1f3f7; border-color: rgba(255,255,255,.18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dsn .link-btn.danger { color: #ff9d94; } :root:not([data-theme="light"]) .dsn-lab select { background: #161c29; color: #f1f3f7; border-color: rgba(255,255,255,.18); } }
.dsn-lab select { background: rgba(255,255,255,.75); color: #1d1d1d; }
.me-note-form-head { flex-wrap: wrap; }
.me-note-win { display: inline-flex; gap: .2rem; margin-left: auto; }
.me-note-form.is-min > :not(.me-note-restore) { display: none !important; }
.me-note-form.is-min { padding: .3rem; }
.me-note-restore { width: 100%; display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 48px; }
/* the words in a note always use the note's own ink (never the page's gray text color) */
.rn .rn-ed :is(p, li, div, h3, h4, blockquote, ul, ol), .rn-view :is(p, li, h3, h4, ul, ol) { color: inherit; }
.rn .rn-ed h3 { font-weight: 800; }
.rn.is-max { display: flex; flex-direction: column; }
.rn.is-max > .rn-ed { flex: 1 1 auto; }
.rn.is-max > :not(.rn-ed) { flex: none; }
.rn > * { min-width: 0; }
.rn { grid-template-columns: minmax(0, 1fr); }
/* the swipe-able color row must never make the page wider than a phone */
.me-note-form, .me-note-form > *, .me-note-form .field, .me-note-color, .me-note-color .sticky-row > * { min-width: 0; max-width: 100%; }
.sticky-track { position: relative; }
.sanct-ver select { background: #ffffff; color: #1b2230; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; min-height: 36px; padding: .2rem .5rem; font-weight: 700; }
.sanct-ver select option { background: #ffffff; color: #1b2230; }
/* Round 36: the "New sermon note" form is a calm, clean card (white in light mode,
   the normal dark card in dark mode). The note color you pick shows as a strip on top. */
.me-note-form.sticky-note { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-top: 8px solid var(--sn, #FFF3A3); border-radius: 16px; box-shadow: 0 10px 28px -16px rgba(15,44,89,.35); }
.me-note-form.sticky-note input, .me-note-form.sticky-note textarea, .me-note-form.sticky-note select { background: var(--surface-2); color: var(--ink); border: 1px solid var(--input-line, var(--line)); }
.me-note-form.sticky-note input::placeholder { color: var(--muted); opacity: 1; }
.me-note-form.sticky-note .me-note-win button, .me-note-form.sticky-note .me-note-form-head .icon-btn { background: var(--surface-2); color: var(--heading, var(--navy)); border: 1px solid var(--line); }
.me-note-form.sticky-note .rn { --rn-bg: #ffffff; --rn-ink: #1b2230; --rn-ph: #6b7487; --rn-line: color-mix(in srgb, var(--navy) 18%, #d9dee7); --rn-panel: color-mix(in srgb, var(--navy) 6%, #ffffff); }
:root[data-theme="dark"] .me-note-form.sticky-note { background: var(--white); color: var(--ink); border-color: rgba(255,255,255,.08); border-top-color: color-mix(in srgb, var(--sn, #FFF3A3) 70%, #000); box-shadow: none; }
:root[data-theme="dark"] .me-note-form.sticky-note .rn { --rn-bg: #121826; --rn-ink: #eef2f8; --rn-ph: #9aa6bb; --rn-line: #2c3547; --rn-panel: #1a2232; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .me-note-form.sticky-note { background: var(--white); color: var(--ink); border-color: rgba(255,255,255,.08); border-top-color: color-mix(in srgb, var(--sn, #FFF3A3) 70%, #000); box-shadow: none; }
  :root:not([data-theme="light"]) .me-note-form.sticky-note .rn { --rn-bg: #121826; --rn-ink: #eef2f8; --rn-ph: #9aa6bb; --rn-line: #2c3547; --rn-panel: #1a2232; }
}
/* Round 36: nicknames in Messages */
.chat-nicks { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .4rem; }
.chat-nicks li { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.chat-nick-btn { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-height: 48px; }
.chat-nick-btn:hover, .chat-nick-btn:focus-visible { border-color: var(--gold); outline: none; }
.chat-nick-btn > span { display: grid; min-width: 0; }
.chat-nick-btn strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
.chat-nick-btn em { font-style: normal; font-weight: 600; font-size: var(--fs-xs); color: var(--muted); }
.chat-nick-btn small { font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-nick-form { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.chat-nick-form input { flex: 1 1 10rem; min-width: 0; min-height: 42px; padding: .45rem .8rem; border: 1.5px solid var(--input-line); border-radius: 999px; font: inherit; background: var(--white); color: var(--ink); }
.chat-realname { color: var(--muted); font-weight: 500; }
/* Round 37: Present – the slides row sits right under the big slide, and the big slide
   is never taller than the screen, so the row is always in view on a laptop */
.pr-strip-lab { margin-top: .1rem; }
.pr-strip { scroll-behavior: smooth; scrollbar-width: thin; }
.pr-strip.is-remote .pr-thumb { width: 7rem; }
@media (min-width: 701px) { .pr-curwrap [data-pr-cur] { width: 100%; max-width: calc((100vh - 420px) * 16 / 9); min-width: min(100%, 520px); margin: 0 auto; } .pr-thumb { width: 9.5rem; } }
/* Round 37: the card preview always fits on the screen (tall "story" cards too) */
.lc-preview { display: grid; place-items: center; }
.lc-preview canvas { max-height: 46vh; max-height: 46dvh; width: auto !important; }
.lc-preview.is-tall { max-width: 260px; }
.lc-targets { grid-template-columns: 1fr 1fr; }
.lc-wall span { background: var(--navy); }
.lc-save span { background: var(--gold-deep, #A87B00); }
/* Round 37: pages shown inside "Lead the Service" (no header, footer or floating buttons) */
html.is-embed .service-bar, html.is-embed .site-header, html.is-embed .site-footer, html.is-embed .chat-dock, html.is-embed .chat-finder, html.is-embed .chat-picker,
html.is-embed .theme-fab, html.is-embed .page-edit-fab, html.is-embed .to-top, html.is-embed .skip-link, html.is-embed .serve-remind, html.is-embed .page-back, html.is-embed .newmsg-fab, html.is-embed .live-bar, html.is-embed .live-pop, html.is-embed .live-pill, html.is-embed .messenger-fab, html.is-embed .fb-launch { display: none !important; }
html.is-embed body { padding-top: 0 !important; }
html.is-embed main > .section:first-child, html.is-embed .present-wrap { padding-top: .6rem !important; }
/* Lead the Service */
.lead-tabs { position: sticky; top: calc(var(--header-h, 68px) + 6px); z-index: 20; display: flex; gap: .35rem; overflow-x: auto; padding: .35rem; margin-bottom: .8rem; border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 22px -16px rgba(15,44,89,.4); scrollbar-width: none; }
.lead-tabs::-webkit-scrollbar { display: none; }
.lead-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 46px; padding: .4rem .9rem; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: 700 var(--fs-sm)/1.1 var(--font-body); cursor: pointer; white-space: nowrap; }
.lead-tab.is-on { background: var(--navy); color: #fff; }
.lead-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.lead-live-dot { margin-left: .3rem; padding: .1rem .4rem; border-radius: 999px; background: #d93025; color: #fff; font-size: .7rem; animation: pmPulse 1.6s ease-out infinite; }
.lead-frame { display: block; width: 100%; height: calc(100vh - 190px); height: calc(100dvh - 190px); min-height: 520px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.lead-open { margin: .4rem 0 0; text-align: right; font-size: var(--fs-sm); }
.lead-live { display: grid; gap: .9rem; }
@media (min-width: 900px) { .lead-live { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.lead-cam { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b1220; display: grid; place-items: center; }
.lead-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-cam-off { position: relative; margin: 0; color: #c9d3e6; font-weight: 700; }
.lead-badge { position: absolute; top: .6rem; left: .6rem; z-index: 2; padding: .25rem .6rem; border-radius: 999px; background: #d93025; color: #fff; font-weight: 800; font-size: .8rem; }
.lead-camctl { gap: .4rem; }
.lead-camctl .is-on { background: #b42318; color: #fff; border-color: #b42318; }
.lead-pick select { min-height: 38px; border-radius: 999px; padding: 0 .7rem; border: 1px solid var(--input-line); background: var(--white); color: var(--ink); }
.lead-go { min-width: 10rem; font-size: 1.05rem; }
.lead-end { background: #b42318; color: #fff; border: 0; }
.lead-onair { margin: 0; padding: .6rem .8rem; border-radius: 12px; background: color-mix(in srgb, #d93025 12%, var(--white)); color: var(--ink); font-weight: 700; }
.lead-fb { background: #1877F2; color: #fff; border: 0; }
.lead-share { display: grid; gap: .3rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.lead-url { padding: .5rem .7rem; border-radius: 10px; background: var(--surface-2); font-family: ui-monospace, monospace; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.sp-lab { margin: 0 0 .3rem; font-weight: 800; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink, #7A5F0C); }
:root[data-theme="dark"] .sp-lab { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sp-lab { color: var(--gold); } }
/* Sanctuary: one "Lead the Service" card, and the live video from the website */
.sanct-stats { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .1rem; }
.sanct-stat { padding: .25rem .6rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-xs); font-weight: 700; }
.sanct-stat.is-on { background: color-mix(in srgb, #d93025 14%, var(--white)); border-color: color-mix(in srgb, #d93025 40%, transparent); }
.sanct-web { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.sanct-web video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.sanct-vmsg { position: absolute; inset: auto 0 0 0; margin: 0; padding: .6rem .8rem; background: rgba(0,0,0,.6); color: #fff; font-weight: 600; text-align: center; }
.sanct-sound { position: absolute; top: .6rem; right: .6rem; z-index: 2; padding: .45rem .8rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: #111; font-weight: 800; cursor: pointer; }
.sanct-vbtns { margin-top: .5rem; }
.lead-hero { padding-top: calc(var(--header-h) + 1.2rem) !important; padding-bottom: 1rem !important; min-height: 0 !important; }
.lead-hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.lead-hero p { display: none; }
.lead-hero + .section { padding-top: .8rem; }
/* the small "● LIVE" button after the live banner was closed: tap it to get back in */
.live-pill { position: fixed; left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 95; }
.live-pill-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .9rem; border: 0; border-radius: 999px; background: #d93025; color: #fff; font: 800 .85rem/1 var(--font-body); letter-spacing: .06em; box-shadow: 0 10px 24px -10px rgba(217,48,37,.7); cursor: pointer; }
.live-pill-btn .live-bar-dot { background: #fff; }
.live-pill-menu { position: absolute; left: 0; bottom: calc(100% + 8px); min-width: 15rem; padding: .5rem; border-radius: 14px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(15,44,89,.55); display: grid; gap: .25rem; }
.live-pill-menu p { margin: .1rem .4rem .2rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.live-pill-menu a { display: grid; gap: .1rem; padding: .55rem .7rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.live-pill-menu a:hover, .live-pill-menu a:focus-visible { background: var(--surface-2); }
.live-pill-menu small { font-weight: 500; color: var(--muted); }
html.is-peek .live-pill { display: none !important; }
/* Round 37: Prayer Room – phones and/or TV, and "Watch live" on a phone */
.pm-showon { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .4rem 0; }
.pm-showon-lab { font-weight: 700; font-size: var(--fs-sm); margin-right: .2rem; }
.pm-watch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; border: 2px solid color-mix(in srgb, var(--gold) 60%, transparent); }
.pm-watch p { margin: .2rem 0 0; color: var(--muted); font-size: var(--fs-sm); }
.pm-watchview { position: fixed; inset: 0; z-index: 9500; overflow-y: auto; overscroll-behavior: contain; background: #0b1f40; }
.pm-watchview .pm-screen { min-height: 100%; padding: calc(.9rem + env(safe-area-inset-top, 0px)) 1rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); }
.pm-watchview .pm-screen .pm-full { flex: none; }
.pm-watchview .pm-top-body { font-size: clamp(1.6rem, 7vw, 3rem); }
.pm-watchview .pmx { position: absolute; }
.pm-watchview .pmx-stage { padding: 1rem; }
html.pm-watching { overflow: hidden; }
html.pm-watching .live-bar, html.pm-watching .live-pill, html.pm-watching .chat-dock, html.pm-watching .newmsg-fab { display: none !important; }
.pmx-x { position: absolute; top: calc(.7rem + env(safe-area-inset-top, 0px)); right: .7rem; z-index: 3; background: rgba(0,0,0,.35) !important; }
.pm-top-eye { margin: 0 0 .4rem; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
/* Round 37: Preferences open from the name menu (no floating color button) */
.theme-fab-btn { display: none !important; }
.theme-fab { left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; z-index: 2600; }
.theme-fab.is-front { pointer-events: auto; background: rgba(5, 14, 30, .5); }
.theme-fab .theme-panel { position: fixed; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); transform-origin: center; padding-top: 1.4rem; }
.theme-x { position: absolute; top: .5rem; right: .5rem; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.account-prefs { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; text-align: left; }
.account-prefs small { grid-column: 2; color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.account-space strong { display: inline-flex; align-items: center; gap: .35rem; }
.theme-fab .theme-panel { animation: none; }
.d-notes-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.d-notes-cta h2 { margin: 0; font-size: var(--fs-lg); }
.d-notes-cta p { margin: .25rem 0 0; color: var(--muted); max-width: 38rem; }
.d-home-notes { margin-bottom: 1rem; }
.fw-who-link { color: inherit; text-decoration: none; } .fw-who-link:hover strong, .fw-who-link:focus-visible strong { text-decoration: underline; }
/* Round 37: My Space (space.html) */
.sp-wrap { display: grid; gap: 1rem; max-width: 820px; margin: 0 auto; }
.sp-head { position: relative; padding: 0 0 1.1rem; overflow: hidden; gap: .7rem; }
.sp-cover { height: 110px; background: radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--gold) 55%, transparent), transparent 55%), linear-gradient(120deg, var(--navy), color-mix(in srgb, var(--navy) 60%, #2a6fb5)); }
.sp-id { position: relative; display: flex; align-items: flex-end; gap: .9rem; margin: -48px 1.1rem 0; flex-wrap: wrap; }
.sp-face { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--navy) 80%, #2a6fb5); color: #fff; font-weight: 800; }
.sp-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-face.is-xl, .pic-face.is-xl { width: 104px; height: 104px; font-size: 2.6rem; border: 4px solid var(--white); box-shadow: 0 10px 24px -12px rgba(15,44,89,.55); }
.sp-pic-btn { position: absolute; left: 76px; top: 70px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--white); background: var(--gold); color: #1b1b1b; cursor: pointer; font-size: 1rem; display: grid; place-items: center; }
.sp-name { min-width: 0; padding-bottom: .2rem; }
.sp-name h1 { margin: 0; font-size: clamp(1.3rem, 4vw, 1.8rem); line-height: 1.15; overflow-wrap: anywhere; }
.sp-name p { margin: .2rem 0 0; color: var(--muted); font-size: var(--fs-sm); }
.sp-bio { margin: 0 1.1rem; font-size: 1.02rem; line-height: 1.55; color: var(--ink); white-space: pre-wrap; }
.sp-bio.is-empty { color: var(--muted); font-style: italic; }
.sp-verse { margin: 0 1.1rem; padding: .8rem .95rem; border-radius: 12px; border-left: 4px solid var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--white)); }
.sp-vref { margin: 0; font-weight: 800; }
.sp-vtext { margin: .3rem 0 0; font-family: var(--font-display, Georgia, serif); line-height: 1.5; color: var(--ink); }
.sp-vtext:empty { display: none; }
.sp-acts { margin: 0 1.1rem; gap: .45rem; }
.sp-edit { margin: 0 1.1rem; display: grid; gap: .6rem; }
.sp-edit textarea, .sp-edit input { width: 100%; }
.sp-rel { display: inline-flex; align-items: center; min-height: 36px; padding: .2rem .75rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.sp-rel.is-in { background: color-mix(in srgb, #2e7d32 14%, var(--white)); border-color: color-mix(in srgb, #2e7d32 35%, transparent); }
.sp-tabs { display: flex; gap: .3rem; padding: .3rem; border-radius: 14px; background: var(--white); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tab { position: relative; flex: 1 0 auto; min-height: 44px; padding: .35rem .9rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 700 var(--fs-sm)/1.1 var(--font-body); cursor: pointer; }
.sp-tab.is-on { background: var(--navy); color: #fff; }
.sp-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #d93025; }
.sp-body { display: grid; gap: .8rem; }
.sp-empty { margin: 0; padding: 1rem; border-radius: 12px; background: var(--surface-2); color: var(--muted); text-align: center; }
.sp-posts { display: grid; gap: .7rem; }
.sp-post { gap: .4rem; padding: 1rem 1.1rem; }
.sp-post h3 { margin: 0; font-size: 1.05rem; }
.sp-post p { margin: 0; line-height: 1.55; color: var(--ink); }
.sp-post blockquote { margin: 0; padding: .5rem .8rem; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); border-radius: 0 8px 8px 0; font-family: var(--font-display, Georgia, serif); }
.sp-post-when { font-size: var(--fs-xs) !important; color: var(--muted) !important; font-weight: 600; }
.sp-post-pic { padding: 0; border: 0; background: none; cursor: zoom-in; }
.sp-post-pic img { display: block; max-width: 100%; max-height: 420px; border-radius: 10px; }
.sp-more { margin: 0; text-align: right; font-weight: 700; }
.sp-add { gap: .5rem; padding: 1rem; }
.sp-add-row { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.sp-add-row input { min-height: 42px; padding: .4rem .75rem; border-radius: 10px; border: 1px solid var(--input-line); background: var(--white); color: var(--ink); font: inherit; }
.sp-albums { display: flex; flex-wrap: wrap; gap: .35rem; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: .5rem; }
.sp-photo { margin: 0; display: grid; gap: .25rem; }
.sp-photo > button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 1; }
.sp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: .3rem; font-size: var(--fs-xs); color: var(--ink); }
.sp-people { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .45rem; }
.sp-person { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .55rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.sp-person-main { display: flex; align-items: center; gap: .6rem; min-width: 0; flex: 1 1 12rem; color: var(--ink); text-decoration: none; }
.sp-person-main span { display: grid; min-width: 0; }
.sp-person-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-person-main small { color: var(--muted); font-size: var(--fs-xs); }
.sp-person-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.sp-find-f { display: flex; gap: .45rem; margin-top: .3rem; }
.sp-find-f input { flex: 1; min-width: 0; min-height: 44px; padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--input-line); background: var(--white); color: var(--ink); font: inherit; }
.sp-find h2, .sp-req h2, .sp-body .card h2 { margin: 0; font-size: var(--fs-lg); }
.sp-signin { text-align: center; }
.sp-wrap { grid-template-columns: minmax(0, 1fr); }
.sp-wrap > * { min-width: 0; }
.sp-name h1 { text-transform: none; font-weight: 800; letter-spacing: 0; font-family: var(--font-body); }
.sp-find h2, .sp-req h2, .sp-body .card h2 { text-transform: none; font-weight: 800; letter-spacing: 0; font-family: var(--font-body); }
/* Round 38: name menu rows – every row lines up the same way (icon, then title over a short line) */
.account-menu a.account-space, .account-menu a.account-sanct, .account-menu .account-prefs { display: flex; align-items: center; gap: .6rem; text-align: left; }
.account-menu a.account-space > span, .account-menu a.account-sanct > span, .account-menu .account-prefs > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.account-menu a.account-space strong, .account-menu a.account-sanct strong, .account-menu .account-prefs strong { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.account-menu a.account-space small, .account-menu a.account-sanct small, .account-menu .account-prefs small { grid-column: auto; font-size: .78rem; font-weight: 400; color: var(--muted); }
.account-menu .account-prefs { display: flex !important; }
.account-menu a svg, .account-menu button svg { flex: none; }
.sp-real { margin: .1rem 0 0 !important; font-size: var(--fs-xs) !important; color: var(--muted); }
/* Round 38: the floating Bible button (bottom left) */
.bible-fab { position: fixed; left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: .45rem .95rem .45rem .75rem; border: 2px solid color-mix(in srgb, var(--gold) 70%, transparent); border-radius: 999px; background: var(--navy); color: #fff; font: 800 .9rem/1 var(--font-body); box-shadow: 0 12px 26px -12px rgba(10,31,64,.7); cursor: pointer; transition: transform .2s var(--ease); }
.bible-fab svg { width: 22px; height: 22px; color: var(--gold); }
.bible-fab:hover { transform: translateY(-2px); }
.bible-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 600px) { .bible-fab span { display: none; } .bible-fab { padding: .5rem; width: 50px; height: 50px; justify-content: center; } }
html.bwin-open .bible-fab { background: var(--gold); color: var(--navy-deep, #0A1F40); }
html.bwin-open .bible-fab svg { color: var(--navy-deep, #0A1F40); }
html.has-bible-fab .live-pill { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
html.is-page-editing .bible-fab, html.pm-watching .bible-fab, html.rn-max-open .bible-fab, html.pm-screen-mode .bible-fab { display: none !important; }
@media print { .bible-fab { display: none !important; } }
/* the "Go to a verse" box in the Bible window */
.bwin-go { display: flex; gap: .4rem; padding: .5rem .6rem 0; }
.bwin-go input { flex: 1; min-width: 0; min-height: 40px; padding: .35rem .75rem; border-radius: 999px; border: 1.5px solid var(--input-line); background: var(--white); color: var(--ink); font: inherit; }
/* suggestions while typing a Bible verse */
.bref-sug { position: fixed; z-index: 7000; max-height: 260px; overflow-y: auto; padding: .35rem; border-radius: 14px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(10,31,64,.5); }
.bref-sug[hidden] { display: none; }
.bref-sug-h { margin: .15rem .5rem .25rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bref-opt { display: block; width: 100%; min-height: 40px; padding: .45rem .7rem; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 600 .95rem/1.2 var(--font-body); text-align: left; cursor: pointer; }
.bref-opt:hover, .bref-opt.is-on { background: color-mix(in srgb, var(--gold) 22%, var(--white)); }
.bref-opt span { color: var(--muted); }
/* Round 38: words on slides are always clear (white with a soft shadow, unless a color is chosen) */
.sl .sl-say { color: #fff; }
.sl .sl-say, .sl .sl-h1, .sl .sl-h2, .sl .sl-h3, .sl .sl-vtext, .sl .sl-quote, .sl .sl-bullets li { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
/* "Start Sunday Live": dark words on the gold button (they were pale pink) */
.btn.pr-live:not(.is-live) { color: #0A1F40; letter-spacing: .04em; }
.pr-msg.is-warn { padding: .5rem .8rem; border-radius: 10px; background: color-mix(in srgb, #d93025 12%, var(--white)); color: var(--ink); font-weight: 700; }
.lead-tab.is-live:not(.is-on) { box-shadow: inset 0 0 0 2px #d93025; color: #b42318; }
/* the Prayer Room inside the Sanctuary */
.sanct-pray { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .8rem; padding: 1rem 1.1rem; }
.sanct-pray > div { display: grid; gap: .15rem; min-width: 0; flex: 1 1 14rem; }
.sanct-pray .pr-live { color: var(--muted); }
.sanct-pray strong { font-size: 1.05rem; color: var(--ink); }
.sanct-pray span { color: var(--muted); font-size: var(--fs-sm); }
.sanct-pray.is-open { border: 2px solid #d93025; background: color-mix(in srgb, #d93025 7%, var(--white)); }
.sanct-pray.is-open .pr-live { color: #d93025; }
/* something is live: a small red dot on its menu links */
a.has-live { position: relative; }
a.has-live::after { content: ''; position: absolute; top: .45rem; right: .45rem; width: 9px; height: 9px; border-radius: 50%; background: #d93025; box-shadow: 0 0 0 2px var(--white); animation: pmPulse 1.6s ease-out infinite; }
/* the Prayer Wall: "The Prayer Room is open for prayer" */
.pw-room-open { display: flex; align-items: center; gap: .8rem; margin: 0 auto 1.2rem; max-width: 900px; padding: .9rem 1.1rem; border-radius: 16px; background: #b42318; color: #fff; text-decoration: none; box-shadow: 0 12px 28px -14px rgba(180,35,24,.8); }
.pw-room-open .live-bar-dot { background: #fff; }
.pw-room-open > span:nth-child(2) { display: grid; gap: .1rem; flex: 1; min-width: 0; }
.pw-room-open small { opacity: .9; }
.pw-room-open b { flex: none; padding: .45rem .9rem; border-radius: 999px; background: #fff; color: #b42318; }
.pw-room-open:hover b { background: #ffe9e6; }
.pw-room-open { width: min(900px, calc(100% - 32px)); box-sizing: border-box; }
html.is-embed .page-hero { display: none !important; }
.chat-pop-links { display: flex; flex-wrap: wrap; gap: .2rem .7rem; }
.chat-pop-tent { font-weight: 700; }
/* Round 38: announcement slides on the TV (weekly schedule, news, urgent, verse) */
.ws-ann { position: absolute; inset: 0; display: grid; place-items: center; padding: 5% 7%; color: var(--lk-color, #fff); text-align: center; z-index: 1; }
.ws.lk-color .ws-ann { color: var(--lk-color); }
.ws-ann-card { width: 100%; max-width: 30em; display: grid; gap: .45em; animation: wsIn .45s ease-out; }
.ws-ann-kick { margin: 0; font-size: .55em; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #E2BE57; }
.ws-ann-kick.is-urgent { justify-self: center; padding: .25em .8em; border-radius: 999px; background: #d93025; color: #fff; letter-spacing: .12em; }
.ws-ann h2 { margin: 0; font-size: 1.35em; line-height: 1.15; font-weight: 800; color: inherit; }
.ws-ann-church { font-size: 1.25em !important; }
.ws-ann-sub { margin: .2em 0 0; font-size: .95em; font-weight: 800; letter-spacing: .14em; color: #E2BE57; }
.ws-ann-sub::before, .ws-ann-sub::after { content: ''; display: block; width: 3.5em; height: 2px; margin: .45em auto; background: currentColor; opacity: .5; }
.ws-ann-body { margin: .3em 0 0; font-size: .8em; line-height: 1.4; }
.ws-ann-body span { display: block; }
.ws-ann-day { text-align: left; }
.ws-ann-day + .ws-ann-day { margin-top: .4em; }
.ws-ann-day h3 { margin: 0 0 .25em; font-size: .75em; font-weight: 800; letter-spacing: .14em; color: #E2BE57; }
.ws-ann-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .18em; }
.ws-ann-day li { display: flex; align-items: baseline; gap: .4em; font-size: .62em; font-weight: 600; }
.ws-ann-day li span { flex: none; }
.ws-ann-day li i { flex: 1; min-width: 1em; border-bottom: .12em dotted rgba(255,255,255,.55); transform: translateY(-.25em); }
.ws-ann-day li b { flex: none; font-weight: 800; }
.ws-ann-verse { margin: 0; font-size: .95em; line-height: 1.35; font-style: italic; font-family: Georgia, 'Times New Roman', serif; }
.ws-ann-verse cite { display: block; margin-top: .6em; font-style: normal; font-weight: 800; letter-spacing: .14em; font-size: .6em; color: #E2BE57; font-family: var(--font-body); }
.ws-ann.is-urgent .ws-ann-card { padding: .7em .9em; border-radius: .4em; border: .08em solid rgba(217,48,37,.85); background: rgba(10,10,20,.35); }
.ws-ann-dots { position: absolute; left: 0; right: 0; bottom: 3.5%; display: flex; justify-content: center; gap: .5%; z-index: 2; }
.ws-ann-dots i { width: 1%; min-width: 6px; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.35); }
.ws-ann-dots i.is-on { background: #E2BE57; }
.w-autorow { display: grid; gap: .25rem; margin: .5rem 0; }
.w-autorow small { color: var(--muted); font-size: var(--fs-xs); }
.w-urgent summary { color: #b42318; font-weight: 800; }

/* Round 39: the Bible window can be dragged anywhere by its title bar */
.bwin-head { cursor: grab; }
.bwin.is-dragging { animation: none; box-shadow: 0 30px 80px rgba(10,31,64,.45), 0 0 0 2px var(--gold); user-select: none; }
.bwin.is-dragging .bwin-head { cursor: grabbing; }
.bwin-head::after { content: '⠿'; order: -1; font-size: 1rem; opacity: .55; letter-spacing: -.1em; }
@media (max-width: 699px) { .bwin-head::after { display: none; } }
/* Round 39: name menu groups open and close (Ministry tools, Personal, Church family, Pastor tools…) */
.account-menu .account-group-toggle { display: flex !important; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; margin: 0; padding: .55rem .6rem !important; border: 0; border-radius: 10px; background: transparent; color: var(--gold-ink); font: 800 .72rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; text-align: left; cursor: pointer; }
.account-menu .account-group-toggle:hover, .account-menu .account-group-toggle:focus-visible { background: var(--surface-2); color: var(--heading); outline: none; }
.agt-chev { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.account-group.is-collapsed .agt-chev { transform: rotate(-90deg); }
.account-group-body { display: flex; flex-direction: column; }
.account-group-body[hidden] { display: none !important; }
.account-group.is-collapsed { padding-bottom: 0; }
/* something new inside a closed group (unread messages, Fellowship requests): a red dot on its heading */
.account-group.is-collapsed:has(.acct-badge:not([hidden])) .agt-text::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: .45rem; border-radius: 50%; background: #d93025; vertical-align: middle; }
:root[data-theme="dark"] .account-menu .account-group-toggle { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .account-menu .account-group-toggle { color: var(--gold); } }
/* Round 40: the My Tent banner – a verse in soft letters over a background, with a gentle animation */
.sp-banner { position: relative; height: clamp(170px, 30vw, 230px); overflow: hidden; background-size: cover; background-position: center; cursor: pointer; }
.sp-banner::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(5,14,30,.35)); pointer-events: none; }
.sp-bn-text { position: absolute; z-index: 1; inset: 0; display: grid; align-content: center; justify-items: center; gap: .35rem; padding: .9rem 1.2rem 3.4rem; text-align: center; color: #fff; pointer-events: none; }
.sp-bn-verse { margin: 0; max-width: 34rem; font-family: var(--bn-font, 'Dancing Script', cursive); font-size: clamp(1.15rem, 3.6vw, 1.75rem); line-height: 1.3; color: rgba(255,255,255,.86); text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.sp-bn-ref { margin: 0; font: 800 .72rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,236,170,.85); }
.sp-bn-btn { position: absolute; z-index: 2; top: .6rem; right: .6rem; min-height: 36px; padding: .3rem .8rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(5,14,30,.35); color: #fff; font: 700 .8rem/1 var(--font-body); cursor: pointer; backdrop-filter: blur(4px); }
.sp-bn-btn:hover, .sp-bn-btn:focus-visible { background: rgba(5,14,30,.6); outline: none; }
/* animations (they play again when you tap the banner) */
.sp-banner.is-playing.anim-phrase .sp-bn-verse span { display: inline-block; animation: slPhrase .55s ease both; animation-delay: calc(var(--i) * 110ms); }
.sp-banner.is-playing.anim-phrase .sp-bn-ref { animation: bnFade .8s ease both; animation-delay: calc(var(--i) * 110ms + .3s); }
.sp-banner.is-playing.anim-rise .sp-bn-text > * { animation: bnRise .9s cubic-bezier(.2,.7,.2,1) both; }
.sp-banner.is-playing.anim-rise .sp-bn-ref { animation-delay: .35s; }
.sp-banner.is-playing.anim-fade .sp-bn-text > * { animation: bnFade 1.4s ease both; }
.sp-banner.is-playing.anim-glow .sp-bn-verse { animation: bnFade 1.2s ease both, bnGlow 3.5s ease-in-out 1.2s infinite; }
.sp-banner.is-playing.anim-glow .sp-bn-ref { animation: bnFade 1.2s ease .4s both; }
.sp-banner.anim-float .sp-bn-text { animation: bnFloat 6s ease-in-out infinite alternate; }
.sp-banner.is-playing.anim-float .sp-bn-text > * { animation: bnFade 1.2s ease both; }
@keyframes bnFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bnRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bnGlow { 0%, 100% { text-shadow: 0 2px 16px rgba(0,0,0,.35); } 50% { text-shadow: 0 0 18px rgba(255,236,170,.75), 0 2px 16px rgba(0,0,0,.35); } }
@keyframes bnFloat { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .sp-banner *, .sp-banner .sp-bn-text { animation: none !important; } }
/* the banner editor */
.sp-bn-edit { display: grid; gap: .5rem; margin: .4rem 1.1rem .2rem; padding: .9rem 1rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.sp-bn-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.sp-bn-sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: .4rem; }
.sp-bn-sw { aspect-ratio: 16 / 10; border-radius: 8px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.sp-bn-sw.is-on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.sp-bn-add { display: grid; place-items: center; background: var(--white); color: var(--heading); font-size: 1.3rem; border: 1px dashed var(--input-line); }
.sp-bn-edit .field input { width: 100%; }
.sp-bn-text { padding-top: 2.8rem; }
.sp-bn-verse.is-long { font-size: clamp(1rem, 3vw, 1.4rem); }
.sp-bn-verse.is-xlong { font-size: clamp(.9rem, 2.6vw, 1.2rem); line-height: 1.25; }
.sp-head .sp-bn-edit { margin-top: .2rem; }

/* ===================== Round 41 ===================== */
/* Faces instead of letters */
.pic-face.is-blank, [data-face].is-blank { overflow: hidden; background: none; padding: 0; }
.pic-blank { width: 100%; height: 100%; display: block; border-radius: 50%; }
.pic-face.feed-avatar, .pic-face.tp-face { width: 40px; height: 40px; }
/* Kind labels on posts */
.kind-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px; font: 800 .72rem/1.15 var(--font-body); letter-spacing: .01em; white-space: nowrap; background: #eef1f7; color: #1f2a44; border: 1px solid rgba(0,0,0,.06); }
.kb-praise { background: #FFF1C2; color: #6B4A00; } .kb-answered { background: #D7F5E3; color: #145A32; } .kb-testimony { background: #FFE0CC; color: #7A3410; }
.kb-sermon { background: #DCEBFF; color: #123E74; } .kb-journal { background: #EADFFF; color: #43207A; } .kb-verse { background: #FFDCE8; color: #7A1840; }
.kb-prayer { background: #DDEBFF; color: #1D4E89; } .kb-text { background: #ECEFF4; color: #2c3445; }
.fw-kindrow { display: flex; margin: 0 0 .45rem; }
.fw-note header { flex-wrap: wrap; }
.fw-note .fw-who { min-width: 0; flex: 1 1 8rem; }

/* My Tent, like Facebook */
.sp-wrap { max-width: 1100px; gap: .9rem; }
.tent-top { padding: 0; overflow: hidden; gap: 0; }
.tent-top .sp-banner { height: clamp(180px, 32vw, 300px); border-radius: 0; }
.sp-bn-text { padding: 1rem 1.4rem 4.2rem; }
.sp-bn-verse { color: var(--bn-color, #fff); opacity: .95; text-shadow: var(--bn-shadow, 0 2px 16px rgba(0,0,0,.4)); font-size: calc(clamp(1.15rem, 3.6vw, 1.75rem) * var(--bn-size, 1)); }
.sp-bn-verse.is-long { font-size: calc(clamp(1rem, 3vw, 1.4rem) * var(--bn-size, 1)); }
.sp-bn-verse.is-xlong { font-size: calc(clamp(.9rem, 2.6vw, 1.2rem) * var(--bn-size, 1)); }
.sp-bn-ref { color: var(--bn-color, rgba(255,236,170,.9)); opacity: .85; font-size: calc(.72rem * var(--bn-size, 1)); text-shadow: var(--bn-shadow); }
.tent-id { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: .4rem 1rem; padding: 0 1.3rem 1rem; }
.tent-pic { position: relative; margin-top: -64px; z-index: 2; }
.tent-pic .sp-face.is-xl, .tent-pic .pic-face.is-xl { width: 136px; height: 136px; font-size: 3rem; border: 5px solid var(--white); box-shadow: 0 10px 26px -12px rgba(15,44,89,.6); }
.tent-pic .sp-pic-btn { left: auto; right: 4px; top: auto; bottom: 6px; }
.tent-name { min-width: 0; padding-top: .7rem; }
.tent-name h1 { margin: 0; font: 800 clamp(1.4rem, 3.4vw, 2rem)/1.15 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--heading); overflow-wrap: anywhere; }
.tent-name .sp-real { margin: .1rem 0 0; color: var(--muted); font-size: var(--fs-sm); }
.tent-meta { margin: .25rem 0 0; color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }
.tent-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; align-items: center; }
.tent-tabs { display: flex; gap: .2rem; padding: .3rem .8rem; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tent-tabs::-webkit-scrollbar { display: none; }
.tent-tab { flex: none; min-height: 46px; padding: .4rem 1rem; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: 800 var(--fs-sm)/1 var(--font-body); cursor: pointer; border-radius: 8px 8px 0 0; }
.tent-tab:hover { background: var(--surface-2); color: var(--ink); }
.tent-tab.is-on { color: var(--navy); border-bottom-color: var(--navy); }
:root[data-theme="dark"] .tent-tab.is-on { color: var(--gold); border-bottom-color: var(--gold); }
.tent-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #d93025; color: #fff; font-size: .7rem; }
.tent-grid { display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.tent-side, .tent-main { display: grid; gap: .9rem; min-width: 0; }
@media (min-width: 900px) {
  .tent-grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  .tent-side { position: sticky; top: 90px; }
  .tent-grid.is-about { grid-template-columns: minmax(0, 1fr); }
  .tent-grid.is-about .tent-side { display: none; }
}
@media (max-width: 899px) {
  .tent-side .tent-prev { display: none; }
  .tent-grid:not(.is-about) .tent-side { order: 2; }
  .tent-grid.is-about .tent-side { display: none; }
  .tent-id { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-bottom: .8rem; }
  .tent-pic { margin-top: -78px; }
  .tent-name { padding-top: .2rem; }
  .tent-acts { justify-content: center; }
}
.tent-card { padding: 1rem 1.1rem; gap: .6rem; }
.tent-card h2 { margin: 0; font: 800 var(--fs-lg)/1.2 var(--font-body); text-transform: none; letter-spacing: 0; }
.tent-card-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.tent-intro .sp-bio, .tent-intro .sp-verse { margin: 0; }
.tent-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; color: var(--ink); font-weight: 600; font-size: var(--fs-sm); }
.tent-mute { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.tent-more-acts { display: flex; flex-wrap: wrap; gap: .8rem; margin: .2rem 0 0; }
.tent-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 10px; overflow: hidden; }
.tent-pgrid button { padding: 0; border: 0; aspect-ratio: 1; background: var(--surface-2); cursor: zoom-in; }
.tent-pgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tent-fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem .5rem; }
.tent-fgrid a { display: grid; gap: .25rem; color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 700; line-height: 1.2; }
.tent-fgrid a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tent-fgrid .is-tile { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; font-size: 1.6rem; }
.tent-fgrid .is-tile img, .tent-fgrid .is-tile .pic-blank { border-radius: 10px; }
/* Feed */
.tent-compose { padding: .8rem 1rem; gap: .6rem; }
.tent-compose-row { display: flex; align-items: center; gap: .6rem; }
.tent-compose-btn { flex: 1; min-height: 46px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 600 1rem/1.2 var(--font-body); text-align: left; cursor: pointer; }
.tent-compose-btn:hover { background: color-mix(in srgb, var(--navy) 8%, var(--surface-2)); }
.tent-compose-kinds { display: flex; flex-wrap: wrap; gap: .3rem; border-top: 1px solid var(--line); padding-top: .55rem; }
.tent-compose-kinds button { flex: 1 1 auto; min-height: 40px; padding: .3rem .6rem; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 700 var(--fs-sm)/1.1 var(--font-body); cursor: pointer; }
.tent-compose-kinds button:hover { background: var(--surface-2); }
.tent-scope { display: flex; flex-wrap: wrap; gap: .4rem; }
.tent-scope .chip-btn, .tent-kinds .chip-btn { min-height: 38px; padding: .35rem .9rem; border-color: var(--line); background: var(--white); color: var(--ink); }
.tent-scope .chip-btn.is-on, .tent-kinds .chip-btn.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tent-feed { display: grid; gap: .8rem; }
.tp { padding: .9rem 1.05rem; gap: .55rem; }
.tp-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tp-who { display: grid; min-width: 0; flex: 1 1 8rem; line-height: 1.25; }
.tp-who strong { color: var(--ink); }
.tp-who span { color: var(--muted); font-size: var(--fs-xs); }
.tp-who-link { color: inherit; text-decoration: none; } .tp-who-link:hover strong { text-decoration: underline; }
.tp-title { margin: 0; font-size: 1.08rem; }
.tp .feed-body { line-height: 1.6; color: var(--ink); white-space: pre-wrap; }
.tp-pic { padding: 0; border: 0; background: none; cursor: zoom-in; margin: 0 -1.05rem; }
.tp-pic img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.tp-own { display: inline-flex; gap: .2rem; margin-left: auto; }
.tp-ic { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.06); color: inherit; cursor: pointer; font-size: .95rem; }
.tp-ic:hover { background: rgba(0,0,0,.12); }
/* My Posts: sticky notes that swipe by themselves */
.tent-kinds { display: flex; flex-wrap: wrap; gap: .35rem; }
.tent-board .t-carousel.is-gallery .t-track { padding: .5rem .2rem 1rem; }
.tsn { display: flex; flex-direction: column; gap: .5rem; min-height: 250px; padding: 1rem 1rem .8rem; transform: rotate(-.6deg); }
.tsn:nth-child(even) { transform: rotate(.7deg); }
.tsn-top { display: flex; align-items: center; gap: .4rem; }
.tsn-top .kind-badge { background: rgba(255,255,255,.75); }
.tsn h3 { margin: 0; font: 800 1.08rem/1.25 var(--font-body); color: inherit; text-transform: none; letter-spacing: 0; }
.tsn blockquote { margin: 0; padding: .4rem .7rem; border-left: 3px solid rgba(0,0,0,.25); font-family: var(--font-display, Georgia, serif); font-style: italic; }
.tsn blockquote cite { display: block; margin-top: .2rem; font: 800 .75rem/1 var(--font-body); font-style: normal; }
.tsn-body { margin: 0; line-height: 1.5; white-space: pre-wrap; }
.tsn-ref { margin: 0; font-weight: 700; }
.tsn-pic { padding: 0; border: 0; background: none; cursor: zoom-in; }
.tsn-pic img { display: block; width: 100%; max-height: 150px; object-fit: cover; border-radius: 6px; }
.tsn-when { margin: auto 0 0; font-size: .75rem; opacity: .7; font-weight: 700; }
.tent-hint { text-align: center; }
/* Banner editor */
.sp-bn-edit { margin: 0 1.2rem 1rem; grid-template-columns: minmax(0, 1fr); gap: .8rem 1.4rem; }
@media (min-width: 760px) { .sp-bn-edit { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-bn-wide { grid-column: 1 / -1; } }
.sp-bn-col { display: grid; gap: .45rem; align-content: start; }
.sp-bn-col .sp-lab small { font-weight: 600; color: var(--muted); }
.sp-bn-colors { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.sp-bn-col-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.sp-bn-col-dot.is-on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold); }
.sp-bn-custom { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: var(--fs-xs); cursor: pointer; }
.sp-bn-custom input { width: 38px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
@media (max-width: 899px) {
  .tent-top .sp-banner { height: 230px; }
  .tent-top .sp-bn-text { align-content: start; padding: 3.1rem 1rem 4.6rem; }
  .tent-pic { margin-top: -62px; }
  .tent-pic .sp-face.is-xl, .tent-pic .pic-face.is-xl { width: 116px; height: 116px; }
  .tent-compose-kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tent-compose-kinds button { flex: none; white-space: nowrap; background: var(--surface-2); border-radius: 999px; }
}
.tent-main > *, .tent-side > *, .tent-compose > *, .tp > * { min-width: 0; }
.tent-compose, .tp { max-width: 100%; }
@media (min-width: 1000px) { .tent-board .t-carousel.is-gallery .t-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
.tsn-top { flex-wrap: wrap; }
.tsn .tp-ic { background: rgba(255,255,255,.55); }
.tent-page { padding-top: 1rem; }
/* "● LIVE NOW" hanging under the church name in the header */
.header-inner { position: relative; }
.site-header .header-inner > .brand-live { position: absolute; top: 100%; left: 0; z-index: 3; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem .35rem; border-radius: 0 0 12px 12px; background: #d93025; color: #fff; text-decoration: none; font: 800 .78rem/1.1 var(--font-body); box-shadow: 0 8px 18px -8px rgba(217,48,37,.7); white-space: nowrap; max-width: calc(100vw - 2rem); }
.brand-live .live-bar-dot { width: 9px; height: 9px; background: #fff; }
.brand-live b { padding: .1rem .4rem; border-radius: 6px; background: rgba(255,255,255,.22); font-size: .68rem; letter-spacing: .08em; }
.brand-live-t { overflow: hidden; text-overflow: ellipsis; }
.site-header .brand-live:hover, .site-header .brand-live:focus-visible { background: #b8261c; outline: none; }
/* The Prayer Room lights up while it is open */
html.is-prayer-live :is(.site-nav, .account-menu, .lead-tabs) a[href^="meeting.html"] { position: relative; color: #fff !important; background: linear-gradient(90deg, #b8261c, #e0533f) !important; border-radius: 10px; box-shadow: 0 0 0 0 rgba(224,83,63,.6); animation: prayGlow 2.2s ease-in-out infinite; }
@keyframes prayGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,83,63,.55); } 50% { box-shadow: 0 0 0 7px rgba(224,83,63,0); } }
@media (prefers-reduced-motion: reduce) { html.is-prayer-live :is(.site-nav, .account-menu, .lead-tabs) a[href^="meeting.html"] { animation: none; } }
/* The notification bell */
.bell { position: relative; flex: none; }
.bell[hidden] { display: none; }
.bell-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: transparent; color: var(--on-dark); cursor: pointer; }
.bell-btn:hover, .bell-btn:focus-visible { border-color: var(--gold); background: rgba(255,255,255,.1); outline: none; }
.bell-btn svg { width: 20px; height: 20px; }
.bell.has-live .bell-btn svg { animation: bellRing 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes bellRing { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 82% { transform: rotate(-12deg); } 89% { transform: rotate(8deg); } }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #d93025; color: #fff; font: 800 .7rem/20px var(--font-body); text-align: center; box-shadow: 0 0 0 2px var(--navy); }
.bell-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 120; width: min(400px, calc(100vw - 1.5rem)); max-height: min(70vh, 560px); display: flex; flex-direction: column; border-radius: 16px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 50px -18px rgba(10,20,40,.5); overflow: hidden; }
.bell-panel[hidden] { display: none; }
.bell-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem .6rem; border-bottom: 1px solid var(--line); }
.bell-h strong { font-size: 1.15rem; color: var(--heading); }
.bell-list { overflow-y: auto; padding: .3rem .4rem .6rem; }
.bell-sec { margin: .5rem .6rem .2rem; font: 800 .72rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bell-item { display: flex; align-items: flex-start; gap: .65rem; padding: .6rem .6rem; border-radius: 12px; color: var(--ink); text-decoration: none; }
.bell-item:hover, .bell-item:focus-visible { background: var(--surface-2); outline: none; }
.bell-item.is-new { background: color-mix(in srgb, var(--navy) 7%, var(--white)); }
.bell-item.is-live { background: color-mix(in srgb, #d93025 9%, var(--white)); }
.bell-face, .bell-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; }
.bell-ic { display: grid; place-items: center; background: var(--surface-2); font-size: 1.35rem; }
.bell-text { display: grid; gap: .15rem; min-width: 0; flex: 1; line-height: 1.3; }
.bell-text strong { font-weight: 700; font-size: .95rem; }
.bell-text small { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bell-text time { color: var(--navy); font-weight: 700; font-size: .78rem; }
:root[data-theme="dark"] .bell-text time { color: var(--gold); }
.bell-dot { flex: none; width: 11px; height: 11px; margin-top: .4rem; border-radius: 50%; background: #1877f2; }
.bell-live { flex: none; padding: .15rem .4rem; border-radius: 6px; background: #d93025; color: #fff; font-size: .68rem; letter-spacing: .06em; }
.bell-empty { margin: 0; padding: 1.4rem 1rem; text-align: center; color: var(--muted); }
@media (max-width: 700px) {
  .bell-btn { width: 38px; height: 38px; }
  .bell-panel { position: fixed; left: .75rem; right: .75rem; top: calc(var(--header-h, 64px) + env(safe-area-inset-top, 0px) + 6px); width: auto; max-height: calc(100dvh - var(--header-h, 64px) - 30px); }
}
@media (min-width: 1200px) { .bell { order: 4; } }
@media (max-width: 520px) { .site-header .brand-text { display: none; } .site-header .header-inner { gap: .5rem; } }
/* Round 41: a calm name menu – six big tiles, then tools, then preferences and sign out */
.account-menu .account-head { align-items: center; }
.acct-tent-link { display: inline-block; margin-top: .25rem; font-weight: 800; font-size: .85rem; color: var(--navy); text-decoration: none; }
:root[data-theme="dark"] .acct-tent-link { color: var(--gold); }
.acct-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: .3rem .1rem .6rem; }
.account-menu a.acct-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; min-height: 84px; padding: .75rem .8rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 800 .95rem/1.2 var(--font-body); }
.account-menu a.acct-tile:hover, .account-menu a.acct-tile:focus-visible { background: color-mix(in srgb, var(--navy) 10%, var(--surface-2)); outline: none; }
.account-menu a.acct-tile svg { width: 26px; height: 26px; color: var(--navy); }
:root[data-theme="dark"] .account-menu a.acct-tile svg { color: var(--gold); }
.acct-tile .acct-badge { margin-left: .2rem; }
.acct-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.account-menu .acct-foot button { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-height: 60px; padding: .45rem .3rem; border-radius: 12px; font: 700 .8rem/1.15 var(--font-body); text-align: center; justify-content: center; }
.account-menu .acct-foot button svg { width: 20px; height: 20px; }
.account-head .acct-tent-link { align-self: flex-start; }
/* Calls (voice and video) */
.call-win { position: fixed; inset: 0; z-index: 2147483000; display: grid; grid-template-rows: 1fr auto; place-items: center; background: radial-gradient(circle at 50% 30%, #2a3d6e, #0b1530 70%); color: #fff; }
.call-win.is-small { inset: auto 12px 12px auto; width: min(320px, calc(100vw - 24px)); height: 220px; border-radius: 18px; box-shadow: 0 20px 50px -14px rgba(0,0,0,.6); overflow: hidden; }
.call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; transition: opacity .3s; }
.call-win.is-video.is-live .call-remote { opacity: 1; }
.call-local { position: absolute; right: 14px; top: 14px; width: min(30vw, 170px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,.7); background: #111; transform: scaleX(-1); z-index: 2; }
.call-win.is-small .call-local { width: 70px; }
.call-info { position: relative; z-index: 1; display: grid; justify-items: center; gap: .5rem; text-align: center; padding: 1rem; }
.call-win.is-video.is-live .call-info { align-self: start; margin-top: 1rem; background: rgba(0,0,0,.35); border-radius: 14px; padding: .5rem 1rem; }
.call-win.is-video.is-live .call-info .call-face { display: none; }
.call-face { width: 120px; height: 120px; font-size: 2.6rem; border: 4px solid rgba(255,255,255,.3); }
.call-win.is-small .call-face { width: 56px; height: 56px; }
.call-info strong { font-size: 1.5rem; }
.call-status { opacity: .85; font-weight: 600; }
.call-btns { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; padding: 1rem 1rem calc(1.6rem + env(safe-area-inset-bottom, 0px)); }
.call-b { display: grid; place-items: center; gap: .25rem; width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.6rem; cursor: pointer; }
.call-b small { font: 700 .7rem/1 var(--font-body); }
.call-b.is-on { background: #fff; color: #111; }
.call-b.is-yes { background: #1e9e4a; }
.call-b.is-no { background: #d93025; }
.call-b.is-no[data-call-end] { transform: rotate(0); }
.call-win.is-small .call-b { width: 48px; height: 48px; font-size: 1.1rem; } .call-win.is-small .call-b small { display: none; }
.call-min { position: absolute; left: 14px; top: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.4rem; cursor: pointer; }
.call-btn { font-size: 1.05rem; }
.chat-pop-calls { display: inline-flex; gap: .1rem; }
.chat-pop-calls .call-btn { width: 32px; height: 32px; min-width: 0; padding: 0; font-size: .95rem; }
html.call-open { overflow: hidden; }
/* Resize grip on floating windows */
.win-grip { position: absolute; z-index: 5; width: 26px; height: 26px; touch-action: none; opacity: .75; }
.win-grip::before { content: ''; position: absolute; inset: 6px; border: 0 solid currentColor; color: var(--muted); }
.win-grip.is-br { right: 0; bottom: 0; cursor: nwse-resize; }
.win-grip.is-br::before { border-right-width: 3px; border-bottom-width: 3px; border-radius: 0 0 6px 0; }
.win-grip.is-tl { left: 0; top: 0; cursor: nwse-resize; }
.win-grip.is-tl::before { border-left-width: 3px; border-top-width: 3px; border-radius: 6px 0 0 0; color: rgba(255,255,255,.85); }
.win-grip:hover { opacity: 1; }
.bwin .win-grip.is-tl { top: 0; left: 0; }
.is-resizing, .is-resizing * { user-select: none !important; transition: none !important; }
.bwin.is-resized .bwin-body { flex: 1; min-height: 0; }
.chat-dock .chat-pop.is-resized { max-width: none; }
.live-notes.is-resized { overflow: auto; }
@media (max-width: 599px) { .win-grip.is-tl { left: 50%; top: 0; width: 56px; margin-left: -28px; height: 18px; cursor: ns-resize; } .win-grip.is-tl::before { inset: 7px 10px auto; height: 0; border-left: 0; border-top-width: 4px; border-radius: 4px; } }
/* Floating Bible: tap verses for highlight, note, copy, share, save */
.bwin-v { cursor: pointer; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.bwin-v:hover { background: color-mix(in srgb, var(--navy) 6%, transparent); }
.bwin-v.hl-yellow { background: #FFF1A8; } .bwin-v.hl-green { background: #CDEFC6; } .bwin-v.hl-blue { background: #CFE3FA; } .bwin-v.hl-pink { background: #F9D2E3; }
:root[data-theme="dark"] .bwin-v[class*="hl-"] { color: #1E293B; }
.bwin-v.is-sel { text-decoration: underline dotted 2px; text-underline-offset: 4px; background: color-mix(in srgb, var(--gold) 26%, transparent); }
.bwin-note { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: .2rem; border: 0; border-radius: 50%; background: var(--gold); color: #1b1b1b; font-size: .7rem; cursor: pointer; vertical-align: .1em; }
.bwin-tip { margin: .8rem 0 0; color: var(--muted); font-size: .8rem; font-style: italic; }
.bwin-bar { display: grid; gap: .45rem; padding: .6rem .75rem .7rem; background: var(--navy); color: #fff; }
.bwin-bar[hidden] { display: none; }
.bwin-bar-top { display: flex; align-items: center; gap: .5rem; }
.bwin-bar-top strong { font-size: .9rem; }
.bwin-bar-msg { flex: 1; font-size: .78rem; color: var(--gold); font-weight: 700; }
.bwin-bar-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.1rem; cursor: pointer; }
.bwin-hl { display: flex; gap: .45rem; }
.bwin-acts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; }
.bwin-acts button { display: grid; justify-items: center; gap: .1rem; min-height: 50px; padding: .3rem .1rem; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font: 700 .72rem/1.1 var(--font-body); cursor: pointer; }
.bwin-acts button span { font-size: 1.05rem; }
.bwin-acts button:hover, .bwin-acts button:focus-visible { background: rgba(255,255,255,.24); outline: none; }
.bible-fab { touch-action: none; }
/* Worship screen: Bible verses phrase by phrase (like the sermon) */
.ws-bible.is-anim .sl-phrase { display: inline; opacity: 0; animation: slPhrase .8s ease forwards; }
@media (prefers-reduced-motion: reduce) { .ws-bible.is-anim .sl-phrase { opacity: 1; animation: none; } }
/* Worship Service: one window, fewer buttons */
.w-addall > summary, .w-moreopts > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 42px; padding: .4rem 1rem; border-radius: 999px; background: var(--gold); color: #1b1b1b; font: 800 var(--fs-sm)/1 var(--font-body); }
.w-addall > summary::-webkit-details-marker, .w-moreopts > summary::-webkit-details-marker, .w-more > summary::-webkit-details-marker { display: none; }
.w-addall[open] > summary { margin-bottom: .6rem; }
.w-addall { display: grid; gap: .5rem; }
.w-moreopts > summary { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); margin-top: .6rem; }
.w-more { position: relative; display: inline-block; }
.w-more > summary { list-style: none; cursor: pointer; }
.w-more-in { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-wrap: wrap; gap: .4rem; width: max-content; max-width: 320px; padding: .6rem; border-radius: 14px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); }
.w-sermon { display: grid; gap: .6rem; }
.w-sermon-pick select { margin-left: .4rem; max-width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid var(--input-line); padding: .3rem .5rem; background: var(--white); color: var(--ink); font: inherit; }
.w-sermon-frame { width: 100%; height: min(78vh, 760px); border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
@media (min-width: 1000px) { .w-grid.is-sermon { grid-template-columns: 260px minmax(0, 1fr); } }
.w-grid.is-sermon .w-live { display: none; }
/* Lead the Service: what is live right now */
.lead-status { margin-bottom: .8rem; padding: .7rem 1rem; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.lead-status.is-live { border-color: #d93025; background: color-mix(in srgb, #d93025 6%, var(--white)); }
.lead-status-h { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 800; color: #b8261c; }
.lead-status-h.is-off { color: var(--muted); font-weight: 700; }
.lead-status ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .45rem; }
.lead-status li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .5rem .6rem; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.lead-st-ic { font-size: 1.3rem; }
.lead-st-t { display: grid; flex: 1 1 12rem; min-width: 0; }
.lead-st-t small { color: var(--muted); }
.lead-stop { background: #d93025; color: #fff; border: 0; }
.lead-stop:hover { background: #b8261c; }
.lead-status-warn { margin: .5rem 0 0; font-weight: 800; color: #b8261c; }
/* Prayer Room on the TV: the requests add up; many of them move slowly upwards */
.pm-wall { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.pmw-view { min-height: 0; }
.pmw-view { position: relative; flex: 1; overflow: hidden; padding: 0 2.5vw; }
.pmw-view.is-moving { -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent); }
.pmw-list { list-style: none; margin: 0; padding: 1.5vh 0; display: grid; gap: 1.6vh 1.6vw; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30vw), 1fr)); align-content: start; }
.pmw-view.is-moving .pmw-list { animation: pmwUp var(--pmw-secs, 40s) linear infinite; }
@keyframes pmwUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.pmw-card { padding: 2vh 1.6vw; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(4px); }
.pmw-card.is-new { animation: pmwIn 1s ease both; box-shadow: 0 0 0 3px rgba(255,214,107,.8); }
@keyframes pmwIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
.pmw-body { margin: 0; font-size: clamp(1.1rem, 2.1vw, 2.2rem); line-height: 1.35; font-weight: 600; }
.pmw-name { margin: 1vh 0 0; font-size: clamp(.9rem, 1.4vw, 1.4rem); color: #ffd56b; font-weight: 800; }
.pmw-foot { padding: 1.4vh 2.5vw 2vh; text-align: center; color: rgba(255,255,255,.75); font-style: italic; font-size: clamp(.85rem, 1.2vw, 1.2rem); }
@media (prefers-reduced-motion: reduce) { .pmw-view.is-moving { overflow-y: auto; } .pmw-view.is-moving .pmw-list { animation: none; } }
/* Prayer Room on phones: tap a name to see the request */
.pm-name-btn { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 48px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); font: 800 1rem/1.2 var(--font-body); text-align: left; cursor: pointer; }
.pm-name-btn span { color: var(--muted); font-size: 1.2rem; }
.pm-tap.is-open .pm-name-btn, .pm-names li.is-open .pm-name-btn { background: color-mix(in srgb, var(--gold) 22%, var(--white)); border-color: var(--gold); }
.pm-reveal { margin: .5rem .3rem 0; line-height: 1.55; font-size: 1.02rem; animation: pmwIn .3s ease both; }
.pm-tap > div { flex: 1; min-width: 0; }
.pm-names { list-style: none; padding: 0; display: grid; gap: .45rem; }
.pm-screen.is-phone .pm-name-btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.pm-screen.is-phone .pm-reveal { color: #fff; }
.pm-tap { flex-direction: column; align-items: stretch; } .pm-tap .pr-pray { align-self: flex-start; }
/* Join a Lifegroup */
.lg-join { gap: .8rem; padding: 1.1rem 1.2rem; margin-bottom: 1rem; border: 2px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.lg-join-h { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.lg-join-h > div { flex: 1 1 16rem; }
.lg-join-h h3 { margin: 0; }
.lg-join-h p { margin: .25rem 0 0; color: var(--muted); }
.lg-join-ic { font-size: 2rem; }
.lg-form { display: grid; gap: .7rem; }
.lg-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.lg-days { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; padding: 0; margin: 0; }
.lg-days legend { font-weight: 700; margin-bottom: .3rem; }
.chip-check { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-weight: 600; }
.chip-check:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
/* Change profile picture: choose, then crop */
.face-dialog { width: min(460px, calc(100vw - 1.5rem)); padding: 1.3rem 1.3rem 1.1rem; border: 0; border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.face-dialog::backdrop { background: rgba(8,16,32,.55); }
.face-dialog h2 { margin: 0 2rem .8rem 0; font: 800 1.3rem/1.2 var(--font-body); text-transform: none; letter-spacing: 0; }
.face-now { display: grid; place-items: center; margin-bottom: .8rem; }
.face-now .pic-face.is-xl { width: 110px; height: 110px; }
.face-src { display: grid; gap: .5rem; }
.face-opt { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; padding: .7rem .8rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.face-opt:hover, .face-opt:focus-visible { border-color: var(--gold); outline: none; }
.face-opt > span { grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); font-size: 1.4rem; overflow: hidden; }
.face-opt strong { font-size: 1rem; } .face-opt small { color: var(--muted); }
.face-g img { width: 100%; height: 100%; object-fit: cover; }
.face-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .6rem; max-height: 240px; overflow-y: auto; }
.face-grid button { padding: 0; border: 0; aspect-ratio: 1; cursor: pointer; background: var(--surface-2); }
.face-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face-crop { position: relative; width: min(320px, 100%); aspect-ratio: 1; margin: .4rem auto; border-radius: 14px; overflow: hidden; background: #111; touch-action: none; }
.face-crop canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.face-ring { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.8); }
.face-zoom { display: flex; align-items: center; gap: .6rem; justify-content: center; margin: .5rem 0; font-weight: 800; }
.face-zoom input { width: 70%; }
.face-acts { justify-content: center; }
/* Sunday Flyer, Round 41 design */
.fl41 .fl-believe { background: linear-gradient(180deg, #FFF8E6, #FFFDF7); }
.fl-beliefs { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.fl-beliefs li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; }
.fl-bn { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0F2C59; color: #D4AF37; font: 800 11px/1 Montserrat, sans-serif; }
.fl-beliefs strong { display: block; font-size: 12.5px; color: #0F2C59; }
.fl-beliefs p { margin: 1px 0 0; font-size: 11px; line-height: 1.4; color: #3A4458; }
.fl-beliefs em { font-size: 10px; font-style: normal; font-weight: 700; color: #9A7A1E; }
.fl-believe-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid #E8DDB8; font: italic 11px/1.45 Georgia, serif; color: #3A4458; }
.fl-believe-foot b { font-style: normal; font-family: Montserrat, sans-serif; color: #9A7A1E; }
.fl41 .fl-back { align-items: center; text-align: center; background: #fff; }
.fl-bigqr { padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 3px #D4AF37, 0 12px 28px -14px rgba(15,44,89,.5); }
.fl-url { margin: 4px 0 0; font: 800 14px/1.2 Montserrat, sans-serif; color: #0F2C59; word-break: break-all; }
.fl-small { margin: 0; font-size: 11px; color: #5A6478; }
.fl41 .fl-back .fl-list { text-align: left; width: 100%; margin-top: auto; }
.fl-snotes { background: #fff; }
.fl-theme, .fl-text { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #F3F6FB; border-left: 4px solid #D4AF37; }
.fl-theme > span, .fl-text > span { font: 800 9.5px/1 Montserrat, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #9A7A1E; }
.fl-theme .fl-h1 { margin: 0; font-size: 20px; line-height: 1.2; }
.fl-text .fl-ref { margin: 0; font-weight: 700; color: #0F2C59; }
.fl41 .fl-lines { display: grid; gap: 0; }
/* Weekly services: edit them where they are shown */
.sched-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.sched-edit { font-weight: 800; }
.sched-dialog { width: min(760px, calc(100vw - 1.5rem)); padding: 1.3rem; border: 0; border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.sched-dialog::backdrop { background: rgba(8,16,32,.55); }
.sched-dialog h2 { margin: 0 2rem .4rem 0; font: 800 1.25rem/1.25 var(--font-body); text-transform: none; letter-spacing: 0; }
.sched-rows { list-style: none; margin: .8rem 0; padding: 0; display: grid; gap: .5rem; max-height: 55vh; overflow-y: auto; }
.sched-row { display: grid; grid-template-columns: 8rem minmax(9rem, 1fr) auto 40px; gap: .4rem; align-items: center; padding: .45rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.sched-row select, .sched-row input { min-height: 42px; padding: .3rem .55rem; border-radius: 10px; border: 1px solid var(--input-line); background: var(--white); color: var(--ink); font: inherit; min-width: 0; }
.sched-times { display: flex; align-items: center; gap: .25rem; }
.sched-times input { width: 8.4rem; }
.sched-del { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.05rem; }
@media (max-width: 560px) { .sched-row { grid-template-columns: 1fr 40px; } .sched-row select, .sched-row > input, .sched-times { grid-column: 1; } .sched-del { grid-column: 2; grid-row: 1; } }
.w-weekly-edit { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .5rem 0; }
.w-weekly-edit input[data-w-wverse] { min-height: 38px; margin-left: .3rem; padding: .2rem .5rem; border-radius: 8px; border: 1px solid var(--input-line); width: 9rem; }

/* ===================== Round 42 ===================== */
/* Header: the logo and "CFFCC International" always show, and grow with the text size */
/* Round 44: back to one row on computers; the name is smaller so everything fits */
@media (min-width: 1200px) {
  html[data-text] .site-header { zoom: 1 !important; }
  .site-header .header-inner { flex-wrap: nowrap; }
  .site-header .brand-logo { width: 2.75rem !important; }
  .site-header .brand-name { font-size: 1.08rem !important; }
  .site-header .brand-sub { font-size: .58rem !important; }
  .site-header.is-tight .brand-name, .site-header.is-tighter .brand-name { font-size: .98rem !important; }
  .site-header.is-tighter .brand-sub, .site-header.is-tightest .brand-sub, .site-header.is-tightest2 .brand-sub { display: none !important; }
  .site-header.is-tightest .brand-name, .site-header.is-tightest2 .brand-name { display: block !important; font-size: .9rem !important; }
  .site-header.is-tightest .brand-logo, .site-header.is-tightest2 .brand-logo { width: 2.4rem !important; }
}
.site-header .brand { gap: .7rem; min-width: 0; }
.site-header .brand-logo { height: auto; }
@media (max-width: 1199px) { .site-header .brand-logo { width: 3.6rem !important; } }
.site-header .brand-text { display: flex !important; min-width: 0; }
.site-header .brand-name { display: block !important; line-height: 1.05; letter-spacing: .02em; white-space: nowrap; }
.site-header .brand-sub { display: block !important; max-width: none !important; white-space: nowrap; line-height: 1.25; letter-spacing: .03em; }
.site-header:has(.account-btn.is-signed-in) .brand-name { display: block !important; }
@media (max-width: 1199px) {
  .site-header .header-inner { gap: .45rem; }
  .site-header .brand { margin-right: auto; }
  .site-header .brand-logo { width: 3rem !important; }
  .site-header .brand-name { font-size: 1.15rem !important; }
  .site-header .brand-sub { font-size: .62rem !important; }
}
@media (max-width: 700px) {
  .site-header .brand { gap: .45rem; }
  .site-header .brand-logo { width: 2.7rem !important; }
  .site-header .brand-name { font-size: 1rem !important; white-space: normal; max-width: 7.2em; }
  .site-header .brand-sub { display: none !important; }
  .site-header .church-picker-label { max-width: 4.5rem; overflow: hidden; text-overflow: ellipsis; }
  .site-header .church-picker-btn { padding-inline: .55rem; }
  .site-header .account-hi > span:first-child { display: none; }
  .site-header .account-hi-name { max-width: 4.2em; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
}
@media (max-width: 400px) {
  .site-header .church-picker-label { display: none; }
  .site-header .brand-name { font-size: .95rem !important; }
}
@media (max-width: 520px) { .site-header .brand-text { display: flex !important; } }
.site-header .church-picker-btn .pin { display: inline-block !important; flex: none; }
.hero-churches-line { margin: .2rem 0 1.2rem; }
.hero-churches-line a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-weight: 700; }
.hero-churches-line svg { width: 18px; height: 18px; color: var(--gold); }
/* Tent banner: always readable (light and dark): the words never fade out completely, with a soft backing */
.sp-bn-text { pointer-events: none; }
.sp-bn-text > p.sp-bn-verse { display: inline-block; justify-self: center; max-width: min(40rem, 92%); padding: .55rem 1rem; border-radius: 14px; background: rgba(5, 12, 28, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); color: var(--bn-color, #fff) !important; opacity: 1 !important; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 0 18px rgba(0,0,0,.45); }
.sp-bn-ref { padding: .2rem .7rem; border-radius: 999px; background: rgba(5, 12, 28, .5); opacity: 1 !important; color: #FFE7A3 !important; }
.sp-banner.is-darktext .sp-bn-verse { background: rgba(255,255,255,.78); text-shadow: none; }
.sp-banner.is-playing.anim-phrase .sp-bn-verse span { animation: bnWord .7s ease both; animation-delay: calc(var(--i) * 90ms); }
@keyframes bnWord { from { opacity: .35; } to { opacity: 1; } }
.sp-banner.is-playing.anim-fade .sp-bn-text > *, .sp-banner.is-playing.anim-rise .sp-bn-text > * { animation-name: bnSoftIn; }
@keyframes bnSoftIn { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Name menu, Round 42: a soft card */
.account-menu { width: min(380px, calc(100vw - 1.2rem)) !important; padding: 0 !important; border-radius: 22px !important; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 28px 60px -22px rgba(8, 18, 40, .55) !important; background: var(--white) !important; }
.account-menu .acct-hero { position: relative; display: flex; align-items: center; gap: .8rem; margin: 0; padding: 1.1rem 1.1rem 1rem; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--gold) 45%, transparent), transparent 55%), linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--navy) 70%, #2a6fb5)); color: #fff; border: 0; }
.account-menu .acct-hero .avatar { width: 56px !important; height: 56px !important; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); object-fit: cover; flex: none; }
.acct-hero-t { display: grid; min-width: 0; gap: .1rem; }
.acct-hero-t strong { font-size: 1.08rem; color: #fff; }
.acct-hero-t > span { font-size: .8rem; color: rgba(255,255,255,.8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu .acct-hero .acct-tent-link { justify-self: start; margin-top: .3rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff !important; font-size: .8rem; }
.account-menu .account-scroll { padding: .8rem .8rem .3rem; display: grid; gap: .7rem; }
.account-menu .account-demo { margin: .6rem .8rem 0; }
.account-menu a.acct-today { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border-radius: 16px; background: linear-gradient(135deg, #FFF3C9, #FFE2A8); color: #3a2a00; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(160,110,0,.18); }
.account-menu a.acct-today:hover, .account-menu a.acct-today:focus-visible { filter: brightness(1.03); outline: none; }
.acct-today-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.7); font-size: 1.4rem; flex: none; }
.acct-today-t { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.acct-today-t strong { font-size: 1.02rem; }
.acct-today-t small { font-size: .8rem; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-today-go { font-size: 1.4rem; opacity: .6; }
:root[data-theme="dark"] .account-menu a.acct-today { background: linear-gradient(135deg, #4a3a12, #3a2c0c); color: #FFE7A3; }
.account-menu .acct-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; padding: 0; }
.account-menu a.acct-tile { position: relative; align-items: center; justify-content: center; text-align: center; gap: .4rem; min-height: 88px; padding: .7rem .35rem .6rem; border-radius: 16px; background: var(--surface-2); border: 1px solid transparent; font: 700 .8rem/1.2 var(--font-body); }
.account-menu a.acct-tile:hover, .account-menu a.acct-tile:focus-visible { border-color: var(--line); background: color-mix(in srgb, var(--navy) 6%, var(--surface-2)); transform: translateY(-1px); }
.acct-tile-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; }
.account-menu a.acct-tile .acct-tile-ic svg { width: 22px; height: 22px; color: inherit; }
.tone-gold .acct-tile-ic { background: #FFF0C7; color: #9A6B00; } .tone-blue .acct-tile-ic { background: #DCEBFF; color: #1D4E89; }
.tone-pink .acct-tile-ic { background: #FFE0EA; color: #A12C5B; } .tone-purple .acct-tile-ic { background: #ECE2FF; color: #5B2DB0; }
.tone-green .acct-tile-ic { background: #D9F4E4; color: #1E7A45; } .tone-navy .acct-tile-ic { background: #E3E8F3; color: #23365F; }
.account-menu a.acct-tile .acct-badge { position: absolute; top: 6px; right: 8px; margin: 0; }
.account-menu a.acct-tile .acct-badge + .acct-badge { right: 34px; }
.account-menu .account-group { border-radius: 14px; }
.account-menu .acct-foot { margin: 0; padding: .55rem .8rem .8rem; border-top: 1px solid var(--line); gap: .4rem; }
.account-menu .acct-foot button { border-radius: 14px !important; background: var(--surface-2) !important; min-height: 56px !important; }
.account-menu .acct-foot button[data-signout] { color: #b8261c; }
.account-btn.has-notif::after { content: ''; position: absolute; top: 4px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #d93025; box-shadow: 0 0 0 2px var(--navy); }
.account-btn { position: relative; }
/* A small pop-up when something new arrives */
.nf-toast { position: fixed; z-index: 3000; right: 16px; top: calc(var(--header-h, 64px) + 64px); width: min(360px, calc(100vw - 32px)); display: flex; gap: .7rem; align-items: center; padding: .75rem .9rem; border-radius: 16px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 40px -14px rgba(0,0,0,.45); text-decoration: none; animation: nfIn .35s ease both; }
.nf-toast .pic-face, .nf-toast .bell-ic { width: 42px; height: 42px; flex: none; }
.nf-toast strong { display: block; font-size: .92rem; } .nf-toast small { color: var(--muted); }
@keyframes nfIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) { .account-menu { width: auto !important; } }
.account-menu .acct-hero .acct-tent-link { width: auto; display: inline-block; }
.acct-hero-t { justify-items: start; }
#hero-title { font-size: clamp(1.9rem, 3.7vw, 3.5rem); overflow-wrap: normal; word-break: keep-all; hyphens: none; }
#hero-title { container-type: inline-size; }
#hero-title em { display: block; white-space: nowrap; font-size: min(.9em, 7.4cqi); }

.tsn-who { display: flex; align-items: center; gap: .55rem; }
.tsn-who .tp-who strong { color: inherit; }
.tsn-who .tp-who span { color: inherit; opacity: .7; }
.tsn-rx { margin-top: auto; }
.tent-wall .tent-card-h { align-items: center; }
/* Calls: round buttons with the words under them (no overlap) */
.call-btns { gap: 1.4rem; align-items: flex-start; }
.call-b, .call-b.is-on, .call-b.is-yes, .call-b.is-no { width: auto; height: auto; min-width: 72px; padding: 0; border-radius: 0; background: none !important; color: #fff; display: grid; justify-items: center; gap: .4rem; font-size: 1rem; }
.call-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 1.55rem; transition: transform .15s; }
.call-b:hover .call-ic, .call-b:focus-visible .call-ic { transform: scale(1.06); }
.call-b.is-on .call-ic { background: #fff; color: #111; }
.call-b.is-yes .call-ic { background: #1e9e4a; }
.call-b.is-no .call-ic { background: #d93025; }
.call-b small { font: 700 .78rem/1.2 var(--font-body); color: rgba(255,255,255,.9); white-space: nowrap; }
.call-win.is-small .call-ic { width: 44px; height: 44px; font-size: 1.1rem; }
.call-win.is-small .call-b { min-width: 0; }
.call-info { max-width: calc(100% - 2rem); }
.call-info strong { overflow-wrap: anywhere; text-align: center; }
@media (max-width: 600px) { .call-local { width: 96px; top: 12px; right: 12px; } .call-win.is-video.is-live .call-info { margin-right: 110px; margin-left: 60px; } }
/* Tent Messages on computers: one tidy header row each */
body:has([data-chat-app]) .page-hero { padding: 1.4rem 0 1rem; }
body:has([data-chat-app]) .page-hero p, body:has([data-chat-app]) .page-hero .eyebrow { display: none; }
body:has([data-chat-app]) .page-hero h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; }
.chat-list-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.chat-list-head h2 { margin: 0; font: 800 1.25rem/1 var(--font-body); text-transform: none; letter-spacing: 0; }
.chat-new-btns { display: flex; gap: .35rem; }
.chat-hb { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.chat-hb:hover, .chat-hb:focus-visible { background: color-mix(in srgb, var(--navy) 12%, var(--surface-2)); outline: none; }
.chat-hb svg { width: 19px; height: 19px; }
.chat-push { margin: .5rem; padding: .5rem .7rem; font-size: .82rem; }
.chat-thread-head { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; min-height: 60px; border-bottom: 1px solid var(--line); background: var(--white); }
.chat-thread-head .chat-head-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; text-align: left; }
.chat-thread-head .chat-head-title { display: grid; min-width: 0; }
.chat-thread-head .chat-head-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.chat-thread-head .chat-head-title small { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread-head .icon-btn { width: 38px; height: 38px; min-width: 38px; min-height: 38px; border: 0; background: transparent; color: var(--navy); font-size: 1.05rem; border-radius: 50%; }
.chat-thread-head .icon-btn:hover { background: var(--surface-2); }
:root[data-theme="dark"] .chat-thread-head .icon-btn { color: var(--gold); }
/* chat-head windows: picture, name, then small icons, in one tidy row */
.chat-dock .chat-pop > header { display: flex !important; align-items: center; gap: .3rem; flex-wrap: nowrap; }
.chat-dock .chat-pop > header > .chat-avatar { order: 0; flex: none; }
.chat-dock .chat-pop > header > div { order: 1; flex: 1 1 auto; min-width: 0; }
.chat-dock .chat-pop > header strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-dock .chat-pop > header .chat-pop-links { display: flex; gap: .6rem; font-size: .72rem; white-space: nowrap; overflow: hidden; }
.chat-dock .chat-pop > header > .chat-pop-calls, .chat-dock .chat-pop > header > button { order: 2; flex: none; }
.chat-dock .chat-pop > header .chat-pop-x, .chat-pop-calls .call-btn { width: 30px; height: 30px; min-width: 30px; min-height: 30px; padding: 0; font-size: .85rem; border: 0; background: transparent; }
.chat-dock .chat-pop > header .chat-pop-x:hover, .chat-pop-calls .call-btn:hover { background: var(--surface-2); }
.chat-list-head { flex-direction: row !important; flex-wrap: nowrap !important; } .chat-list-head .chat-new-btns { flex-direction: row !important; width: auto !important; margin: 0 !important; }
/* Sermon and Bible slides on the worship screen and TV */
.ws-m-slide { display: grid; place-items: center; background: #000; }
.ws-slide { width: 100%; height: 100%; display: grid; place-items: center; }
.ws-slide > .sl { width: 100%; max-height: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
.ws-thumb .ws-slide > .sl { border-radius: 6px; }
/* Worship Service: smaller, calmer buttons */
.worship-mode .w-top .btn, .worship-mode .w-col .btn, .worship-mode .w-tabs button { min-height: 34px; padding: .3rem .8rem; font-size: .8rem; border-radius: 999px; }
.worship-mode .w-top .btn[data-w-air] { min-height: 38px; padding: .35rem 1rem; font-size: .85rem; }
.worship-mode .w-col h3, .worship-mode .w-sl-head h3 { font-size: 1rem; }
.worship-mode .w-addall > summary, .worship-mode .w-moreopts > summary { min-height: 34px; padding: .3rem .9rem; font-size: .8rem; }
.worship-mode .w-adddet > summary { font-size: .88rem; }
.worship-mode .w-items .w-it { font-size: .9rem; }
.w-chip { min-height: 32px; padding: .25rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 700 .78rem/1 var(--font-body); cursor: pointer; }
.w-chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.w-srow, .w-modes { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.w-sermon { display: grid; gap: .55rem; margin: .4rem 0 .7rem; }
.w-sermon-pick select { min-height: 34px; font-size: .85rem; max-width: 22rem; }
.w-free { display: flex; gap: .4rem; }
.w-free input { flex: 1; min-width: 0; min-height: 40px; padding: .35rem .8rem; border-radius: 999px; border: 1.5px solid var(--gold); background: var(--white); color: var(--ink); font: inherit; }
.w-drop { display: grid; gap: .2rem; padding: 1rem; border: 2px dashed var(--input-line); border-radius: 14px; text-align: center; cursor: pointer; background: var(--surface-2); }
.w-drop span { color: var(--muted); font-size: .82rem; }
.w-sl-tiles { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.w-sltile { display: grid; gap: .2rem; padding: 4px; border: 2px solid transparent; border-radius: 10px; background: var(--surface-2); cursor: pointer; text-align: left; min-width: 0; }
.w-sltile .w-sltile-l { font-size: .7rem; font-weight: 700; color: var(--muted); padding: 0 .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-sltile.is-live { border-color: #d93025; }
.w-sltile .sl { pointer-events: none; }
/* Sticky panels stop just below the header (no more panels hiding under it) */
html { scroll-padding-top: calc(var(--hdr-real, 70px) + 12px); }
.church-jump, .bible-nav, .start-steps { top: var(--hdr-real, var(--header-h, 64px)) !important; }
@media (min-width: 1000px) { .admin-side { top: calc(var(--hdr-real, 90px) + 12px) !important; max-height: calc(100vh - var(--hdr-real, 90px) - 24px) !important; } .feed-side { top: calc(var(--hdr-real, 90px) + 12px) !important; } }
@media (min-width: 900px) { .sm-list { top: calc(var(--hdr-real, 90px) + 12px) !important; max-height: calc(100vh - var(--hdr-real, 90px) - 24px) !important; } .tent-side { top: calc(var(--hdr-real, 90px) + 12px) !important; } }
.bible-study.is-open .study-journal, .jr-study.is-open .jr-bible { top: calc(var(--hdr-real, 96px) + 12px) !important; }
.lead-tabs { top: calc(var(--hdr-real, 68px) + 6px) !important; }
/* Ask for Prayer: a floating window */
.pray-dialog { width: min(520px, calc(100vw - 1.5rem)); padding: 0; border: 0; border-radius: 22px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.pray-dialog::backdrop { background: rgba(8,16,32,.55); backdrop-filter: blur(2px); }
.pray-form, .pray-done { display: grid; gap: .65rem; padding: 1.4rem 1.4rem 1.2rem; position: relative; }
.pray-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #FFF3C9, #FFE2A8); font-size: 1.6rem; }
.pray-form h2, .pray-done h2 { margin: 0; font: 800 1.35rem/1.2 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--heading); }
.pray-sub { margin: 0; color: var(--muted); }
.pray-form textarea, .pray-form input[name="name"], .pray-form input[name="contact"] { width: 100%; }
.pray-form input[type="checkbox"], .pray-form input[type="radio"] { width: auto; }
.pray-form .check { display: flex; align-items: center; gap: .5rem; }
.pray-priv { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; margin: 0; padding: 0; }
.pray-priv legend { font-weight: 700; margin-bottom: .3rem; }
.pray-done { justify-items: center; text-align: center; padding: 2rem 1.4rem; }
.pray-done > span { font-size: 2.6rem; }
.fl-weekly { padding: 8px 10px; border-radius: 10px; background: #F3F6FB; border-left: 3px solid #D4AF37; }
.fl-weekly strong { display: block; font: 800 10px/1 Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #9A7A1E; margin-bottom: 5px; }
.fl-weekly ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.fl-weekly li { display: grid; grid-template-columns: 62px 1fr auto; gap: 6px; font-size: 10.5px; color: #0F2C59; }
.fl-weekly b { font-weight: 800; } .fl-weekly em { font-style: normal; color: #5A6478; white-space: nowrap; }

/* Round 43: Bible keys pasted on the admin page */
.bv-keys .bv-row.bv-key { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto; margin: .4rem 0; }
.bv-keys .bv-row.bv-key .bv-msg { grid-column: 1 / -1; font-size: .88rem; }
.bv-keys .bv-row.bv-key .bv-msg:empty { display: none; }
@media (max-width: 700px) { .bv-keys .bv-row.bv-key { grid-template-columns: 1fr; } }

/* ===================== Round 44b ===================== */
/* Page windows: float over the page like the Bible window (drag, resize, full screen) */
.peek { inset: auto; pointer-events: none; }
.peek.is-open { display: block; }
.peek-win { position: fixed; pointer-events: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(920px, calc(100vw - 48px)); height: min(80vh, 860px); box-shadow: 0 30px 80px rgba(5,14,30,.42), 0 0 0 1px var(--line); z-index: 1260; }
.peek-head { cursor: grab; user-select: none; gap: .4rem; padding: .5rem .55rem .5rem 1rem; background: linear-gradient(180deg, var(--surface-2), var(--white)); }
.peek.is-dragging .peek-head { cursor: grabbing; }
.peek.is-dragging .peek-body iframe, .is-resizing .peek-body iframe { pointer-events: none; }
.peek-btn { flex: none; display: inline-flex; align-items: center; gap: .35rem; height: 36px; min-width: 36px; padding: 0 .65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--heading); font: inherit; font-weight: 700; font-size: .85rem; line-height: 1; cursor: pointer; text-decoration: none; justify-content: center; }
.peek-btn:hover { background: var(--surface-2); }
.peek-btn[data-peek-max] { font-size: 1.05rem; padding: 0; width: 36px; }
.peek-x { width: 36px; height: 36px; font-size: 1.35rem; }
.peek.is-max .peek-win { left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; transform: none !important; border-radius: 0; }
.peek.is-max .win-grip { display: none; }
.peek-win .win-grip { z-index: 6; }
@media (max-width: 700px) {
  .peek-win { position: fixed; left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; height: 88vh; height: 88dvh; border-radius: 20px 20px 0 0; }
  .peek-head { cursor: default; }
  .peek-btn-l { display: none; }
}
html.peek-open { overflow: hidden; }
/* Resizable everywhere: the name menu grows from its bottom-left corner; dialogs scroll inside */
.win-grip.is-bl { left: 0; bottom: 0; cursor: nesw-resize; }
.win-grip.is-bl::before { border-left-width: 3px; border-bottom-width: 3px; border-radius: 0 0 0 6px; }
.account-menu .win-grip.is-bl { left: 2px; bottom: 2px; }
@media (max-width: 599px) { .win-grip.is-bl { left: 50%; bottom: 0; width: 56px; margin-left: -28px; height: 18px; cursor: ns-resize; } .win-grip.is-bl::before { inset: auto 10px 7px; height: 0; border-left: 0; border-bottom-width: 4px; border-radius: 4px; } }
dialog.is-resized { overflow: auto; }
.call-win.is-resized { max-width: none; }
/* Tent banner: how dark the shape behind the words is (0 = none), and more animations */
.sp-bn-text > p.sp-bn-verse, .sp-bn-ref { background: rgba(5, 12, 28, var(--bn-plate, .5)) !important; }
.sp-banner.is-darktext .sp-bn-verse { background: rgba(255, 255, 255, calc(var(--bn-plate, .5) * 1.55)) !important; }
.sp-banner.no-plate .sp-bn-verse, .sp-banner.no-plate .sp-bn-ref { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.sp-bn-plate { display: flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.sp-bn-plate input { flex: 1; accent-color: var(--gold); }
.sp-bn-move { margin-top: .3rem; font-size: .9rem; }
.sp-banner.bg-move { background-size: 135% 135% !important; animation: bnKen 22s ease-in-out infinite alternate; }
@keyframes bnKen { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.sp-banner .sp-bn-verse span { display: inline-block; }
.sp-banner .sp-bn-verse span.ch { display: inline; white-space: pre-wrap; }
.sp-banner.is-playing.anim-type .sp-bn-verse span.ch { animation: bnType .01s linear both; animation-delay: var(--d); }
.sp-banner.is-playing.anim-type .sp-bn-ref { animation: bnFade .8s ease 5.3s both; }
@keyframes bnType { from { opacity: 0; } to { opacity: 1; } }
.sp-banner.is-playing.anim-wave .sp-bn-verse span { animation: bnWave 1.1s ease-in-out both; animation-delay: calc(var(--i) * 80ms); }
@keyframes bnWave { 0% { transform: translateY(0); opacity: .4; } 35% { transform: translateY(-9px); opacity: 1; } 70% { transform: translateY(2px); } 100% { transform: none; opacity: 1; } }
.sp-banner.is-playing.anim-bounce .sp-bn-verse span { animation: bnBounce .7s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes bnBounce { from { transform: scale(.3); opacity: .3; } to { transform: none; opacity: 1; } }
.sp-banner.is-playing.anim-blur .sp-bn-verse span { animation: bnBlur 1s ease both; animation-delay: calc(var(--i) * 60ms); }
@keyframes bnBlur { from { filter: blur(8px); opacity: .35; } to { filter: none; opacity: 1; } }
.sp-banner.is-playing.anim-slide .sp-bn-verse span { animation: bnSlide .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes bnSlide { from { transform: translateX(-22px); opacity: .3; } to { transform: none; opacity: 1; } }
.sp-banner.is-playing.anim-zoom .sp-bn-text > * { animation: bnZoom 1.1s cubic-bezier(.2,.8,.2,1) both; }
.sp-banner.is-playing.anim-zoom .sp-bn-ref { animation-delay: .35s; }
@keyframes bnZoom { from { transform: scale(.7); opacity: .3; } to { transform: none; opacity: 1; } }
.sp-banner.anim-shine .sp-bn-verse { background-image: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 66%) !important; background-size: 250% 100% !important; background-repeat: no-repeat; background-color: rgba(5, 12, 28, var(--bn-plate, .5)) !important; }
.sp-banner.is-playing.anim-shine .sp-bn-verse { animation: bnShine 2.4s ease both; }
@keyframes bnShine { from { background-position: 130% 0; } to { background-position: -40% 0; } }
.sp-banner.is-darktext.anim-shine .sp-bn-verse { background-color: rgba(255, 255, 255, calc(var(--bn-plate, .5) * 1.55)) !important; }
/* My Tent, Round 44: everything centered under the banner, with My Secret Place highlighted */
.tent-id { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; text-align: center; gap: .55rem; padding: 0 1.2rem 1.2rem !important; }
.tent-pic { margin-top: -84px !important; }
.tent-pic .sp-face.is-xl, .tent-pic .pic-face.is-xl { width: 168px !important; height: 168px !important; border-width: 6px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 55%, transparent), 0 16px 34px -14px rgba(15,44,89,.65); }
.tent-pic .sp-pic-btn { right: 8px; bottom: 10px; }
.tent-name { padding-top: .1rem !important; }
.tent-name h1 { font-size: clamp(1.5rem, 3.6vw, 2.2rem) !important; }
.tent-meta { justify-content: center; }
.tent-acts { justify-content: center !important; }
.tent-top .sp-banner { height: clamp(200px, 30vw, 320px); }
.tent-top .sp-bn-text { padding-bottom: 5.6rem; }
.tent-tabs { justify-content: center; }
@media (max-width: 600px) { .tent-tabs { justify-content: flex-start; } .tent-pic { margin-top: -70px !important; } .tent-pic .sp-face.is-xl, .tent-pic .pic-face.is-xl { width: 138px !important; height: 138px !important; } }
a.tent-secret { display: flex; align-items: center; gap: .8rem; width: min(520px, 100%); margin-top: .35rem; padding: .8rem 1rem; border-radius: 18px; text-align: left; text-decoration: none; color: #3a2a00;
  background: linear-gradient(135deg, #FFF4CF, #FFD98A); border: 1px solid #F2C35A; box-shadow: 0 10px 26px -14px rgba(180, 120, 0, .65); position: relative; overflow: hidden; animation: secretGlow 3.2s ease-in-out infinite; }
a.tent-secret::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); background-size: 250% 100%; animation: secretShine 4.5s ease-in-out infinite; pointer-events: none; }
a.tent-secret:hover { transform: translateY(-1px); }
.tent-secret-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: rgba(255,255,255,.75); font-size: 1.45rem; }
.tent-secret-t { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.tent-secret-t strong { font-size: 1.06rem; }
.tent-secret-t small { font-size: .82rem; opacity: .8; }
.tent-secret-go { font-size: 1.6rem; opacity: .55; }
@keyframes secretGlow { 0%, 100% { box-shadow: 0 10px 26px -14px rgba(180,120,0,.65); } 50% { box-shadow: 0 0 0 4px rgba(255, 205, 90, .35), 0 12px 30px -12px rgba(180,120,0,.7); } }
@keyframes secretShine { 0%, 60% { background-position: 140% 0; } 100% { background-position: -60% 0; } }
:root[data-theme="dark"] a.tent-secret { background: linear-gradient(135deg, #4a3a12, #3a2c0c); color: #FFE7A3; border-color: #7a5d1c; }
@media (prefers-reduced-motion: reduce) { a.tent-secret, a.tent-secret::after { animation: none; } }
/* ---- Worship Service / Lead the Service, Round 44: calm and clear ---- */
/* Add to the service: one grid of same-sized tiles */
.w-addgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.w-addtile { display: flex; align-items: center; gap: .5rem; min-height: 46px; padding: .45rem .6rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--heading); font: inherit; font-weight: 700; font-size: .8rem; line-height: 1.2; text-align: left; cursor: pointer; }
.w-addtile > span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--white); font-size: 1rem; }
.w-addtile:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--white)); }
.w-addtile.is-on { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; }
.w-addform { margin-top: .5rem; padding: .7rem; border-radius: 12px; border: 1px solid var(--line); background: var(--white); display: grid; gap: .4rem; }
.w-addform-h { display: flex; align-items: center; justify-content: space-between; }
.w-addform-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 1.1rem; cursor: pointer; color: var(--heading); }
.w-addform input, .w-addform textarea, .w-addform select { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: .35rem .55rem; font: inherit; background: var(--white); color: var(--ink); }
.w-addform .w-form { display: grid; gap: .4rem; }
/* Order of service: names wrap instead of being cut; the small buttons show on hover */
.w-items li .w-it span { white-space: normal; overflow: visible; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .w-items li .w-it-act { opacity: 0; transition: opacity .15s; } .w-items li:hover .w-it-act, .w-items li.is-sel .w-it-act, .w-items li:focus-within .w-it-act { opacity: 1; } }
/* The sermon: three clear steps, and the TV stays in view */
@media (min-width: 1000px) { .w-grid.is-sermon { grid-template-columns: 250px minmax(0, 1fr) 300px; } }
.w-grid.is-sermon .w-live { display: block; }
.w-step { display: flex; gap: .7rem; align-items: flex-start; }
.w-step-n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; margin-top: .1rem; }
.w-step-b { flex: 1; min-width: 0; display: grid; gap: .45rem; }
.w-step-t { margin: .2rem 0 0; font-weight: 800; color: var(--heading); font-size: .95rem; }
.w-step-t small { font-weight: 600; color: var(--muted); margin-left: .3rem; font-size: .78rem; }
.w-modecards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.w-modecard { display: grid; justify-items: start; gap: .15rem; padding: .6rem .7rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.w-modecard strong { font-size: .88rem; color: var(--heading); }
.w-modecard small { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.w-mc-ic { font-size: 1.2rem; }
.w-modecard.is-on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--white)); box-shadow: 0 0 0 1px var(--gold) inset; }
@media (max-width: 640px) { .w-modecards { grid-template-columns: 1fr; } .w-modecard { grid-template-columns: auto 1fr; column-gap: .5rem; } .w-mc-ic { grid-row: span 2; } }
.w-sermon .w-free { margin-top: .2rem; }
.w-sl-tiles .w-sltile { position: relative; }
.w-sl-n { position: absolute; z-index: 2; top: 6px; left: 6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.w-sl-empty { padding: 1.2rem; border: 2px dashed var(--line); border-radius: 12px; text-align: center; }
.w-sermon-pick select { max-width: 100%; }
/* Lead the Service: a compact page that uses the whole screen */
.container:has(> .lead-wrap) { max-width: min(1760px, calc(100% - 2rem)) !important; width: 100%; }
.w-order { container-type: inline-size; }
@container (max-width: 330px) { .w-addgrid { grid-template-columns: 1fr; } .w-addtile { min-height: 40px; } }
.w-addtile { overflow-wrap: anywhere; }
@media (min-width: 1000px) { .w-grid.is-sermon { grid-template-columns: 280px minmax(0, 1fr) 280px; } }
/* Add a church */
.add-church-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; text-align: left; }
.add-church-dialog h2 { text-align: center; }
.add-church-dialog .field > span { text-align: left; }
.add-church-dialog .field select, .add-church-dialog .field input { width: 100%; }
.add-church-dialog .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.add-church-dialog .form-status:empty { display: none; }
.add-church-dialog .form-status { color: #b8261c; font-weight: 700; }

/* ===================== Round 47 ===================== */
/* Sanctuary: what is live comes first */
.live-wrap { display: flex; flex-direction: column; gap: 1rem; }
.live-wrap > * { order: 5; }
.live-wrap > [data-sanct-admin] { order: 0; }
.live-wrap.is-svc-live > [data-sanct-stream] { order: 1; }
.live-wrap.is-svc-live > [data-sanct-screen] { order: 2; }
.live-wrap.is-svc-live > [data-live] { order: 3; }
.live-wrap.is-svc-live > [data-sanct-room] { order: 4; }
.live-wrap.is-pray-live > [data-sanct-pray] { order: 1; }
.live-wrap > div:empty { display: none; }
.sanct-screen .sanct-ws { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
/* Worship Service: Go Live */
.w-golive { background: #d93025 !important; color: #fff !important; border: 0 !important; font-weight: 800; box-shadow: 0 8px 20px -10px rgba(217,48,37,.8); }
.w-golive:hover { filter: brightness(1.08); }
.w-livebar { flex-basis: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; padding: .6rem .8rem; border-radius: 12px; background: color-mix(in srgb, #d93025 9%, var(--white)); border: 1px solid color-mix(in srgb, #d93025 40%, transparent); color: var(--ink); font-size: .88rem; }
.w-livebar > span:nth-child(2) { flex: 1; min-width: 12rem; }
.w-livedot { width: 12px; height: 12px; border-radius: 50%; background: #d93025; box-shadow: 0 0 0 0 rgba(217,48,37,.6); animation: wLivePulse 1.6s infinite; flex: none; }
@keyframes wLivePulse { 0% { box-shadow: 0 0 0 0 rgba(217,48,37,.55); } 70% { box-shadow: 0 0 0 10px rgba(217,48,37,0); } 100% { box-shadow: 0 0 0 0 rgba(217,48,37,0); } }
.w-endlive { background: #d93025 !important; color: #fff !important; border: 0 !important; }
/* Bible / sermon slides on the TV and in the previews: always fill the screen at 16:9 (was 0 wide → black) */
.ws-m-slide { display: block !important; position: relative; }
.ws-m-slide > .ws-slide { position: absolute; inset: 0; width: auto; height: auto; display: flex; align-items: center; justify-content: center; container-type: size; }
.ws-m-slide > .ws-slide > .sl { width: min(100cqw, calc(100cqh * 16 / 9)) !important; height: auto; max-height: none; flex: none; }
/* Worship Service: "On the TV now" and "Next" stay in view while you scroll */
@media (min-width: 1000px) {
  .w-grid { align-items: start; }
  .w-grid > .w-live { position: sticky; top: calc(var(--hdr-real, 72px) + 12px); max-height: calc(100vh - var(--hdr-real, 72px) - 24px); overflow: auto; overscroll-behavior: contain; }
  html.is-embed .w-grid > .w-live, html.is-peek .w-grid > .w-live { top: 10px; max-height: calc(100vh - 20px); }
}
/* phones and tablets: a small "On the TV now" picture stays at the top while you choose */
@media (max-width: 999px) {
  .w-grid > .w-live { position: sticky; top: calc(var(--hdr-real, 64px) + 6px); z-index: 6; order: -1; padding: .5rem; box-shadow: 0 10px 24px -14px rgba(10,20,40,.45); }
  html.is-embed .w-grid > .w-live { top: 6px; }
  .w-grid > .w-live > *:not(.w-lab):not([data-w-live]) { display: none; }
  .w-grid > .w-live [data-w-live] { width: min(240px, 60%); }
  .w-grid > .w-live .w-lab { font-size: .72rem; margin-bottom: .25rem; }
}
@media (max-width: 999px) { .w-grid > .w-live > .w-lab ~ .w-lab { display: none; } }
/* My Tent: the banner stays in view while you edit it */
.tent-top { overflow: clip !important; }
.tent-top.is-bn-editing .sp-banner { position: sticky; top: calc(var(--hdr-real, 70px) + 6px); z-index: 8; box-shadow: 0 14px 30px -18px rgba(5,14,30,.6); }
@media (max-width: 700px) { .tent-top.is-bn-editing .sp-banner { height: 170px !important; } .tent-top.is-bn-editing .sp-bn-btn { display: none; } }
.tent-top.is-bn-editing .tent-pic { z-index: 1; }
/* My Tent: the look the owner chose (Design & music) */
[data-space] { --tent-accent: var(--gold); }
html[data-tent-theme] body:has([data-space]) { transition: background .4s; }
html[data-tent-theme="sunrise"] body:has([data-space]) { background: linear-gradient(160deg, #ffe7d1, #fff4e6 40%, #ffe0ec) fixed; }
html[data-tent-theme="ocean"] body:has([data-space]) { background: linear-gradient(160deg, #d7ecff, #eef7ff 45%, #d9f3f2) fixed; }
html[data-tent-theme="meadow"] body:has([data-space]) { background: linear-gradient(160deg, #dff5e3, #f3fbf1 45%, #fff7d6) fixed; }
html[data-tent-theme="lavender"] body:has([data-space]) { background: linear-gradient(160deg, #ece3ff, #f7f2ff 45%, #ffe3f1) fixed; }
html[data-tent-theme="paper"] body:has([data-space]) { background: linear-gradient(160deg, #f6efe2, #fbf7ef) fixed; }
html[data-tent-theme="night"] body:has([data-space]) { background: linear-gradient(160deg, #0f1b33, #1b2547 55%, #2a1f45) fixed; }
html[data-tent-theme="royal"] body:has([data-space]) { background: linear-gradient(160deg, #2a1450, #3b1d6e 55%, #5a2a6e) fixed; }
html:is([data-tent-theme="night"], [data-tent-theme="royal"]) body:has([data-space]) .site-footer { background: rgba(0,0,0,.25); }
[data-space][data-tent-card="glass"] .card { background: rgba(255,255,255,.62) !important; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: rgba(255,255,255,.7) !important; }
:root[data-theme="dark"] [data-space][data-tent-card="glass"] .card { background: rgba(20,26,40,.6) !important; border-color: rgba(255,255,255,.12) !important; }
[data-space][data-tent-card="flat"] .card { box-shadow: none !important; border-radius: 10px !important; }
[data-space] .tent-tab.is-on { border-bottom-color: var(--tent-accent) !important; color: var(--heading); }
[data-space] .tent-pic .sp-face.is-xl, [data-space] .tent-pic .pic-face.is-xl { box-shadow: 0 0 0 4px var(--tent-accent), 0 16px 34px -14px rgba(15,44,89,.65) !important; }
[data-space] .btn-gold { background: var(--tent-accent) !important; border-color: var(--tent-accent) !important; }
.td-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.td-theme { display: grid; gap: .3rem; padding: .35rem; border-radius: 12px; border: 2px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; }
.td-theme span { display: block; height: 46px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.td-theme.is-on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.sp-bn-col-dot.is-church { background: conic-gradient(var(--gold), var(--navy), var(--gold)); }
.td-vol { display: flex; align-items: center; gap: .5rem; font-size: .9rem; } .td-vol input { flex: 1; accent-color: var(--gold); }
/* the music button on a Tent */
.tent-music-chip { position: fixed; z-index: 1100; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .5rem; max-width: calc(100vw - 32px); padding: .5rem .9rem; border-radius: 999px; border: 0; background: rgba(15,20,40,.86); color: #fff; font: inherit; font-size: .85rem; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); backdrop-filter: blur(8px); }
.tent-music-chip .tm-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tent-music-chip .tm-ic { font-size: 1.05rem; }
.tent-music-chip:not(.is-on) { animation: tmPulse 2s ease-in-out infinite; }
.tent-music-chip.is-on .tm-ic { animation: tmBounce 1.2s ease-in-out infinite; display: inline-block; }
@keyframes tmPulse { 0%, 100% { box-shadow: 0 10px 30px -10px rgba(0,0,0,.6), 0 0 0 0 rgba(212,175,55,.5); } 50% { box-shadow: 0 10px 30px -10px rgba(0,0,0,.6), 0 0 0 8px rgba(212,175,55,0); } }
@keyframes tmBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
/* the Pastor's name in the header */
.site-header .account-hi.is-pastor .account-hi-name { max-width: 9.5em !important; }
@media (max-width: 700px) { .site-header .account-hi.is-pastor .account-hi-name { max-width: 6.5em !important; } }
/* personal pages (My Tent, Secret Place, Messages): no "Choose your church" in the header */
body:has([data-space]) .church-picker, body:has([data-me-app]) .church-picker, body:has([data-chat-app]) .church-picker { display: none !important; }
/* ---- Secret Place, Round 47: calm and beautiful ---- */
body:has([data-me-app]) { background: linear-gradient(180deg, #fbf7f0 0%, #f6f1fb 45%, #f1f5fb 100%) fixed; }
body:has([data-me-app]) .page-hero { background: radial-gradient(60% 90% at 50% 100%, rgba(255, 196, 92, .35), transparent 70%), linear-gradient(180deg, #2a2148 0%, #3a2d5e 60%, #5b4374 100%) !important; padding-bottom: 3.2rem !important; }
body:has([data-me-app]) .page-hero::before, body:has([data-me-app]) .page-hero::after { opacity: .25; }
body:has([data-me-app]) .page-hero .me-hero { grid-template-columns: 1fr !important; justify-items: center; text-align: center; }
body:has([data-me-app]) .me-hero > div:first-child { align-items: center; max-width: 44rem; gap: .8rem; }
body:has([data-me-app]) .me-hero > div:first-child::before { content: ''; display: block; width: 18px; height: 30px; margin-bottom: .2rem; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 70%, #fff6c9 0%, #ffd36b 40%, #ff9a3c 75%, transparent 76%); box-shadow: 0 0 24px 10px rgba(255, 190, 80, .45), 0 0 60px 26px rgba(255, 170, 60, .18); animation: spFlame 2.8s ease-in-out infinite; }
@keyframes spFlame { 0%, 100% { transform: scale(1) rotate(-1deg); } 50% { transform: scale(1.06, .96) rotate(1.5deg); } }
body:has([data-me-app]) #me-title { font-family: 'Cormorant Garamond', Georgia, serif; text-transform: none; font-weight: 500; letter-spacing: 0; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; }
body:has([data-me-app]) #me-title strong { font-weight: 600; font-style: italic; color: #ffd98a; }
body:has([data-me-app]) .me-verse { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.45; color: rgba(255,255,255,.92); }
body:has([data-me-app]) .me-verse cite { display: block; margin-top: .3rem; font-style: normal; font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #ffd98a; background: none !important; }
body:has([data-me-app]) .me-hero > div:first-child > p:not(.me-verse) { color: rgba(255,255,255,.72); font-size: .95rem; max-width: 34rem; }
body:has([data-me-app]) .me-stats { grid-template-columns: repeat(5, minmax(4.4rem, 1fr)); gap: .5rem; }
body:has([data-me-app]) .me-stats div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; backdrop-filter: blur(6px); }
body:has([data-me-app]) .me-stats strong { color: #ffe3a3; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.9rem; }
@media (max-width: 560px) { body:has([data-me-app]) .me-stats { grid-template-columns: repeat(3, 1fr); } }
body:has([data-me-app]) .me-tabs { margin-top: -2.4rem; position: relative; z-index: 2; max-width: 46rem; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid rgba(120, 100, 160, .15); box-shadow: 0 18px 40px -22px rgba(40, 25, 80, .45); }
body:has([data-me-app]) .me-tabs button { color: #5b5470; }
body:has([data-me-app]) .me-tabs button[aria-selected="true"] { background: linear-gradient(135deg, #3a2d5e, #5b4374); color: #ffe3a3; box-shadow: 0 6px 16px -8px rgba(58,45,94,.8); }
body:has([data-me-app]) .me-panel-head h2, body:has([data-me-app]) .me-panel h2 { font-family: 'Cormorant Garamond', Georgia, serif; text-transform: none; font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: 0; color: #2e2450; }
body:has([data-me-app]) .me-panel-head p { color: #6b6580; }
body:has([data-me-app]) .me-panel .card { border-radius: 22px; border: 1px solid rgba(120, 100, 160, .12); box-shadow: 0 14px 34px -24px rgba(40, 25, 80, .35); }
body:has([data-me-app]) .me-prayer { border-radius: 16px; }
/* Sermon notes: white paper with a thin color edge (instead of a full yellow note) */
.me-note.sticky-note { background: var(--white) !important; color: var(--ink) !important; border: 1px solid rgba(120, 100, 160, .14) !important; border-left: 6px solid var(--sn-edge, #E8C766) !important; border-radius: 18px !important; box-shadow: 0 14px 34px -24px rgba(40, 25, 80, .35) !important; transform: none !important; }
.me-note.sticky-note::before, .me-note.sticky-note::after { display: none !important; }
.me-note.sticky-note h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; font-weight: 600; color: #2e2450; text-transform: none; letter-spacing: 0; }
.me-note.sticky-note .me-note-body { color: #3b3550; line-height: 1.65; }
.me-note.sn-yellow { --sn-edge: #E8C766; } .me-note.sn-pink { --sn-edge: #EE9DB8; } .me-note.sn-mint { --sn-edge: #7FCFA8; } .me-note.sn-sky { --sn-edge: #86B8F0; } .me-note.sn-lavender { --sn-edge: #B39BEA; }
.me-note.sn-peach { --sn-edge: #F2B58A; } .me-note.sn-lime { --sn-edge: #B7D56A; } .me-note.sn-coral { --sn-edge: #F08C7A; } .me-note.sn-aqua { --sn-edge: #6CCFD0; } .me-note.sn-sand { --sn-edge: #D4BE8E; } .me-note.sn-rose { --sn-edge: #E58FB4; } .me-note.sn-white { --sn-edge: #C9C3D8; }
:root[data-theme="dark"] body:has([data-me-app]) { background: linear-gradient(180deg, #14111f, #171b2b) fixed; }
:root[data-theme="dark"] body:has([data-me-app]) .me-tabs { background: rgba(30, 28, 48, .92); }
:root[data-theme="dark"] body:has([data-me-app]) .me-tabs button { color: #c8c2dc; }
:root[data-theme="dark"] body:has([data-me-app]) .me-panel-head h2, :root[data-theme="dark"] body:has([data-me-app]) .me-panel h2, :root[data-theme="dark"] .me-note.sticky-note h3 { color: #efe7ff; }
:root[data-theme="dark"] .me-note.sticky-note { background: #1e1b2e !important; color: #e9e4f5 !important; }
:root[data-theme="dark"] .me-note.sticky-note .me-note-body { color: #d6d0e6; }
/* Tent: "Sermon notes" sticky notes in a soft periwinkle, not plain blue */
.sticky-note.sn-sky:not(.me-note) { background: linear-gradient(160deg, #e7ecff, #d9e2ff) !important; color: #23305c !important; }
/* Bible references everywhere: calm and readable (no beige boxes) */
.vref { background: none !important; border-bottom: 1.5px dotted currentColor !important; color: var(--vref-color, #2b5aa8) !important; font-weight: 600; padding: 0 !important; }
:root[data-theme="dark"] .vref { --vref-color: #9cc3ff; }
.page-hero .vref, .sp-banner .vref, .sl .vref, .ws .vref, .sticky-note .vref { --vref-color: currentColor; }
/* ---- Readable text everywhere (Round 47 contrast pass) ---- */
:root[data-theme="dark"] .sticky-note.sn-sky:not(.me-note) { background: linear-gradient(160deg, #2b3460, #232b52) !important; color: #e6ebff !important; }
:root[data-theme="dark"] .kind-badge { color: #fff !important; background: rgba(255,255,255,.16) !important; }
.sticky-note .link-btn, .sticky-note .pin-btn, .sticky-note .tp-ic { color: #3b2f12 !important; }
:root[data-theme="dark"] .sticky-note:not([class*="sn-sky"]) .tsn-body, :root[data-theme="dark"] .sticky-note .tsn-when { color: inherit !important; opacity: .9; }
.og-kind { color: #2b2140 !important; background: rgba(255,255,255,.9) !important; }
.tg-more { color: #8a5200 !important; }
.wk-day.is-later b { color: #4a5568; }
:root[data-theme="dark"] .wk-day.is-later b { color: #b8c2d6; }
.app-qr-link { color: #46506a !important; }
body:has([data-me-app]) .page-hero .link-btn { color: #ffd98a !important; }
.vref { --vref-color: #24539e; }
:root[data-theme="dark"] .vref { --vref-color: #a8c8ff; }
body:has([data-me-app]) .page-hero .me-role { align-self: center; }
body:has([data-me-app]) .page-hero .me-photo-act .btn-outline { color: #fff !important; border-color: rgba(255,255,255,.55) !important; background: rgba(255,255,255,.08) !important; }
body:has([data-me-app]) .page-hero .me-photo-act .link-btn { color: #ffd98a !important; }

/* ===================== Round 48 ===================== */
/* "Ask for Prayer": a small floating window (not a full page) */
dialog.pray-dialog { position: fixed; inset: auto 22px 22px auto; margin: 0; width: min(400px, calc(100vw - 24px)); max-height: min(78vh, 720px); overflow: auto; z-index: 1300; padding: 0; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 70px -18px rgba(8,16,40,.55); animation: prayIn .25s ease; }
@keyframes prayIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.pray-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem .55rem 1rem; background: linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--navy) 70%, #6b4aa0)); color: #fff; cursor: grab; touch-action: none; user-select: none; }
.pray-bar-t { flex: 1; font-weight: 800; font-size: .95rem; }
.pray-bar-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.pray-dialog .pray-form { padding: .9rem 1rem 1rem; gap: .55rem; }
.pray-dialog .pray-form h2 { font-size: 1.25rem; margin: 0; text-transform: none; letter-spacing: 0; }
.pray-dialog .pray-form textarea { min-height: 5.5rem; }
.pray-dialog .pray-ic { display: none; }
@media (max-width: 600px) { dialog.pray-dialog { inset: auto 12px 12px 12px; width: auto; max-height: 72vh; } }
/* Page windows on phones: floating too (not a full-screen sheet) */
@media (max-width: 700px) {
  .peek-win { left: 10px; right: auto; top: 12vh; bottom: auto; width: calc(100vw - 20px); height: 74vh; height: 74dvh; border-radius: 18px; transform: none; }
  .peek-head { cursor: grab; touch-action: none; }
  .peek-grip { display: none !important; }
}
/* Tent banner: bold, italic, letter and line spacing */
.sp-banner .sp-bn-verse { font-weight: var(--bn-weight, 500) !important; font-style: var(--bn-style, normal) !important; letter-spacing: var(--bn-ls, 0) !important; line-height: var(--bn-lh, 1.3) !important; }
.sp-bn-fmt { display: flex; gap: .4rem; margin-top: .2rem; }
.sp-bn-fmt .chip-btn b, .sp-bn-fmt .chip-btn i { font-family: Georgia, serif; font-size: 1.05rem; margin-right: .15rem; }
.sp-bn-edit select[data-bn-ver] { width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); padding: .3rem .5rem; background: var(--white); color: var(--ink); font: inherit; }
/* Secret Place: the daily reminder is one slim row until you tap it */
.jr-card.is-folded { padding: .55rem 1rem !important; }
.jr-card h3[role="button"] { display: flex; align-items: center; gap: .45rem; margin: 0; cursor: pointer; font-size: 1rem; }
.jr-card .jr-sum { font-weight: 600; color: var(--muted); font-size: .9rem; }
.jr-card .jr-chev { margin-left: auto; font-size: 1.3rem; color: var(--muted); transition: transform .2s; }
.jr-card:not(.is-folded) .jr-chev { transform: rotate(90deg); }
.jr-card:not(.is-folded) h3[role="button"] { margin-bottom: .6rem; }
.jr-card.is-folded [data-journal-setup] { display: none; }
/* ---- Secret Place, Round 48: the candle lamp, candlelight over the whole page, and an opening animation ---- */
body:has([data-me-app]) .me-hero > div:first-child::before { display: none !important; }
.sp-lamp { position: relative; display: block; width: 64px; height: 92px; margin: 0 auto .2rem; }
.sp-lamp i { position: absolute; left: 50%; transform: translateX(-50%); display: block; }
.sp-halo { top: -30px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 100, .45) 0%, rgba(255, 170, 70, .16) 38%, transparent 68%); animation: spHalo 3.4s ease-in-out infinite; }
.sp-flame { top: 4px; width: 18px; height: 32px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 72%, #fffbe6 0%, #ffe08a 32%, #ffab3d 68%, rgba(255,120,40,.0) 72%); filter: drop-shadow(0 0 10px rgba(255, 190, 80, .9)); transform-origin: 50% 90%; animation: spFlicker 2.6s ease-in-out infinite, spIgnite 1.4s ease-out both; }
.sp-wick { top: 33px; width: 2px; height: 7px; background: #3a2a1a; border-radius: 1px; }
.sp-candle { top: 39px; width: 26px; height: 40px; border-radius: 6px 6px 3px 3px; background: linear-gradient(90deg, #f3e7d0, #fff8ea 45%, #e9dbc0); box-shadow: inset 0 3px 0 rgba(255,255,255,.7), 0 0 18px rgba(255, 200, 110, .35); }
.sp-candle::before { content: ''; position: absolute; top: -2px; left: 4px; width: 7px; height: 12px; border-radius: 0 0 6px 6px; background: #fff8ea; }
.sp-dish { top: 77px; width: 58px; height: 12px; border-radius: 50%; background: linear-gradient(180deg, #e8c46a, #9c7424); box-shadow: 0 6px 14px rgba(0,0,0,.35); }
@keyframes spFlicker { 0%, 100% { transform: translateX(-50%) scale(1) rotate(-1.5deg); } 30% { transform: translateX(-50%) scale(1.05, .95) rotate(1.5deg); } 60% { transform: translateX(-50%) scale(.97, 1.05) rotate(-.5deg); } }
@keyframes spIgnite { from { opacity: 0; transform: translateX(-50%) scale(.2); } }
@keyframes spHalo { 0%, 100% { opacity: .85; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }
/* the "‹ Back" button sits in the corner, never over the lamp */
body:has([data-me-app]) .page-hero .container { position: relative; }
body:has([data-me-app]) .page-hero .page-back { position: absolute; left: 1rem; top: 0; margin: 0; }
/* candlelight over the whole page; the content sits on soft light panels */
body:has([data-me-app]) { background: radial-gradient(70% 55% at 50% 22%, rgba(255, 190, 92, .26), transparent 70%), linear-gradient(180deg, #221a3d 0%, #2f2452 35%, #4a3768 70%, #5e4572 100%) fixed !important; }
body:has([data-me-app]) .page-hero { background: transparent !important; }
body:has([data-me-app]) .page-hero::before, body:has([data-me-app]) .page-hero::after { display: none !important; }
body:has([data-me-app]) main > .section { background: transparent !important; }
body:has([data-me-app]) .me-panel:not([hidden]) { background: rgba(255, 253, 249, .96); border-radius: 30px; padding: clamp(1.1rem, 3vw, 2rem); box-shadow: 0 30px 70px -40px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.4); }
body:has([data-me-app]) .me-tabs { margin-top: -1.2rem; }
body:has([data-me-app]) .my-serving:not([hidden]), body:has([data-me-app]) .me-gate { background: rgba(255, 253, 249, .96); border-radius: 22px; }
:root[data-theme="dark"] body:has([data-me-app]) .me-panel:not([hidden]) { background: rgba(28, 24, 44, .94); }
/* "Your Secret Place with God": the words rise softly, then "Secret Place" shines like candlelight */
#me-title .mt-w { display: inline-block; opacity: 0; transform: translateY(18px); filter: blur(6px); animation: mtRise .9s cubic-bezier(.2,.7,.2,1) forwards; }
#me-title .mt-w:nth-child(1) { animation-delay: .5s; }
#me-title strong .mt-w:nth-child(1) { animation-delay: .75s; }
#me-title strong .mt-w:nth-child(2) { animation-delay: .95s; }
#me-title > .mt-w:nth-last-child(2) { animation-delay: 1.15s; }
#me-title > .mt-w:last-child { animation-delay: 1.3s; }
@keyframes mtRise { to { opacity: 1; transform: none; filter: none; } }
body:has([data-me-app]) #me-title strong .mt-w { background: linear-gradient(100deg, #ffd98a 0%, #ffd98a 40%, #fff6dc 50%, #ffd98a 60%, #ffd98a 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: mtRise .9s cubic-bezier(.2,.7,.2,1) forwards, mtShine 3.2s ease-in-out 2s infinite; }
@keyframes mtShine { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }
body:has([data-me-app]) .me-verse { opacity: 0; animation: mtFade 1.2s ease 1.7s forwards; }
body:has([data-me-app]) .me-hero .eyebrow { opacity: 0; animation: mtFade 1s ease .3s forwards; }
@keyframes mtFade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #me-title .mt-w, body:has([data-me-app]) .me-verse, body:has([data-me-app]) .me-hero .eyebrow { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; } .sp-flame, .sp-halo { animation: none !important; } }
/* Name menu, Round 48: glossy filled icons */
.account-menu a.acct-tile .acct-tile-ic { width: 50px; height: 50px; border-radius: 16px; position: relative; overflow: hidden; box-shadow: 0 8px 18px -8px var(--ic-shadow, rgba(0,0,0,.35)), inset 0 1px 0 rgba(255,255,255,.45); }
.account-menu a.acct-tile .acct-tile-ic::after { content: ''; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255,255,255,.28), transparent); pointer-events: none; }
.account-menu a.acct-tile .acct-tile-ic svg { width: 30px !important; height: 30px !important; position: relative; z-index: 1; }
.account-menu .tone-gold .acct-tile-ic { background: linear-gradient(145deg, #FFB547, #F2732E); --ic-shadow: rgba(242,115,46,.6); }
.account-menu .tone-blue .acct-tile-ic { background: linear-gradient(145deg, #5B9BFF, #3B5BDB); --ic-shadow: rgba(59,91,219,.6); }
.account-menu .tone-pink .acct-tile-ic { background: linear-gradient(145deg, #FF8FB3, #E0457B); --ic-shadow: rgba(224,69,123,.6); }
.account-menu .tone-purple .acct-tile-ic { background: radial-gradient(circle at 50% 35%, #6b4b9a, #2e2150 75%); --ic-shadow: rgba(46,33,80,.7); }
.account-menu .tone-green .acct-tile-ic { background: linear-gradient(145deg, #4ED6A0, #159A6E); --ic-shadow: rgba(21,154,110,.6); }
.account-menu .tone-navy .acct-tile-ic { background: linear-gradient(145deg, #6C8CD5, #2C3E7A); --ic-shadow: rgba(44,62,122,.6); }
.account-menu a.acct-tile:hover .acct-tile-ic { transform: translateY(-2px) scale(1.04); transition: transform .2s; }
/* the little candle (Secret Place) */
.mini-lamp { position: relative; z-index: 1; display: block; width: 30px; height: 34px; }
.mini-lamp i { position: absolute; left: 50%; transform: translateX(-50%); display: block; }
.ml-flame { top: 1px; width: 9px; height: 14px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 72%, #fffbe6 0%, #ffe08a 35%, #ffab3d 70%, transparent 73%); filter: drop-shadow(0 0 5px rgba(255,190,80,.95)); animation: spFlicker 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.ml-candle { top: 14px; width: 11px; height: 14px; border-radius: 3px 3px 2px 2px; background: linear-gradient(90deg, #f3e7d0, #fff8ea 45%, #e9dbc0); }
.ml-dish { top: 27px; width: 24px; height: 6px; border-radius: 50%; background: linear-gradient(180deg, #e8c46a, #9c7424); }
/* My Tent's Secret Place card uses the candle too */
.tent-secret-ic .mini-lamp { margin: auto; }
.acct-today-ic svg { width: 30px; height: 30px; }
.tent-yt { position: fixed; width: 2px; height: 2px; left: -10px; bottom: 0; opacity: 0; pointer-events: none; border: 0; }
.td-find { display: flex; gap: .4rem; margin-top: .5rem; }
.td-find input { flex: 1; min-width: 0; min-height: 38px; border-radius: 999px; border: 1px solid var(--line); padding: .3rem .8rem; font: inherit; background: var(--white); color: var(--ink); }
.td-hits { display: grid; gap: .35rem; max-height: 260px; overflow: auto; margin-top: .4rem; padding-right: .2rem; }
.td-hit { display: flex; align-items: center; gap: .55rem; padding: .35rem; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.td-hit img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface-2); }
.td-hit span { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.td-hit strong { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-hit small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* My Tent: a picture or a video behind the whole Tent */
html[data-tent-bg="photo"] body:has([data-space]) { background: linear-gradient(rgba(10,14,30,.25), rgba(10,14,30,.45)), var(--tent-bg-img) center / cover fixed no-repeat !important; }
html[data-tent-bg="video"]:has([data-space]) { background: #0b1020 !important; }
html[data-tent-bg="video"] body:has([data-space]) { background: transparent !important; }
.tent-bgvid { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: -1; pointer-events: none; filter: brightness(.75); }
html[data-tent-bg] body:has([data-space]) main { position: relative; }
html[data-tent-bg] [data-space] .card { box-shadow: 0 20px 50px -25px rgba(0,0,0,.6); }
.td-bgrow { margin-top: .2rem; }

/* ===================== Offline ministry mode ===================== */
.off-card { display: grid; gap: 1rem; }
.off-h { display: flex; gap: .9rem; align-items: flex-start; }
.off-h h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.off-h p { margin: 0; color: var(--muted); }
.off-ic { font-size: 2rem; line-height: 1; }
.off-steps { list-style: none; counter-reset: off; margin: 0; padding: 0; display: grid; gap: .8rem; }
.off-steps > li { counter-increment: off; position: relative; padding: .9rem 1rem .9rem 3.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.off-steps > li::before { content: counter(off); position: absolute; left: 1rem; top: .9rem; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; }
.off-steps > li.is-done::before { content: '✓'; background: #1e8a4c; }
.off-steps .btn-row { margin-top: .5rem; align-items: center; }
.off-progress { margin-top: .6rem; }
.off-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.off-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #f28c28); transition: width .3s; }
.off-progress p { margin: .35rem 0 0; font-size: .85rem; color: var(--muted); }
.off-state { padding: .8rem 1rem; border-radius: 14px; background: color-mix(in srgb, #1e8a4c 10%, var(--white)); border: 1px solid color-mix(in srgb, #1e8a4c 40%, transparent); }
.off-note { margin: 0; }
.off-offer { position: fixed; z-index: 3000; left: 50%; transform: translateX(-50%); bottom: 16px; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px); padding: .7rem 1rem; border-radius: 16px; background: #1b2440; color: #fff; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); }
.off-bar-pill { position: fixed; z-index: 1150; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; background: #1e8a4c; color: #fff !important; font-weight: 700; font-size: .8rem; text-decoration: none; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
html.is-offline-mode .bible-fab { bottom: 64px !important; }
@media (max-width: 600px) { .off-bar-pill span { display: none; } }
html.present-screen .off-bar-pill, html.is-embed .off-bar-pill, html.is-peek .off-bar-pill { display: none !important; }

/* Round 50: "Choose your church" and the edit pencil sit in the orange top bar, beside the countdown */
.service-bar:has(.is-in-bar) { position: relative; z-index: 105; }
.service-bar .church-picker.is-in-bar { margin: 0; flex: none; order: -1; text-align: left; }
.service-bar .church-picker.is-in-bar .church-picker-btn {
  min-height: 32px; max-width: 14rem; padding: 0.25rem 0.75rem; gap: 0.35rem;
  border: 1.5px solid color-mix(in srgb, var(--navy-deep) 35%, transparent);
  background: color-mix(in srgb, var(--navy-deep) 8%, transparent); color: var(--navy-deep);
  font: 700 var(--fs-xs)/1.2 var(--font-body);
}
.service-bar .church-picker.is-in-bar .church-picker-btn:hover { background: var(--navy-deep); color: var(--gold); border-color: var(--navy-deep); }
.service-bar .church-picker.is-in-bar .church-picker-btn .pin { color: currentColor; display: inline-block; }
.service-bar .church-picker.is-in-bar .church-picker-label { display: inline; max-width: none; }
.service-bar .church-picker.is-in-bar .church-menu { left: 0; right: auto; color: var(--ink, inherit); }
.service-bar .page-edit-fab.is-in-bar {
  position: static; transform: none; inset: auto; width: 32px; height: 32px; min-height: 0; padding: 0;
  display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  border: 1.5px solid var(--navy-deep); background: var(--navy-deep); color: var(--gold); box-shadow: none;
}
.service-bar .page-edit-fab.is-in-bar[hidden] { display: none; }
.service-bar .page-edit-fab.is-in-bar:hover { background: var(--white); color: var(--navy-deep); }
.service-bar .page-edit-fab.is-in-bar svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .service-bar .church-picker.is-in-bar .church-picker-btn { max-width: 11rem; }
}

/* Round 51: live video recording card and share buttons */
.lead-saved { display: grid; gap: .45rem; margin-top: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2, transparent); }
.lead-saved p { margin: 0; overflow-wrap: anywhere; }
.lead-up { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-weight: 600; }
.lead-up-bar { flex: 1 1 160px; height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--navy) 15%, transparent); overflow: hidden; }
.lead-up-bar > span { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.lead-up-ok a { font-weight: 700; }
.sanct-share { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.sanct-fb { display: inline-flex; align-items: center; gap: .4rem; background: #1877F2; color: #fff; border: 0; }
.sanct-fb:hover { background: #0f63d1; color: #fff; }
.sanct-fb svg { width: 16px; height: 16px; }

/* Round 52: the full name under "CFFCC International" always shows (two short lines), on computers and phones */
.site-header .brand-sub {
  display: block !important; white-space: normal !important; max-width: 12.5rem !important;
  font-size: .56rem !important; line-height: 1.2 !important; letter-spacing: .03em; margin-top: .12rem;
  overflow: hidden; text-wrap: balance;
}
.site-header.is-tighter .brand-sub, .site-header.is-tightest .brand-sub, .site-header.is-tightest2 .brand-sub { display: block !important; max-width: 10.5rem !important; font-size: .52rem !important; }
@media (max-width: 1199px) { .site-header .brand-sub { max-width: 13rem !important; font-size: .58rem !important; } }
@media (max-width: 700px) {
  .site-header .brand-sub { display: block !important; max-width: 9.6rem !important; font-size: .5rem !important; line-height: 1.15 !important; }
}
@media (max-width: 420px) { .site-header .brand-sub { max-width: 7.6rem !important; font-size: .46rem !important; } }

/* Round 52: sermon "Type it in" (no presentation) */
.w-modecards:has(> :nth-child(4)) { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.w-build { display: grid; gap: .55rem; margin-top: .7rem; padding: .8rem; border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--gold) 6%, transparent); }
.w-build .field { margin: 0; }
.w-build .field span small { font-weight: 500; opacity: .75; }
.w-build-row { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.w-build textarea { resize: vertical; }
.w-addone { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .55rem; }
.w-addone .w-lab { margin: 0 .2rem 0 0; }
.w-addone select { flex: 0 0 auto; min-height: 36px; }
.w-addone input[name="t"] { flex: 1 1 14rem; min-width: 0; min-height: 36px; }
.w-addone .w-addone-by { flex: 0 1 11rem; min-width: 0; min-height: 36px; }
.w-addone:not(:has(select option[value="quote"]:checked)) .w-addone-by { display: none; }

/* Round 52: also live on Facebook (like OBS) */
.lead-fbcard { margin: .8rem 0; border: 1px solid color-mix(in srgb, #1877F2 35%, var(--line)); border-radius: 12px; background: color-mix(in srgb, #1877F2 5%, transparent); }
.lead-fbcard > summary { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; cursor: pointer; font-weight: 700; list-style: none; }
.lead-fbcard > summary::-webkit-details-marker { display: none; }
.lead-fbcard > summary::after { content: '▾'; margin-left: auto; opacity: .6; transition: transform .2s; }
.lead-fbcard[open] > summary::after { transform: rotate(180deg); }
.lead-fbcard > :not(summary) { margin: 0 .9rem .7rem; }
.lead-fb-ic { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #1877F2; color: #fff; font: 800 .95rem/1 Arial, sans-serif; }
.lead-fb-on { padding: .05rem .45rem; border-radius: 99px; background: #1877F2; color: #fff; font-size: .7rem; }
.lead-fb-fields { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.lead-fb-fields .field { margin: 0; }
.lead-fbcard select { min-height: 32px; margin-left: .2rem; }
.lead-fb-ways { display: grid; gap: .7rem; padding-left: 1.2rem; }
.lead-fb-ways li > .btn, .lead-fb-ways li > .lead-url { display: block; width: fit-content; margin-top: .4rem; }
.lead-fb-ways .lead-url { overflow-wrap: anywhere; }
.lead-fbstat { margin: .5rem 0; padding: .45rem .75rem; border-radius: 10px; font-weight: 700; }
.lead-fbstat.is-on { background: #1877F2; color: #fff; }
.lead-fbstat.is-connecting { background: color-mix(in srgb, #1877F2 12%, transparent); color: var(--ink, inherit); }
.lead-fbstat.is-error { background: color-mix(in srgb, #d33 14%, transparent); color: #a11; }

/* ===== Round 52: Messages, a warmer, livelier chat ===== */
.chat-shell { border: 0; border-radius: 22px; box-shadow: 0 24px 60px -28px rgba(40, 20, 80, .45), 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent); }
/* the list of chats */
.chat-list { background: linear-gradient(180deg, color-mix(in srgb, var(--heading) 6%, var(--white)), var(--white) 40%); }
.chat-list-head h2, .chat-list-head h1 { background: linear-gradient(90deg, var(--heading), color-mix(in srgb, var(--heading) 55%, var(--gold))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chat-list-head .icon-btn { transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.chat-list-head .icon-btn:hover { transform: translateY(-2px) rotate(-6deg); box-shadow: 0 8px 18px -10px var(--heading); }
.chat-item { position: relative; transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.chat-item:hover { background: color-mix(in srgb, var(--heading) 7%, transparent); transform: translateX(3px); }
.chat-item.is-open { background: linear-gradient(90deg, color-mix(in srgb, var(--heading) 14%, transparent), color-mix(in srgb, var(--gold) 10%, transparent)); box-shadow: inset 3px 0 0 var(--gold); }
.chat-item.is-unread .chat-item-main strong, .chat-item.is-unread .chat-item-main b { color: var(--heading); }
.chat-unread { background: linear-gradient(135deg, #ff5a6a, #f4a340) !important; color: #fff !important; box-shadow: 0 4px 10px -4px #ff5a6a; animation: chatPop .35s cubic-bezier(.3,1.6,.5,1); }
/* avatars: a soft colored ring */
.chat-avatar { position: relative; box-shadow: 0 0 0 2px var(--white), 0 0 0 4px color-mix(in srgb, var(--gold) 70%, var(--heading)); }
.chat-item.is-open .chat-avatar { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--gold), 0 6px 16px -6px var(--heading); }
/* the conversation header: frosted glass */
.chat-thread-head { position: relative; z-index: 2; background: color-mix(in srgb, var(--white) 82%, transparent); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); box-shadow: 0 6px 18px -14px rgba(40, 20, 80, .5); }
.chat-thread-head .icon-btn { border-radius: 50%; transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.chat-thread-head .icon-btn:hover { background: color-mix(in srgb, var(--heading) 10%, transparent); color: var(--heading); transform: scale(1.1); }
/* the wallpaper: soft color clouds and tiny crosses */
.chat-msgs, .chat-thread .chat-msgs {
  background-color: color-mix(in srgb, var(--chat-me, var(--heading)) 9%, var(--white));
  background-image:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--gold) 16%, transparent) 0, transparent 38%),
    radial-gradient(circle at 88% 78%, color-mix(in srgb, var(--heading) 14%, transparent) 0, transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 22v12M22 28h12' stroke='%23704c9c' stroke-opacity='.055' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='6' cy='8' r='1.4' fill='%23e8a040' fill-opacity='.18'/%3E%3C/svg%3E");
  background-attachment: local; gap: .5rem; scroll-behavior: smooth;
}
.chat-day { position: sticky; top: .3rem; z-index: 1; padding: .3rem .9rem !important; border-radius: 99px; background: color-mix(in srgb, var(--white) 80%, transparent) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 14px -8px rgba(40, 20, 80, .45); font-size: .78rem !important; letter-spacing: .02em; }
/* the bubbles */
.chat-msg { position: relative; padding: .6rem .95rem; border-radius: 20px 20px 20px 6px; box-shadow: 0 2px 6px -2px rgba(40, 20, 80, .18), 0 1px 0 rgba(255,255,255,.6) inset; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.chat-msg:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(40, 20, 80, .4); }
.chat-msg.is-me {
  border-radius: 20px 20px 6px 20px;
  background: linear-gradient(135deg, var(--chat-me, #5b2a86) 0%, color-mix(in srgb, var(--chat-me, #5b2a86) 78%, #c0508a) 100%);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--chat-me, #5b2a86) 80%, transparent);
}
.chat-msg::after { content: ''; position: absolute; bottom: 0; left: -6px; width: 12px; height: 14px; background: inherit; clip-path: polygon(100% 0, 100% 100%, 0 100%); border-bottom-left-radius: 4px; }
.chat-msg.is-me::after { left: auto; right: -6px; clip-path: polygon(0 0, 100% 100%, 0 100%); background: color-mix(in srgb, var(--chat-me, #5b2a86) 78%, #c0508a); }
.chat-msg.is-pic::after, .chat-msg.is-unsent::after { display: none; }
.chat-msg-wrap + .chat-msg-wrap:not(.is-me) .chat-msg, .chat-msg-wrap.is-me + .chat-msg-wrap.is-me .chat-msg { margin-top: -.15rem; }
.chat-msg time { font-size: .68rem; letter-spacing: .02em; }
.chat-msgs > .chat-msg-wrap:last-of-type .chat-msg { animation: chatIn .38s cubic-bezier(.2,1.3,.4,1); }
.chat-msgs > .chat-msg-wrap.is-me:last-of-type .chat-msg { transform-origin: 100% 100%; }
.chat-msgs > .chat-msg-wrap:not(.is-me):last-of-type .chat-msg { transform-origin: 0 100%; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes chatPop { from { transform: scale(.4); } to { transform: scale(1); } }
/* the writing bar: a floating pill */
.chat-compose { position: relative; z-index: 2; margin: 0 .6rem .6rem; padding: .45rem .5rem; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent) !important; border-radius: 28px; background: var(--white); box-shadow: 0 10px 28px -14px rgba(40, 20, 80, .45); }
.chat-compose textarea, .chat-compose input[type="text"] { border-color: transparent !important; background: color-mix(in srgb, var(--heading) 5%, var(--white)) !important; border-radius: 22px !important; transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.chat-compose textarea:focus, .chat-compose input[type="text"]:focus { background: var(--white) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 60%, transparent) !important; }
.chat-compose .chat-attach, .chat-compose .icon-btn { transition: transform .2s var(--ease), color .2s var(--ease); }
.chat-compose .chat-attach:hover, .chat-compose .icon-btn:hover { transform: scale(1.12) rotate(-8deg); color: var(--heading); }
.chat-send { border: 0 !important; background: linear-gradient(135deg, #f4a340, #e8743b 60%, #d9466b) !important; color: #fff !important; box-shadow: 0 8px 18px -8px #e8743b; transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s var(--ease) !important; }
.chat-send:hover:not(:disabled) { transform: scale(1.08) rotate(-12deg); box-shadow: 0 12px 24px -8px #d9466b; }
.chat-send:active:not(:disabled) { transform: scale(.94); }
.chat-send svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
/* empty conversation */
.chat-placeholder { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 55%); }
@media (prefers-reduced-motion: reduce) {
  .chat-msgs > .chat-msg-wrap:last-of-type .chat-msg, .chat-unread { animation: none; }
  .chat-item:hover, .chat-msg:hover, .chat-send:hover:not(:disabled) { transform: none; }
}
@media (max-width: 600px) {
  .chat-compose { margin: 0 .35rem .35rem; gap: .3rem; padding: .35rem; }
  .chat-compose .chat-attach, .chat-compose > .icon-btn, .chat-compose > label.icon-btn { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; }
  .chat-compose .chat-attach svg, .chat-compose > .icon-btn svg { width: 18px; height: 18px; }
}
.chat-compose textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Round 53: floating chats, with faces and a warmer look ===== */
.chat-dock .chat-pop {
  padding: 0; gap: 0; overflow: hidden; border: 0; border-radius: 22px;
  background: var(--white);
  box-shadow: 0 30px 70px -28px rgba(40, 20, 80, .55), 0 0 0 1px color-mix(in srgb, var(--chat-me, var(--heading)) 22%, transparent);
  animation: popRise .35s cubic-bezier(.2,1.2,.4,1);
}
@keyframes popRise { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
/* header: avatar + name on top, the buttons in a tidy second row */
.chat-dock .chat-pop > header {
  display: grid !important; grid-template-columns: 46px minmax(0, 1fr) auto auto auto; grid-template-rows: auto auto; column-gap: .45rem; row-gap: .3rem; align-items: center;
  margin: 0 !important; padding: .7rem .7rem .6rem !important; border-radius: 0 !important; color: #fff; border: 0 !important; box-shadow: none !important;
  background:
    radial-gradient(circle at 85% -20%, rgba(255,255,255,.28), transparent 55%),
    linear-gradient(135deg, var(--chat-me, #4b2a7a), color-mix(in srgb, var(--chat-me, #4b2a7a) 70%, #c0508a));
}
.chat-dock .chat-pop > header > .chat-avatar { grid-row: 1 / span 2; grid-column: 1; width: 46px; height: 46px; box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 6px 14px -6px rgba(0,0,0,.5); }
.chat-dock .chat-pop > header > div { grid-row: 1; grid-column: 2 / span 2; }
.chat-dock .chat-pop > header > [data-pop-min] { grid-row: 1; grid-column: 4; }
.chat-dock .chat-pop > header > [data-pop-close] { grid-row: 1; grid-column: 5; }
.chat-dock .chat-pop > header > .chat-pop-calls { grid-row: 2; grid-column: 2; display: flex; gap: .25rem; justify-self: start; }
.chat-dock .chat-pop > header > [data-pop-colors] { grid-row: 2; grid-column: 4; }
.chat-dock .chat-pop > header > [data-pop-sound] { grid-row: 2; grid-column: 5; }
.chat-dock .chat-pop > header strong { color: #fff !important; font-size: 1rem; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.chat-dock .chat-pop > header .pres-text { color: rgba(255,255,255,.85) !important; }
.chat-dock .chat-pop > header .chat-pop-links { display: flex; flex-wrap: wrap; gap: .1rem .6rem; }
.chat-dock .chat-pop > header .chat-pop-links a { color: #ffe2a8 !important; font-size: .72rem; }
.chat-dock .chat-pop > header .chat-pop-x, .chat-dock .chat-pop > header .chat-pop-calls > * {
  width: 30px; height: 30px; min-height: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.16) !important; color: #fff !important;
  display: inline-grid; place-items: center; transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.chat-dock .chat-pop > header .chat-pop-x:hover, .chat-dock .chat-pop > header .chat-pop-calls > *:hover { background: rgba(255,255,255,.3) !important; transform: scale(1.08); }
.chat-dock .chat-pop > header .chat-pop-x svg, .chat-dock .chat-pop > header .chat-pop-calls svg { width: 15px; height: 15px; }
/* the conversation: soft wallpaper */
.chat-dock .chat-pop .chat-pop-thread {
  padding: .75rem .7rem; gap: .35rem;
  background-color: color-mix(in srgb, var(--chat-me, var(--heading)) 8%, var(--white));
  background-image: radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 40%), radial-gradient(circle at 90% 90%, color-mix(in srgb, var(--chat-me, var(--heading)) 14%, transparent), transparent 45%);
}
/* faces next to the other person's messages */
.chat-pop-b.has-face { display: grid !important; grid-template-columns: 26px minmax(0, 1fr); column-gap: .4rem; align-items: end; justify-items: start; }
.chat-pop-b.has-face > :not(.chat-pop-face) { grid-column: 2; }
.chat-pop-b.has-face > .chat-pop-face { grid-column: 1; grid-row: 1; align-self: end; }
.chat-pop-face { flex: none; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--heading) 20%, var(--white)); box-shadow: 0 2px 6px -2px rgba(0,0,0,.3); }
.chat-pop-face img, .chat-pop-face svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-pop-b.has-face:has(+ .chat-pop-b.has-face) > .chat-pop-face { visibility: hidden; }
.chat-dock .chat-pop > header .chat-pop-calls svg, .chat-dock .chat-pop > header .chat-pop-calls * { color: #fff; stroke: currentColor; }
.chat-dock .chat-avatar.has-pic, .chat-head-av.has-pic { overflow: hidden; padding: 0; }
.chat-dock .chat-avatar img, .chat-dock .chat-avatar svg, .chat-head-av img, .chat-head-av svg, .nm-panel .chat-avatar img, .nm-panel .chat-avatar svg { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
/* bubbles */
.chat-dock .chat-pop-b p { background: var(--white) !important; color: var(--ink) !important; border-radius: 18px 18px 18px 6px; box-shadow: 0 2px 6px -3px rgba(40,20,80,.3); }
.chat-dock .chat-pop-b.is-me p { color: #fff !important; border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, var(--chat-me, #5b2a86), color-mix(in srgb, var(--chat-me, #5b2a86) 75%, #c0508a)) !important; box-shadow: 0 6px 14px -8px var(--chat-me, #5b2a86); }
.chat-dock .chat-pop-b:last-child p { animation: chatIn .35s cubic-bezier(.2,1.3,.4,1); }
/* the reply bar */
.chat-dock .chat-pop .chat-pop-reply { margin: 0 !important; padding: .5rem .55rem .6rem !important; border-radius: 0 !important; background: var(--white); border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); gap: .35rem; }
.chat-dock .chat-pop .chat-pop-reply input { border-radius: 22px !important; border-color: transparent !important; background: color-mix(in srgb, var(--heading) 6%, var(--white)) !important; }
.chat-dock .chat-pop .chat-pop-reply input:focus { background: var(--white) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 60%, transparent) !important; }
.chat-dock .chat-pop .chat-pop-reply button[type="submit"] { border: 0 !important; background: linear-gradient(135deg, #f4a340, #e8743b 60%, #d9466b) !important; color: #fff !important; box-shadow: 0 8px 16px -8px #e8743b; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.chat-dock .chat-pop .chat-pop-reply button[type="submit"]:hover { transform: scale(1.08) rotate(-12deg); }
/* minimized chats: round photos with a colored ring */
.chat-head-av { width: 34px !important; height: 34px !important; border-radius: 50% !important; overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 0 0 4px color-mix(in srgb, var(--chat-me, var(--gold)) 85%, var(--gold)); }
.chat-head-main { transition: transform .2s var(--ease); }
.chat-head-main:hover { transform: translateY(-2px); }
/* the chat list panel */
.nm-panel .chat-avatar { overflow: hidden; box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px color-mix(in srgb, var(--gold) 70%, var(--heading)); }
.nm-panel .nm-person { transition: background-color .2s var(--ease), transform .2s var(--ease); border-radius: 14px; }
.nm-panel .nm-person:hover { transform: translateX(3px); background: color-mix(in srgb, var(--heading) 7%, transparent); }
@media (prefers-reduced-motion: reduce) { .chat-dock .chat-pop, .chat-dock .chat-pop-b:last-child p { animation: none; } }

/* Round 53: "Powered by Netlify" is gone, so the floating buttons and windows use the bottom of the screen */
.newmsg-fab, .messenger-fab { bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
.to-top, .is-member .to-top { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
.chat-dock, .is-member .chat-dock { bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
.chat-dock .chat-pop, .is-member .chat-dock .chat-pop { bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; top: auto !important; }
.chat-dock .chat-heads, .is-member .chat-dock .chat-heads { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; max-height: calc(100dvh - 10rem); }
.chat-dock:has(.chat-pop) .chat-heads { bottom: calc(16px + env(safe-area-inset-bottom, 0px) + min(500px, calc(100dvh - 7rem)) + 10px) !important; }
.chat-dock .chat-pop { z-index: 1310; }
.nm-panel { bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
.chat-dock .chat-pop, .nm-panel { height: min(500px, calc(100dvh - 7rem)) !important; }
.chat-picker { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
@media (max-width: 600px) {
  .chat-dock, .is-member .chat-dock { bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; }
  .chat-dock .chat-pop, .is-member .chat-dock .chat-pop { bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; }
  .chat-dock .chat-pop, .nm-panel { height: min(76dvh, 600px) !important; }
  .nm-panel { bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* Round 53: Secret Place profile, one tidy card (photo, role, name on posts, photo button) */
.me-profile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 1.1rem; row-gap: .45rem; align-items: center;
  width: fit-content; max-width: min(560px, 100%); margin: 1.4rem auto 0; padding: 1rem 1.3rem; text-align: left;
  border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.6); }
.me-profile:not(:has(.me-photo, .me-honor, .me-role:not([hidden]))) { display: none; }
.me-profile .me-photo { display: contents; }
.me-profile .me-photo-pic { grid-column: 1; grid-row: 1 / span 3; width: 88px; height: 88px; margin: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 6px color-mix(in srgb, var(--gold) 80%, transparent), 0 0 28px 4px rgba(244,163,64,.35); font-size: 2rem; }
.me-profile .me-photo-pic img { width: 100%; height: 100%; object-fit: cover; }
.me-profile .me-role { grid-column: 2; grid-row: 1; justify-self: start; margin: 0 !important; }
.me-profile .me-honor { grid-column: 2; grid-row: 2; margin: 0 !important; text-align: left; line-height: 1.45; }
.me-profile .me-photo-act { grid-column: 2; grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: 0; justify-content: flex-start; }
.me-profile .me-photo-act .btn { margin: 0; }
@media (max-width: 560px) {
  .me-profile { grid-template-columns: 1fr; justify-items: center; text-align: center; width: 100%; padding: 1.1rem 1rem; }
  .me-profile .me-photo-pic { grid-column: 1; grid-row: 1; }
  .me-profile .me-role { grid-column: 1; grid-row: 2; justify-self: center; }
  .me-profile .me-honor { grid-column: 1; grid-row: 3; text-align: center; }
  .me-profile .me-photo-act { grid-column: 1; grid-row: 4; justify-content: center; }
}

/* Round 54: the header logo is back to its earlier size (54px computers, 48px tablets, 44px phones) */
.site-header .brand-logo { width: 54px !important; }
.site-header.is-tight .brand-logo { width: 50px !important; }
.site-header.is-tightest .brand-logo, .site-header.is-tightest2 .brand-logo { width: 46px !important; }
@media (max-width: 1100px) { .site-header .brand-logo { width: 48px !important; } }
@media (max-width: 700px) { .site-header .brand-logo { width: 44px !important; } }
@media (max-width: 380px) { .site-header .brand-logo { width: 40px !important; } }
.nav-gicon svg { width: 19px !important; height: 19px !important; opacity: .9; }
/* the prayer and message windows: the second part of the title is lighter */
.pray-form h2 span { font-weight: 400; opacity: .85; }
.msgus-dialog .pray-done span[aria-hidden] { font-size: 2.4rem; }

/* Round 55: floating chat header, always readable (light and dark, with or without a chat color) */
.chat-dock .chat-pop > header, .chat-dock .chat-pop.has-color > header {
  margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: #fff !important;
  background:
    radial-gradient(circle at 85% -20%, rgba(255,255,255,.28), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--chat-me, #4b2a7a) 88%, #000), color-mix(in srgb, var(--chat-me, #4b2a7a) 70%, #c0508a)) !important;
}
.chat-dock .chat-pop > header strong, .chat-dock .chat-pop.has-color > header strong { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.chat-dock .chat-pop > header .pres-text, .chat-dock .chat-pop.has-color > header .pres-text { color: rgba(255,255,255,.88) !important; }
.chat-dock .chat-pop > header .pres-text.is-on { color: #b9f5c8 !important; }
.chat-dock .chat-pop > header a, .chat-dock .chat-pop.has-color > header a { color: #ffe3a6 !important; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.chat-dock .chat-pop > header .chat-pop-x, .chat-dock .chat-pop.has-color > header .chat-pop-x,
.chat-dock .chat-pop > header .chat-pop-calls > *, .chat-dock .chat-pop.has-color > header .chat-pop-calls > * { color: #fff !important; background: rgba(255,255,255,.2) !important; border: 0 !important; }
.chat-dock .chat-pop > header .chat-pop-x svg, .chat-dock .chat-pop > header .chat-pop-calls svg { color: #fff !important; stroke: #fff; }
.chat-dock .chat-pop.has-color > header .chat-avatar { background: color-mix(in srgb, var(--chat-me) 30%, #fff); }
/* quick replies above the reply bar */
.chat-pop-quick { display: flex; gap: .35rem; padding: .45rem .55rem .1rem; overflow-x: auto; scrollbar-width: none; background: var(--white); border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); flex: none; }
.chat-pop-quick::-webkit-scrollbar { display: none; }
.chat-pop-quick button { flex: none; padding: .3rem .7rem; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--chat-me, var(--heading)) 30%, transparent);
  background: color-mix(in srgb, var(--chat-me, var(--heading)) 8%, var(--white)); color: var(--ink); font: 600 .78rem/1.2 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .15s var(--ease); }
.chat-pop-quick button:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--chat-me, var(--heading)) 16%, var(--white)); }
.chat-pop-quick button:active { transform: scale(.94); }
.chat-dock .chat-pop .chat-pop-reply { border-top: 0 !important; }
/* floating chat: white phone and video icons on the colored header (instead of emoji) */
.chat-dock .chat-pop > header .call-btn { font-size: 0 !important; }
.chat-dock .chat-pop > header .call-btn::before { content: ''; width: 16px; height: 16px; background: #fff; display: block;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.chat-dock .chat-pop > header .call-btn[data-call-video]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 8-6 4 6 4V8z'/%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 8-6 4 6 4V8z'/%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3C/svg%3E"); }

/* Round 55: Messages, the conversation header in the chat's color (white text, readable in light and dark) */
.chat-thread .chat-thread-head {
  color: #fff; border-bottom: 0 !important; box-shadow: 0 8px 20px -14px rgba(0,0,0,.6) !important; backdrop-filter: none; -webkit-backdrop-filter: none;
  background:
    radial-gradient(circle at 88% -30%, rgba(255,255,255,.26), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--chat-me, #4b2a7a) 88%, #000), color-mix(in srgb, var(--chat-me, #4b2a7a) 70%, #c0508a)) !important;
}
.chat-thread .chat-thread-head strong { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.chat-thread .chat-thread-head small, .chat-thread .chat-thread-head small span { color: rgba(255,255,255,.85) !important; }
.chat-thread .chat-thread-head .pres-text.is-on { color: #b9f5c8 !important; }
.chat-thread .chat-thread-head .icon-btn, .chat-thread .chat-thread-head .chat-back { color: #fff !important; background: rgba(255,255,255,.16) !important; border: 0 !important; border-radius: 50%; }
.chat-thread .chat-thread-head .icon-btn:hover { background: rgba(255,255,255,.3) !important; }
.chat-thread .chat-thread-head .icon-btn svg { color: #fff; stroke: currentColor; }
.chat-thread .chat-thread-head .chat-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 6px 14px -6px rgba(0,0,0,.5) !important; }
.chat-thread .chat-thread-head .call-btn { font-size: 0 !important; display: inline-grid; place-items: center; }
.chat-thread .chat-thread-head .call-btn::before { content: ''; width: 18px; height: 18px; background: #fff; display: block;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.chat-thread .chat-thread-head .call-btn[data-call-video]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 8-6 4 6 4V8z'/%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 8-6 4 6 4V8z'/%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3C/svg%3E"); }
@media (max-width: 600px) {
  .chat-thread .chat-thread-head { gap: .35rem; padding: .55rem .5rem; }
  .chat-thread .chat-thread-head .icon-btn { width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; padding: 0 !important; }
  .chat-thread .chat-thread-head .chat-head-who { min-width: 0; flex: 1 1 auto; }
  .chat-thread .chat-thread-head .chat-avatar { width: 36px !important; height: 36px !important; }
}
