:root {
  --ink: #1a2433;
  --muted: #5a6578;
  --blue: #2e3192;
  --blue-soft: #4a4db0;
  --green: #009944;
  --green-deep: #007a36;
  --sand: #f4f6f8;
  --card: #ffffff;
  --paper: #fbf8f3;
  --paper-bar: #ffffff;
  --line: rgba(46, 49, 146, 0.12);
  --accent: #009944;
  --accent-soft: rgba(0, 153, 68, 0.12);
  --ready: #007a36;
  --reading: 1.12rem;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --tab-bar-height: 64px;
  --give-online: #2e3192;
  --give-cash: #009944;
  --give-check: #2f6fad;
  --give-zelle: #5b4db0;
  --give-text: #1f8a8a;
  --gold: #c9a227;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #1a1c5c;
  color: var(--ink);
  font-family: var(--sans);
}

button, a { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.update-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + var(--safe-top)) 14px 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.update-banner[hidden] { display: none !important; }

.update-banner button {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 153, 68, 0.1), transparent 42%),
    linear-gradient(180deg, #e8ecf8 0%, var(--sand) 36%, #eef1f5 100%);
}

.view[hidden] { display: none !important; }

.home-actions .pill-btn.ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.view-home {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.home-hero {
  padding: calc(12px + var(--safe-top)) 16px 14px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 153, 68, 0.28), transparent 45%),
    linear-gradient(160deg, #2e3192 0%, #3d41a8 48%, #23266f 100%);
}

.home-hero-brand {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
}

.home-kicker {
  margin: 0;
  max-width: 18rem;
  font-size: 1rem;
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-transform: uppercase;
  opacity: 0.92;
  font-weight: 700;
}

.home-hero-brand h1 {
  margin: 0;
}

.home-logo {
  display: block;
  width: min(220px, 68vw);
  height: auto;
}

.home-sub {
  margin: 0;
  max-width: 18rem;
  opacity: 0.9;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.home-main {
  display: grid;
  gap: 18px;
  padding: 18px 16px calc(28px + var(--tab-bar-height) + var(--safe-bottom));
}

.home-spotlight {
  display: grid;
  gap: 10px;
  margin-top: -8px;
}

.spotlight-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.spotlight-lesson {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(46, 49, 146, 0.06);
}

.spotlight-lesson strong {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  color: var(--blue);
  line-height: 1.25;
}

.spotlight-lesson #today-date,
.spotlight-lesson #today-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-directory {
  display: grid;
  gap: 10px;
}

.directory-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--blue);
  font-weight: 800;
}

.directory-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-list {
  display: grid;
  gap: 8px;
}

.section-group {
  margin: 8px 2px 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-group:first-child { margin-top: 0; }

.home-now {
  display: grid;
  gap: 10px;
}

.now-card,
.service-card {
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(46, 49, 146, 0.06);
}

.now-card strong {
  display: block;
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 4.4vw, 1.45rem);
  color: var(--blue);
  line-height: 1.25;
}

.now-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.service-list li {
  display: grid;
  gap: 2px;
}

.service-list strong {
  color: var(--blue);
  font-size: 0.95rem;
}

.service-list span,
.service-address {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.service-address {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.section-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}

.section-row:active { transform: scale(0.99); }

.section-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(46, 49, 146, 0.08);
  color: var(--blue);
  font-weight: 800;
}

.section-mark svg,
.tab-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.section-row.is-soon .section-mark {
  background: rgba(0, 153, 68, 0.1);
  color: var(--green);
}

.section-copy strong {
  display: block;
  color: var(--blue);
  font-size: 1.02rem;
  margin-bottom: 2px;
}

.section-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.section-meta {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-row.is-soon .section-meta {
  color: var(--muted);
}

.events-main {
  display: grid;
  gap: 14px;
  padding: 16px 16px calc(28px + var(--tab-bar-height) + var(--safe-bottom));
}

.reminder-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 153, 68, 0.08);
  border: 1px solid rgba(0, 153, 68, 0.22);
}

.reminder-note {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.reminder-actions {
  display: grid;
  gap: 8px;
}

.reminder-actions .pill-btn.ghost.dark {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--line);
}

.reminder-status {
  margin: 0;
  min-height: 1.2em;
  color: var(--ready);
  font-size: 0.88rem;
  font-weight: 700;
}

.events-empty {
  margin: 24px 8px;
  color: var(--muted);
  text-align: center;
}

.event-card {
  padding: 18px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(46, 49, 146, 0.06);
}

