/* ═══════════════════════════════════════════════════════════
   UCCI — layer on top of the Site Immersif template.
   Two materials, never mixed on one element:
   · PAPER  — content. Template type, hairlines, 2px corners.
   · GLASS  — interaction. Liquid glass, rounded, refractive.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* brand, sampled from the UCCI seal */
  --navy: #051f44;          /* seal ring */
  --navy-2: #03142e;
  --royal: #1f43b0;         /* the handshake */
  --royal-2: #2c55d8;
  --sky: #6f9bff;
  --ice: #e6eeff;
  --parch: #ece3d6;         /* Bible pages */
  --ribbon: #ad2531;        /* the bookmark: urgent and live only */
  --live: #ff4d5e;

  /* template theme re-tinted: cool white paper, navy ink */
  --ink-rgb: 10, 26, 58;
  --bone: #f6f8fc;
  --ink: #0a1a3a;
  --ash: #5a6782;
  --white: #ffffff;
  --ink-faint: rgba(var(--ink-rgb), 0.16);

  --g-radius: 22px;
  --line: rgba(var(--ink-rgb), 0.12);
  --spring: cubic-bezier(0.2, 1.5, 0.4, 1);

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
[hidden] { display: none !important; }
body { background: var(--bone); }
::selection { background: var(--royal); color: #fff; }
:focus-visible { outline: 2px solid var(--royal-2); outline-offset: 3px; border-radius: 6px; }
.spot-intro { text-shadow: 0 2px 30px rgba(3, 20, 46, 0.55); }

/* ═══════════ LIQUID GLASS ═══════════
   Chromium: refraction map (ucci.js) + blur. Elsewhere: frosted blur.
   The rim highlights and the moving sheen are pure CSS. */
.lg {
  --lg-tint: rgba(255, 255, 255, 0.08);
  --lg-rim: rgba(255, 255, 255, 0.55);
  --lg-shadow: 0 18px 40px -18px rgba(3, 20, 46, 0.55);
  position: relative;
  isolation: isolate;
  background: var(--lg-tint);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  backdrop-filter: blur(16px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 0 var(--lg-rim),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.10),
    inset 1px 0 0 0 rgba(255, 255, 255, 0.16),
    inset -1px 0 0 0 rgba(255, 255, 255, 0.08),
    var(--lg-shadow);
}
.lg::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(90% 70% at var(--mx, 28%) var(--my, -12%), rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 40%);
  transition: background-position .4s;
}
.lg-light {
  --lg-tint: rgba(255, 255, 255, 0.60);
  --lg-rim: rgba(255, 255, 255, 0.95);
  --lg-shadow: 0 1px 2px rgba(3, 20, 46, 0.06), 0 16px 36px -16px rgba(3, 20, 46, 0.30);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 0 var(--lg-rim),
    inset 0 0 0 1px rgba(var(--ink-rgb), 0.07),
    var(--lg-shadow);
}
.lg-dark { color: #fff; }

/* glass button */
.gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px;
  padding: 0 22px;
  border: 0; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: -0.005em;
  color: inherit; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform .5s var(--spring), box-shadow .3s;
}
.gbtn:hover { transform: translateY(-1px); }
.gbtn:active { transform: scale(0.96); transition-duration: .12s; }
.gbtn[disabled] { opacity: .55; cursor: progress; transform: none; }
.gbtn-accent { --lg-tint: rgba(31, 67, 176, 0.90); --lg-rim: rgba(255, 255, 255, 0.45); color: #fff; }
.gbtn-accent:hover { --lg-tint: rgba(44, 85, 216, 0.95); }

.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; opacity: .35; flex: none;
}
body.is-live .live-dot { background: var(--live); opacity: 1; animation: livepulse 1.6s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, .6); } 100% { box-shadow: 0 0 0 9px rgba(255, 77, 94, 0); } }

.badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  background: var(--live); color: #fff;
  font: 500 11px/1 var(--mono);
}
.badge[hidden] { display: none; }

/* ═══════════ DOCK — glass, full navigation ═══════════ */
.dock.lg { position: fixed; background: var(--lg-tint); border-radius: 999px; padding: 6px 6px 6px 22px; top: calc(14px + env(safe-area-inset-top, 0px)); }
.dock-cta { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 16px; }
.dock-cta .live-dot { display: none; }
body.is-live .dock-cta .live-dot { display: inline-block; }
.dock-menu {
  display: none;
  border: 0; border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.06);
  color: var(--ink);
  padding: 11px 14px; margin-left: 6px;
  cursor: pointer;
}
.dock-link[aria-current="true"]::after { transform: scaleX(1); }

@media (max-width: 1180px) {
  .dock .dock-nav { display: none; }
  .dock-menu { display: inline-flex; }
}
@media (max-width: 900px) {
  .dock.lg { border-radius: 18px; padding: 7px 7px 7px 16px; top: calc(10px + env(safe-area-inset-top, 0px)); }
  .dock-cta { margin-left: auto; padding: 10px 12px; }
  .dock-menu { padding: 10px 12px; font-size: 11px; }
}

/* mobile menu sheet */
.menu { position: fixed; inset: 0; z-index: 250; }
.menu[hidden] { display: none; }
.menu-scrim { position: absolute; inset: 0; background: rgba(3, 20, 46, 0.28); animation: fade .3s; }
.menu-sheet {
  position: absolute; left: 10px; right: 10px;
  top: calc(76px + env(safe-area-inset-top, 0px));
  max-width: 460px; margin-left: auto;
  border-radius: 24px; padding: 10px;
  display: grid;
  animation: sheet .45s var(--ease-out);
  --lg-tint: rgba(255, 255, 255, 0.78);
}
.menu-sheet a { padding: 15px 16px; font-size: 21px; letter-spacing: -0.015em; border-radius: 14px; }
.menu-sheet a:hover { background: rgba(var(--ink-rgb), 0.05); }
.menu-sheet .gbtn { margin: 8px 6px 6px; }
@keyframes sheet { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }

/* ═══════════ HERO — calls to action ═══════════ */
.hero-ctas {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 36px; padding: 0 var(--gutter);
  pointer-events: auto;
  opacity: 0; transform: translateY(12px);
  transition: opacity 1s var(--ease-out) .9s, transform 1s var(--ease-out) .9s;
}
body.is-ready .hero-ctas { opacity: 1; transform: none; }
.hero-ctas .gbtn { min-height: 46px; padding: 0 20px; }
@media (max-width: 900px) {
  .hero-ctas { margin-top: 26px; gap: 8px; }
  .hero-ctas .gbtn { min-height: 44px; padding: 0 16px; font-size: 14px; }
}

/* ═══════════ PAPER SECTIONS (watch, events, visit) ═══════════ */
.u-sec { position: relative; z-index: 2; background: var(--bone); padding: 16vh var(--gutter); }
.u-head { margin-bottom: 7vh; }
.u-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.u-title { font-size: var(--t-heading); letter-spacing: -0.02em; line-height: 1.08; margin-top: 14px; max-width: 16em; }
.u-lede { color: var(--ash); max-width: 26em; line-height: 1.45; }
.u-link { display: inline-block; margin-top: 22px; color: var(--royal); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.empty-row { padding: 26px 0; color: var(--ash); border-top: 1px solid var(--line); }

/* watch & listen */
.u-watch { background: var(--white); }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.live-card {
  position: relative; overflow: hidden;
  min-height: min(640px, 76vh);
  border-radius: var(--radius);
  background: var(--navy-2);
  display: flex; align-items: flex-end;
  padding: clamp(14px, 2vw, 24px);
}
.live-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.live-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 20, 46, 0) 30%, rgba(3, 20, 46, .78)); pointer-events: none; }
.live-glass { --lg-tint: rgba(5, 31, 68, 0.42); z-index: 1; position: relative; width: min(100%, 460px); border-radius: var(--g-radius); padding: 26px 26px 24px; display: grid; gap: 10px; justify-items: start; }
.live-state { display: inline-flex; align-items: center; gap: 9px; opacity: .85; }
.live-title { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.02em; line-height: 1.08; }
.live-next { opacity: .78; margin-bottom: 8px; }

.sermon-list { border-bottom: 1px solid var(--line); }
.sermon {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px; align-items: baseline;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.sermon-title { font-size: clamp(21px, 1.9vw, 27px); letter-spacing: -0.015em; line-height: 1.15; }
.sermon-meta { margin-top: 6px; color: var(--ash); font-size: 16px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.sermon-meta .scr { color: var(--royal); }
.sermon-act { display: flex; gap: 4px; }
.sermon-act a, .sermon-act button, .lnk-mono {
  font: 400 12px/1 var(--mono); letter-spacing: .03em; text-transform: uppercase;
  background: none; border: 0; color: var(--ink); cursor: pointer;
  padding: 10px 8px; position: relative;
}
.sermon-act a::after, .sermon-act button::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-inout);
}
.sermon-act a:hover::after, .sermon-act button:hover::after { transform: scaleX(1); transform-origin: left; }

