/* Revive Church Northampton app
   Layout: app shell — sticky top bar, scrolling content column (max 1120px),
   fixed four-tab bar on phones that moves into the top bar on wide screens.
   Brand: navy + gold from the official RCNH brand system; condensed display
   type for the bold "Church That's Alive" voice, a clean sans for reading,
   and a serif italic reserved for Scripture and the mission. */

:root {
  --navy: #041e42;
  --navy-2: #0b2b57;
  --navy-3: #16406f;
  --gold: #ac9554;
  --gold-lt: #c6b786;
  --gold-pale: #ece1aa;
  --gold-ink: #76632a; /* gold dark enough for small text on light backgrounds (5.3:1) */
  --paper: #f6f4ee;
  --card: #ffffff;
  --ink: #0d1a2b;
  --muted: #5b6574;
  --line: #e2ddcf;
  --chip: #efe9d8;
  --focus: #2f6fd6;
  --good: #1e7a4c;
  --warn: #9a5b00;
  --bad: #b3261e;
  --live: #d4282d;
  --block: #041e42;
  --on-navy: #f4f1e8;
  --on-navy-muted: #b9c2d0;
  --shadow: 0 1px 2px rgb(4 30 66 / 6%), 0 8px 24px rgb(4 30 66 / 8%);

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-word: "Crimson Pro", "Minion Pro", Georgia, "Times New Roman", serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --tab-h: 64px;
  --top-h: 60px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #06142a;
    --card: #0d1f3b;
    --ink: #eef1f6;
    --muted: #a6b0bf;
    --line: #1d3456;
    --chip: #15294a;
    --focus: #8ab4ff;
    --good: #5fd39a;
    --warn: #f0b45a;
    --bad: #ff8a80;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 30%);
    --block: #1c3d6b;
    --gold-ink: var(--gold-lt);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #06142a;
  --card: #0d1f3b;
  --ink: #eef1f6;
  --muted: #a6b0bf;
  --line: #1d3456;
  --chip: #15294a;
  --focus: #8ab4ff;
  --good: #5fd39a;
  --warn: #f0b45a;
  --bad: #ff8a80;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 30%);
  --block: #1c3d6b;
  --gold-ink: var(--gold-lt);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: var(--safe-top);
  z-index: 60;
  background: var(--navy);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: calc(var(--safe-top) + 8px); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: var(--safe-top);
  z-index: 50;
  background: var(--navy);
  color: var(--on-navy);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; flex: none; border-radius: 9px;
  background: var(--on-navy) center/78% no-repeat;
  display: grid; place-items: center; overflow: hidden;
}
.brand-mark img { width: 80%; height: 80%; object-fit: contain; }
.brand-mark.failed { background: var(--gold); }
.brand-mark.failed img { display: none; }
.brand-mark.failed::after { content: ""; width: 12px; height: 18px; background: var(--navy); clip-path: path("M6 0C7 4 12 6 12 11.5 12 15.6 9.3 18 6 18S0 15.6 0 11.5C0 8 3 7 3.5 4 5 6 5.5 7.5 5 9.5 7 8 7.5 4 6 0Z"); }
.brand-name { font: 700 22px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.brand-name small { display: block; font: 600 10.5px/1.2 var(--f-body); letter-spacing: .14em; color: var(--gold-lt); margin-top: 3px; }
.top-tabs { display: none; margin-left: auto; gap: 4px; }
.top-tabs a {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--on-navy-muted);
}
.top-tabs a[aria-current="page"] { background: rgb(255 255 255 / 10%); color: var(--on-navy); }
.top-tabs a:hover { color: var(--on-navy); }
.top-tabs svg { width: 18px; height: 18px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: transparent; border: 0; color: inherit; cursor: pointer; flex: none;
}
.icon-btn:hover { background: rgb(255 255 255 / 8%); }
.icon-btn svg { width: 24px; height: 24px; }
.menu-btn { margin-left: auto; }
@media (min-width: 900px) {
  .top-tabs { display: flex; }
  .menu-btn { margin-left: 4px; }
}