.event-card h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  color: var(--blue);
  line-height: 1.25;
}

.event-theme {
  margin: 0 0 6px;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.98rem;
}

.event-dates {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 800;
  font-size: 1rem;
}

.event-blurb {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.event-schedule {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
}

.event-day {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(46, 49, 146, 0.05);
  border: 1px solid var(--line);
}

.event-day strong {
  color: var(--blue);
  font-size: 0.95rem;
}

.event-day span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.event-day ul {
  margin: 6px 0 0;
  padding-left: 1.1rem;
  color: var(--ink);
  line-height: 1.45;
}

.event-media {
  margin-top: 8px;
  border-radius: 14px;
  overflow: hidden;
  background: #f4efe6;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.event-video,
.event-flyer {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f4efe6;
}

.event-flyer-preview {
  display: grid;
  gap: 10px;
  background: transparent;
}

.event-flyer-preview .event-flyer {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  object-fit: cover;
  object-position: top center;
}

.flyer-open {
  justify-self: start;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
}

.flyer-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 12px;
  border: 0;
  border-radius: 18px;
  background: #f4efe6;
}

.flyer-dialog::backdrop { background: rgba(15, 18, 56, 0.72); }

.flyer-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--blue);
}

.flyer-dialog img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.event-media-still {
  margin-top: 12px;
  background: transparent;
}

.placeholder-main {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 36px 24px calc(40px + var(--tab-bar-height) + var(--safe-bottom));
}

.placeholder-main h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  color: var(--blue);
  font-size: 1.7rem;
}

.placeholder-main p {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  line-height: 1.5;
}

.text-link {
  margin-top: 8px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.verse-of-day,
.today-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(46, 49, 146, 0.06);
}

.verse-of-day {
  background:
    linear-gradient(180deg, rgba(0, 153, 68, 0.06), transparent 48%),
    var(--card);
}

.vod-date {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.vod-text {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4.2vw, 1.4rem);
  line-height: 1.45;
  color: var(--blue);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vod-ref {
  margin: 0 0 4px;
  font-weight: 800;
  color: var(--accent);
}

.vod-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.verse-of-day .pill-btn {
  margin-top: 4px;
}

.biy-progress {
  margin: 8px 0 0;
  color: var(--ready);
  font-size: 0.88rem;
  font-weight: 700;
}

.view-biy {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.biy-main {
  padding: 16px 16px calc(28px + var(--tab-bar-height) + var(--safe-bottom));
}

.biy-day-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.biy-day-card {
  padding: 20px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}

.biy-summary {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.biy-readings {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.biy-reading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #eef3f8;
  color: var(--blue);
  font-weight: 700;
}

.biy-reading span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.biy-reading.is-done {
  background: rgba(31, 122, 90, 0.12);
  border-color: rgba(31, 122, 90, 0.28);
}

#biy-mark-read {
  width: 100%;
}

.today-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.today-card h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  color: var(--blue);
  line-height: 1.25;
}

.today-card #today-date,
.today-card #today-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.today-card .pill-btn {
  margin-top: 14px;
}

.update-panel {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.update-panel .pill-btn {
  width: 100%;
}

.update-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.home-foot {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.view-study {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  color: #1c2430;
}

.study-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: calc(10px + var(--safe-top)) 12px 10px;
  background: var(--paper-bar);
  border-bottom: 1px solid rgba(46, 49, 146, 0.1);
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(196, 92, 38, 0.28);
}

.home-btn .home-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.home-btn:active { transform: scale(0.98); }

.icon-btn {
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--blue);
  font-size: 0.85rem;
}

.icon-btn.dark { background: #eef3f8; }

.study-bar-copy {
  min-width: 0;
}

.study-bar-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.study-bar-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reading {
  padding: 22px 20px 32px;
  font-size: var(--reading);
  line-height: 1.72;
  color: #1c2430;
  background: var(--paper);
}

.reading h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  line-height: 1.2;
  color: var(--blue);
}

.reading .theme {
  margin: 0 0 8px;
  color: var(--muted);
}

/* Keep Word soft line breaks; normal paragraphs still wrap naturally */
.reading .speakable {
  white-space: pre-line;
}

.soon-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.scripture-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.verse-chip {
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: #fff;
  color: var(--blue);
  border: 1px solid rgba(46, 49, 146, 0.16);
  font-weight: 700;
  font-size: 0.82rem;
}

