/* ChurchSite.AI public site + member app.
   Colors, fonts and radii come from /theme.css (one of the 10 styles). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--base-size, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  text-transform: var(--heading-case);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--c-surface); color: var(--c-text); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 24px 0; }
.icon { flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--btn-radius); border: 1.5px solid transparent;
  font: inherit; font-weight: 650; font-size: .97rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .06s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-accent); color: var(--c-accent-text); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-outline { background: transparent; color: var(--c-accent); border-color: currentColor; }
.btn-outline:hover { background: var(--c-soft); }
.btn-ghost { background: transparent; color: var(--c-text); }
.btn-ghost:hover { background: var(--c-soft); }
.btn-light { background: #fff; color: #111; }
.btn-on-dark { background: transparent; color: var(--c-hero-text); border-color: color-mix(in srgb, var(--c-hero-text) 55%, transparent); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-danger { background: #B42318; color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--c-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- live banner ---------- */
.live-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 6px 16px; background: #B42318; color: #fff;
  font-weight: 650; font-size: .95rem; text-decoration: none; text-align: center;
}
.live-banner[hidden] { display: none; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } * { scroll-behavior: auto !important; } }
.live-banner:hover { color: #fff; text-decoration: underline; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--c-surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--c-border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--c-text); text-decoration: none; font-weight: 750; font-size: 1.05rem; line-height: 1.15; min-width: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--c-accent); color: var(--c-accent-text); display: grid; place-items: center; font-family: var(--font-heading); font-size: 1.2rem; flex-shrink: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: none; margin-left: auto; align-items: center; gap: 4px; }
.nav a { color: var(--c-text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--c-soft); }
.header-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--c-text); cursor: pointer; }
.icon-btn:hover { background: var(--c-soft); }
.mobile-menu { border-top: 1px solid var(--c-border); background: var(--c-surface); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: flex; align-items: center; min-height: 52px; padding: 0 20px; color: var(--c-text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--c-border); }
.mobile-menu .wrap { padding: 8px 0 16px; }
.mobile-menu .menu-actions { display: grid; gap: 10px; padding: 16px 20px 0; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .header-actions { margin-left: 8px; }
  .nav-toggle { display: none; }
}

/* ---------- bottom bar (public, phones) ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--c-surface); border-top: 1px solid var(--c-border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-bar a, .bottom-bar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 62px; color: var(--c-muted); text-decoration: none; font: inherit; font-size: .72rem; font-weight: 650;
  background: none; border: 0; cursor: pointer;
}
.bottom-bar a[aria-current="page"], .bottom-bar a:hover { color: var(--c-accent); }
body.has-bottom-bar { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .bottom-bar { display: none; } body.has-bottom-bar { padding-bottom: 0; } }

/* ---------- messages ---------- */
.messages { display: grid; gap: 8px; margin: 16px auto; }
.msg { padding: 12px 16px; border-radius: 12px; background: var(--c-soft); color: var(--c-text); border: 1px solid var(--c-border); font-weight: 550; }
.msg-error { background: #FDECEA; color: #7A1A12; border-color: #F5C2BC; }
.msg-success { border-color: color-mix(in srgb, var(--c-accent) 35%, var(--c-border)); }
:root[data-theme=dark] .msg-error { background: #3A1512; color: #FFD9D4; border-color: #6B2620; }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section + .section { padding-top: 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card > :last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { border-color: var(--c-accent); }
.card-img { width: calc(100% + 44px); margin: -22px -22px 18px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.soft { background: var(--c-soft); border-color: transparent; }

.hero { background: var(--c-hero-bg); color: var(--c-hero-text); position: relative; overflow: hidden; }
.hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.6)); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; }
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero h1 { color: inherit; margin-bottom: .3em; }
.hero p { font-size: 1.12rem; opacity: .9; max-width: 38em; }
.hero.center .hero-copy { text-align: center; margin: 0 auto; }
.hero.center p { margin-left: auto; margin-right: auto; }
.hero.center .row { justify-content: center; }
.eyebrow { font-size: .8rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-bottom: 12px; }
.service-card { background: var(--c-surface); color: var(--c-text); border-radius: calc(var(--radius) + 4px); padding: 22px; box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.service-card h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); font-family: var(--font-body); font-weight: 750; }
.times { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 12px; }
.time { background: var(--c-soft); border-radius: var(--radius); padding: 12px 14px; }
.time strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--c-accent); line-height: 1.1; }
.time span { font-size: .9rem; color: var(--c-muted); }
@media (min-width: 900px) {
  .hero .wrap { padding-top: 96px; padding-bottom: 96px; }
  .hero-inner.with-card { grid-template-columns: 1.3fr 1fr; }
}