/* ---------- main column ---------- */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px var(--gutter-r) calc(var(--tab-h) + 40px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  display: grid;
  gap: 36px;
}
@media (min-width: 900px) { main { padding-bottom: 72px; gap: 48px; } }
main:focus { outline: none; }
.view-enter { animation: rise .28s ease-out backwards; } /* no lasting transform: fixed bars inside pages (verse actions, chapter arrows) must stay fixed */
@keyframes rise { from { transform: translateY(6px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .view-enter { animation: none; } * { scroll-behavior: auto !important; } }

section { display: grid; gap: 16px; min-width: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.eyebrow { font: 700 12px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
:root[data-theme="dark"] .eyebrow { color: var(--gold-lt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--gold-lt); } }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font: 800 clamp(32px, 9vw, 68px)/.92 var(--f-display); overflow-wrap: break-word; text-transform: uppercase; letter-spacing: .005em; }
h2 { font: 700 clamp(28px, 5.5vw, 38px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
h3 { font: 700 21px/1.1 var(--f-display); letter-spacing: .015em; text-transform: uppercase; }
p { margin: 0; }
.lede { font-size: 17.5px; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 20px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.scripture, .mission {
  font: italic 400 21px/1.4 var(--f-word);
  max-width: 60ch;
}
.page-head { display: grid; gap: 10px; padding-top: 4px; }
.page-head .lede { margin-top: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; }
.back-link svg { width: 16px; height: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-lt); }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-light { background: rgb(255 255 255 / 12%); color: #fff; border-color: rgb(255 255 255 / 30%); }
.btn-light:hover { background: rgb(255 255 255 / 20%); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
:root[data-theme="dark"] .btn-navy { background: var(--navy-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-navy { background: var(--navy-3); } }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.text-btn { background: none; border: 0; padding: 0; font-weight: 700; cursor: pointer; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.card.pad-lg { padding: 22px; }
.panel-navy { background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: 24px; }
.panel-navy .muted { color: var(--on-navy-muted); }
.panel-navy .eyebrow { color: var(--gold-lt); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--chip); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.chip.gold { background: var(--gold); color: var(--navy); }
.chip.live { background: var(--live); color: #fff; }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Photos: if a photo can't load (offline, preview), a brand panel shows instead. */
.photo { position: relative; overflow: hidden; background: linear-gradient(140deg, var(--navy-2), var(--navy) 60%); border-radius: var(--r); max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.failed img { display: none; }
.photo.failed::after {
  content: ""; position: absolute; inset: auto -10% -30% auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgb(172 149 84 / 35%), transparent 65%);
}

/* ---------- hero ---------- */
.hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden; color: #fff;
  min-height: 440px; display: grid; align-items: end; isolation: isolate;
  background: var(--navy);
}
.hero .photo { position: absolute; inset: 0; border-radius: 0; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(4 30 66 / 30%) 0%, rgb(4 30 66 / 55%) 45%, rgb(4 30 66 / 94%) 100%);
}
.hero-body { padding: 28px 22px 26px; display: grid; gap: 14px; max-width: 720px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-lt); }
.hero p { color: #e6e9ef; font-size: 17px; max-width: 54ch; }
.hero .culture { font: italic 400 19px/1.3 var(--f-word); color: var(--gold-pale); }
@media (min-width: 700px) { .hero { min-height: 500px; } .hero-body { padding: 44px; } }

/* ---------- quick actions ---------- */
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.quick a {
  display: grid; gap: 10px; align-content: start; min-height: 108px; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none;
}
.quick a:hover { border-color: var(--gold); }
.quick .qi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--block); color: var(--gold-lt); }
.quick .qi svg { width: 22px; height: 22px; }
.quick strong { font: 700 19px/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.quick span { font-size: 13px; color: var(--muted); }

/* ---------- service times ---------- */
.services { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.service {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
}
.service .when { grid-row: span 3; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 16px; background: var(--block); color: var(--on-navy); text-align: center; }
.service .when b { font: 800 26px/1 var(--f-display); }
.service .when i { font-style: normal; font: 700 11px/1 var(--f-body); letter-spacing: .14em; color: var(--gold-lt); margin-top: 2px; }
.service h3 { font-size: 20px; }
.service .next { font-size: 13px; font-weight: 700; color: var(--gold-ink); }
:root[data-theme="dark"] .service .next { color: var(--gold-lt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .service .next { color: var(--gold-lt); } }

/* ---------- news ---------- */
.news-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.news { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.news .photo { border-radius: 0; aspect-ratio: 16/9; }
.news-body { padding: 16px; display: grid; gap: 8px; align-content: start; }
.news-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.news h3 { font-size: 21px; }
.news.important { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }

/* ---------- photo cards ---------- */
.feature { position: relative; display: grid; align-content: end; min-height: 230px; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; }
.feature .photo { position: absolute; inset: 0; border-radius: 0; z-index: -2; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgb(4 30 66 / 88%)); }
.feature-body { padding: 20px; display: grid; gap: 4px; }
.feature h3 { font-size: 28px; color: #fff; }
.feature p { color: #dfe4ec; }
.feature .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; color: var(--gold-lt); }
.feature .go svg { width: 16px; height: 16px; }

/* ---------- watch ---------- */
.player { display: grid; gap: 14px; }
.player-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: #000; max-width: 100%; }
.player-frame iframe, .player-frame .poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { display: grid; place-items: center; cursor: pointer; padding: 0; border: 0; background: #000; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.poster .play { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 30px rgb(0 0 0 / 40%); }
.poster .play svg { width: 32px; height: 32px; margin-left: 4px; }
.player-meta { display: grid; gap: 6px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.search input { width: 100%; min-height: 48px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.video-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.video { display: grid; gap: 10px; text-decoration: none; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.video .thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: var(--navy); }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video:hover .thumb img { transform: scale(1.03); }
.video .dur { position: absolute; right: 8px; bottom: 8px; background: rgb(0 0 0 / 78%); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.video .pbtn { position: absolute; left: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; }
.video .pbtn svg { width: 16px; height: 16px; margin-left: 2px; }
.video h3 { font: 700 18px/1.15 var(--f-display); text-transform: none; letter-spacing: .01em; }
.video .meta { font-size: 13px; color: var(--muted); }

/* ---------- events ---------- */
.event-list { display: grid; gap: 12px; }
.event {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-decoration: none;
}
.event:hover { border-color: var(--gold); }
.date-badge { display: grid; place-items: center; text-align: center; width: 64px; padding: 8px 0; border-radius: 12px; background: var(--block); color: var(--on-navy); }
.date-badge i { font-style: normal; font: 700 11px/1 var(--f-body); letter-spacing: .14em; color: var(--gold-lt); }
.date-badge b { font: 800 30px/1 var(--f-display); }
.event h3 { font-size: 20px; }
.event .meta { font-size: 14px; color: var(--muted); }
.event-hero .photo { aspect-ratio: 16/9; border-radius: var(--r-lg); }
.facts { display: grid; gap: 10px; }
.fact { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.fact svg { width: 22px; height: 22px; color: var(--gold); }

/* ---------- empty / loading / error ---------- */
.state { display: grid; gap: 10px; justify-items: start; padding: 22px; border-radius: var(--r); border: 1px dashed var(--line); background: var(--card); }
.state h3 { font-size: 20px; }
.state.error { border-style: solid; border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.skeleton { border-radius: var(--r); background: linear-gradient(90deg, var(--chip), var(--card), var(--chip)); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- books ---------- */
.books { display: grid; gap: 22px 14px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 168px), 1fr)); }
.book { display: grid; gap: 10px; align-content: start; }
.book .cover { aspect-ratio: 2/3; border-radius: 6px 10px 10px 6px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow); position: relative; }
.book .cover img { width: 100%; height: 100%; object-fit: cover; }
.book .cover .title-card { position: absolute; inset: 0; padding: 16px 12px; display: grid; align-content: space-between; color: var(--on-navy); background: linear-gradient(160deg, var(--navy-2), var(--navy)); }
.book .cover .title-card b { font: 800 22px/1 var(--f-display); text-transform: uppercase; }
.book .cover .title-card small { color: var(--gold-lt); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.book h3 { font: 700 18px/1.1 var(--f-display); text-transform: none; }
.book .by { font-size: 13px; color: var(--muted); }
.book p { font-size: 13.5px; color: var(--muted); }
.book .actions { display: grid; gap: 6px; }

/* ---------- podcast ---------- */
.pod-head { display: grid; grid-template-columns: 108px 1fr; gap: 16px; align-items: center; }
.pod-head .art { width: 108px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.episodes { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.episode { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.episode:last-child { border-bottom: 0; }
.episode .pbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--block); color: var(--gold-lt); display: grid; place-items: center; cursor: pointer; }
.episode .pbtn svg { width: 18px; height: 18px; }
.episode h3 { font: 700 17px/1.2 var(--f-body); text-transform: none; letter-spacing: 0; }
.episode .meta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.episode p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.episode.open p { -webkit-line-clamp: unset; }

.miniplayer {
  position: fixed; z-index: 45; left: 0; right: 0;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding: 8px var(--gutter-r) 8px var(--gutter-l);
}
@media (min-width: 900px) { .miniplayer { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); } }
.mp { max-width: 760px; margin: 0 auto; background: var(--navy); color: var(--on-navy); border-radius: 18px; padding: 10px 12px; display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; box-shadow: 0 10px 40px rgb(0 0 0 / 35%); }
.mp .t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp .bar { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 11.5px; color: var(--on-navy-muted); font-variant-numeric: tabular-nums; }
.mp input[type="range"] { width: 100%; accent-color: var(--gold); height: 22px; }
.mp .ctrls { display: flex; gap: 2px; align-items: center; }
.mp .icon-btn { width: 40px; height: 40px; color: var(--on-navy); }
.mp .play { background: var(--gold); color: var(--navy); border-radius: 50%; }
.mp .play:hover { background: var(--gold-lt); }
.mp .speed { min-width: 44px; height: 32px; border-radius: 8px; border: 1px solid rgb(255 255 255 / 25%); background: transparent; color: var(--on-navy); font-weight: 700; font-size: 12.5px; cursor: pointer; }

/* ---------- accordion ---------- */
.accordion { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px 1fr 20px; gap: 12px; align-items: center; padding: 15px 16px; font-weight: 700; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .n { font: 800 18px/1 var(--f-display); color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.accordion summary svg { width: 18px; height: 18px; transition: rotate .2s; color: var(--muted); }
.accordion details[open] summary svg { rotate: 180deg; }
.accordion .body { padding: 0 16px 16px 62px; color: var(--muted); }
.accordion .cardinal { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-left: 6px; }

/* ---------- lists ---------- */
.list { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.list > * { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.list > *:last-child { border-bottom: 0; }
.li-link { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; text-decoration: none; }
.li-link:hover { background: color-mix(in srgb, var(--gold) 6%, transparent); }
.li-link b { display: block; }
.li-link span { font-size: 14px; color: var(--muted); }
.li-link svg { width: 18px; height: 18px; color: var(--muted); }
.dept { display: grid; gap: 2px; }
.dept b { font-weight: 700; }
.dept span { font-size: 14px; color: var(--muted); }
.checks { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.checks li::before { content: ""; width: 9px; height: 9px; margin-top: 8px; border-radius: 2px; background: var(--gold); rotate: 45deg; }

/* ---------- people ---------- */
.people { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.person { display: grid; gap: 12px; }
.person .photo { aspect-ratio: 4/5; }
.person .role { font-size: 13px; font-weight: 700; color: var(--gold-ink); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; background: var(--card); }
.radio-row input { accent-color: var(--navy); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 14px; border-radius: 12px; background: var(--chip); font-size: 14px; }
.notice svg { width: 20px; height: 20px; color: var(--gold); }
.notice.good { background: color-mix(in srgb, var(--good) 14%, var(--card)); }
.notice.good svg { color: var(--good); }
.notice.bad { background: color-mix(in srgb, var(--bad) 12%, var(--card)); }
.notice.bad svg { color: var(--bad); }

/* ---------- notes ---------- */
.notes textarea { min-height: 320px; font-size: 16.5px; line-height: 1.6; }
.bulletin-points { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.outline { white-space: pre-wrap; }

/* ---------- give ---------- */
.give-hero { display: grid; gap: 14px; padding: 28px 22px; border-radius: var(--r-lg); background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.give-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgb(172 149 84 / 18%); }
.give-hero h1 { color: #fff; }
.give-hero p { color: var(--on-navy-muted); max-width: 52ch; }
.ways { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.way { display: grid; gap: 8px; align-content: start; }
.secure { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--on-navy-muted); }
.secure svg { width: 16px; height: 16px; color: var(--gold-lt); }

/* ---------- chat ---------- */
.chat { display: grid; grid-template-rows: auto 1fr auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; min-height: 520px; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--navy); color: var(--on-navy); }
.chat-head .av { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; flex: none; }
.chat-head .av svg { width: 22px; height: 22px; }
.chat-head b { display: block; font: 700 19px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.chat-head span { font-size: 12.5px; color: var(--on-navy-muted); }
.chat-log { padding: 16px; display: grid; gap: 12px; align-content: start; overflow-y: auto; max-height: min(62vh, 640px); }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 15.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { background: var(--chip); border-bottom-left-radius: 6px; }
.msg.me { justify-self: end; background: var(--navy); color: var(--on-navy); border-bottom-right-radius: 6px; }
.msg.err { background: color-mix(in srgb, var(--bad) 12%, var(--card)); }
.msg a { color: inherit; font-weight: 700; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; cursor: pointer; }
.suggest button:hover { border-color: var(--gold); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 48px; max-height: 140px; resize: none; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); line-height: 1.4; }
.chat-form .btn { min-height: 48px; width: 48px; padding: 0; }
.fab {
  position: fixed; z-index: 44; right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px;
  border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 800; text-decoration: none; box-shadow: 0 8px 26px rgb(4 30 66 / 30%);
}
.fab svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .fab { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); } }
body.has-player .fab { display: none; }

/* ---------- bottom tabs ---------- */
.tabbar {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 0 var(--gutter-r) env(safe-area-inset-bottom, 0px) var(--gutter-l);
}
.tabbar ul { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tab-h); }
.tabbar a { height: 100%; display: grid; place-items: center; align-content: center; gap: 3px; text-decoration: none; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.tabbar a svg { width: 25px; height: 25px; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] svg { color: var(--gold); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgb(2 10 24 / 55%); opacity: 0; transition: opacity .2s; }
.scrim.open { opacity: 1; }
.drawer {
  position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
  background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
  padding: calc(var(--safe-top) + 10px) max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) 20px;
  display: grid; align-content: start; gap: 22px;
}
.drawer.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer, .scrim { transition: none; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-top .icon-btn:hover { background: var(--chip); }
.drawer h2 { font-size: 14px; font-family: var(--f-body); letter-spacing: .16em; color: var(--gold-ink); margin-bottom: 6px; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.drawer nav a { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 16px; }
.drawer nav a:hover, .drawer nav a[aria-current="page"] { background: var(--chip); }
.drawer nav a svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.drawer nav a .ext { margin-left: auto; width: 15px; height: 15px; }
.drawer .ask-cta { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--navy); color: var(--on-navy); text-decoration: none; }
.drawer .ask-cta .av { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; }
.drawer .ask-cta .av svg { width: 22px; height: 22px; }
.drawer .ask-cta span { color: var(--on-navy-muted); font-size: 13px; }
.drawer-foot { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 90; left: 50%; translate: -50% 0; bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: var(--on-navy); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

/* ---------- admin ---------- */
.admin-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.admin-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.admin-item .t { font-weight: 700; }
.admin-item .s { font-size: 13px; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.status-dot.on { background: var(--good); }
.status-dot.off { background: var(--warn); }
.footer { display: grid; gap: 14px; padding: 26px 0 8px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.socials svg { width: 20px; height: 20px; }

.row select, .list select { min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.book .cover img { z-index: 1; }
.book .cover.failed img, .thumb.failed img, .art.failed img { display: none; }
.poster.failed img, .pod-head .art.failed img { display: none; }

.filter-row { display: grid; gap: 6px; min-width: 0; }
.filter-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tab[data-spk] { min-height: 36px; font-size: 13.5px; }

/* ---------- home: greeting, now bar, week strip, latest message ---------- */
.greeting { font-size: 15px; color: var(--muted); margin-bottom: -22px; }
.greeting b { color: var(--ink); font-weight: 800; }
.greeting span { display: block; font-size: 13px; }
@media (min-width: 900px) { .greeting { margin-bottom: -30px; } }

.nowbar {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); margin-bottom: -18px;
}
.nowbar:empty { display: none; }
.nowbar > svg { width: 20px; height: 20px; color: var(--gold); }
.nowbar > svg:last-child { color: var(--muted); }
.nb-text { display: grid; gap: 1px; min-width: 0; }
.nb-text b { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-text span { font-size: 13px; color: var(--muted); }
.nowbar.now, .nowbar.live { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.nowbar.now .nb-text span, .nowbar.live .nb-text span { color: var(--on-navy-muted); }
.nowbar.now > svg:last-child, .nowbar.live > svg:last-child { color: var(--gold-lt); }
.nb-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgb(172 149 84 / 30%); animation: pulse 1.6s infinite; }
@media (min-width: 900px) { .nowbar { margin-bottom: -26px; } }

.hero { min-height: 340px; }
@media (min-width: 700px) { .hero { min-height: 440px; } }

.week {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 72%); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin;
  margin-right: calc(-1 * var(--gutter-r)); padding-right: var(--gutter-r);
}
@media (min-width: 700px) { .week { grid-auto-columns: minmax(220px, 1fr); margin-right: 0; padding-right: 0; } }
.day { scroll-snap-align: start; display: grid; align-content: start; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.day.today { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
.day-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; }
.day-head b { font: 800 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.day-head span { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.day-item { display: grid; gap: 1px; padding: 9px 11px; border-radius: 10px; background: var(--chip); text-decoration: none; }
.day-item .t { font-weight: 800; font-size: 12px; letter-spacing: .04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.day-item .n { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.day-item .g { font-size: 12px; color: var(--muted); }
.day-item.is-event { background: color-mix(in srgb, var(--gold) 18%, var(--card)); }
.day-item:hover { outline: 1.5px solid var(--gold); }

.message { display: grid; gap: 12px; text-decoration: none; }
@media (min-width: 700px) { .message { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 20px; } }
.message .thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); }
.message .thumb img { width: 100%; height: 100%; object-fit: cover; }
.message .thumb.failed img { display: none; }
.message .dur { position: absolute; right: 10px; bottom: 10px; background: rgb(0 0 0 / 78%); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.pbtn.big { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 24px rgb(0 0 0 / 35%); }
.pbtn.big svg { width: 26px; height: 26px; margin-left: 3px; }
.message h3 { font: 700 24px/1.1 var(--f-display); text-transform: none; }
.message .meta { font-size: 14px; color: var(--muted); }

/* Ask Revive button: a compact circle on phones so it never covers content. */
@media (max-width: 899px) {
  .fab { width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; font-size: 0; gap: 0; }
  .fab svg { width: 26px; height: 26px; }
}

/* ---------- official logos ---------- */
.brand-logo { height: 44px; width: auto; display: block; }
@media (max-width: 360px) { .brand-logo { height: 38px; } }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
.drawer-logo img, .footer-logo img { height: 40px; width: auto; }
.footer-logo img { height: 36px; }
.mission-panel { display: grid; gap: 20px; align-items: center; }
.mission-panel > img { width: 120px; height: auto; border-radius: 10px; justify-self: start; }
@media (min-width: 700px) { .mission-panel { grid-template-columns: 150px 1fr; gap: 28px; } .mission-panel > img { width: 150px; } }
.signin-mark { width: 44px; height: auto; }
.av.mark { background: var(--navy-2); border: 1.5px solid var(--gold); }
.av.mark img { width: 22px; height: auto; }

/* ---------- Bible & reading plan ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--chip); }
.seg a, .seg button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--muted); cursor: pointer; }
.seg a svg { width: 18px; height: 18px; }
.seg [aria-selected="true"], .seg [aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(4 30 66 / 12%); }
.small-seg { max-width: 420px; }
.small-seg button { min-height: 36px; font-size: 13.5px; letter-spacing: .04em; }

.plan-hero { display: grid; gap: 14px; padding: 24px 22px; border-radius: var(--r-lg); background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.plan-hero h2 { color: #fff; }
.plan-hero h2 span { font-size: .55em; color: var(--on-navy-muted); }
.plan-hero p { color: var(--on-navy-muted); max-width: 56ch; }
.plan-hero .eyebrow { color: var(--gold-lt); }
.plan-hero .input { background: var(--navy-2); color: var(--on-navy); border-color: rgb(255 255 255 / 20%); }
.plan-days { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.plan-days > div { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: rgb(255 255 255 / 7%); font-size: 13.5px; color: var(--on-navy-muted); }
.plan-days b { color: var(--gold-lt); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.plan-hero.compact { gap: 12px; padding: 20px; }
.ph-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.ph-stats { display: flex; gap: 18px; }
.ph-stats div { display: grid; text-align: right; }
.ph-stats b { font: 800 28px/1 var(--f-display); color: #fff; font-variant-numeric: tabular-nums; }
.ph-stats span { font-size: 12px; color: var(--on-navy-muted); }
.bar { height: 8px; border-radius: 99px; background: rgb(255 255 255 / 14%); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }

.day-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; text-align: center; }
.day-nav b { display: block; font: 800 22px/1.1 var(--f-display); text-transform: uppercase; }
.day-nav span { font-size: 13px; color: var(--muted); }
.day-nav .icon-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.day-nav [aria-disabled="true"] { opacity: .35; pointer-events: none; }
.readings { display: grid; gap: 10px; }
.reading { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.reading h3 { font: 700 20px/1.15 var(--f-display); text-transform: none; }
.reading.done { background: color-mix(in srgb, var(--good) 8%, var(--card)); }
.reading.done h3 { color: var(--muted); }
.check-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: transparent; display: grid; place-items: center; cursor: pointer; }
.check-btn svg { width: 20px; height: 20px; }
.check-btn[aria-pressed="true"] { background: var(--good); border-color: var(--good); color: #fff; }
.plan-settings summary { list-style: none; }
.plan-settings summary::-webkit-details-marker { display: none; }

.reading-card { display: grid; gap: 12px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.reading-card.invite { grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.reading-card.invite b { font: 700 21px/1.1 var(--f-display); text-transform: uppercase; }
.reading-card.invite span span { font-size: 14px; color: var(--muted); }
.reading-card.invite > svg { width: 20px; height: 20px; color: var(--muted); }
.rc-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--block); color: var(--gold-lt); display: grid; place-items: center; }
.rc-icon svg { width: 24px; height: 24px; }
.rc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; font-weight: 700; }
.rc-list .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); color: transparent; display: grid; place-items: center; }
.rc-list .tick svg { width: 13px; height: 13px; }
.rc-list li.done .tick { background: var(--good); border-color: var(--good); color: #fff; }
.rc-list li.done > span:nth-child(2) { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }

.reader-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.reader-bar .btn svg { width: 16px; height: 16px; }
.goto .input { min-height: 40px; border-radius: 999px; }
.size-ctl { display: flex; gap: 2px; }
.size-ctl .icon-btn { width: 40px; height: 40px; font-weight: 800; font-size: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
@media (max-width: 480px) { .reader-bar { grid-template-columns: 1fr auto; } .reader-bar .goto { grid-column: 1 / -1; grid-row: 2; } }
.picker { display: grid; gap: 16px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; }
.book-grid button { min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); text-align: left; font-weight: 600; font-size: 14px; cursor: pointer; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.ch-grid a { display: grid; place-items: center; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.book-grid .cur, .ch-grid .cur { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.tr-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tr-links .btn svg { width: 14px; height: 14px; }

.scripture-text { font-family: var(--f-word); color: var(--ink); max-width: 68ch; }
.scripture-text .verses { margin: 0 0 18px; line-height: 1.75; }
.scripture-text.size-0 { font-size: 17px; }
.scripture-text.size-1 { font-size: 20px; }
.scripture-text.size-2 { font-size: 23px; }
.scripture-text.size-3 { font-size: 27px; }
.scripture-text sup { font-family: var(--f-body); font-size: .6em; font-weight: 800; color: var(--gold-ink); margin: 0 3px 0 2px; vertical-align: .55em; }
:root[data-theme="dark"] .scripture-text sup { color: var(--gold-lt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scripture-text sup { color: var(--gold-lt); } }
.scripture-text .hl { background: color-mix(in srgb, var(--gold) 28%, transparent); border-radius: 4px; }
.ch-title, .ch-head { font: 800 30px/1 var(--f-display); text-transform: uppercase; margin: 6px 0 14px; font-style: normal; }
.ch-head { font-size: 22px; margin-top: 18px; color: var(--muted); }
.passage-title { font-size: clamp(32px, 7vw, 52px); }
.kjv-credit { font-family: var(--f-body); }
.chapter-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chapter-nav .btn svg { width: 16px; height: 16px; }

/* ---------- verse of the day ---------- */
.votd { display: grid; gap: 14px; padding: 26px 22px; border-radius: var(--r-lg); background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; isolation: isolate; }
.votd::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 240px; background: url("/brand/mark-gold.webp") center/contain no-repeat; opacity: .08; z-index: -1; }
.votd .eyebrow { color: var(--gold-lt); }
.votd-text { margin: 0; font: italic 400 clamp(24px, 5.6vw, 32px)/1.3 var(--f-word); color: #fff; text-wrap: pretty; max-width: 34ch; }
.votd-ref { margin: 0; font: 800 18px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-lt); }
.votd-ref span { font: 700 11px/1 var(--f-body); letter-spacing: .12em; color: var(--on-navy-muted); margin-left: 6px; }
.votd-notice { color: var(--on-navy-muted); max-width: 60ch; }

/* ---------- accounts ---------- */
.auth-card { display: grid; gap: 14px; max-width: 520px; padding: 26px 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.auth-mark { width: 52px; height: auto; }
.auth-card h1 { font-size: clamp(32px, 7vw, 44px); }
.drawer-account:empty { display: none; }
.acct-chip { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-decoration: none; }
.acct-chip > svg { width: 22px; height: 22px; justify-self: center; color: var(--gold); }
.acct-chip span span { display: block; font-size: 12.5px; color: var(--muted); }

/* ---------- reading-plan discussion ---------- */
.talk { display: grid; gap: 14px; }
.composer { display: grid; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.composer textarea { width: 100%; min-height: 84px; resize: vertical; border: 0; background: transparent; font: 400 16px/1.5 var(--f-body); }
.composer textarea:focus { outline: none; }
.composer:focus-within { border-color: var(--gold); }
.composer.small textarea { min-height: 56px; }
#posts { display: grid; gap: 10px; }
.post { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.post.reply { padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; grid-template-columns: 32px 1fr; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--block); color: var(--gold-lt); display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.post.reply .avatar { width: 32px; height: 32px; font-size: 11.5px; }
.post-main { min-width: 0; display: grid; gap: 4px; }
.post-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.post-head span { font-size: 12.5px; color: var(--muted); }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-actions { display: flex; gap: 4px; flex-wrap: wrap; margin-left: -8px; }
.pa { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: none; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.pa svg { width: 16px; height: 16px; }
.pa:hover { background: var(--chip); color: var(--ink); }
.pa.on { color: var(--bad); }
.pa.on svg { fill: currentColor; }
.replies { display: grid; gap: 0; }
.reply-slot:empty { display: none; }
.report-form { display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: var(--chip); }

/* ---------- admin picture picker ---------- */
.img-pick { display: grid; gap: 10px; }
.img-thumb { width: min(100%, 360px); aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--chip); border: 1px solid var(--line); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-up { cursor: pointer; }
.img-up:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Announcement slides are designed graphics: show them whole, never cropped. */
.news .photo.slide, .event-hero .photo.slide { aspect-ratio: 16/9; background: var(--navy); }
.news .photo.slide img, .event-hero .photo.slide img { object-fit: contain; }

/* ---------- bulletin sermon notes ---------- */
.b-lead { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--block); color: var(--on-navy); }
.b-lead dt { font: 700 11px/1.6 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lt); }
.b-lead dd { margin: 0; font: italic 400 18px/1.35 var(--f-word); }
.b-lead a { color: inherit; text-decoration-color: var(--gold-lt); }
@media (max-width: 420px) { .b-lead { grid-template-columns: 1fr; gap: 2px; } .b-lead dd + dt { margin-top: 8px; } }
.b-sections { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 900px) { .b-sections { grid-template-columns: 1fr 1fr; gap: 20px 28px; } }
.b-sections h3 { display: flex; gap: 8px; font-size: 20px; text-transform: uppercase; }
.b-sections h3 span { color: var(--gold-ink); }
.b-sections .refs { margin: 4px 0 6px; font: italic 400 16px/1.35 var(--f-word); color: var(--muted); }
.b-sections ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.b-sections ul li::marker { color: var(--gold); }
.b-remember { padding: 12px 16px; border: 1.5px solid var(--gold); border-radius: 12px; text-align: center; font: 700 19px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }

/* ---------- event cards: graphic + full date ---------- */
.event { grid-template-columns: 1fr; gap: 12px; align-items: center; padding: 12px; }
.event.weekly { grid-template-columns: minmax(112px, 36%) 1fr; }
@media (min-width: 600px) { .event, .event.weekly { grid-template-columns: 240px 1fr; gap: 18px; } }
@media (max-width: 599px) { .event:not(.weekly) .ev-body { padding: 0 4px 4px; } }
.ev-art { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: linear-gradient(140deg, var(--navy-2), var(--navy) 60%); }
.ev-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-art.plain { display: grid; place-items: center; }
.ev-art .ev-mark { width: 26%; height: auto; object-fit: contain; opacity: .9; }
.ev-date { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; min-width: 38px; padding: 3px 6px 4px; border-radius: 8px; background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgb(0 0 0 / 25%); line-height: 1; }
.ev-date i { font: 800 9.5px/1.2 var(--f-body); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.ev-date b { font: 800 19px/1 var(--f-display); }
.ev-body { display: grid; gap: 4px; min-width: 0; }
.ev-body h3 { font-size: 19px; line-height: 1.1; }
@media (min-width: 700px) { .ev-body h3 { font-size: 22px; } }
.ev-line { display: grid; grid-template-columns: 16px 1fr; gap: 6px; align-items: start; font-size: 13.5px; color: var(--muted); }
.ev-line svg { width: 15px; height: 15px; margin-top: 2px; color: var(--gold); }
.ev-line:first-of-type { color: var(--ink); font-weight: 700; }
.event.weekly:hover { border-color: var(--line); }

/* ---------- Bible tab: 3 sections ---------- */
.seg-3 .sm { display: none; }
@media (max-width: 520px) { .seg-3 .lg { display: none; } .seg-3 .sm { display: inline; } .seg-3 a { font-size: 14px; gap: 6px; } }

/* ---------- Sunday follow-along ---------- */
.fa-switch { position: sticky; top: calc(6px - var(--main-pt)); z-index: 20; box-shadow: 0 4px 14px rgb(4 30 66 / 10%); }
.fa-switch button svg { width: 17px; height: 17px; }
.fa-grid { display: grid; gap: 14px; min-width: 0; }
.fa-pane { display: none; min-width: 0; }
.fa-pane.on { display: grid; }
.fa-title { text-transform: none; font-size: clamp(24px, 5vw, 32px); }
.b-sections.one { grid-template-columns: 1fr !important; }
.ref-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; }
.b-lead .ref-btn { color: inherit; text-decoration-color: var(--gold-lt); }
.fa-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.fa-bar .icon-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.fa-bar .input { min-height: 42px; border-radius: 999px; }
#fa-text { max-width: none; }
#fa-text .v { cursor: pointer; border-radius: 4px; }
#fa-text .v.sel { background: color-mix(in srgb, var(--focus) 18%, transparent); text-decoration: underline; text-decoration-color: var(--focus); }
.fa-sel { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 10px); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 14px; background: var(--navy); color: var(--on-navy); box-shadow: var(--shadow); }
.fa-sel .text-btn { color: var(--on-navy); }
.fa-text { width: 100%; min-height: 46vh; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font-size: 16.5px; line-height: 1.6; resize: vertical; }

/* Wide screens: notes and my notes on the left, the Bible beside them. */
@media (min-width: 900px) {
  .fa-switch { display: none; }
  .fa-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "notes bible" "mine bible"; align-items: start; }
  .fa-pane { display: grid; }
  #fa-notes { grid-area: notes; }
  #fa-mine { grid-area: mine; }
  #fa-bible { grid-area: bible; position: sticky; top: calc(16px - var(--main-pt)); max-height: calc(100dvh - var(--top-h) - var(--safe-top) - 32px); overflow: auto; }
  .fa-text { min-height: 220px; }
  .fa-sel { bottom: 10px; }
}
.fa-switch { background: var(--navy); }
.fa-switch button { color: var(--on-navy-muted); }
.fa-switch [aria-selected="true"] { background: var(--gold); color: var(--navy); box-shadow: none; }
#fa-bible { scroll-padding-top: 70px; }
@media (min-width: 900px) { #fa-bible .fa-bar { position: sticky; top: -18px; z-index: 2; background: var(--card); padding: 6px 0; } }

/* ---------- home: Coming up carousel ---------- */
.carousel { display: grid; gap: 10px; min-width: 0; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.slide { scroll-snap-align: start; display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; min-width: 0; }
.slide .ev-art { border-radius: 0; }
.slide-cap { display: grid; gap: 6px; padding: 14px 16px 16px; align-content: start; }
.slide-cap .chip { justify-self: start; }
.slide-cap h3 { font-size: 22px; line-height: 1.1; }
.slide-cap .when { font-weight: 700; font-size: 15px; }
.slide-cap p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) {
  .slide { grid-template-columns: 1.55fr 1fr; align-items: center; }
  .slide-cap { padding: 22px 26px; }
  .slide-cap h3 { font-size: 28px; }
}
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 4px; }
.car-btn { width: 40px; height: 40px; color: var(--ink); }
.car-btn svg { width: 20px; height: 20px; }
.car-btn:hover { background: var(--chip); }
.dots { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; }
.dot { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.dot::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: var(--line); transition: width .2s, background .2s; }
.dot[aria-current="true"]::before { width: 22px; background: var(--gold); }

/* ---------- Watch: like, share & subscribe ---------- */
.social-card { display: grid; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.social-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.social { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.social:hover { border-color: var(--gold); }
.social b { display: block; font-size: 15px; }
.social small { display: block; font-size: 12.5px; color: var(--muted); }
.social .si { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.social .si svg { width: 22px; height: 22px; }
.social.yt .si { background: #d4282d; }
.social.fb .si { background: #1877f2; }
.social.sh .si { background: var(--block); color: var(--gold-lt); }

/* ---------- photo gallery ---------- */
a.tab { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.albums { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.album { display: grid; gap: 10px; text-decoration: none; }
.album-cover { position: relative; aspect-ratio: 3/2; border-radius: var(--r); overflow: hidden; background: linear-gradient(140deg, var(--navy-2), var(--navy) 60%); display: grid; place-items: center; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.album-cover .ev-mark { width: 22%; height: auto; object-fit: contain; }
.album:hover .album-cover img:not(.ev-mark) { transform: scale(1.03); }
.album-count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; gap: 5px; align-items: center; padding: 3px 8px; border-radius: 99px; background: rgb(0 0 0 / 65%); color: #fff; font-size: 12.5px; font-weight: 700; }
.album-count svg { width: 14px; height: 14px; }
.album-meta b { display: block; font: 700 19px/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.album-meta span { font-size: 13.5px; color: var(--muted); }
.photo-grid { display: grid; gap: 4px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
@media (min-width: 1000px) { .photo-grid { grid-template-columns: repeat(5, 1fr); } }
.photo-grid .ph, .photo-strip .ph { aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--chip); cursor: zoom-in; display: block; }
.photo-grid .ph img, .photo-strip .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 34%); gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.photo-strip .ph { scroll-snap-align: start; aspect-ratio: 4/3; border-radius: 10px; }
@media (min-width: 700px) { .photo-strip { grid-auto-columns: minmax(160px, 1fr); } }
.lightbox { position: fixed; inset: 0; z-index: 95; background: #020814; display: grid; grid-template-rows: auto 1fr; color: #fff; padding: var(--safe-top) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; }
.lb-top .icon-btn { color: #fff; }
.lb-top .icon-btn:hover { background: rgb(255 255 255 / 12%); }
.lb-n { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; color: #cfd6e2; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 8px 12px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 14%); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-nav svg { width: 24px; height: 24px; }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
@media (max-width: 600px) { .lb-nav { display: none; } }
.admin-photos .ph { position: relative; cursor: pointer; }
.admin-photos .ph.is-hidden img { opacity: .3; filter: grayscale(1); }
.admin-photos .ph span { position: absolute; inset: auto 4px 4px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; }

/* ---------- menu: folding sections ---------- */
.menu-groups { display: grid; border-top: 1px solid var(--line); }
.menu-group { border-bottom: 1px solid var(--line); }
.menu-head { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding: 14px 6px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); font: inherit; border-radius: 10px; }
.menu-head:hover { background: var(--chip); }
.menu-head b { display: block; font: 700 13.5px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
:root[data-theme="dark"] .menu-head b { color: var(--gold-lt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .menu-head b { color: var(--gold-lt); } }
.menu-head small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-head svg { width: 18px; height: 18px; color: var(--muted); transition: rotate .2s; }
.menu-head[aria-expanded="true"] svg { rotate: 180deg; }
.menu-head[aria-expanded="true"] small { display: none; }
.menu-group ul { padding: 0 0 10px !important; }
@media (prefers-reduced-motion: no-preference) { .menu-group ul:not([hidden]) { animation: rise .2s ease-out both; } }
.menu-head > span { min-width: 0; }
.drawer { overflow-x: hidden; }

/* ---------- appearance (light / dark) ---------- */
.theme-pick { display: grid; gap: 8px; }
.theme-pick .seg button { min-height: 40px; font-size: 14px; gap: 6px; }
.theme-pick .seg svg { width: 17px; height: 17px; }
.seg [aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(4 30 66 / 12%); }

/* ---------- Bible: text size + chapter/verse picker ---------- */
.ch-grid button { display: grid; place-items: center; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; }
.ch-grid a:hover, .ch-grid button:hover { border-color: var(--gold); }
.reader-bar { grid-template-columns: auto 1fr; }
@media (max-width: 480px) { .reader-bar { grid-template-columns: 1fr; } .reader-bar .goto { grid-column: auto; grid-row: auto; } }
.reader-opts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.reader-opts .seg { flex: 1 1 220px; }
.size-seg { max-width: 360px; }
.size-seg button { min-height: 40px; gap: 6px; font-size: 13.5px; }
.size-seg .aa { font-family: var(--f-word); font-weight: 700; line-height: 1; }
.size-seg .aa-0 { font-size: 14px; }
.size-seg .aa-1 { font-size: 18px; }
.size-seg .aa-2 { font-size: 23px; }
@media (max-width: 380px) { .size-seg .lbl { display: none; } }
.scripture-text.size-0 { font-size: 17px; }
.scripture-text.size-1 { font-size: 20px; }
.scripture-text.size-2 { font-size: 25px; line-height: 1.6; }
.scripture-text .v.hl { scroll-margin-top: 70px; }

/* ---------- Bible reader (Bible App style) ---------- */
body.in-reader .fab { display: none; }
.yv-bar { position: sticky; top: calc(0px - var(--main-pt)); z-index: 30; display: flex; align-items: center; gap: 4px; padding: 8px 0; margin: -8px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.yv-ref { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--navy); color: var(--on-navy); font: 800 16px/1 var(--f-body); cursor: pointer; }
.yv-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 800 13px/1 var(--f-body); letter-spacing: .04em; cursor: pointer; }
.yv-ref svg, .yv-pill svg { width: 15px; height: 15px; }
.yv-sp { flex: 1; }
.yv-bar .icon-btn { width: 40px; height: 40px; color: var(--ink); }
.yv-bar .icon-btn:hover { background: var(--chip); }
.yv-bar .icon-btn svg { width: 21px; height: 21px; }
.yv-bar [aria-pressed="true"] { background: var(--gold); color: var(--navy); }
.yv-aa { font: 800 16px/1 var(--f-word); }
@media (max-width: 380px) { .yv-pill { display: none; } }
.yv-menu { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.yv-menu > b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.yv-menu .seg button { min-height: 40px; font-size: 14px; }
.yv-menu .f-serif { font-family: var(--f-word); font-size: 16px !important; }
.yv-tr { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.yv-tr.cur { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--card)); }
.yv-tr .small { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.yv-tr svg { width: 14px; height: 14px; }
#pick-in { min-height: 46px; border-radius: 999px; }

.scripture-text .ch-title { font: 800 30px/1.1 var(--f-display); text-transform: uppercase; text-align: center; margin: 22px 0 18px; letter-spacing: .02em; }
.scripture-text .ch-title span { display: block; font-size: 2.2em; line-height: 1; color: var(--gold-ink); }
.scripture-text.font-sans { font-family: var(--f-body); }
.scripture-text.space-compact .verses { line-height: 1.5; }
.scripture-text.space-comfortable .verses { line-height: 1.85; }
.scripture-text.no-num sup { display: none; }
.scripture-text .v { cursor: pointer; border-radius: 4px; padding: 1px 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background .15s; }
.scripture-text .v.sel { text-decoration: underline dotted var(--ink); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.scripture-text .v.speaking { background: color-mix(in srgb, var(--focus) 16%, transparent); }
.scripture-text .mk { display: inline-flex; vertical-align: middle; margin-left: 3px; color: var(--gold); }
.scripture-text .mk svg { width: .8em; height: .8em; }
.hl-yellow { --hlc: #f6dd5a; } .hl-green { --hlc: #84d48c; } .hl-blue { --hlc: #7cc0f0; } .hl-pink { --hlc: #f39cc2; } .hl-orange { --hlc: #f5a95c; }
.scripture-text .v[class*="hl-"] { background: color-mix(in srgb, var(--hlc) 45%, transparent); }
.kjv-credit { text-align: center; }

.yv-nav { position: fixed; z-index: 35; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; }
.yv-nav svg { width: 22px; height: 22px; }
.yv-nav.prev { left: max(14px, env(safe-area-inset-left, 0px)); }
.yv-nav.next { right: max(14px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .yv-nav { bottom: 24px; } .yv-nav.prev { left: max(14px, calc(50% - 600px)); } .yv-nav.next { right: max(14px, calc(50% - 600px)); } }
body.sheet-open .yv-nav { display: none; }

.vsheet { position: fixed; z-index: 60; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); margin: 0 auto; max-width: 620px; display: grid; gap: 12px; padding: 14px 16px 16px; border-radius: 20px 20px 0 0; background: var(--card); border: 1px solid var(--line); box-shadow: 0 -10px 40px rgb(4 30 66 / 22%); max-height: 70vh; overflow-y: auto; }
@media (min-width: 900px) { .vsheet { bottom: 16px; border-radius: 20px; } }
@media (prefers-reduced-motion: no-preference) { .vsheet:not([hidden]) { animation: sheet-up .2s ease-out both; } }
@keyframes sheet-up { from { transform: translateY(20px); opacity: .5; } to { transform: none; opacity: 1; } }
.vs-head { display: flex; justify-content: space-between; align-items: center; }
.vs-head b { font-size: 16px; }
.vs-head .icon-btn { width: 36px; height: 36px; color: var(--ink); }
.vs-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgb(0 0 0 / 8%); cursor: pointer; display: grid; place-items: center; padding: 0; }
.sw-yellow { background: #f6dd5a; } .sw-green { background: #84d48c; } .sw-blue { background: #7cc0f0; } .sw-pink { background: #f39cc2; } .sw-orange { background: #f5a95c; }
.sw-none { background: var(--card); border-color: var(--line); color: var(--muted); }
.sw-none svg { width: 18px; height: 18px; }
.vs-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.vs-actions button { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 700 12px/1.1 var(--f-body); cursor: pointer; }
.vs-actions button:hover, .vs-actions [aria-pressed="true"] { background: var(--chip); }
.vs-actions svg { width: 22px; height: 22px; }
.vs-note { display: grid; gap: 8px; }
.vs-note textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font: inherit; resize: vertical; }
.vs-compare { display: grid; gap: 8px; }

.saved-list { display: grid; gap: 8px; }
.saved-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
a.saved-item { grid-template-columns: 1fr; }
.saved-item[class*="hl-"] { border-left: 6px solid var(--hlc); }
.saved-link { display: grid; gap: 4px; text-decoration: none; color: var(--ink); min-width: 0; }
.saved-text { font-family: var(--f-word); font-size: 17px; line-height: 1.45; }
.saved-text mark { background: color-mix(in srgb, var(--gold) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.saved-note { display: flex; gap: 6px; font-size: 14px; color: var(--muted); }
.saved-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--gold); }
.saved-item .icon-btn { width: 38px; height: 38px; color: var(--muted); }
.menu-group.guest .menu-head b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 2px; background: var(--gold); rotate: 45deg; vertical-align: 2px; }

/* ---------- church photos ---------- */
.hero .photo img { object-position: 50% 35%; }
.person .photo img { object-position: 50% 30%; }
.group-card .group-photo { aspect-ratio: 16/9; width: calc(100% + 44px); max-width: none; margin: -22px -22px 4px; border-radius: var(--r) var(--r) 0 0; }
.group-card { overflow: hidden; }
.plan-photo { aspect-ratio: 21/9; border-radius: 22px; margin-bottom: -6px; }
.plan-photo img { object-position: 50% 40%; }
.covering { display: grid; gap: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.covering .photo { aspect-ratio: 1; max-width: 320px; }
.covering .photo img { object-position: 50% 30%; }
@media (min-width: 760px) { .covering { grid-template-columns: 260px 1fr; align-items: start; gap: 24px; } }

/* ---------- Give: ways to give with logos ---------- */
.ways-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.way-tile { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
a.way-tile:hover { border-color: var(--gold); }
.way-tile > svg { width: 16px; height: 16px; color: var(--muted); }
.way-tile b { display: block; font-size: 16px; }
.way-tile small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.way-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.way-logo svg { width: 28px; height: 28px; }
.wl-online { background: var(--block); color: var(--gold-lt); }
.wl-paypal { background: #003087; }
.wl-venmo { background: #008cff; }
.wl-check, .wl-person { background: var(--chip); color: var(--ink); }

/* Navy panels keep the light gold for small text. */
.panel-navy, .plan-hero, .give-hero, .hero, .b-lead, .nowbar.now, .nowbar.live, .chat-head, .mp, .ask-cta, .feature, .yv-ref, .fa-switch { --gold-ink: var(--gold-lt); }
/* Grid children may shrink, so scrolling rows (tabs, chips) never widen the page. */
main > * { min-width: 0; }
/* Small labels a touch larger for legibility. */
.tabbar a { font-size: 11.5px; }
.accordion .cardinal { font-size: 11.5px; }
.service .when i, .date-badge i { font-size: 11.5px; }
.page-head > * { min-width: 0; }
/* Calendar reminder rows: text on top, buttons below on phones. */
@media (max-width: 520px) { .reminder-row { grid-template-columns: 1fr; gap: 10px; } }
/* Home hero: deeper shade behind the headline so it reads over bright photos. */
.hero::before { background: linear-gradient(180deg, rgb(4 30 66 / 62%) 0%, rgb(4 30 66 / 70%) 45%, rgb(4 30 66 / 95%) 100%); }
.hero h1, .hero p { text-shadow: 0 1px 12px rgb(4 30 66 / 45%); }

/* Add to Home Screen steps (Notifications & reminders) */
.install-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
.install-steps li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; }
.install-steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy, #041e42); color: #fff; font-weight: 800; font-size: 14px; }
.install-steps svg { width: 17px; height: 17px; vertical-align: -3px; color: var(--gold-ink); }
.install-steps b { color: var(--ink); }
:root[data-theme="dark"] .install-steps li::before { background: var(--gold); color: #041e42; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .install-steps li::before { background: var(--gold); color: #041e42; } }

#outreach, #install { scroll-margin-top: 16px; }

/* Free resource (His Word Heals) */
.free-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.free-cover { width: min(220px, 60%); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 14px 34px rgb(4 30 66 / 28%); justify-self: center; }
@media (min-width: 720px) { .free-hero { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; } .free-cover { width: 100%; } }
.free-verse { margin: 0; padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--chip); border-radius: 0 12px 12px 0; font: italic 17px/1.5 Lora, Georgia, serif; }
.free-verse cite { display: block; margin-top: 6px; font: 700 12px/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); font-style: normal; }
.free-inside { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.free-inside li { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.free-inside svg { width: 16px; height: 16px; color: var(--gold-ink); flex: none; }
#free-form .tiny svg { width: 13px; height: 13px; vertical-align: -2px; }
.free-promo { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.free-promo img { width: 64px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 12px rgb(4 30 66 / 22%); }
.free-promo h3 { font-size: 20px; }
.free-promo > svg { width: 20px; height: 20px; color: var(--muted); }

/* iPhone Home Screen app: the page starts below the status bar, so the sticky
   top bar no longer covers the first lines of every page. Only the installed app
   needs this; in Safari or an in-app viewer --safe-top is 0, so there's no gap. */
:root { --safe-top: 0px; --main-pt: 20px; }
@media (display-mode: standalone) { :root { --safe-top: env(safe-area-inset-top, 0px); } }
:root.is-standalone { --safe-top: env(safe-area-inset-top, 0px); }
body { padding-top: var(--safe-top); }

/* Reader: "Back to sermon notes" stays on screen while reading */
.reader-back { position: fixed; z-index: 36; left: 50%; translate: -50% 0; bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 999px; background: var(--navy); color: var(--on-navy); font-weight: 700; font-size: 14.5px; text-decoration: none; box-shadow: var(--shadow); white-space: nowrap; }
.reader-back svg { width: 16px; height: 16px; }
@media (min-width: 900px) { .reader-back { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); } }
.back-link { min-height: 40px; padding-right: 8px; }
/* Phones: keep the first line close under the top bar */
@media (max-width: 899px) { :root { --main-pt: 14px; } }
main { padding-top: var(--main-pt); }

/* ---------- My Notes (list like iPhone Notes, editor like YouVersion) ---------- */
.seg-4 { gap: 2px; }
@media (max-width: 520px) { .seg-4 a { font-size: 13px; gap: 4px; padding: 0 4px; } .seg-4 a svg { width: 16px; height: 16px; } }
.notes-sync { display: flex; gap: 8px; align-items: flex-start; margin: -6px 0 0; color: var(--muted); }
.notes-sync svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.notes-sync a { color: inherit; font-weight: 700; text-decoration: underline; }
.notes-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.notes-bar .search { margin: 0; }
.notes-group { display: grid; gap: 8px; }
.notes-group h3 { font: 800 15px/1.2 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 6px 4px 0; }
.notes-rows { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.note-row { display: grid; gap: 3px; padding: 13px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.note-row:last-child { border-bottom: 0; }
.note-row:active { background: var(--chip); }
.note-row b { font-size: 16.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-sub { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-date { color: var(--ink); font-weight: 600; margin-right: 4px; }
.note-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.note-chips .chip { font-size: 12px; padding: 3px 9px; }

.note-screen { display: grid; gap: 12px; }
.note-top { position: sticky; top: calc(0px - var(--main-pt)); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 8px 0; background: var(--paper); }
.note-top .sp { flex: 1; }
.note-top .icon-btn.danger { color: #fff; background: #b42318; }
.note-card { padding: 18px 18px 22px; display: grid; gap: 10px; }
.note-title-in { width: 100%; border: 0; background: transparent; font: 800 25px/1.2 var(--f-body); color: var(--ink); padding: 2px 0; outline: none; }
.note-title-in::placeholder { color: var(--muted); opacity: .7; }
.note-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.note-date-in { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.note-date-in svg { width: 16px; height: 16px; color: var(--gold-ink); }
.note-date-in input { border: 0; background: transparent; color: var(--ink); font: 600 14.5px/1 var(--f-body); padding: 4px 0; }
.note-refs { display: grid; gap: 8px; }
.note-refs:empty { display: none; }
.note-ref { background: var(--chip); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.note-ref-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.note-ref-head .chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; }
.note-ref-head .chip svg { width: 14px; height: 14px; }
.note-ref-head .icon-btn { width: 32px; height: 32px; }
.note-ref-text { margin: 0; font: italic 15.5px/1.5 Lora, Georgia, serif; color: var(--ink); }
.note-ref-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.note-tools { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 2px; padding: 5px; border-radius: 12px; background: var(--chip); position: sticky; top: calc(58px - var(--main-pt)); z-index: 5; }
.note-tools button { flex: none; min-width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; font-size: 16px; color: var(--ink); cursor: pointer; }
.note-tools button:active, .note-tools button:hover { background: var(--card); }
.note-tools .note-tool-verse { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; font-size: 13.5px; font-weight: 700; margin-left: auto; }
.note-tools .note-tool-verse svg { width: 16px; height: 16px; }
.note-body { min-height: 45vh; outline: none; font-size: 17px; line-height: 1.6; color: var(--ink); padding: 4px 2px; overflow-wrap: anywhere; }
.note-body.compact { min-height: 220px; }
.note-body:empty::before { content: attr(data-placeholder); color: var(--muted); opacity: .75; pointer-events: none; }
.note-body blockquote { margin: 8px 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--gold); font-family: Lora, Georgia, serif; font-style: italic; }
.note-body ul, .note-body ol { padding-left: 24px; margin: 6px 0; }
.note-private { text-align: center; }
.note-private svg { width: 13px; height: 13px; vertical-align: -2px; }
#fa-editor .note-title-in { font-size: 21px; }
#fa-editor .note-tools { top: calc(64px - var(--main-pt)); }


/* ---------- App frame: only the content scrolls ----------
   The page itself never scrolls; <main> does. The top bar and bottom tabs stay
   put like a native app (iPhone Safari moves bars pinned to a scrolling page,
   especially after the keyboard has been open). */
html, body { height: 100%; }
/* Pin the app to the whole screen (iPhone sometimes reports the Home Screen app's
   height a little short, which left a gap under the tabs), and make the tab bar the
   last row of the frame so it always sits on the bottom edge. */
body { position: fixed; inset: 0; height: auto; overflow: hidden; display: flex; flex-direction: column; }
.topbar { position: relative; top: auto; flex: none; }
@media (max-width: 899px) {
  .tabbar { position: relative; flex: none; bottom: auto; order: 10; }
  main { padding-bottom: 96px !important; }
}
/* If the phone still leaves a sliver below the tabs, fill it with the tab bar's colour. */
.tabbar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 200px; background: var(--card); pointer-events: none; }
main {
  flex: 1 1 auto; min-height: 0; grid-auto-rows: max-content; width: 100%; max-width: none; margin: 0; box-sizing: border-box;
  position: relative; align-content: start; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  padding-left: max(var(--gutter-l), calc((100% - 1120px) / 2 + var(--gutter-l)));
  padding-right: max(var(--gutter-r), calc((100% - 1120px) / 2 + var(--gutter-r)));
}

/* ---------- Revive Echo (music) ---------- */
.echo-card { display: grid; gap: 14px; padding: 20px; border-radius: 22px; background: linear-gradient(135deg, var(--navy) 0%, #0b2b57 100%); color: var(--on-navy); --gold-ink: var(--gold-lt); }
.echo-card h2 { color: #fff; }
.echo-card .muted { color: var(--on-navy-muted, #c9d2e0); }
.echo-card .text-btn { color: var(--gold-lt); justify-self: start; }
.echo-art { position: relative; display: grid; place-items: center; width: 96px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #0b2b57; color: var(--gold-lt); box-shadow: 0 10px 26px rgb(0 0 0 / 30%); }
.echo-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.echo-art span svg { width: 40%; height: 40%; }
.echo-art:not(.noimg) span { display: none; }
.echo-art.lg { width: min(220px, 60vw); justify-self: center; }
.music-links { display: grid; gap: 10px; }
@media (min-width: 640px) { .music-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.music-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; border: 1px solid var(--line); min-height: 56px; }
.music-link:active { transform: scale(.98); }
.music-link .ml-logo svg { width: 34px; height: 34px; display: block; }
.music-link small { display: block; font-size: 12px; color: var(--muted); line-height: 1.1; }
.music-link b { font-size: 16px; line-height: 1.2; }
.echo-hero { display: grid; gap: 20px; }
@media (min-width: 760px) { .echo-hero { grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 32px; } .echo-art.lg { width: 100%; } }
.echo-embed { border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.echo-embed iframe { display: block; border: 0; }
.echo-embed .state { padding: 24px; }
.echo-art span { position: absolute; inset: 0; display: grid; place-items: center; }
.echo-card .text-btn { display: inline-flex; align-items: center; gap: 4px; }
.echo-card .text-btn svg { width: 16px; height: 16px; }
/* The Revive Echo logo is square with words, so show it as a rounded square (not a circle). */
.echo-art { border-radius: 18px; background: #05080f; }
.echo-art.lg { border-radius: 24px; }

/* ---------- Sunday Service screen ---------- */
.svc-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r); text-decoration: none; color: inherit;
  background: var(--card); border: 1.5px solid var(--gold); margin-bottom: -18px;
}
.svc-card .qi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold-lt); }
.svc-card .qi svg { width: 20px; height: 20px; margin-left: 2px; }
.svc-card > svg:last-child { width: 20px; height: 20px; color: var(--muted); }
@media (min-width: 900px) { .svc-card { margin-bottom: -26px; } }
.svc-title { font-size: clamp(22px, 4.5vw, 30px); text-transform: none; }
.svc-give-row { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-give-row .btn { flex: 1 1 140px; justify-content: center; }
.svc-points { display: grid; gap: 10px; }
.svc-points details { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); }
.svc-points summary { display: flex; gap: 10px; align-items: baseline; cursor: pointer; list-style: none; font: 700 18px/1.25 var(--f-display); text-transform: uppercase; }
.svc-points summary::-webkit-details-marker { display: none; }
.svc-points summary::after { content: "+"; margin-left: auto; color: var(--gold-ink); font-size: 22px; line-height: 1; }
.svc-points details[open] summary::after { content: "–"; }
.svc-points summary .n { color: var(--gold-ink); min-width: 1ch; }
.svc-points .refs { margin: 8px 0 6px; font: italic 400 16px/1.35 var(--f-word); color: var(--muted); }
.svc-points ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.svc-points ul li::marker { color: var(--gold); }
.svc-ann { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-bottom: 12px; }
.svc-ann h3 { font-size: 18px; text-transform: none; }
.svc-ann p { margin: 0; }
.install-help { border-top: 1px solid var(--line); padding-top: 12px; }
.install-help summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.install-help[open] { display: grid; gap: 12px; }

/* ---------- First-visit "add to Home Screen" chat bubble ---------- */
.nudge {
  position: fixed; z-index: 70; inset: 0; display: grid; align-items: end; justify-items: center;
  padding: 16px 12px calc(var(--tab-h) + 12px + env(safe-area-inset-bottom, 0px));
  background: rgb(4 30 66 / 0%); transition: background .22s ease;
}
.nudge.open { background: rgb(4 30 66 / 45%); }
.nudge-card {
  width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; display: grid; gap: 12px;
  padding: 14px; border-radius: 22px; background: var(--paper); box-shadow: 0 18px 50px rgb(4 30 66 / 35%);
  opacity: 0; translate: 0 20px; transition: opacity .22s ease, translate .22s ease;
}
.nudge.open .nudge-card { opacity: 1; translate: 0 0; }
.nudge-head { display: flex; align-items: center; gap: 10px; }
.nudge-head img { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); padding: 6px; }
.nudge-head div { display: grid; line-height: 1.2; }
.nudge-head b { font-size: 15px; }
.nudge-head span { font-size: 12px; color: var(--muted); }
.nudge-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--card); color: var(--ink); cursor: pointer; }
.nudge-x svg { width: 18px; height: 18px; }
.nudge-bubble { display: grid; gap: 12px; padding: 14px 16px; border-radius: 6px 20px 20px 20px; background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.nudge-bubble p { margin: 0; font-size: 15px; }
.nudge-bubble .install-steps { margin: 0; gap: 10px; }
.nudge-bubble .install-steps li { font-size: 14.5px; }
.nudge-actions { align-items: center; }
@media (min-width: 900px) { .nudge { display: none; } }
@media (prefers-reduced-motion: reduce) { .nudge, .nudge-card { transition: none; } }

/* ---------- Ministry of Helps serving schedule ---------- */
.serving-head { display: flex; gap: 12px; align-items: center; }
.serving-head .qi { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--gold-lt); }
.serving-head .qi svg { width: 22px; height: 22px; }
.serving-head h3 { text-transform: none; font-size: 20px; line-height: 1.2; }
.serving-card p { margin: 0; }
.serving-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.serving-actions .btn { flex: 1 1 180px; justify-content: center; }
.serving-tip { font-size: 14px; }
.nudge-card .serving-card { box-shadow: none; }
@media (min-width: 900px) { .nudge.nudge-any { display: grid; align-items: center; } }

/* Admin → Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat-tile { display: grid; gap: 4px; }
.stat-tile b { font-size: 2rem; line-height: 1.1; }
.stat-chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.stat-chart span { flex: 1; height: max(var(--h), 2px); background: var(--gold, #c9a227); border-radius: 3px 3px 0 0; }
.stat-axis { display: flex; justify-content: space-between; }
.stat-bars { display: grid; gap: 8px; }
.stat-bar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: 8px; font-size: .9rem; }
.stat-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-bar i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--gold, #c9a227) var(--w), color-mix(in srgb, currentColor 12%, transparent) var(--w)); }
.stat-bar b { font-weight: 600; font-size: .85rem; white-space: nowrap; }