.verse-chip:active { background: #f3efe8; }

.reading .lesson-section {
  margin: 0 0 1.1rem;
  padding: 0 0 0.85rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.reading .lesson-section:last-of-type {
  border-bottom: 0;
}

.reading h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--blue);
}

.reading p { margin: 0 0 0.85rem; }
.reading ul, .reading ol { margin: 0 0 0.85rem; padding-left: 1.2rem; }
.reading li { margin-bottom: 0.4rem; }
.reading li.nested { margin-left: 0.85rem; list-style-type: circle; }

.reading .ref-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  background: none;
  padding: 0;
  border: 0;
  display: inline;
  cursor: pointer;
}

.coming-soon, .notice {
  padding: 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(196, 92, 38, 0.25);
  margin-bottom: 14px;
}

.coming-soon strong,
.notice strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--blue);
}

.notice button {
  margin-top: 10px;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.foot {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.study-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
}

.audio-bar {
  display: grid;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(30, 58, 95, 0.96);
  color: #f7f4ee;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.audio-bar[hidden] { display: none !important; }

.audio-chip {
  justify-self: start;
  min-height: 36px;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
}

.audio-panel {
  display: grid;
  gap: 8px;
}

.audio-bar.is-collapsed .audio-panel { display: none; }
.audio-bar:not(.is-collapsed) .audio-chip { display: none; }

.audio-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
}

.audio-copy span {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  opacity: 0.85;
}

.audio-controls {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 6px;
}

.audio-btn {
  min-height: 40px;
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.audio-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
}

.reading .is-speaking {
  background: rgba(196, 92, 38, 0.16);
  box-shadow: inset 3px 0 0 var(--accent);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.study-dock {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: var(--paper-bar);
  border-top: 1px solid rgba(46, 49, 146, 0.1);
}

.nav-btn {
  border-radius: 14px;
  padding: 12px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--blue);
}

.nav-btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.nav-btn:disabled { opacity: 0.4; }

.install-btn {
  grid-column: 1 / -1;
  border-radius: 14px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--blue);
  font-weight: 700;
}

.pill-btn {
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.pill-btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.pill-btn.dark { background: var(--blue); }
.pill-btn.ghost.dark {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--blue);
}

.verse-sheet, .sheet {
  width: min(640px, calc(100vw - 16px));
  max-height: min(88vh, 860px);
  margin: auto;
  border: 0;
  border-radius: 22px;
  padding: 0;
  color: var(--ink);
  background: var(--card);
}

.verse-sheet {
  position: fixed;
  inset: auto 0 0 0;
  margin: 0 auto;
  width: min(720px, 100%);
  border-radius: 24px 24px 0 0;
  max-height: 82vh;
}

.verse-sheet::backdrop, .sheet::backdrop {
  background: rgba(20, 35, 58, 0.55);
}

.verse-sheet header, .sheet header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--card);
}

.verse-sheet header strong, .sheet header strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--blue);
}

.verse-sheet header span, .sheet header span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.verse-body {
  padding: 16px 18px 8px;
  overflow: auto;
  max-height: 55vh;
  font-size: 1.08rem;
  line-height: 1.75;
}

.verse-body .verse-line { margin: 0 0 0.85rem; }
.verse-body .verse-line sup {
  color: var(--accent);
  font-weight: 800;
  margin-right: 4px;
}

.verse-loading, .verse-error { color: var(--muted); }
.verse-error { color: #a33; }

.verse-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 16px calc(14px + var(--safe-bottom));
  border-top: 1px solid var(--line);
}

#month-grids {
  padding: 12px 14px 20px;
  display: grid;
  gap: 18px;
  overflow: auto;
}

.month h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  color: var(--blue);
}

.weekdays, .grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.weekdays span {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
}

.grid button, .grid .empty {
  aspect-ratio: 1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.grid .empty { visibility: hidden; }

.grid button {
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--ink);
}

.grid button.in-schedule.has-content {
  background: rgba(31, 122, 90, 0.12);
  border-color: rgba(31, 122, 90, 0.28);
}

.grid button.in-schedule:not(.has-content) {
  background: var(--accent-soft);
  border-color: rgba(196, 92, 38, 0.28);
}