.prose { max-width: 68ch; }
.prose.wide { max-width: none; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose blockquote { margin: 1em 0; padding: .4em 0 .4em 1em; border-left: 3px solid var(--c-accent); color: var(--c-muted); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .3em; }

.date-badge { width: 58px; flex-shrink: 0; text-align: center; border-radius: calc(var(--radius) * .6); background: var(--c-hero-bg); color: var(--c-hero-text); padding: 7px 0; line-height: 1.1; }
.date-badge small { display: block; font-size: .7rem; font-weight: 750; letter-spacing: .08em; }
.date-badge strong { display: block; font-size: 1.35rem; }
.event-row { display: flex; gap: 16px; align-items: center; }
.event-row h3 { margin: 0 0 2px; font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; text-transform: none; }
.list { display: grid; gap: 12px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--c-soft); color: var(--c-text); white-space: nowrap; }
.badge-warn { background: #FBEFD9; color: #6B3F07; }
.badge-live { background: #B42318; color: #fff; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); }

.cta { border-radius: calc(var(--radius) + 4px); padding: 36px 24px; text-align: center; }
.cta.accent { background: var(--c-accent); color: var(--c-accent-text); }
.cta.accent .btn-primary { background: var(--c-accent-text); color: var(--c-accent); }
.cta.soft { background: var(--c-soft); }
.cta p { max-width: 42em; margin-left: auto; margin-right: auto; }

.staff img, .avatar-lg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; background: var(--c-soft); }
.avatar-placeholder { width: 100%; aspect-ratio: 1; border-radius: var(--radius); background: var(--c-soft); display: grid; place-items: center; color: var(--c-muted); font-size: 2.4rem; font-family: var(--font-heading); margin-bottom: 14px; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) * .6); width: 100%; }
.gallery figcaption, figure figcaption { font-size: .85rem; color: var(--c-muted); margin-top: 6px; }

details.faq { border-bottom: 1px solid var(--c-border); }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--c-accent); }
details.faq[open] summary::after { content: "–"; }
details.faq .prose { padding-bottom: 16px; }

.scripture { border-radius: calc(var(--radius) + 4px); padding: 32px 24px; background: var(--c-soft); text-align: center; }
.scripture blockquote { margin: 0 auto; max-width: 36em; font-family: var(--font-heading); font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.4; }
.scripture cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: var(--c-muted); font-size: .95rem; }
sup.vn { font-size: .62em; font-weight: 700; color: var(--c-accent); margin-right: 2px; font-family: var(--font-body); }

/* ---------- forms ---------- */
form .field { margin-bottom: 16px; }
label, .label { display: block; font-weight: 650; margin-bottom: 6px; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: calc(var(--radius) * .6 + 2px);
  border: 1.5px solid var(--c-border); background: var(--c-surface); color: var(--c-text); font: inherit; font-size: 16px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 25%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--c-accent); flex-shrink: 0; }