/* events */
.event-list { border-bottom: 1px solid var(--line); }
.event {
  display: grid; grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 24px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--line);
  transition: background .4s;
}
.ev-date { display: flex; align-items: baseline; gap: 10px; }
.ev-day { font-size: clamp(44px, 4.4vw, 66px); font-weight: 300; letter-spacing: -0.04em; line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-day.is-range { font-size: clamp(32px, 3vw, 46px); }
.ev-title { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.016em; line-height: 1.12; }
.ev-meta { color: var(--ash); margin-top: 6px; font-size: 16px; }
.ev-add { color: var(--royal); white-space: nowrap; padding: 10px 0; }
.event.event-feature { grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding: 36px 0 42px; }
.evf-poster { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 34px 60px -32px rgba(3, 20, 46, .55); }
.evf-title { font-size: clamp(32px, 3.6vw, 54px); letter-spacing: -0.024em; line-height: 1.02; margin: 14px 0 12px; }
.evf-theme { font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.012em; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.evf-theme .scr { color: var(--royal); font-size: .8em; }
.evf-facts { margin: 24px 0 28px; border-bottom: 1px solid var(--line); max-width: 640px; }
.evf-facts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.evf-facts dt { color: var(--ash); }
.evf-act { display: flex; flex-wrap: wrap; gap: 10px; }

/* visit */
.u-visit { background: var(--white); }
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "times place give";
  gap: clamp(28px, 3.6vw, 56px);
}
.v-times { grid-area: times; } .v-place { grid-area: place; } .v-give { grid-area: give; }
.v-phones { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -10px 0 22px; }
.v-phones a { color: var(--royal); font-variant-numeric: tabular-nums; border-bottom: 1px solid currentColor; padding: 4px 0; }
.leaders { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 3.6vw, 56px); margin-top: clamp(64px, 11vh, 130px); align-items: start; }
.leader { display: grid; gap: 22px; align-content: start; }
.leader--pastor { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); align-items: end; background: var(--bone); border-radius: var(--radius); padding: clamp(16px, 1.8vw, 26px); gap: clamp(22px, 3vw, 44px); }
.leader-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.leader-name { font-size: clamp(28px, 2.7vw, 42px); letter-spacing: -0.022em; line-height: 1.04; margin: 10px 0 4px; }
.leader--pastor .leader-copy { padding-bottom: 6px; }
.v-h { font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -0.016em; margin-bottom: 18px; }
.times { border-bottom: 1px solid var(--line); }
.times > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.times dt { font-weight: 500; }
.times dd { color: var(--ash); grid-column: 1; }
.times .t-time { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 22px; letter-spacing: -0.02em; }
.v-addr { color: var(--ash); line-height: 1.45; margin-bottom: 22px; max-width: 22em; }
.v-quote { font-size: clamp(21px, 1.8vw, 27px); line-height: 1.32; letter-spacing: -0.014em; margin: 14px 0 12px; }
.v-sign { color: var(--ash); margin-bottom: 26px; }
.v-give { display: grid; gap: 0; align-content: start; justify-items: start; }
.v-give .v-p { margin-bottom: 22px; }
.momo { display: grid; gap: 6px; width: 100%; padding: 16px 0 18px; margin-bottom: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.momo-num { font-size: clamp(28px, 2.6vw, 38px); font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.give-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.give-act .lnk { font-size: 16px; }
.v-p { color: var(--ash); line-height: 1.45; }

/* ═══════════ CONNECT — the one bold room ═══════════ */
.u-connect {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 18vh var(--gutter);
}
.cx-lights { position: absolute; inset: 0; pointer-events: none; }
.cx-lights i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .75; }
.cx-lights i:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(47, 86, 216, .95), rgba(47, 86, 216, 0) 68%); animation: drift1 26s ease-in-out infinite alternate; }
.cx-lights i:nth-child(2) { width: 40vw; height: 40vw; right: -8vw; top: 22%; background: radial-gradient(circle, rgba(111, 155, 255, .7), rgba(111, 155, 255, 0) 66%); animation: drift2 32s ease-in-out infinite alternate; }
.cx-lights i:nth-child(3) { width: 34vw; height: 34vw; left: 30%; bottom: -16vw; background: radial-gradient(circle, rgba(230, 238, 255, .45), rgba(230, 238, 255, 0) 64%); animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vw, 6vw) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-10vw, -4vw) scale(.92); } }
.cx-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "copy feed" "actions feed";
  gap: clamp(28px, 3.4vw, 52px) clamp(28px, 4vw, 64px);
  max-width: 1320px; margin: 0 auto;
}
.cx-copy { grid-area: copy; }
.cx-kicker { opacity: .7; }
.cx-title { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -0.025em; line-height: 1.04; margin: 18px 0 22px; max-width: 12em; }
.cx-lede { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; opacity: .8; max-width: 31em; }
.cx-status { margin-top: 22px; font-size: 15px; opacity: .72; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.cx-status b { font-weight: 500; opacity: 1; color: #fff; }
.cx-actions { grid-area: actions; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-self: end; }
.cx-tile {
  display: grid; align-content: start; gap: 8px;
  min-height: 168px; padding: 22px;
  border: 0; border-radius: var(--g-radius);
  text-align: left; color: #fff; font: inherit; cursor: pointer;
  transition: transform .6s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.cx-tile:hover { transform: translateY(-3px); }
.cx-tile:active { transform: scale(.97); transition-duration: .12s; }
.cx-ico { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.cx-t { font-size: 20px; font-weight: 500; letter-spacing: -0.012em; }
.cx-s { font-size: 14.5px; line-height: 1.4; opacity: .72; }
.cx-tile .badge { position: absolute; top: 18px; right: 18px; }
.cx-desk { --lg-tint: rgba(111, 155, 255, 0.20); }
.cx-feed { grid-area: feed; border-radius: 28px; padding: 26px 26px 12px; align-self: start; }
.cx-feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cx-feed-head .mono { opacity: .7; }
.cx-more { background: none; border: 0; color: #fff; font: inherit; font-size: 15px; cursor: pointer; border-bottom: 1px solid rgba(255, 255, 255, .5); padding: 4px 0; }
.cx-list li + li { border-top: 1px solid rgba(255, 255, 255, .14); }
.cx-item { display: grid; gap: 6px; width: 100%; padding: 18px 0; background: none; border: 0; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.cx-item:hover .cx-item-t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cx-item-top { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.cx-item-top time { opacity: .6; }
.cx-item-t { font-size: 19px; letter-spacing: -0.012em; line-height: 1.2; }
.cx-item-p { font-size: 15px; opacity: .72; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* category chips (announcements) */
.kchip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 500 12px/1 var(--sans); letter-spacing: .01em; background: var(--ice); color: var(--royal); white-space: nowrap; }
.u-connect .kchip { background: rgba(255, 255, 255, .14); color: #fff; }
.kchip[data-k="urgent"] { background: var(--ribbon); color: #fff; }
.kchip[data-k="pastor"] { background: var(--royal); color: #fff; }

/* ═══════════ FOOTER tweak ═══════════ */
.footer-mail { cursor: pointer; }

/* ═══════════ HUB (dialog) ═══════════ */
html.hub-open, html.menu-open { overflow: hidden; }
.hub {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) 18px max(18px, env(safe-area-inset-bottom, 0px));
}
.hub[hidden] { display: none; }
.hub-scrim { position: absolute; inset: 0; background: rgba(3, 20, 46, 0.46); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .35s; }
.hub-panel {
  position: relative;
  width: min(1060px, 100%); height: min(880px, 100%);
  display: flex; flex-direction: column;
  border-radius: 30px; overflow: hidden;
  --lg-tint: rgba(246, 248, 252, 0.86);
  animation: hubin .6s var(--ease-out);
}
@keyframes hubin { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.hub-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px 12px; }
.hub-seal { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.hub-title { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.hub-who { font-size: 14px; color: var(--ash); margin-top: 2px; }
.hub-close { margin-left: auto; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(var(--ink-rgb), 0.07); cursor: pointer; display: grid; place-items: center; transition: transform .5s var(--spring); }
.hub-close:active { transform: scale(.92); }
.hub-close svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.hub-tabs { margin: 4px 22px 0; display: flex; gap: 4px; padding: 5px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; flex: none; }
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tabs button {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent;
  font: 500 14.5px/1 var(--sans); color: var(--ash); cursor: pointer;
  transition: background .3s, color .3s, box-shadow .3s;
}
.hub-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(3, 20, 46, .08), 0 8px 18px -8px rgba(3, 20, 46, .3); }
.hub-tabs button[hidden] { display: none; }
.hub-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 24px 22px 40px; }
.hub-panel-inner { max-width: 760px; margin: 0 auto; }
.hub-panel-inner[data-panel="desk"] { max-width: none; }

.pnl-intro { margin-bottom: 22px; }
.pnl-h { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.1; }
.pnl-p { color: var(--ash); margin-top: 8px; line-height: 1.45; font-size: 17px; max-width: 36em; }
.notice { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; line-height: 1.45; }
.notice b { display: block; font-weight: 500; margin-bottom: 4px; }
.empty { text-align: center; padding: 48px 20px; color: var(--ash); border: 1px dashed rgba(var(--ink-rgb), .2); border-radius: 18px; }
.empty b { display: block; color: var(--ink); font-weight: 500; font-size: 19px; margin-bottom: 6px; }

/* announcement cards */
.ann { background: #fff; border: 1px solid rgba(var(--ink-rgb), .07); border-radius: 18px; padding: 20px 22px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(3, 20, 46, .04); }
.ann-urgent { border-color: rgba(173, 37, 49, .35); box-shadow: inset 3px 0 0 var(--ribbon); }
.ann-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ash); }
.ann-top time { margin-left: auto; }
.ann-pin { color: var(--royal); }
.ann-title { font-size: 21px; font-weight: 500; letter-spacing: -0.014em; line-height: 1.2; margin: 12px 0 6px; }
.ann-body { line-height: 1.5; white-space: pre-line; font-size: 17px; }
.ann-foot { display: flex; gap: 16px; align-items: center; margin-top: 14px; font-size: 14.5px; color: var(--ash); }
.ann-foot .ann-by { margin-right: auto; }
.lnk { background: none; border: 0; padding: 6px 0; font: inherit; color: var(--royal); cursor: pointer; }
.lnk:hover { text-decoration: underline; text-underline-offset: 3px; }
.lnk-danger { color: var(--ribbon); }

/* forms */
.msg-form, .dform { display: grid; gap: 22px; }
.fgroup { display: grid; gap: 10px; border: 0; min-width: 0; }
.fgroup > legend, .flabel { font-weight: 500; font-size: 15px; padding: 0; margin-bottom: 10px; }
.flabel { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px;
  border-radius: 999px; background: #fff; border: 1px solid rgba(var(--ink-rgb), .14);
  font-size: 14.5px; transition: background .25s, color .25s, border-color .25s;
}
.chip input:checked + span { background: var(--royal); border-color: var(--royal); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--royal-2); outline-offset: 2px; }
.finput, .ftext, .fselect {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid rgba(var(--ink-rgb), .16); border-radius: 14px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.ftext { resize: vertical; min-height: 140px; }
.finput:focus, .ftext:focus, .fselect:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(31, 67, 176, .15); }
.fhint { font-size: 13px; color: var(--ash); display: flex; justify-content: space-between; gap: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ash); background: rgba(31, 67, 176, .06); border-radius: 14px; padding: 12px 14px; line-height: 1.4; }
.privacy svg { width: 18px; height: 18px; flex: none; stroke: var(--royal); fill: none; stroke-width: 1.6; margin-top: 1px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-err { color: var(--ribbon); font-size: 15px; }
.frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fcheck { display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; cursor: pointer; }
.fcheck input { width: 20px; height: 20px; accent-color: var(--royal); }

.sent { text-align: center; padding: 30px 10px 34px; }
.sent-mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--royal); }
.sent-mark svg { width: 30px; height: 30px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .6s .15s var(--ease-out) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.sent h3 { font-size: 26px; letter-spacing: -0.02em; font-weight: 500; }
.sent p { color: var(--ash); margin: 8px auto 20px; max-width: 28em; line-height: 1.45; }

/* threads */
.thread { margin-top: 34px; }
.thread-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.thread-head h4 { font-size: 18px; font-weight: 500; margin-right: auto; }
.bubbles { display: grid; gap: 10px; }
.bubble { max-width: 82%; padding: 13px 16px; border-radius: 20px; line-height: 1.45; white-space: pre-line; font-size: 16px; }
.bubble.me { justify-self: end; background: var(--royal); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { justify-self: start; background: #fff; border: 1px solid rgba(var(--ink-rgb), .08); border-bottom-left-radius: 6px; }
.b-meta { display: block; margin-top: 6px; font-size: 12.5px; opacity: .7; white-space: normal; }
.schip { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: rgba(var(--ink-rgb), .07); }
.schip[data-s="new"] { background: rgba(255, 77, 94, .12); color: #b3202f; }
.schip[data-s="replied"] { background: rgba(31, 67, 176, .1); color: var(--royal); }

/* fellowship wall */
.wall-compose { background: #fff; border: 1px solid rgba(var(--ink-rgb), .07); border-radius: 20px; padding: 18px; display: grid; gap: 14px; margin-bottom: 26px; }
.wall-compose .ftext { min-height: 96px; }
.post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.post-av { width: 40px; height: 40px; border-radius: 50%; background: var(--ice); object-fit: cover; }
.post-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--ash); }
.post-top b { color: var(--ink); font-weight: 500; font-size: 15.5px; }
.post-text { margin-top: 6px; line-height: 1.5; white-space: pre-line; }
.post-act { display: flex; gap: 16px; margin-top: 8px; font-size: 14px; }
.amen { background: none; border: 1px solid rgba(var(--ink-rgb), .14); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; transition: transform .4s var(--spring); }
.amen[aria-pressed="true"] { background: var(--royal); border-color: var(--royal); color: #fff; }
.amen:active { transform: scale(.94); }

/* pastor's desk */
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; margin-bottom: 22px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { border: 0; background: none; padding: 0 16px; min-height: 40px; border-radius: 999px; font: 500 14.5px/1 var(--sans); color: var(--ash); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.desk-pane[hidden] { display: none; }
.desk-inbox { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.desk-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.desk-filters .chip span { min-height: 34px; font-size: 13.5px; padding: 0 12px; }
.tlist { display: grid; gap: 6px; max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.titem { display: grid; gap: 5px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1px solid rgba(var(--ink-rgb), .07); border-radius: 16px; padding: 14px 16px; cursor: pointer; position: relative; }
.titem[aria-current="true"] { border-color: var(--royal); box-shadow: 0 0 0 2px rgba(31, 67, 176, .18); }
.titem-top { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ash); }
.titem-top b { color: var(--ink); font-weight: 500; font-size: 15.5px; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titem-p { font-size: 14.5px; color: var(--ash); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.titem .udot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); flex: none; }
.dthread { background: rgba(255, 255, 255, .7); border: 1px solid rgba(var(--ink-rgb), .07); border-radius: 20px; padding: 20px; min-height: 360px; }
.dthread-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.dthread-head h4 { font-size: 20px; font-weight: 500; letter-spacing: -0.012em; }
.dthread-head p { font-size: 14px; color: var(--ash); margin-top: 3px; }
.dthread-head .dth-act { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 15px; }
.dthread .bubbles { margin-bottom: 18px; }
.reply-form { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.reply-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.reply-row .fselect { width: auto; min-width: 200px; }
.desk-back { display: none; }
.dlist { margin-top: 18px; border-bottom: 1px solid var(--line); }
.dlist li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.dlist li > span { flex: 1; min-width: 0; }
.dlist li small { display: block; color: var(--ash); font-size: 13.5px; margin-top: 2px; }
.dsub { font-size: 19px; font-weight: 500; letter-spacing: -0.012em; margin: 34px 0 14px; }
.dsub:first-child { margin-top: 0; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 400;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(5, 31, 68, .92); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: 13px 20px; border-radius: 999px; font-size: 15px;
  box-shadow: 0 14px 30px -12px rgba(3, 20, 46, .5);
  transition: opacity .35s, transform .5s var(--spring);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1100px) {
  .visit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "times place" "give give"; }
  .leaders { grid-template-columns: 1fr; }
  .leader--minister { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: end; gap: 22px; }
}
@media (max-width: 900px) {
  .u-sec { padding: 11vh var(--gutter); }
  .u-head { margin-bottom: 5vh; }
  .u-head--split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .watch-grid { grid-template-columns: 1fr; }
  .live-card { min-height: 460px; }
  .live-glass { padding: 22px; }
  .sermon { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .sermon time { grid-column: 1 / -1; }
  .sermon-act { grid-column: 1 / -1; margin-left: -8px; }
  .event { grid-template-columns: 96px minmax(0, 1fr); gap: 6px 16px; align-items: start; }
  .ev-day.is-range { font-size: 30px; }
  .ev-date { flex-direction: column; gap: 4px; }
  .ev-day { font-size: 40px; }
  .ev-add { grid-column: 2; padding-top: 6px; }
  .event.event-feature { grid-template-columns: 1fr; gap: 22px; }
  .evf-poster { max-width: 360px; }
  .u-connect { padding: 12vh var(--gutter); }
  .cx-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "actions" "feed"; }
  .cx-actions { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cx-tile { min-height: 0; padding: 18px; }
  .cx-ico { margin-bottom: 6px; }
  .cx-t { font-size: 17.5px; }
  .cx-s { font-size: 13.5px; }
  .v-give { grid-template-columns: 1fr; }
  .hub { padding: 0; place-items: end stretch; }
  .hub-panel { width: 100%; height: calc(100% - 10px - env(safe-area-inset-top, 0px)); border-radius: 26px 26px 0 0; animation-name: hubup; }
  @keyframes hubup { from { transform: translateY(40px); opacity: 0; } }
  .hub-head { padding: 16px 16px 10px; }
  .hub-tabs { margin: 2px 12px 0; }
  .hub-tabs button { padding: 0 13px; font-size: 14px; }
  .hub-body { padding: 20px 16px calc(36px + env(safe-area-inset-bottom, 0px)); }
  .desk-inbox { grid-template-columns: 1fr; }
  .desk-inbox.is-open .desk-listcol { display: none; }
  .desk-inbox:not(.is-open) .dthread { display: none; }
  .desk-back { display: inline-flex; margin-bottom: 12px; }
  .tlist { max-height: none; }
  .frow { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .visit-grid { grid-template-columns: 1fr; grid-template-areas: "times" "place" "give"; }
  .leader--pastor, .leader--minister { grid-template-columns: 1fr; }
  .cx-actions { grid-template-columns: 1fr; }
  .cx-tile { grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .cx-ico { grid-row: span 2; margin: 0; }
  .bubble { max-width: 92%; }
  .ann { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-lights i { animation: none; }
  .hero-ctas { opacity: 1; transform: none; }
}

/* ═══════════ LIVE POP-UP + GO LIVE ═══════════ */
.gbtn-live { --lg-tint: rgba(214, 40, 57, 0.94); --lg-rim: rgba(255, 255, 255, 0.5); color: #fff; }
.gbtn-live:hover { --lg-tint: rgba(232, 56, 74, 0.98); }
.gbtn.sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.live-dot.on { background: var(--live); opacity: 1; animation: livepulse 1.6s ease-out infinite; }
.live-pop {
  position: fixed; z-index: 280;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 36px));
  border-radius: 26px; padding: 22px 22px 20px;
  display: grid; gap: 8px;
  --lg-tint: rgba(5, 31, 68, 0.88);
  animation: popin .7s var(--spring);
}
.live-pop[hidden] { display: none; }
@keyframes popin { from { opacity: 0; transform: translateY(30px) scale(.94); } }
.live-pop .live-state { display: inline-flex; align-items: center; gap: 9px; color: #ffb3bb; }
.live-pop-title { font-size: 23px; letter-spacing: -0.018em; line-height: 1.12; font-weight: 500; }
.live-pop-text { opacity: .78; font-size: 15.5px; line-height: 1.45; }
.live-pop-act { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.live-pop-act .lg-dark { --lg-tint: rgba(255, 255, 255, 0.10); }
.golive { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 18px; }
.golive-scrim { position: absolute; inset: 0; background: rgba(3, 20, 46, .5); animation: fade .3s; }
.golive-card { position: relative; width: min(520px, 100%); border-radius: 26px; padding: 26px; display: grid; gap: 16px; --lg-tint: rgba(246, 248, 252, .94); animation: hubin .5s var(--ease-out); }
.golive-card .live-state { display: inline-flex; gap: 9px; align-items: center; color: var(--ribbon); }

/* ═══════════ DOCK + MENU admin entries ═══════════ */
.dock-admin {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(var(--ink-rgb), 0.07); color: var(--ink);
  padding: 11px 14px; margin-right: 6px;
}
.dock-admin[hidden] { display: none; }
.menu-link { text-align: left; background: none; border: 0; font: inherit; color: inherit; padding: 15px 16px; font-size: 21px; letter-spacing: -0.015em; border-radius: 14px; cursor: pointer; }
.menu-link:hover { background: rgba(var(--ink-rgb), 0.05); }
.cx-desk { grid-column: 1 / -1; min-height: 0; }
@media (max-width: 900px) { .dock-admin { display: none !important; } }

/* ═══════════ DASHBOARD ═══════════ */
.dash { position: fixed; inset: 0; z-index: 320; background: var(--bone); animation: fade .3s; }
.dash-shell { position: absolute; inset: 0; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.dash-side {
  background: var(--navy); color: #fff;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 26px; overflow-y: auto;
}
.dash-brand { display: flex; gap: 12px; align-items: center; padding: 0 6px; }
.dash-title { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.dash-who { font-size: 13px; opacity: .65; margin-top: 2px; }
.dash-nav { display: grid; gap: 3px; }
.dash-nav button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 46px; padding: 0 14px; border: 0; border-radius: 14px;
  background: transparent; color: rgba(255, 255, 255, .74);
  font: 500 15px/1 var(--sans); text-align: left; cursor: pointer; transition: background .25s, color .25s;
}
.dash-nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.dash-nav button[aria-current="true"] { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.dash-exit { margin-top: auto; border: 1px solid rgba(255, 255, 255, .2); background: none; color: #fff; border-radius: 999px; min-height: 44px; padding: 0 16px; font: 500 14.5px var(--sans); cursor: pointer; }
.dash-exit:hover { background: rgba(255, 255, 255, .08); }
.dash-main { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: clamp(26px, 3.4vw, 50px) clamp(18px, 3.6vw, 56px) calc(80px + env(safe-area-inset-bottom, 0px)); }
.dash-pane { max-width: 1200px; }
.dash-pane[hidden] { display: none; }
.dash-head { margin-bottom: 26px; }
.dash-h { font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -0.024em; line-height: 1.04; margin: 8px 0 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat {
  display: grid; gap: 10px; align-content: space-between; text-align: left;
  min-height: 118px; padding: 18px; border-radius: 20px; cursor: pointer;
  background: #fff; border: 1px solid rgba(var(--ink-rgb), .07); color: var(--ink); font: inherit;
  transition: transform .5s var(--spring), box-shadow .3s;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(3, 20, 46, .4); }
.stat b { font-size: clamp(36px, 3.2vw, 50px); font-weight: 300; letter-spacing: -0.035em; line-height: .95; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--ash); line-height: 1.3; }
.dcard { background: #fff; border: 1px solid rgba(var(--ink-rgb), .07); border-radius: 22px; padding: 22px; }
.dcard > h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.dash-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.rlist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rlist li:first-child { border-top: 0; }
.rlist li > span { flex: 1; min-width: 0; }
.rlist b { display: block; font-weight: 500; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rlist small { display: block; color: var(--ash); font-size: 13.5px; margin-top: 2px; }
.rlist .udot, .titem .udot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); flex: none; }
.live-ctl { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; background: var(--navy); color: #fff; border: 0; padding: 24px 26px; }
.live-ctl .live-state { display: inline-flex; align-items: center; gap: 9px; opacity: .85; }
.live-ctl h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.018em; margin: 8px 0 6px; font-weight: 400; }
.live-ctl .ash { color: rgba(255, 255, 255, .72); max-width: 34em; line-height: 1.45; }
.live-ctl.is-on { background: linear-gradient(120deg, #6d0f1b, var(--ribbon) 70%); }
.live-ctl.is-on .live-dot { background: #fff; opacity: 1; animation: livepulse 1.6s ease-out infinite; }
.live-ctl .gbtn { flex: none; min-height: 52px; padding: 0 26px; font-size: 16px; }

/* members */
.mtools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.msearch { flex: 1 1 260px; width: auto; }
.mtools .fselect { width: auto; min-width: 170px; flex: 0 1 auto; }
.mcount { font-size: 14px; margin: 6px 0 10px; }
.mtable-wrap { overflow-x: auto; background: #fff; border: 1px solid rgba(var(--ink-rgb), .07); border-radius: 20px; }
.mtable { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 15px; }
.mtable th { text-align: left; font: 400 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ash); padding: 15px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mtable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mtable tbody tr:last-child td { border-bottom: 0; }
.mtable tbody tr:hover { background: rgba(31, 67, 176, .035); }
.mtable .nowrap { white-space: nowrap; }
.mtable a { color: var(--ink); }
.mname { background: none; border: 0; padding: 0; font: 500 15.5px var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.mname:hover { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }
.mself { display: block; font-size: 12.5px; color: var(--royal); margin-top: 2px; }
.mempty { text-align: center; color: var(--ash); padding: 40px 20px !important; }
.wa { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 8px; border-radius: 50%; background: #e3f6ea; color: #137a42 !important; font: 600 10.5px var(--sans); vertical-align: middle; }
.schip[data-s="closed"] { background: rgba(var(--ink-rgb), .07); color: var(--ash); }
.medit { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); }
.medit-scrim { position: absolute; inset: 0; background: rgba(3, 20, 46, .42); animation: fade .3s; }
.medit-card { position: relative; width: min(860px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--bone); border-radius: 28px; padding: 24px clamp(18px, 3vw, 32px) 30px; box-shadow: 0 30px 80px -30px rgba(3, 20, 46, .6); animation: hubin .45s var(--ease-out); }
.medit-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.medit-head .hub-close { margin-left: auto; }
.frow-tight { gap: 10px; }
.mform .fgroup > legend { margin-bottom: 10px; }
.consent { align-items: flex-start; line-height: 1.45; font-size: 15px; color: var(--ash); }
.consent input { margin-top: 2px; flex: none; }

/* member card */
.mcard {
  position: relative; overflow: hidden;
  width: min(440px, 100%); aspect-ratio: 1.586;
  border-radius: 22px; padding: 22px 24px;
  display: grid; align-content: space-between;
  color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(111, 155, 255, .55), rgba(111, 155, 255, 0) 55%), linear-gradient(135deg, #0a2c63, var(--navy) 60%, #031530);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 24px 50px -24px rgba(3, 20, 46, .65);
  margin-bottom: 18px;
}
.mcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .12) 45%, rgba(255, 255, 255, 0) 55%); pointer-events: none; }
.mcard-top { display: flex; align-items: center; gap: 10px; }
.mcard-top .mono { font-size: 10.5px; opacity: .8; }
.mcard-seal { width: 38px; height: 38px; border-radius: 50%; }
.mcard-name { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; line-height: 1.1; }
.mcard-row { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.mcard-row small { display: block; font: 400 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; opacity: .65; margin-bottom: 3px; }

@media (max-width: 900px) {
  .dash-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .dash-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 10px; overflow: visible; }
  .dash-brand { padding: 0; }
  .dash-who { display: none; }
  .dash-nav { grid-column: 1 / -1; display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav button { flex: none; min-height: 40px; padding: 0 13px; font-size: 14px; }
  .dash-exit { margin: 0; min-height: 38px; font-size: 13.5px; align-self: center; }
  .live-ctl { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 104px; padding: 16px; }
  .live-pop { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; }
}

/* ═══════════ THE BIBLE READER ═══════════ */
html.bible-open { overflow: hidden; }
.dock-btn { background: none; border: 0; color: inherit; cursor: pointer; }
.bible { position: fixed; inset: 0; z-index: 340; display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top, 0px)) 18px max(18px, env(safe-area-inset-bottom, 0px)); }
.bible[hidden] { display: none; }
.bible-panel { position: relative; width: min(860px, 100%); height: min(900px, 100%); display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; --lg-tint: rgba(250, 248, 243, 0.94); animation: hubin .55s var(--ease-out); }
.bible-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px 8px; }
.bible-head .hub-close { margin-left: auto; }
.bible-title { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.022em; line-height: 1.05; margin-top: 6px; }
.bible-bar { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1.6fr); gap: 8px; padding: 10px 22px 14px; border-bottom: 1px solid var(--line); }
.bible-bar .fselect, .bible-bar .finput { padding: 11px 13px; border-radius: 12px; }
.bible-go { display: flex; gap: 8px; min-width: 0; }
.bible-go .finput { flex: 1; min-width: 0; }
.bible-go .gbtn { min-height: 44px; padding: 0 18px; }
.mic { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(var(--ink-rgb), .14); background: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .4s var(--spring), background .25s; }
.mic svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.mic:active { transform: scale(.92); }
.mic.is-on { background: var(--live); border-color: var(--live); animation: livepulse 1.4s ease-out infinite; }
.mic.is-on svg { stroke: #fff; }
.bible-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px clamp(20px, 5vw, 64px) 40px; font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.75; color: #1b1a17; }
.bv { padding: 3px 10px; margin: 0 -10px; border-radius: 8px; cursor: pointer; transition: background .3s; }
.bv sup { font-family: var(--mono); font-size: 11px; color: var(--royal); margin-right: 2px; vertical-align: 0.5em; }
.bv:hover { background: rgba(31, 67, 176, .05); }
.bv.is-hit { background: rgba(31, 67, 176, .12); box-shadow: inset 3px 0 0 var(--royal); }
.bv.is-sel { background: rgba(255, 196, 0, .22); }
.bv:focus { outline: none; }
.bible-load { color: var(--ash); font-family: var(--sans); }
.bible-copy { display: flex; align-items: center; gap: 10px; padding: 10px 22px; border-top: 1px solid var(--line); font-size: 14.5px; }
.bible-copy[hidden] { display: none; }
.bible-copy span { margin-right: auto; color: var(--ash); }
.bible-foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 22px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.bible-foot .gbtn { min-height: 42px; font-size: 14px; }
.bible-foot .gbtn[disabled] { opacity: .35; }

/* ═══════════ THE ASSISTANT ═══════════ */
.bot-fab {
  position: fixed; z-index: 270;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 15px/1 var(--sans); color: #fff;
  --lg-tint: rgba(5, 31, 68, 0.88);
  opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out) 1.4s, transform .8s var(--ease-out) 1.4s;
}
body.is-ready .bot-fab { opacity: 1; transform: none; }
.bot-fab[hidden] { display: none; }
.bot-fab svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bot-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; }
.live-pop { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.bot { position: fixed; z-index: 285; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: min(420px, calc(100vw - 36px)); height: min(680px, calc(100vh - 110px)); }
.bot[hidden] { display: none; }
.bot-panel { height: 100%; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; --lg-tint: rgba(246, 248, 252, 0.92); animation: popin .55s var(--spring); }
.bot-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.bot-head .hub-seal { width: 38px; height: 38px; }
.bot-id { flex: 1; min-width: 0; }
.bot-title { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.bot-sub { font-size: 13px; color: var(--ash); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-icon { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(var(--ink-rgb), .06); display: grid; place-items: center; cursor: pointer; flex: none; }
.bot-icon svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bot-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.bmsg { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; white-space: pre-line; }
.bmsg p + p, .bmsg p + ul, .bmsg ul + .bot-acts, .bmsg p + .bot-acts { margin-top: 8px; }
.bot-m { align-self: flex-start; background: #fff; border: 1px solid rgba(var(--ink-rgb), .07); border-bottom-left-radius: 6px; }
.me-m { align-self: flex-end; background: var(--royal); color: #fff; border-bottom-right-radius: 6px; }
.bot-m.is-pending p { color: var(--ash); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.bot-list { list-style: none; display: grid; gap: 4px; white-space: normal; }
.bot-list li { padding-left: 12px; position: relative; }
.bot-list li::before { content: ''; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--royal); }
.bot-acts { display: flex; flex-wrap: wrap; gap: 6px; white-space: normal; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px solid rgba(31, 67, 176, .3); background: #fff; color: var(--royal); border-radius: 999px; padding: 8px 13px; font: 500 14px var(--sans); cursor: pointer; }
.chip-btn:hover { background: rgba(31, 67, 176, .06); }
.reflink { display: inline; background: none; border: 0; padding: 0; font: inherit; color: var(--royal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pcard { align-self: stretch; background: #fdfcf8; border: 1px solid rgba(var(--ink-rgb), .08); border-radius: 18px; padding: 14px 16px; box-shadow: inset 3px 0 0 var(--royal); }
.pcard-ref { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin-bottom: 6px; }
.pcard-text { font-family: Georgia, 'Times New Roman', serif; font-size: 16.5px; line-height: 1.6; color: #1b1a17; margin-bottom: 10px; }
.pcard-text sup { font-family: var(--mono); font-size: 10px; color: var(--royal); }
.bdraft { align-self: stretch; background: #fff; border: 1px solid rgba(31, 67, 176, .25); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.bdraft-h { font-size: 13.5px; color: var(--royal); font-weight: 500; }
.bdraft .ftext { min-height: 100px; font-size: 15px; }
.bot-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.bot-input textarea { flex: 1; min-width: 0; resize: none; max-height: 120px; border: 1px solid rgba(var(--ink-rgb), .16); border-radius: 22px; padding: 11px 15px; font: 16px/1.35 var(--sans); background: #fff; color: var(--ink); }
.bot-input textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(31, 67, 176, .15); }
.bot-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--royal); display: grid; place-items: center; cursor: pointer; transition: transform .4s var(--spring); }
.bot-send svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bot-send:active { transform: scale(.92); }
.bot-send[disabled] { opacity: .45; }
.bot-foot { display: flex; gap: 10px; align-items: center; padding: 0 14px calc(10px + env(safe-area-inset-bottom, 0px)); font-size: 12px; color: var(--ash); }
.bot-foot .lnk { font-size: 13px; }
.bubble.bot { background: var(--ice); border-color: transparent; }

@media (max-width: 900px) {
  html.bot-open { overflow: hidden; }
  .bot { inset: 0; width: auto; height: auto; padding-top: env(safe-area-inset-top, 0px); }
  .bot-panel { border-radius: 0; }
  .bot-fab { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); min-height: 50px; padding: 0 16px 0 13px; }
  .live-pop { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .bible { padding: 0; }
  .bible-panel { width: 100%; height: 100%; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); }
  .bible-bar { grid-template-columns: minmax(0, 1fr) 120px; padding: 8px 14px 12px; }
  .bible-go { grid-column: 1 / -1; }
  .bible-head { padding: 14px 14px 4px; }
  .bible-body { font-size: 18px; padding: 16px 18px 30px; }
  .bible-foot { padding-left: 14px; padding-right: 14px; }
  .bible-foot .gbtn { padding: 0 14px; }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM 3D GLASS — the opening (adapted from the premium-3d-glass engine)
   ═══════════════════════════════════════════════════════════ */
:root { --sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; --geo: var(--sans); }
body.is-smooth .smooth { z-index: 1; }
#webgl {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; outline: none; display: block;
  background: radial-gradient(120% 90% at 70% 30%, #1f43b0 0%, #0b2257 45%, #030b1d 100%);
}
#hero .pin { background: transparent; }
#hero .pin > .floaters, #hero .pin > .hero-copy, #hero .pin > .spot { visibility: hidden !important; pointer-events: none !important; }
#trail { display: none !important; }
body.glass-off #webgl, body.glass-off .gx { visibility: hidden; }

.gx { font-family: 'Space Grotesk', ui-sans-serif, sans-serif; color: #fff; }
.gx.cinematic-container { position: fixed; inset: 0; z-index: 10; pointer-events: none; padding: 0 60px 40px; }
.gx .slide { position: absolute; bottom: 12%; pointer-events: none; visibility: hidden; transition: visibility 0s linear 1.2s; }
.gx .slide.active { pointer-events: auto; visibility: visible; transition-delay: 0s; }
.gx #slide-1 { left: 0; width: 100%; bottom: 13%; }
.gx #slide-1 .slide-title { margin-left: 60px; }
.gx #slide-1 .desc-row { display: flex; width: 100%; }
.gx #slide-1 .col-1 { margin-left: 60px; width: min(560px, calc(46vw - 60px)); }
.gx #slide-2 { left: calc(50vw + 20px); right: 60px; bottom: 12%; }
.gx #slide-2 .slide-desc { max-width: min(58ch, 100%); }
.gx #slide-3 { left: 60px; width: min(620px, 46vw); bottom: 10%; }
.gx #slide-4 { left: 60px; max-width: 640px; }
.gx #slide-4 .slide-desc { max-width: 44ch; }
.gx .slide-title { font-size: clamp(44px, 5.4vw, 80px); line-height: 1; font-weight: 400; letter-spacing: -0.035em; margin-bottom: 22px; color: #f2f7ff; }
.gx .slide-title .line { display: block; overflow: hidden; white-space: nowrap; padding: 0.06em 0 0.16em; margin: -0.06em 0 -0.16em; }
.gx .line-inner { display: block; transform: translateY(112%); opacity: 0; filter: blur(12px); transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1), opacity .7s ease-out, filter 1.05s cubic-bezier(0.16, 1, 0.3, 1); }
.gx .line.muted .line-inner { transition-delay: .09s; }
.gx .slide.active .slide-title .line-inner { transform: none; opacity: 1; filter: blur(0); }
.gx .slide-title .line.muted { color: #b9c8ea; }
.gx .slide-desc, .gx .gx-kicker, .gx .gx-ctas {
  font-size: 17px; line-height: 1.65; font-weight: 300; color: #d6def0; letter-spacing: .2px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) .3s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) .3s;
}
.gx .slide.active .slide-desc, .gx .slide.active .gx-kicker, .gx .slide.active .gx-ctas { opacity: 1; transform: none; }
.gx .gx-kicker { font: 400 11px/1.4 var(--mono); letter-spacing: .06em; color: #9fb4e6; margin-bottom: 14px; transition-delay: .2s; }
.gx .gx-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; transition-delay: .45s; }
.gx .gx-ctas .lg-dark { --lg-tint: rgba(255, 255, 255, 0.10); }
.gx .benefits { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 26px 40px; margin-top: 10px; }
.gx .benefit { display: flex; align-items: flex-start; gap: 14px; opacity: 0; transform: translateY(14px); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.gx .benefit:nth-child(1) { transition-delay: .28s; } .gx .benefit:nth-child(2) { transition-delay: .36s; }
.gx .benefit:nth-child(3) { transition-delay: .44s; } .gx .benefit:nth-child(4) { transition-delay: .52s; }
.gx .slide.active .benefit { opacity: 1; transform: none; }
.gx .benefit-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .35); display: grid; place-items: center; }
.gx .benefit-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.gx .benefit p { font-size: 16px; line-height: 1.45; font-weight: 300; color: #dbe3f5; padding-top: 5px; }
.gx .figures { display: flex; gap: clamp(28px, 4vw, 64px); margin-top: 28px; }
.gx .figure { opacity: 0; transform: translateY(14px); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.gx .figure:nth-child(1) { transition-delay: .45s; } .gx .figure:nth-child(2) { transition-delay: .53s; } .gx .figure:nth-child(3) { transition-delay: .61s; }
.gx .slide.active .figure { opacity: 1; transform: none; }
.gx .figure dt { font-size: clamp(36px, 3.4vw, 52px); font-weight: 400; line-height: 1; letter-spacing: -0.03em; color: #f2f7ff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gx .figure dt small { font-size: .42em; letter-spacing: 0; }
.gx .figure dd { margin-top: 10px; font-size: 13px; line-height: 1.5; color: #aebbd8; }
.gx.story-progress { position: fixed; top: 50%; right: 40px; transform: translateY(-50%); z-index: 9; pointer-events: none; transition: opacity .6s; }
.gx .story-dashes { display: flex; flex-direction: column; gap: 12px; }
.gx .story-dash { width: 2px; height: 40px; background: rgba(255, 255, 255, .15); border-radius: 2px; }
.gx .story-dash-fill { width: 100%; height: 0%; background: #fff; border-radius: 2px; }
body.contact-open .gx.story-progress { opacity: 0; }

@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  .gx.cinematic-container { padding: 0 22px 22px; }
  .gx.story-progress { right: 10px; }
  .gx .slide, .gx #slide-1, .gx #slide-2, .gx #slide-3, .gx #slide-4 { left: 22px; right: 22px; width: auto; max-width: none; bottom: auto; }
  .gx #slide-1, .gx #slide-3 { top: calc(92px + env(safe-area-inset-top, 0px)); }
  .gx #slide-2, .gx #slide-4 { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); top: auto; }
  .gx #slide-1 .slide-title, .gx .slide-title { margin-left: 0; margin-bottom: 14px; font-size: clamp(36px, 11vw, 64px); }
  .gx #slide-1 .desc-row { flex-direction: column; }
  .gx #slide-1 .col-1 { margin-left: 0; width: 100%; max-width: 40ch; }
  .gx .benefits { grid-template-columns: 1fr 1fr; gap: 16px 14px; }
  .gx .benefit { gap: 10px; }
  .gx .benefit-icon { flex-basis: 28px; width: 28px; height: 28px; border-radius: 7px; }
  .gx .benefit p { font-size: 14px; padding-top: 3px; }
  .gx .figures { gap: 22px; margin-top: 18px; }
  .gx .figure dt { font-size: 32px; }
  .gx .figure dd { font-size: 11.5px; }
  .gx .slide-desc { font-size: 15.5px; line-height: 1.55; }
  .gx .gx-ctas .gbtn { min-height: 44px; padding: 0 16px; font-size: 14px; }
}

/* without WebGL or with reduced motion: the chapters are plain sections in the hero */
.gx-static #webgl, .gx-static .gx.cinematic-container, .gx-static .gx.story-progress { display: none; }
.gx-static #hero .pin > :not(.gx-slot) { display: none; }
.gx-static #hero .pin { background: radial-gradient(120% 90% at 70% 20%, #1f43b0 0%, #0b2257 50%, #030b1d 100%); }
.gx-slot { display: grid; gap: 12vh; padding: 18vh 22px 12vh; max-width: 1100px; margin: 0 auto; }
.gx-slot .slide { position: static !important; visibility: visible; pointer-events: auto; }
.gx-slot .slide-title { margin-left: 0 !important; }
.gx-slot .slide-desc, .gx-slot .gx-kicker, .gx-slot .gx-ctas, .gx-slot .benefit, .gx-slot .figure { opacity: 1; transform: none; }
.gx-slot #slide-1 .col-1 { margin-left: 0; width: auto; }
body:not(.static) .gx-slot .slide:not(#slide-1) { display: none; }
body:not(.static) .gx-slot { padding-top: 22vh; }

/* ═══════════ MINISTRIES — photographs ═══════════ */
.bento-grid .card-img { overflow: hidden; border-radius: var(--radius); background: var(--ice); }
.bento-grid .card-img img { transition: transform 1.2s var(--ease-out); }
.bento-grid .card:hover .card-img img { transform: scale(1.04); }

/* ═══════════ CONNECT — full screen, tiles across the whole width ═══════════ */
.u-connect { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 14vh var(--gutter); }
.cx-inner { max-width: none; width: 100%; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "copy feed" "actions actions"; align-items: stretch; row-gap: clamp(36px, 6vh, 64px); }
.cx-copy { align-self: center; }
.cx-feed { align-self: stretch; display: flex; flex-direction: column; }
.cx-feed .cx-list { flex: 1; }
.cx-actions { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; align-self: stretch; }
.cx-tile { display: flex; flex-direction: column; justify-content: flex-start; min-height: clamp(240px, 34vh, 360px); padding: 28px 26px 26px; gap: 8px; }
.cx-tile .cx-ico { width: 34px; height: 34px; margin-bottom: auto; }
.cx-tile .cx-t { font-size: clamp(20px, 1.6vw, 24px); margin-top: 28px; }
.cx-tile .cx-s { font-size: 15px; }
.cx-desk { grid-column: auto; min-height: clamp(240px, 34vh, 360px); }
@media (max-width: 900px) {
  .u-connect { min-height: 100svh; padding: 11vh var(--gutter); }
  .cx-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "actions" "feed"; }
  .cx-actions { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cx-tile { min-height: 190px; padding: 20px 18px; }
  .cx-tile .cx-ico { width: 28px; height: 28px; }
  .cx-tile .cx-t { font-size: 17.5px; margin-top: 18px; }
  .cx-tile .cx-s { font-size: 13.5px; }
  .cx-desk { min-height: 190px; }
}
@media (max-width: 560px) {
  .cx-actions { grid-template-columns: 1fr 1fr; }
  .cx-tile { display: flex; min-height: 172px; }
}

/* ═══════════ FOOTER — the seal ═══════════ */
.footer-seal { display: block; width: clamp(92px, 10vw, 148px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin: clamp(48px, 8vh, 90px) auto clamp(-10px, -1vh, 0px); box-shadow: 0 24px 50px -24px rgba(3, 20, 46, .45); }

/* ═══════════ ASSISTANT — the questions the church teaches it ═══════════ */
.faq-list { display: grid; gap: 12px; }
.faq-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 10px; align-items: start; background: #fff; border: 1px solid rgba(var(--ink-rgb), .07); border-radius: 16px; padding: 12px; }
.faq-row .ftext { min-height: 48px; }
@media (max-width: 900px) { .faq-row { grid-template-columns: 1fr; } }
.dock-cta, .dock-admin, .dock-menu { white-space: nowrap; }
@media (max-width: 1360px) { .dock .dock-nav { display: none; } .dock-menu { display: inline-flex; } }
.cx-tile .cx-ico, .cx-tile svg.cx-ico { align-self: flex-start; margin: 0 0 auto 0; grid-row: auto; }

/* ═══════════════════════════════════════════════════════════
   HOSTED VERSION — accounts, messages, meetings, Bible, giving
   ═══════════════════════════════════════════════════════════ */
/* dock: messages + account */
.dock-chat, .dock-acct {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: rgba(var(--ink-rgb), 0.07); color: var(--ink); margin-right: 6px;
}
.dock-chat { width: 40px; height: 40px; padding: 0; }
.dock-chat[hidden] { display: none; }
.dock-chat svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.dock-chat .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; font-size: 10px; }
.dock-acct { padding: 11px 14px; }
.acct-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: -6px -8px; border-radius: 50%; background: var(--royal); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .02em; }
@media (max-width: 900px) {
  .dock-acct { padding: 10px 11px; font-size: 11px; }
  .dock-chat { width: 36px; height: 36px; }
  .dock-cta { margin-left: 0; }
  .dock-wordmark { margin-right: auto; }
}
@media (max-width: 400px) { .dock-cta .dock-cta-t { font-size: 10px; } .dock-acct { padding: 10px 9px; } }
.menu-link .badge { margin-left: 8px; vertical-align: middle; }
.lnk-light { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.notice-sign .form-actions { margin-top: 14px; }

/* account dialog */
.acct { position: fixed; inset: 0; z-index: 360; }
.acct[hidden] { display: none; }
.acct-wrap { position: absolute; inset: 0; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.acct-card { position: relative; width: min(500px, 100%); border-radius: 28px; padding: 22px 24px 26px; --lg-tint: rgba(246, 248, 252, 0.96); animation: hubin .5s var(--ease-out); display: grid; gap: 18px; }
.acct-head { display: flex; align-items: center; gap: 12px; }
.acct-head .hub-close { margin-left: auto; }
.acct-title { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.acct-sub { font-size: 14px; color: var(--ash); }
.acct-alt { font-size: 15px; color: var(--ash); }
.acct-id { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid rgba(var(--ink-rgb), .07); border-radius: 18px; padding: 14px 16px; }
.acct-id b { display: block; font-weight: 500; font-size: 17px; }
.acct-id small { display: block; color: var(--ash); font-size: 14px; margin: 2px 0 6px; word-break: break-all; }
.acct-avatar { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--royal); color: #fff; font: 600 18px var(--sans); }
.acct-links { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-admin { background: rgba(31, 67, 176, .07); border: 1px solid rgba(31, 67, 176, .25); border-radius: 18px; padding: 16px; display: grid; gap: 12px; }
.acct-admin p { line-height: 1.45; font-size: 15px; }
.acct-admin-row { display: flex; gap: 8px; }
.acct-admin-row .finput { font: 500 18px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.acct-out { justify-content: flex-end; }
.pw-toggle { justify-self: end; margin-top: -32px; font-size: 13.5px; }
.fgroup:has(.pw-toggle) { position: relative; }

/* the Bible section */
.u-scripture { background: var(--bone); }
.scr-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.scr-head .u-lede { margin: 18px 0 26px; max-width: 30em; }
.bookgrid { display: grid; gap: 26px; }
.bookgrp .mono { margin-bottom: 10px; }
.bookchips { display: flex; flex-wrap: wrap; gap: 6px; }
.bookchip { border: 1px solid rgba(var(--ink-rgb), .12); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 13px; font: 400 14.5px/1.1 var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .4s var(--spring); }
.bookchip:hover { background: var(--royal); border-color: var(--royal); color: #fff; }
.bookchip:active { transform: scale(.95); }
@media (max-width: 900px) { .scr-wrap { grid-template-columns: 1fr; } .bookchip { padding: 9px 12px; font-size: 14px; } }

/* continuous reader */
.b-sent { height: 1px; }
.bch { padding-bottom: 18px; }
.bbook { font-family: var(--sans); font-size: clamp(30px, 4vw, 44px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; margin: 34px 0 6px; color: var(--ink); }
.bbook-n { margin-bottom: 18px; }
.bch-h { font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--royal); margin: 26px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.bch:first-of-type .bch-h { border-top: 0; }

/* offering section */
.u-offering { background: var(--white); }
.give-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.give-copy .u-lede { margin: 18px 0 22px; max-width: 30em; }
.give-points { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; }
.give-points li { padding-left: 26px; position: relative; line-height: 1.4; }
.give-points li::before { content: ''; position: absolute; left: 0; top: .32em; width: 14px; height: 8px; border-left: 2px solid var(--royal); border-bottom: 2px solid var(--royal); transform: rotate(-45deg); }
.give-quote { font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.55; color: #2a2f3d; border-left: 3px solid var(--royal); padding-left: 18px; max-width: 30em; }
.give-quote cite { display: block; font: 400 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--ash); margin-top: 10px; font-style: normal; text-transform: uppercase; }
.give-card { background: var(--bone); border-radius: 28px; padding: clamp(20px, 3vw, 34px); display: grid; gap: 22px; box-shadow: 0 1px 2px rgba(3, 20, 46, .05), 0 30px 60px -40px rgba(3, 20, 46, .35); }
.give-amt { max-width: 220px; font-size: 18px; }
.give-presets .chip span { min-height: 44px; padding: 0 16px; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.seg-light { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(var(--ink-rgb), .06); }
.seg-light button { border: 0; background: none; min-height: 38px; padding: 0 16px; border-radius: 999px; font: 500 14.5px var(--sans); color: var(--ash); cursor: pointer; }
.seg-light button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(3, 20, 46, .08), 0 6px 14px -8px rgba(3, 20, 46, .3); }
.give-go { min-height: 54px; padding: 0 28px; font-size: 16.5px; }
.give-anon { align-self: end; padding-bottom: 12px; }
.give-momo { display: grid; gap: 8px; background: #fff; border-radius: 20px; padding: 18px; border: 1px solid rgba(var(--ink-rgb), .07); }
.give-momo-num { font-size: clamp(30px, 3vw, 40px); font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.give-safe { font-size: 13.5px; color: var(--ash); }
.give-verse { font-size: 16px; color: var(--ash); margin: 0 auto 18px; max-width: 26em; }
@media (max-width: 900px) { .give-wrap { grid-template-columns: 1fr; } .give-card { border-radius: 22px; } }
.v-mail { margin: -8px 0 20px; font-size: 15px; word-break: break-all; }
.v-mail a { color: var(--royal); border-bottom: 1px solid currentColor; }
.footer-social { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }

/* dashboard: activity, administrators */
.actlist { background: #fff; border: 1px solid rgba(var(--ink-rgb), .07); border-radius: 20px; padding: 4px 18px; }
.actlist li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.actlist li:first-child { border-top: 0; }
.actlist b { display: block; font-weight: 500; font-size: 15px; }
.actlist small { display: block; color: var(--ash); font-size: 13.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.actlist time { color: var(--ash); font-size: 13px; white-space: nowrap; }
.act-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
.act-dot[data-g="People"] { background: #1f9d6a; } .act-dot[data-g="Messages"] { background: var(--royal); } .act-dot[data-g="Chats"] { background: #6f5bd6; }
.act-dot[data-g="Offerings"] { background: #d79a1c; } .act-dot[data-g="Content"] { background: #2b9bc8; } .act-dot[data-g="Admin"] { background: var(--ribbon); }
.codebox { margin-top: 6px; background: rgba(31, 67, 176, .06); border: 1px dashed rgba(31, 67, 176, .4); border-radius: 18px; padding: 16px 18px; display: grid; gap: 8px; }
.codebox-code { font: 500 clamp(28px, 4vw, 40px)/1 var(--mono); letter-spacing: .14em; color: var(--royal); }
.stat b { font-size: clamp(26px, 2.6vw, 44px); }

/* ═══════════ MESSAGES ═══════════ */
.chat { position: fixed; inset: 0; z-index: 330; background: rgba(3, 20, 46, .45); display: grid; place-items: center; padding: 16px; animation: fade .25s; }
.chat[hidden] { display: none; }
.chat-shell { width: min(1180px, 100%); height: min(860px, 100%); background: var(--bone); border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 340px minmax(0, 1fr); box-shadow: 0 40px 100px -40px rgba(3, 20, 46, .7); animation: hubin .5s var(--ease-out); }
.chat-side { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-side-head { display: flex; align-items: center; gap: 10px; padding: 18px 14px 12px 18px; }
.chat-side-head h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; margin-right: auto; }
.chat-side-head .hub-close { width: 40px; height: 40px; }
.chat-search { margin: 0 14px 10px; width: auto; padding: 10px 14px; border-radius: 999px; }
.chat-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 16px; }
.chat-list .empty { margin: 10px; }
.chat-item { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 11px 10px; border: 0; background: none; border-radius: 16px; cursor: pointer; font: inherit; color: var(--ink); }
.chat-item:hover { background: rgba(var(--ink-rgb), .04); }
.chat-item.is-open { background: rgba(31, 67, 176, .09); }
.chat-item-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.chat-item-top { display: flex; gap: 8px; align-items: baseline; }
.chat-item-top b { flex: 1; min-width: 0; font-weight: 500; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-top time { font-size: 12px; color: var(--ash); white-space: nowrap; }
.chat-item-last { font-size: 14px; color: var(--ash); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-av { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ice); color: var(--royal); font: 600 15px/1 var(--sans); }
.chat-av.is-group { background: var(--royal); color: #fff; border-radius: 14px; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bone); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-head-id { flex: 1; min-width: 0; display: grid; }
.chat-head-id b { font-weight: 500; font-size: 16.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head-id small { font-size: 13px; color: var(--ash); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-ib { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--ink); }
.chat-ib:hover { background: rgba(var(--ink-rgb), .06); }
.chat-ib svg, .chat-send svg, .call-btn svg, .cm-call-ico svg, .vp-btn svg, .chat-empty-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-call { color: var(--royal); }
.chat-back { display: none; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px clamp(12px, 3vw, 34px); display: flex; flex-direction: column; gap: 6px; }
.chat-day { align-self: center; font-size: 12.5px; color: var(--ash); background: rgba(var(--ink-rgb), .06); border-radius: 999px; padding: 5px 12px; margin: 10px 0 6px; }
.chat-note { align-self: center; text-align: center; font-size: 14px; margin: 18px 0; }
.cm { align-self: flex-start; max-width: min(78%, 520px); background: #fff; border-radius: 18px 18px 18px 6px; padding: 9px 12px 6px; box-shadow: 0 1px 1px rgba(3, 20, 46, .06); display: grid; gap: 3px; }
.cm.is-mine { align-self: flex-end; background: #dbe6ff; border-radius: 18px 18px 6px 18px; }
.cm.is-photo { padding: 4px 4px 6px; }
.cm-who { font-size: 12.5px; font-weight: 600; color: var(--royal); }
.cm-text { white-space: pre-wrap; word-break: break-word; font-size: 15.5px; line-height: 1.4; }
.cm-meta { display: flex; gap: 10px; justify-content: flex-end; align-items: center; font-size: 11.5px; color: var(--ash); padding: 0 4px; }
.cm-del { border: 0; background: none; color: var(--ash); font: inherit; cursor: pointer; opacity: 0; transition: opacity .2s; padding: 0; }
.cm:hover .cm-del, .cm-del:focus-visible { opacity: 1; }
@media (hover: none) { .cm-del { opacity: .7; } }
.cm-photo { display: block; border: 0; padding: 0; background: rgba(var(--ink-rgb), .06); border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.cm-photo img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }
.cm-call { display: flex; align-items: center; gap: 12px; padding: 4px 2px; }
.cm-call > span:nth-child(2) { display: grid; }
.cm-call b { font-weight: 500; font-size: 15px; }
.cm-call small { font-size: 13px; color: var(--ash); }
.cm-call-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--royal); color: #fff; flex: none; }
.vp { display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 2px 0; }
.vp-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--royal); color: #fff; cursor: pointer; flex: none; }
.vp-btn svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }
.vp-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(var(--ink-rgb), .15); overflow: hidden; }
.vp-bar i { display: block; height: 100%; width: 0; background: var(--royal); transition: width .2s linear; }
.vp-t { font-size: 12.5px; color: var(--ash); font-variant-numeric: tabular-nums; min-width: 34px; }
.chat-compose, .chat-rec { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); }
.chat-compose[hidden], .chat-rec[hidden] { display: none; }
.chat-compose textarea { flex: 1; min-width: 0; resize: none; max-height: 140px; border: 1px solid rgba(var(--ink-rgb), .14); border-radius: 22px; padding: 10px 15px; font: 16px/1.35 var(--sans); color: var(--ink); background: var(--bone); }
.chat-compose textarea:focus { outline: none; border-color: var(--royal); background: #fff; }
.chat-send { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--royal); color: #fff; cursor: pointer; transition: transform .4s var(--spring); }
.chat-send[hidden] { display: none; }
.chat-send:active { transform: scale(.92); }
.chat-rec { align-items: center; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); animation: livepulse 1.4s ease-out infinite; }
.rec-t { font: 500 16px var(--mono); font-variant-numeric: tabular-nums; }
.rec-hint { flex: 1; color: var(--ash); font-size: 14px; }
.chat-empty { margin: auto; text-align: center; padding: 30px; max-width: 420px; display: grid; gap: 10px; justify-items: center; }
.chat-empty h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.015em; }
.chat-empty p { color: var(--ash); line-height: 1.5; }
.chat-empty-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--royal); color: #fff; }
.chat-pick { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-pick-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.people { display: grid; gap: 4px; }
.person { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; background: #fff; border-radius: 14px; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.person > span:nth-child(2) { flex: 1; font-size: 15.5px; }
.person.is-on { background: rgba(31, 67, 176, .1); }
.person-tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(var(--ink-rgb), .25); display: grid; place-items: center; color: #fff; font-size: 13px; }
.person.is-on .person-tick { background: var(--royal); border-color: var(--royal); }
.photo-view { position: fixed; inset: 0; z-index: 420; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.photo-view img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.photo-view .hub-close { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: 14px; background: rgba(255, 255, 255, .15); }
.photo-view .hub-close svg { stroke: #fff; }
@media (max-width: 900px) {
  .chat { padding: 0; }
  .chat-shell { width: 100%; height: 100%; border-radius: 0; grid-template-columns: 1fr; padding-top: env(safe-area-inset-top, 0px); }
  .chat-main { display: none; }
  .chat.thread-open .chat-side { display: none; }
  .chat.thread-open .chat-main { display: flex; }
  .chat-back { display: grid; }
  .cm { max-width: 86%; }
}

/* ═══════════ VIDEO MEETINGS ═══════════ */
.call { position: fixed; inset: 0; z-index: 440; background: #050b18; color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(14px, env(safe-area-inset-bottom, 0px)); animation: fade .3s; }
.call-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; }
.call-head b { font-weight: 500; font-size: 17px; }
.call-head small { color: rgba(255, 255, 255, .65); font-size: 14px; margin-right: auto; }
.call-grid { display: grid; gap: 10px; min-height: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); grid-auto-rows: minmax(0, 1fr); }
.call-grid[data-n="1"], .call-grid[data-n="2"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.call-tile { position: relative; margin: 0; background: #111a2e; border-radius: 18px; overflow: hidden; display: grid; place-items: center; min-height: 140px; }
.call-tile video { width: 100%; height: 100%; object-fit: cover; }
.call-tile.is-me video { transform: scaleX(-1); }
.call-tile .chat-av { position: absolute; width: 76px; height: 76px; font-size: 24px; display: none; }
.call-tile.no-video video { opacity: 0; }
.call-tile.no-video .chat-av { display: grid; }
.call-tile figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .5); border-radius: 999px; padding: 5px 11px; font-size: 13.5px; }
.call-bar { display: flex; justify-content: center; gap: 14px; padding-top: 14px; }
.call-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.call-btn.is-leave { background: #d62839; }
.call.mic-off .call-btn.is-mic, .call.cam-off .call-btn.is-cam { background: #fff; color: #050b18; }
.call.is-mini { inset: auto 12px calc(84px + env(safe-area-inset-bottom, 0px)) auto; width: min(320px, calc(100vw - 24px)); height: 240px; border-radius: 22px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); grid-template-rows: auto minmax(0, 1fr) auto; padding: 8px; }
.call.is-mini .call-bar { gap: 8px; padding-top: 8px; }
.call.is-mini .call-btn { width: 40px; height: 40px; }
.call.is-mini .call-head small, .call.is-mini .call-btn.is-flip { display: none; }
.call-banner { position: fixed; z-index: 430; left: 50%; top: calc(80px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); width: min(460px, calc(100vw - 24px)); border-radius: 22px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; --lg-tint: rgba(5, 31, 68, .92); color: #fff; animation: popin .6s var(--spring); }
.call-banner > span:nth-child(2) { flex: 1; display: grid; min-width: 0; }
.call-banner small { color: rgba(255, 255, 255, .7); }
.bible-body { position: relative; overflow-anchor: none; }