.grid button.is-today {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.grid button[aria-current="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.grid button:disabled { opacity: 0.35; }

.install-steps {
  padding: 16px 18px calc(20px + var(--safe-bottom));
}

.install-steps ol {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.install-steps a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.status {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 420px) {
  .study-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-btn { justify-self: start; }

  .tools { justify-content: space-between; }
}

/* Bottom tab bar */
.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 720px;
  margin: 0 auto;
  min-height: calc(var(--tab-bar-height) + var(--safe-bottom));
  padding: 6px 8px calc(6px + var(--safe-bottom));
  background: rgba(255, 253, 248, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 -6px 20px rgba(30, 58, 95, 0.06);
}

.tab-bar[hidden] { display: none !important; }

.tab {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tab-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.tab.is-active {
  color: var(--blue);
}

.tab.is-active .tab-icon {
  color: var(--accent);
}

/* Sermons, ministries, prayer, contact */
.page-main {
  display: grid;
  gap: 12px;
  padding: 16px 16px calc(28px + var(--tab-bar-height) + var(--safe-bottom));
}

.page-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.page-actions {
  display: grid;
  gap: 8px;
}

.page-actions .pill-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  text-align: center;
}

.sermon-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1c5c;
}

.sermon-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.sermon-layout {
  display: grid;
  gap: 12px;
}

.sermon-now {
  margin: 0;
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1.35;
}

.sermon-status {
  margin: 0;
  color: var(--muted);
}

.sermon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sermon-list li {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}

.sermon-list li.is-current {
  padding-left: 11px;
  border-left: 3px solid var(--green);
}

.sermon-play {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-weight: 800;
  color: var(--blue);
  cursor: pointer;
}

.sermon-list li.is-current .sermon-play {
  color: var(--green-deep);
}

.sermon-list time {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.sermon-external {
  justify-self: start;
  margin-top: 2px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sermon-latest {
  width: 100%;
}

.info-list,
.ministry-list {
  display: grid;
  gap: 10px;
}

.info-link {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.info-link strong {
  color: var(--blue);
  font-size: 1.02rem;
}

.info-link.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  flex: none;
}

.social-mark svg {
  width: 16px;
  height: 16px;
  display: block;
}

.info-link.social-link > span:not(.social-mark) {
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}

.ministry {
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}

.ministry summary {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  cursor: pointer;
}

.ministry summary strong {
  color: var(--blue);
  font-size: 1.02rem;
}

.ministry summary span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.ministry-body {
  padding: 0 16px 14px;
}

.ministry-body p,
.ministry-body li {
  margin: 0 0 8px;
  line-height: 1.5;
  color: var(--ink);
}

.ministry-body ul {
  margin: 0;
  padding-left: 1.15rem;
}

.prayer-form {
  display: grid;
  gap: 10px;
}

.prayer-form label {
  display: grid;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
}

.field-optional {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}

.prayer-form input,
.prayer-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
}

.prayer-form .pill-btn {
  min-height: 48px;
}

.form-error,
.form-status {
  margin: 0;
  line-height: 1.4;
  font-size: 0.9rem;
}

.form-error { color: #8a2a2a; }
.form-status { color: var(--ink); }

/* Give section */
.give-main {
  padding: 16px 16px calc(28px + var(--tab-bar-height) + var(--safe-bottom));
}

.give-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.chooser {
  display: grid;
  gap: 10px;
}

.option {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.06);
}

.option:active { transform: scale(0.99); }

.option .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.option .icon.online { background: var(--give-online); }
.option .icon.cash { background: var(--give-cash); }
.option .icon.check { background: var(--give-check); }
.option .icon.zelle { background: var(--give-zelle); }
.option .icon.text { background: var(--give-text); }

.option .icon::before { content: "✝"; opacity: 0.95; }
.option .icon.online::before { content: "↗"; }
.option .icon.cash::before { content: "$"; font-family: var(--serif); font-size: 1.6rem; }
.option .icon.check::before { content: "✓"; }
.option .icon.zelle::before { content: "Z"; }
.option .icon.text::before { content: "✉"; }

.option .copy strong {
  display: block;
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 2px;
}

.option .copy span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.detail {
  margin-top: 4px;
}

.detail[hidden], .chooser[hidden] { display: none !important; }

.detail .back {
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 800;
}

.detail .card {
  padding: 22px 18px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.08);
}

.detail .card h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--blue);
}

.detail .card p {
  margin: 0 0 12px;
  line-height: 1.55;
  color: var(--ink);
}

.detail .highlight {
  display: block;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef3f8;
  color: var(--blue);
  font-weight: 800;
  word-break: break-word;
}

.detail .actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.detail .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

.detail .btn.secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--line);
}

.copy-status {
  margin: 10px 0 0;
  color: var(--ready);
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 1.2em;
}