.help { font-size: .85rem; color: var(--c-muted); margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: #B42318; font-size: .9rem; font-weight: 600; }
.radio-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.radio-list label { display: flex; gap: 10px; align-items: center; font-weight: 550; padding: 10px 12px; border: 1.5px solid var(--c-border); border-radius: calc(var(--radius) * .6 + 2px); cursor: pointer; }
.radio-list input { accent-color: var(--c-accent); width: 18px; height: 18px; }
.hp { position: absolute; left: -10000px; }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 2rem; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 20px; }
.codes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; list-style: none; }
.codes li { background: var(--c-soft); padding: 8px 10px; border-radius: 8px; text-align: center; }
.qr svg { width: 220px; height: 220px; background: #fff; border-radius: 12px; padding: 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }

/* ---------- footer ---------- */
.site-footer { background: var(--c-hero-bg); color: color-mix(in srgb, var(--c-hero-text) 78%, transparent); margin-top: 48px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); font-size: .95rem; }
.site-footer strong { color: var(--c-hero-text); display: block; margin-bottom: 6px; }
.site-footer a { color: var(--c-hero-text); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 28px 0; }

/* ---------- member app shell ---------- */
.app { min-height: 100vh; }
.app-top { position: sticky; top: 0; z-index: 30; background: var(--c-bg); padding: 12px 16px 8px; padding-top: max(12px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 12px; }
.app-top h1 { font-size: 1.75rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-text); display: grid; place-items: center; font-weight: 750; font-size: .95rem; text-decoration: none; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.app-main { padding: 4px 16px 24px; max-width: 760px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--c-surface); border-top: 1px solid var(--c-border);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 62px; color: var(--c-muted); text-decoration: none; font-size: .72rem; font-weight: 650; }
.tabbar a[aria-current="page"] { color: var(--c-accent); }
.app.has-tabbar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.app-side { display: none; }
@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
  .app.has-tabbar { padding-bottom: 0; }
  .tabbar { display: none; }
  .app-side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; padding: 20px 14px; background: var(--c-surface); border-right: 1px solid var(--c-border); }
  .app-side .brand { padding: 0 8px 18px; }
  .app-side a.side-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--c-text); text-decoration: none; font-weight: 600; }
  .app-side a.side-link:hover { background: var(--c-soft); }
  .app-side a.side-link[aria-current="page"] { background: var(--c-accent); color: var(--c-accent-text); }
  .app-side .side-foot { margin-top: auto; display: grid; gap: 4px; }
  .app-top { padding: 22px 32px 10px; }
  .app-main { padding: 6px 32px 40px; max-width: 980px; }
  .app-top h1 { font-size: 2.1rem; }
}
.tile-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; }
.tile strong { font-family: var(--font-heading); font-size: 1.7rem; color: var(--c-accent); line-height: 1.1; }
.tile.soft { background: var(--c-soft); border-color: transparent; }
.live-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--c-hero-bg); color: var(--c-hero-text); text-decoration: none; }
.live-card .live-icon { width: 44px; height: 44px; border-radius: 12px; background: #B42318; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.label-caps { font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.verse-text { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.45; margin: 8px 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-border); font-weight: 600; font-size: .9rem; }
.tabs a[aria-current="page"] { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }
.pray-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; border: 1.5px solid var(--c-border); background: var(--c-surface); color: var(--c-accent); }
.pray-btn[aria-pressed="true"] { background: var(--c-accent); color: var(--c-accent-text); border-color: var(--c-accent); }
.prayer-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--c-muted); margin-bottom: 6px; }
.prayer-meta strong { color: var(--c-text); }
.person { display: flex; gap: 14px; align-items: center; }
.person .avatar { width: 52px; height: 52px; font-size: 1.1rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .92rem; }
.kv dt { color: var(--c-muted); }
.kv dd { margin: 0; }

/* ---------- Lamp ---------- */
.lamp { display: flex; flex-direction: column; min-height: calc(100vh - 210px); }
.lamp-intro { color: var(--c-muted); margin-bottom: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--c-border); background: var(--c-surface); color: var(--c-text); font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--c-accent); }
.chat { display: grid; gap: 16px; flex: 1; align-content: start; }
.bubble-user { justify-self: end; max-width: 85%; background: var(--c-accent); color: var(--c-accent-text); padding: 12px 16px; border-radius: 20px 20px 6px 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lamp-answer { display: grid; gap: 12px; }
.lamp-answer > p { margin: 0; }
.verse-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px 18px; }
.verse-card h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 750; color: var(--c-accent); text-transform: none; margin: 0 0 6px; }
.verse-card h3 span { color: var(--c-muted); font-weight: 500; }
.verse-card .verse-text { font-size: 1.12rem; }
.verse-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.crisis { background: #FDECEA; color: #5C130D; border: 1.5px solid #F2B8B1; border-radius: var(--radius); padding: 18px; }
.crisis h3 { color: #5C130D; font-family: var(--font-body); text-transform: none; }
.crisis a.btn { background: #B42318; color: #fff; }
:root[data-theme=dark] .crisis { background: #3A1512; color: #FFE1DC; border-color: #6B2620; }
:root[data-theme=dark] .crisis h3 { color: #FFE1DC; }
.related { font-size: .92rem; color: var(--c-muted); }
.composer { position: sticky; bottom: calc(62px + env(safe-area-inset-bottom)); background: var(--c-bg); padding: 12px 0 10px; margin-top: 16px; border-top: 1px solid var(--c-border); }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 50px; max-height: 160px; border-radius: 24px; padding: 13px 18px; resize: none; }
.send-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--c-accent); color: var(--c-accent-text); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.notice-line { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-left: 8px; font-size: .88rem; color: var(--c-text); opacity: .85; }
@media (min-width: 960px) { .composer { bottom: 0; } }
.thinking { display: none; color: var(--c-muted); font-size: .95rem; }
.htmx-request .thinking, .thinking.htmx-request { display: flex; gap: 8px; align-items: center; }
.dots span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin: 0 1px; animation: blink 1.2s infinite both; }
.dots span:nth-child(2) { animation-delay: .2s; } .dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.first-notice { border: 1.5px solid var(--c-accent); }

.chapter p { line-height: 1.85; }
.chapter .hl { background: color-mix(in srgb, var(--c-accent) 18%, transparent); border-radius: 4px; padding: 1px 2px; }
.compare { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.book-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.book-grid a, .chapter-grid a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; font-weight: 600; }
.chapter-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.chapter-grid a { justify-content: center; }

/* ---------- install / iOS hint ---------- */
.install-card[hidden] { display: none; }
.empty { text-align: center; padding: 40px 16px; color: var(--c-muted); }

@media print {
  .site-header, .bottom-bar, .tabbar, .app-side, .live-banner, .composer, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
}
.center-row { justify-content: center; }
.m0 { margin: 0; }
.rounded { border-radius: var(--radius); }
.w-auto { width: auto; min-width: 120px; }
.w-full { width: 100%; }
.grow { flex: 1 1 220px; }
.filters { margin-bottom: 20px; }
.giving-frame { width: 100%; min-height: 720px; border: 0; }
.h3 { font-size: 1.2rem; margin: 0; }
.section-tight { margin-top: 14px; }
.stack-tight > * + * { margin-top: 2px; }
.thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; }
details.card > summary { list-style: none; cursor: pointer; }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { margin-bottom: 14px; }
.inline-form { display: inline; }
.icon-btn { text-decoration: none; }
.nav a { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1180px) { .nav a { padding: 8px 6px; font-size: .9rem; } }

/* Main menu dropdowns */
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--c-text); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { background: var(--c-soft); }
.nav-drop-btn .icon { transition: transform .15s; }
.nav-drop-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-drop-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 220px; padding: 6px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); display: grid; }
.nav-drop-menu[hidden] { display: none; }
.nav .nav-drop-menu a { display: block; padding: 10px 12px; }
.nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; } /* keeps hover alive across the gap */
.mobile-sub a { padding-left: 40px; font-weight: 500; min-height: 46px; }
