:root {
  --ink: #160d0b;
  --ink-soft: #4f4541;
  --paper: #f8f5f2;
  --paper-deep: #efeae5;
  --white: #ffffff;
  --orange: #e96300;
  --orange-dark: #bf4f00;
  --dark: #100807;
  --dark-2: #1c100e;
  --line: rgba(31, 17, 13, 0.13);
  --shadow: 0 18px 50px rgba(39, 19, 10, 0.09);
  --radius: 18px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.12;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  background: var(--white);
  color: var(--ink);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #f8f4f1;
  background: rgba(16, 8, 7, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 2rem));
  min-height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: contain;
  background: var(--white);
}

.brand-mark.small {
  width: 28px;
  height: 28px;
}

.main-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex: 1;
  align-self: stretch;
}

.main-nav a {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 0.72rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--orange);
}

.main-nav a.active::after {
  width: calc(100% - 1.4rem);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.signin-button,
.install-button {
  border: 0;
  border-radius: 7px;
  padding: 0.58rem 0.8rem;
  cursor: pointer;
  font-weight: 700;
}

.signin-button {
  color: var(--dark);
  background: var(--orange);
}

.signin-button:hover {
  background: #ff791d;
}

.install-button {
  color: var(--orange);
  background: rgba(233, 99, 0, 0.13);
  border: 1px solid rgba(233, 99, 0, 0.45);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: currentColor;
}

.network-status {
  position: fixed;
  z-index: 200;
  left: 50%;
  top: 76px;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
  font-size: 0.82rem;
  font-weight: 700;
}

.network-status.offline {
  background: var(--orange-dark);
}

main {
  min-height: 60vh;
  outline: none;
}

.home-hero {
  position: relative;
  min-height: min(85vh, 820px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.74), rgba(14, 6, 2, 0.48) 48%, rgba(0, 0, 0, 0.78));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 2rem));
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero-logo {
  width: 180px;
  height: 120px;
  margin: 0 auto 2.1rem;
  object-fit: cover;
  object-position: center;
  background: var(--white);
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 auto 1.2rem;
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.035em;
}

.hero-content p {
  max-width: 660px;
  margin: 0 auto 1.8rem;
  color: rgba(255, 255, 255, 0.87);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.67rem 1rem;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(233, 99, 0, 0.38);
  outline-offset: 3px;
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-light:hover {
  background: #fff4e9;
}

.button-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.04);
}

.button-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.button-primary {
  color: var(--white);
  background: var(--orange);
}

.button-primary:hover {
  background: var(--orange-dark);
}

.button-secondary {
  color: var(--orange-dark);
  border-color: rgba(233, 99, 0, 0.25);
  background: #fff3ea;
}

.button-secondary:hover {
  border-color: rgba(233, 99, 0, 0.5);
  background: #ffe8d5;
}

.button-full {
  width: 100%;
}

.button.is-offline,
a.is-offline {
  pointer-events: none;
  opacity: 0.48;
  filter: saturate(0.5);
}

.verse-band {
  color: var(--white);
  background: var(--orange);
}

.verse-inner {
  width: min(900px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 2.6rem 0 2.8rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--orange-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.78);
}

.verse-inner blockquote {
  margin: 0 auto 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-style: italic;
  line-height: 1.35;
}

.verse-inner cite {
  display: block;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.verse-inner a {
  font-weight: 700;
}

.content-section {
  padding-top: clamp(3.8rem, 7vw, 6rem);
  padding-bottom: clamp(3.8rem, 7vw, 6rem);
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-heading.left {
  margin: 4.8rem 0 2.2rem;
  text-align: left;
}

.section-heading h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.section-heading p {
  color: var(--ink-soft);
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.offering-card {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.offering-card:hover {
  border-color: rgba(233, 99, 0, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.offering-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-size: 1.3rem;
}

.offering-card strong,
.offering-card small {
  display: block;
}

.offering-card strong {
  margin-bottom: 0.3rem;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.offering-card small {
  color: var(--ink-soft);
  line-height: 1.4;
}

.card-arrow {
  color: var(--orange);
  font-size: 1.25rem;
}

.service-section {
  padding: clamp(3.8rem, 7vw, 6rem) 0;
  background: var(--paper-deep);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-grid article {
  padding: 2rem;
  text-align: center;
}

.service-grid article + article {
  border-left: 1px solid var(--line);
}

.service-grid span,
.service-grid strong,
.service-grid small {
  display: block;
}

.service-grid span {
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-grid strong {
  margin: 0.45rem 0;
  font-family: var(--serif);
  font-size: 2.3rem;
}

.service-grid small {
  color: var(--ink-soft);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 15%, rgba(233, 99, 0, 0.24), transparent 36%),
    linear-gradient(120deg, var(--dark), #24110d);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 6vw;
  top: 50%;
  width: clamp(10rem, 22vw, 20rem);
  aspect-ratio: 1;
  border-radius: 16px;
  background: url("/icons/churchless-logo-square.png") center / contain no-repeat;
  opacity: 0.08;
  transform: translateY(-50%);
}

.page-hero .shell {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 0.75rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.page-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.video-frame {
  position: relative;
  min-height: min(620px, 62vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  overflow: hidden;
  border-radius: 22px;
  color: var(--white);
  background:
    linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.78)),
    url("https://images.unsplash.com/photo-1438232992991-995b7058bbb3?auto=format&fit=crop&w=1600&q=80") center/cover;
  text-align: center;
}

.video-mark {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  padding-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(233, 99, 0, 0.92);
  font-size: 1.6rem;
}

.live-pill {
  margin-bottom: 0.7rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  color: #ffd9be;
  background: rgba(233, 99, 0, 0.16);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-frame h2 {
  max-width: 720px;
  margin-bottom: 0.7rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.video-frame p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.75);
}

.live-viewer-frame {
  isolation: isolate;
}

#app .live-chat-card.live-chat-overlay-card {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: visible;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  margin: 0;
  pointer-events: none;
}

#app .live-chat-card.live-chat-overlay-card > header {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.live-chat-overlay-card .live-chat-log {
  position: absolute;
  right: 1rem;
  bottom: 8.4rem;
  width: min(440px, calc(100% - 2rem));
  min-height: 0;
  max-height: min(260px, 42%);
  padding: 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 100%);
}

.live-chat-overlay-card .live-chat-empty {
  display: none;
}

.live-chat-overlay-card .live-chat-message {
  width: 100%;
  margin: 0.45rem 0 0;
  padding: 0.68rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--orange);
  border-radius: 9px;
  color: #fff;
  background: rgba(8, 5, 4, 0.76);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.live-chat-overlay-card .live-chat-message.is-own {
  margin-left: 0;
  border-color: rgba(255, 133, 47, 0.35);
  border-left-color: #ff7a1a;
  border-radius: 9px;
  background: rgba(88, 31, 0, 0.8);
}

.live-chat-overlay-card .live-chat-message header {
  margin-bottom: 0.15rem;
}

.live-chat-overlay-card .live-chat-message header strong {
  color: #ffae72;
  font-size: 0.88rem;
}

.live-chat-overlay-card .live-chat-message time {
  color: rgba(255, 255, 255, 0.62);
}

.live-chat-overlay-card .live-chat-message p {
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.35;
  text-align: left;
}

.live-chat-overlay-card .live-chat-form {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 2.2rem 1rem 1rem;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0.94));
  pointer-events: auto;
}

.live-chat-overlay-card .live-chat-form textarea {
  grid-column: 1;
  min-height: 52px;
  max-height: 96px;
  resize: none;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 12, 11, 0.82);
}

.live-chat-overlay-card .live-chat-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.live-chat-overlay-card .live-chat-form textarea:focus {
  border-color: rgba(233, 99, 0, 0.8);
  box-shadow: 0 0 0 3px rgba(233, 99, 0, 0.15);
}

.live-chat-overlay-card .live-chat-form > div {
  grid-column: 2;
  align-items: stretch;
}

.live-chat-overlay-card .live-chat-form small {
  position: absolute;
  right: 1rem;
  bottom: 5.35rem;
  left: 1rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat-overlay-card .live-chat-form .button {
  min-height: 52px;
}

.live-video-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #090504;
}

.live-video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090504;
}

.live-video-stage audio {
  display: none;
}

.live-viewer-frame.has-video {
  background: #090504;
}

.live-viewer-frame.has-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.live-viewer-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.live-viewer-frame.has-video .live-viewer-overlay > :not(.live-pill):not(#live-leave):not(#live-audio-enable):not(.live-connection-message) {
  display: none;
}

.live-viewer-frame.has-video .live-viewer-overlay {
  position: absolute;
  inset: 1rem auto auto 1rem;
  z-index: 6;
  align-items: flex-start;
}

.live-connection-message {
  min-height: 1.6em;
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.92rem;
}

.live-chat-guest-note {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.live-chat-guest-note strong {
  color: var(--ink);
  white-space: nowrap;
}

.live-chat-guest-note span {
  color: var(--ink-soft);
}

.live-chat-card,
.live-audience-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.content-section > .live-chat-card {
  margin-top: 1rem;
}

.live-chat-card > header,
.live-audience-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.live-chat-card > header h2,
.live-audience-card > header h2 {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
}

.live-chat-lock,
.live-audience-count {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.live-audience-count strong {
  font-size: 1rem;
}

.live-chat-log {
  min-height: 170px;
  max-height: 320px;
  overflow-y: auto;
  padding: 1rem;
  background: #fbf8f6;
}

.live-chat-empty,
.live-audience-empty {
  margin: 0;
  color: var(--ink-soft);
}

.live-chat-message {
  width: min(86%, 620px);
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 3px;
  background: var(--white);
}

.live-chat-message.is-own {
  margin-left: auto;
  border-color: rgba(214, 79, 0, 0.25);
  border-radius: 12px 12px 3px 12px;
  background: var(--orange-soft);
}

.live-chat-message header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.live-chat-message header strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.live-chat-message time {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.live-chat-message p {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.live-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem 0.9rem;
  padding: 1rem;
}

.live-chat-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.live-chat-form textarea {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 70px;
  resize: vertical;
}

.live-chat-form > div {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-chat-form small {
  color: var(--ink-soft);
}

.info-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.info-strip > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
}

.info-strip p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.info-strip p strong {
  color: var(--ink);
}

.empty-card {
  padding: clamp(2.2rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.empty-card h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.empty-card p {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  color: var(--ink-soft);
}

.empty-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  color: var(--orange-dark);
  background: #fff0e4;
  font-size: 1.8rem;
  font-weight: 800;
}

.bible-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.3rem;
}

.daily-card,
.search-card,
.reader-card,
.passage,
.prayer-form,
.saved-prayers,
.event-card,
.donation-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.daily-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.2rem;
  color: var(--white);
  background: linear-gradient(145deg, #ee7218, #c44a00);
  box-shadow: 0 24px 60px rgba(161, 61, 0, 0.2);
}

.daily-card time {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-transform: capitalize;
}

.daily-card blockquote {
  margin: 2.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-style: italic;
  line-height: 1.28;
}

.daily-card cite {
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
}

.bible-tools {
  display: grid;
  gap: 1rem;
}

.search-card,
.reader-card {
  padding: 1.5rem;
}

.search-card > label,
.reader-card h2 {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.input-row {
  display: flex;
  gap: 0.55rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(31, 17, 13, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: #fcfaf8;
}

input,
select {
  min-height: 46px;
  padding: 0.62rem 0.75rem;
}

textarea {
  min-height: 180px;
  padding: 0.8rem;
  resize: vertical;
}

.reader-fields {
  display: grid;
  grid-template-columns: 1fr 0.55fr auto;
  align-items: end;
  gap: 0.65rem;
}

.reader-fields label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.reader-fields select {
  display: block;
  margin-top: 0.25rem;
}

.bible-results {
  margin-top: 1.3rem;
  scroll-margin-top: 6rem;
}

.bible-section {
  max-width: 1080px;
}

.bible-reader-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.bible-reader-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.bible-reader-heading h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.bible-language {
  min-width: min(100%, 320px);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.bible-language select {
  display: block;
  margin-top: 0.35rem;
}

.bible-testaments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  border-radius: 12px;
  background: var(--paper-deep);
}

.bible-testaments button {
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.bible-testaments button.active {
  color: var(--white);
  background: var(--orange-dark);
  box-shadow: 0 7px 18px rgba(161, 61, 0, 0.2);
}

.bible-picker {
  display: grid;
  grid-template-columns: 1.5fr 0.65fr auto;
  align-items: end;
  gap: 0.75rem;
}

.bible-picker label {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.bible-picker select {
  display: block;
  margin-top: 0.35rem;
}

.bible-picker .button {
  min-height: 46px;
}

.bible-shortcuts {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.bible-shortcuts > strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.bible-shortcuts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bible-shortcuts button {
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--orange-dark);
  background: var(--paper);
  cursor: pointer;
  font-weight: 800;
}

.bible-shortcuts button:hover,
.bible-shortcuts button:focus-visible {
  border-color: var(--orange);
  background: #fff0e4;
}

.bible-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink-soft);
  background: var(--white);
}

.bible-loading p {
  margin: 0;
}

.bible-passage {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.bible-passage header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.bible-passage header span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.bible-passage h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.bible-verses p {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.bible-verses sup {
  min-width: 2.1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  vertical-align: top;
}

.bible-chapter-nav {
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem auto 0;
}

.bible-chapter-nav button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.bible-source {
  max-width: 900px;
  margin: 1rem auto 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.bible-source a {
  color: var(--orange-dark);
  font-weight: 800;
}

.bible-error {
  gap: 0.9rem;
}

.bible-error .button {
  justify-self: center;
}

.bible-results > p {
  padding: 1.2rem;
  border: 1px dashed rgba(31, 17, 13, 0.2);
  border-radius: 12px;
  color: var(--ink-soft);
  text-align: center;
}

.passage {
  padding: 1.5rem;
}

.passage + .passage {
  margin-top: 0.8rem;
}

.passage h2 {
  color: var(--orange-dark);
  font-size: 1.45rem;
}

.passage p {
  margin-bottom: 0.7rem;
}

.passage sup {
  display: inline-block;
  min-width: 1.8rem;
  color: var(--orange-dark);
  font-weight: 850;
}

.empty-inline {
  display: grid;
  gap: 0.15rem;
  padding: 1.35rem;
  border: 1px dashed rgba(31, 17, 13, 0.2);
  border-radius: 12px;
  color: var(--ink-soft);
  text-align: center;
}

.empty-inline strong {
  color: var(--ink);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.event-card {
  position: relative;
  min-height: 300px;
  padding: 1.7rem;
  overflow: hidden;
}

.event-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(233, 99, 0, 0.07);
}

.event-card time {
  color: var(--orange-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-time {
  display: block;
  margin: 2.1rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 2.9rem;
  font-weight: 700;
}

.event-card h2 {
  margin-bottom: 0.6rem;
  font-size: 1.55rem;
}

.event-card p {
  color: var(--ink-soft);
}

.sermon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.sermon-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.sermon-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.sermon-card h2 {
  margin-bottom: 0.7rem;
  font-size: 1.65rem;
}

.sermon-card p {
  flex: 1;
  color: var(--ink-soft);
}

.sermon-card .button {
  margin-top: auto;
}

.content-empty-inline {
  grid-column: 1 / -1;
  padding: 2rem;
  color: var(--ink-soft);
  text-align: center;
}

.prayer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.3rem;
  align-items: start;
}

.prayer-form,
.saved-prayers {
  padding: 1.6rem;
}

.member-directory {
  display: grid;
  gap: 1.25rem;
}

.member-search-card,
.member-search-results,
.published-prayers {
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.member-search-card h2,
.published-prayers h2 {
  margin: 0.2rem 0 0.65rem;
}

.member-search-card p {
  margin-top: 0;
  color: var(--ink-soft);
}

.member-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.member-result-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.member-result-card strong,
.member-result-card small {
  display: block;
}

.member-result-card small {
  margin-top: 0.2rem;
  color: var(--ink-soft);
}

.member-result-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange-dark);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 800;
}

.prayer-community-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.3rem;
  align-items: start;
}

.public-prayer-form,
.published-prayers {
  min-height: 100%;
}

.prayer-privacy-note {
  display: grid;
  gap: 0.25rem;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid #b8dec9;
  border-radius: 10px;
  color: #165a37;
  background: #edf8f2;
}

.prayer-privacy-note span {
  font-size: 0.88rem;
  line-height: 1.45;
}

.form-status {
  min-height: 1.4em;
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.published-prayer {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.published-prayer:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.published-prayer header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.published-prayer header strong {
  color: var(--orange-dark);
}

.published-prayer time {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.published-prayer p {
  margin: 0.65rem 0 0;
  line-height: 1.65;
  white-space: pre-wrap;
}

.published-prayer footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.prayer-identity-choice {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
  padding: 0;
  border: 0;
}

.prayer-identity-choice legend {
  margin-bottom: 0.55rem;
  font-weight: 850;
}

.prayer-identity-choice label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  cursor: pointer;
}

.prayer-identity-choice input {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--orange-dark);
}

.prayer-identity-choice strong,
.prayer-identity-choice small {
  display: block;
}

.prayer-identity-choice small {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.private-prayer-section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background: var(--paper-deep);
}

.faith-tools {
  display: grid;
  gap: 1.25rem;
}

.community-tools,
.community-panel {
  display: grid;
  gap: 1.25rem;
}

.community-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 13px;
  background: var(--paper-deep);
}

.community-tabs button {
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.community-tabs button.active {
  color: var(--white);
  background: var(--orange-dark);
  box-shadow: 0 7px 20px rgba(153, 57, 0, 0.22);
}

.community-panel[hidden],
.community-discussion[hidden] {
  display: none;
}

.community-group-layout,
.confession-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 1.2rem;
  align-items: start;
}

.community-group-form h3,
.confession-form h3 {
  margin-top: 0;
}

.community-group-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.community-group-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.community-group-card strong,
.community-group-card span,
.community-group-card small {
  display: block;
}

.community-group-card span {
  margin: 0.3rem 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.community-group-card small {
  color: var(--orange-dark);
  font-weight: 700;
}

.community-group-card > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.community-discussion {
  scroll-margin-top: 95px;
}

.discussion-heading,
.community-confession header,
.confession-moderation-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.discussion-heading h3 {
  margin: 0.2rem 0;
}

.discussion-heading p {
  margin: 0;
  color: var(--ink-soft);
}

.discussion-posts {
  display: grid;
  gap: 0.75rem;
  max-height: 520px;
  margin: 1.2rem 0;
  padding: 1rem;
  overflow: auto;
  border-radius: 12px;
  background: var(--paper);
}

.discussion-post {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  background: var(--white);
}

.discussion-post.own {
  border-left-color: #26764b;
}

.discussion-post header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.discussion-post time,
.community-confession time,
.confession-moderation-card time {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.discussion-post p,
.community-confession p {
  margin: 0.55rem 0 0;
  line-height: 1.65;
  white-space: pre-wrap;
}

.discussion-post-form {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.confession-privacy {
  display: grid;
  gap: 0.25rem;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid #b8dec9;
  border-radius: 10px;
  color: #165a37;
  background: #edf8f2;
}

.confession-privacy span,
.confession-help {
  font-size: 0.86rem;
  line-height: 1.5;
}

.confession-help {
  color: var(--ink-soft);
}

.community-confession {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.community-confession:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.community-confession header strong {
  color: var(--orange-dark);
}

.notification-preferences {
  max-width: 780px;
}

.notification-preferences fieldset {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.notification-preferences legend {
  margin-bottom: 0.85rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 800;
}

.notification-preferences label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  cursor: pointer;
}

.notification-preferences input {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--orange-dark);
}

.notification-preferences strong,
.notification-preferences small {
  display: block;
}

.notification-preferences small {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.notification-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.course-tools {
  display: grid;
  gap: 1.25rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.course-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 330px;
  padding: clamp(1.3rem, 3vw, 1.8rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.course-card h3 {
  max-width: calc(100% - 3rem);
  margin: 0;
  color: var(--orange-dark);
  font-size: 1.55rem;
}

.course-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.course-card small {
  color: var(--ink-soft);
  font-weight: 700;
}

.course-card .button {
  align-self: end;
  justify-self: start;
  margin-top: auto;
}

.course-number {
  position: absolute;
  right: 1.2rem;
  top: 1rem;
  color: rgba(157, 61, 0, 0.16);
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 900;
}

.course-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-deep);
}

.course-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}

.course-workspace {
  scroll-margin-top: 95px;
}

.course-workspace[hidden] {
  display: none;
}

.course-workspace-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.course-workspace-heading h2 {
  margin: 0.2rem 0;
}

.course-workspace-heading p {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
}

.course-lessons {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.course-lessons li {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.course-lessons li.complete {
  border-color: #b8dec9;
  background: #edf8f2;
}

.course-lessons label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 1rem;
  cursor: pointer;
}

.course-lessons input {
  width: 22px;
  min-height: 22px;
  margin: 0;
  accent-color: #26764b;
}

.course-lessons strong,
.course-lessons small {
  display: block;
}

.course-lessons small {
  margin-top: 0.18rem;
  color: var(--ink-soft);
}

.course-certificate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  color: var(--white);
  background: var(--dark);
}

.course-certificate strong,
.course-certificate span {
  display: block;
}

.course-certificate span {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.course-device-note {
  display: block;
  margin-top: 0.8rem;
  color: var(--ink-soft);
}

.faith-member-banner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border: 1px solid #b8dec9;
  border-radius: 13px;
  color: #165a37;
  background: #edf8f2;
}

.faith-member-banner > span {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #26764b;
  font-weight: 900;
}

.faith-member-banner p {
  margin: 0.15rem 0 0;
}

.faith-signin {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.faith-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.4rem;
  border-radius: 14px;
  background: var(--paper-deep);
  scrollbar-width: thin;
}

.faith-tabs button {
  min-height: 46px;
  flex: 1 0 max-content;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.faith-tabs button.active {
  color: var(--white);
  background: var(--orange-dark);
}

.faith-panel[hidden] {
  display: none;
}

.faith-panel {
  display: grid;
  gap: 1.25rem;
}

.faith-panel-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  align-items: end;
  gap: 1rem 2rem;
}

.faith-panel-heading h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.faith-panel-heading > p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.faith-card {
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.faith-card h3 {
  margin: 0.2rem 0 0.9rem;
  font-size: 1.5rem;
}

.faith-card > label,
.prayer-clock-form > label {
  display: block;
  margin: 0.85rem 0 0.3rem;
  font-weight: 800;
}

.faith-card textarea {
  min-height: 125px;
}

.mission-privacy-hint {
  margin: 0.8rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: 9px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 0.85rem;
  line-height: 1.45;
}

.faith-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.faith-form-grid label {
  font-weight: 800;
}

.faith-form-grid select,
.faith-form-grid input {
  display: block;
  margin-top: 0.3rem;
}

.mission-layout,
.prayer-network-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.2rem;
  align-items: start;
}

.mission-contact {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.mission-contact:first-child {
  padding-top: 0;
}

.mission-contact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mission-contact header,
.mission-contact header > div,
.mission-contact footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mission-contact header {
  justify-content: space-between;
}

.mission-contact header strong {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.mission-contact time,
.mission-contact footer {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.mission-contact p {
  margin: 0.75rem 0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.mission-contact footer {
  flex-wrap: wrap;
  padding-top: 0.4rem;
}

.faith-empty {
  padding: 1.5rem 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}

.prayer-network-stats,
.offline-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.prayer-network-stats article,
.offline-summary article {
  display: grid;
  gap: 0.2rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  text-align: center;
}

.prayer-network-stats strong,
.offline-summary strong {
  color: var(--orange-dark);
  font-family: var(--serif);
  font-size: 2.2rem;
}

.prayer-network-stats span,
.offline-summary span {
  color: var(--ink-soft);
  font-weight: 750;
}

.prayer-clock-form .button + .button {
  margin-top: 0.65rem;
}

.prayer-place {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.prayer-place:last-child {
  border-bottom: 0;
}

.prayer-place-pin {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange-dark);
  background: #fff0e4;
  font-size: 1.25rem;
}

.prayer-place strong,
.prayer-place span {
  display: block;
}

.prayer-place div > span {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.streak-grid,
.tract-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.streak-card {
  display: grid;
  justify-items: start;
  gap: 0.45rem;
  transition: transform 160ms ease, border-color 160ms ease;
}

.streak-card.done {
  border-color: #78b791;
  background: #f3fbf6;
}

.streak-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-size: 1.35rem;
}

.streak-card h3 {
  margin-bottom: 0;
}

.streak-number {
  color: var(--orange-dark);
  font-family: var(--serif);
  font-size: 1.8rem;
}

.streak-today {
  min-height: 1.4em;
  color: var(--ink-soft);
}

.streak-card .button {
  width: 100%;
  margin-top: 0.6rem;
}

.centered {
  text-align: center;
}

.tract-card {
  display: flex;
  flex-direction: column;
}

.tract-language {
  align-self: flex-start;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #fff0e4;
  font-size: 0.78rem;
  font-weight: 850;
}

.tract-card h3 {
  margin-top: 0.8rem;
}

.tract-card > p {
  flex: 1;
  color: var(--ink-soft);
  line-height: 1.65;
}

.tract-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.tract-qr {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.tract-qr[hidden] {
  display: none;
}

.tract-qr img {
  width: min(240px, 100%);
  height: auto;
  border: 8px solid var(--white);
}

.tract-qr small {
  display: block;
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.offline-sermon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.offline-sermon:last-child {
  border-bottom: 0;
}

.offline-sermon strong,
.offline-sermon span {
  display: block;
}

.offline-sermon span {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.admin-mission-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-mission-list {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.admin-mission-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  background: var(--paper);
}

.admin-mission-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-mission-card header strong,
.admin-mission-card header small {
  display: block;
}

.admin-mission-card header small,
.admin-mission-card footer {
  color: var(--ink-soft);
}

.admin-mission-card h3 {
  margin: 1rem 0 0.5rem;
}

.admin-mission-card p {
  white-space: pre-wrap;
}

.admin-mission-card footer {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.prayer-form > label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-weight: 700;
}

.checkbox-row {
  display: flex !important;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 10px;
  background: #f7f1ec;
}

.checkbox-row input {
  width: 19px;
  min-height: 19px;
  margin-top: 0.2rem;
  accent-color: var(--orange);
}

.checkbox-row strong,
.checkbox-row small {
  display: block;
}

.checkbox-row small {
  color: var(--ink-soft);
  font-weight: 400;
}

.saved-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.saved-heading h2 {
  margin: 0;
}

.count-badge {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-weight: 800;
}

.prayer-item {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.prayer-item.answered p {
  color: var(--ink-soft);
  text-decoration: line-through;
}

.prayer-item p {
  margin-bottom: 0.7rem;
  white-space: pre-wrap;
}

.prayer-item > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.prayer-item time {
  margin-right: auto;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--orange-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
}

.text-button.danger {
  color: #a62e27;
}

.donation-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    url("https://images.unsplash.com/photo-1438232992991-995b7058bbb3?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.donation-hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.donation-hero-inner img {
  width: 142px;
  height: 95px;
  margin-bottom: 1.6rem;
  object-fit: cover;
}

.donation-hero h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(3rem, 6vw, 5rem);
}

.donation-hero p {
  max-width: 630px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.donation-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
}

.donation-card,
.bank-card {
  padding: clamp(1.5rem, 4vw, 2.3rem);
}

.donation-card h2,
.bank-card h2 {
  font-size: 2.2rem;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin: 1.4rem 0 1rem;
}

.amounts button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  font-weight: 800;
}

.amounts button:hover,
.amounts button.selected {
  color: var(--white);
  border-color: var(--orange);
  background: var(--orange);
}

.secure-note {
  display: block;
  margin-top: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}

.giving-programmes {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.giving-programme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.giving-programme-grid button {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-height: 190px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: left;
}

.giving-programme-grid button:hover,
.giving-programme-grid button.selected {
  border-color: var(--orange);
  box-shadow: 0 12px 30px rgba(153, 57, 0, 0.14);
}

.giving-programme-grid button.selected {
  background: #fff7ef;
}

.giving-programme-grid span {
  color: var(--orange-dark);
  font-size: 1.7rem;
}

.giving-programme-grid strong {
  font-family: var(--serif);
  font-size: 1.18rem;
}

.giving-programme-grid small {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.bank-card {
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(145deg, var(--dark-2), #090403);
}

.bank-card p {
  color: rgba(255, 255, 255, 0.68);
}

.iban-copy {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.3rem 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.iban-copy strong {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.04em;
}

.iban-copy span {
  color: #ffad72;
  font-size: 0.8rem;
  font-weight: 800;
}

.bank-card dl {
  margin: 0;
}

.bank-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-card dt {
  color: rgba(255, 255, 255, 0.55);
}

.bank-card dd {
  margin: 0;
  text-align: right;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.impact-grid article {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.impact-grid span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--orange-dark);
  background: #ffeadc;
}

.impact-grid h3 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.impact-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.direct-contact {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 2rem;
  align-items: center;
  margin-top: 4.8rem;
  padding: 2rem;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--dark);
}

.direct-contact h2 {
  margin: 0;
}

.direct-contact > div {
  display: grid;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
}

.direct-contact a:hover {
  color: var(--orange);
}

.site-footer {
  color: rgba(255, 255, 255, 0.68);
  background: #0d0606;
}

.footer-grid {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.1fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 4rem 0 3rem;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: var(--orange);
  font-family: var(--sans);
  font-size: 0.92rem;
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.13rem;
}

.footer-about p {
  max-width: 410px;
}

.social-links {
  display: flex;
  gap: 0.7rem;
}

.social-links a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
}

.social-links a:hover {
  color: var(--white);
  border-color: var(--orange);
}

.footer-nav,
.contact-list {
  display: grid;
  gap: 0.48rem;
}

.footer-nav a:hover,
.contact-list a:hover {
  color: var(--orange);
}

.contact-list {
  font-style: normal;
}

.contact-list b {
  display: inline-block;
  width: 1.5rem;
  color: var(--orange);
}

.footer-bottom {
  padding: 1.2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.78rem;
}

.profile-dialog {
  width: min(480px, calc(100% - 2rem));
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.profile-dialog::backdrop {
  background: rgba(13, 6, 6, 0.73);
  backdrop-filter: blur(5px);
}

.profile-dialog > form,
.auth-dialog-inner {
  position: relative;
  padding: 2rem;
}

.profile-dialog h2 {
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
}

.profile-dialog p {
  color: var(--ink-soft);
}

.profile-dialog label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 750;
}

.profile-dialog input {
  margin-bottom: 1rem;
}

.dialog-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-deep);
  cursor: pointer;
  font-size: 1.3rem;
}

.auth-dialog {
  width: min(540px, calc(100% - 2rem));
}

.auth-dialog-inner {
  max-height: min(780px, calc(100vh - 2rem));
  overflow-y: auto;
}

.auth-dialog form {
  position: static;
  padding: 0;
}

.auth-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.auth-field-grid label {
  min-width: 0;
}

.auth-field-grid input {
  width: 100%;
}

.auth-tabs,
.auth-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin: 1.25rem 0;
  padding: 0.3rem;
  border-radius: 12px;
  background: var(--paper-deep);
}

.auth-tab,
.auth-method {
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.auth-tab.active,
.auth-method.active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(58, 24, 20, 0.1);
}

.auth-dialog .button + .text-button,
.auth-reset-request {
  display: block;
  margin: 0.85rem auto 0;
}

.auth-hint {
  margin: -2px 0 2px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-login-hint {
  margin-top: 0.85rem;
  text-align: center;
}

.auth-status {
  min-height: 1.35rem;
  margin: 1rem 0 0;
  font-weight: 750;
}

.auth-status.success {
  color: #237247;
}

.auth-status.error {
  color: #a62e27;
}

.auth-user-panel {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 1.5rem 0 0.4rem;
  text-align: center;
}

.auth-user-panel[hidden] {
  display: none;
}

.auth-user-panel strong {
  font-size: 1.3rem;
}

.auth-user-panel span {
  margin-bottom: 0.8rem;
  color: var(--ink-soft);
}

.auth-user-panel > [hidden],
.auth-profile-form[hidden] {
  display: none;
}

.auth-profile-notice {
  width: 100%;
  margin: 0 0 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  color: #7a4a00;
  background: #fff2d6;
  font-size: 0.88rem;
  font-weight: 750;
}

.auth-profile-form {
  width: 100%;
  margin: 0.75rem 0;
  padding: 1rem !important;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-align: left;
}

.auth-profile-form .auth-profile-cancel {
  display: block;
  margin: 0.8rem auto 0;
}

.admin-section {
  min-height: 52vh;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 2rem;
  padding: 0.35rem;
  border-radius: 13px;
  background: var(--paper-deep);
}

.admin-tabs button {
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.admin-tabs button.active {
  color: var(--white);
  background: var(--orange-dark);
  box-shadow: 0 7px 20px rgba(153, 57, 0, 0.22);
}

#admin-content-view[hidden],
#admin-prayers-view[hidden],
#admin-confessions-view[hidden],
#admin-mission-view[hidden],
#admin-members-view[hidden] {
  display: none;
}

#admin-live-view[hidden] {
  display: none;
}

.admin-live-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #0b0908;
  box-shadow: none;
}

.admin-live-preview {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  background: #090504;
}

.admin-live-video-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.admin-live-video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-live-placeholder {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}

.admin-live-placeholder span {
  color: #e24735;
  font-size: 2rem;
}

.admin-live-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.admin-live-controls p,
.admin-live-controls small {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.admin-live-mic-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 750;
}

.admin-live-mic-status span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #8c817b;
  box-shadow: 0 0 0 4px rgba(140, 129, 123, 0.12);
}

.admin-live-mic-status.is-active {
  color: #75d49a;
}

.admin-live-mic-status.is-active span {
  background: #2f9a59;
  box-shadow: 0 0 0 4px rgba(47, 154, 89, 0.14);
}

.admin-live-buttons {
  display: grid;
  gap: 0.7rem;
}

.admin-live-extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.live-audience-card ul {
  display: grid;
  gap: 0;
  max-height: 360px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.live-audience-card li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.live-audience-card li:last-child {
  border-bottom: 0;
}

.live-audience-card li.live-audience-empty {
  display: block;
}

.live-audience-avatar {
  display: grid;
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange-dark);
  font-weight: 850;
}

.live-audience-card li div {
  display: grid;
  min-width: 0;
}

.live-audience-card li strong,
.live-audience-card li small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-audience-card li small {
  color: var(--ink-soft);
}

.button-danger {
  color: #fff;
  background: #a3291d;
  border-color: #a3291d;
}

.admin-prayers-panel,
.admin-confessions-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.prayer-admin-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.prayer-admin-summary > div {
  display: grid;
  gap: 0.15rem;
  padding: 1.2rem 1.4rem;
  background: var(--paper);
}

.prayer-admin-summary strong {
  color: var(--orange-dark);
  font-family: var(--serif);
  font-size: 2rem;
}

.prayer-admin-summary span {
  color: var(--ink-soft);
  font-weight: 700;
}

.prayer-moderation-list {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.confession-moderation-list {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.confession-moderation-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.confession-moderation-card blockquote {
  margin: 1rem 0;
  padding: 0;
  border: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.confession-moderation-card footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.prayer-moderation-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  background: var(--paper);
}

.prayer-moderation-card header,
.prayer-moderation-card footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.prayer-moderation-card header {
  justify-content: space-between;
}

.prayer-moderation-card header time {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.prayer-moderation-card blockquote {
  margin: 1rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.prayer-author {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  border-radius: 10px;
  background: #fff0e4;
}

.prayer-author small {
  color: var(--ink-soft);
}

.prayer-moderation-card footer {
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.admin-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-toolbar h2 {
  margin: 0.2rem 0 0;
}

.admin-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-content-panel {
  display: grid;
  gap: 1rem;
}

.content-admin-intro {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid #b8dec9;
  border-radius: 12px;
  color: #165a37;
  background: #edf8f2;
}

.content-admin-intro span {
  font-size: 0.88rem;
}

.content-editor-block {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.content-editor-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.content-editor-heading h3 {
  margin: 0.2rem 0 0;
  font-size: 1.7rem;
}

.content-editor-heading p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.content-settings-form fieldset {
  margin: 0 0 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.content-settings-form legend {
  padding: 0 0.45rem;
  color: var(--orange-dark);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.content-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.content-form-grid label {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.content-form-grid label > span {
  display: block;
  margin-bottom: 0.3rem;
}

.content-form-grid textarea {
  min-height: 105px;
}

.content-field-wide {
  grid-column: 1 / -1;
}

.content-item-list {
  display: grid;
  gap: 0.9rem;
}

.content-item-form {
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  background: var(--paper);
}

.content-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.content-item-footer > div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.content-published {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
}

.content-published input {
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--orange-dark);
}

.content-collection-empty {
  margin: 0;
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  text-align: center;
}

.admin-loading,
.admin-message {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

.admin-message strong {
  font-family: var(--serif);
  font-size: 1.45rem;
}

.admin-message p {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-soft);
}

.admin-message.denied {
  border-top: 4px solid #a62e27;
}

.admin-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--paper-deep);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: admin-spin 0.8s linear infinite;
}

@keyframes admin-spin {
  to { transform: rotate(360deg); }
}

.admin-summary {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.admin-summary strong {
  color: var(--orange-dark);
  font-family: var(--serif);
  font-size: 2rem;
}

.admin-summary span {
  color: var(--ink-soft);
  font-weight: 700;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.member-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.member-status.confirmed {
  color: #165a37;
  background: #e6f5ed;
}

.member-status.pending {
  color: #7a4a00;
  background: #fff2d6;
}

.member-status.blocked {
  color: #84251f;
  background: #fce7e5;
}

.admin-self {
  display: block;
  margin-top: 0.15rem;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.admin-actions .text-button {
  font-size: 0.82rem;
}

.admin-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.admin-detail {
  position: relative;
  margin: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.admin-detail[hidden] {
  display: none;
}

.admin-detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-detail-heading h3 {
  margin: 0.2rem 2.5rem 0 0;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.admin-detail-heading .dialog-close {
  right: 1rem;
  top: 1rem;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.admin-detail-grid div {
  min-width: 0;
  padding: 0.8rem;
  border-radius: 10px;
  background: var(--white);
}

.admin-detail-grid dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-detail-grid dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.admin-user-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

@media (max-width: 620px) {
  .bible-reader-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .bible-language {
    min-width: 0;
  }

  .bible-picker {
    grid-template-columns: 1fr 0.7fr;
  }

  .bible-picker .button {
    grid-column: 1 / -1;
  }

  .bible-chapter-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bible-chapter-nav .button {
    width: 100%;
  }

  .auth-field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-tabs,
  .content-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-live-panel {
    grid-template-columns: 1fr;
  }

  .admin-live-extras {
    grid-template-columns: 1fr;
  }

  .admin-live-preview {
    min-height: 420px;
  }

  .admin-live-controls {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .live-chat-guest-note,
  .live-chat-form > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-chat-form > div .button {
    width: 100%;
  }

  .prayer-admin-summary {
    grid-template-columns: 1fr;
  }

  .faith-form-grid,
  .prayer-network-stats,
  .offline-summary {
    grid-template-columns: 1fr;
  }

  .mission-contact header,
  .offline-sermon,
  .admin-mission-card header {
    align-items: flex-start;
    flex-direction: column;
  }

  .prayer-place {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .prayer-place > button,
  .prayer-place > .member-status {
    grid-column: 2;
    justify-self: start;
  }

  .prayer-moderation-card header,
  .prayer-moderation-card footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-field-wide {
    grid-column: auto;
  }

  .content-editor-heading,
  .content-item-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .content-editor-heading .button {
    width: 100%;
  }

  .content-item-footer > div {
    justify-content: space-between;
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
}

.auth-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 0.4rem;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-family: Georgia, serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.auth-privacy {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  z-index: 400;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: min(380px, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  font-weight: 700;
}

.noscript {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 500;
  padding: 1rem;
  border-radius: 8px;
  color: var(--white);
  background: #a62e27;
}

@media (max-width: 1050px) {
  .main-nav a {
    padding-inline: 0.5rem;
    font-size: 0.8rem;
  }

  .install-button {
    display: none;
  }

  .offerings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .giving-programme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .header-inner {
    position: relative;
  }

  .menu-button {
    display: block;
    order: 2;
  }

  .header-actions {
    order: 3;
  }

  .main-nav {
    position: absolute;
    left: -1rem;
    right: -1rem;
    top: 64px;
    display: none;
    padding: 0.55rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 8, 7, 0.99);
    box-shadow: 0 22px 35px rgba(0, 0, 0, 0.25);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    justify-content: start;
    min-height: 44px;
    padding: 0 0.4rem;
    font-size: 0.92rem;
  }

  .main-nav a::after {
    display: none;
  }

  .bible-grid,
  .prayer-grid,
  .prayer-community-grid,
  .community-group-layout,
  .confession-layout,
  .mission-layout,
  .prayer-network-layout,
  .donation-grid {
    grid-template-columns: 1fr;
  }

  .faith-panel-heading {
    grid-template-columns: 1fr;
  }

  .streak-grid,
  .tract-grid,
  .course-grid {
    grid-template-columns: 1fr;
  }

  .daily-card {
    min-height: 360px;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .sermon-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    min-height: 230px;
  }

  .member-result-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .live-viewer-frame {
    min-height: 520px;
  }

  .live-chat-overlay-card .live-chat-log {
    right: 0.75rem;
    bottom: 8.1rem;
    width: calc(100% - 1.5rem);
    max-height: 38%;
  }

  .live-chat-overlay-card .live-chat-form {
    padding-inline: 0.75rem;
  }

  .live-chat-overlay-card .live-chat-form small {
    right: 0.75rem;
    left: 0.75rem;
  }

  .community-tabs {
    grid-template-columns: 1fr;
  }

  .community-group-card {
    grid-template-columns: 1fr;
  }

  .community-group-card > div:last-child,
  .confession-moderation-card footer {
    justify-content: flex-start;
  }

  .discussion-heading,
  .discussion-post header,
  .community-confession header,
  .confession-moderation-card header {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-workspace-heading,
  .course-certificate {
    align-items: stretch;
    flex-direction: column;
  }

  .course-certificate .button {
    width: 100%;
  }

  .giving-programme-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    width: min(100% - 1rem, 1240px);
    gap: 0.45rem;
  }

  .brand {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .signin-button {
    padding-inline: 0.65rem;
  }

  .home-hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 3rem;
  }

  .hero-content h1 {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .hero-logo {
    width: 150px;
    height: 100px;
  }

  .hero-actions {
    display: grid;
  }

  .offerings-grid,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .offering-card {
    min-height: 120px;
  }

  .service-grid article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .info-strip {
    grid-template-columns: auto 1fr;
  }

  .info-strip .button {
    grid-column: 1 / -1;
  }

  .input-row,
  .reader-fields {
    grid-template-columns: 1fr;
    display: grid;
  }

  .amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .direct-contact {
    grid-template-columns: 1fr;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-grid {
    gap: 2.2rem;
  }
}

@media (max-width: 420px) {
  .brand > span:last-child {
    display: none;
  }

  .signin-button {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Session chat: comments occupy only the bottom 15% of the video. */
#app .live-chat-overlay-card .live-chat-log {
  top: auto;
  right: 0.65rem;
  bottom: 0;
  left: 0.65rem;
  width: auto;
  height: 15%;
  max-height: 15%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 0 4px;
  overflow: auto;
  scrollbar-width: none;
  pointer-events: auto;
  mask-image: none;
}
#app .live-chat-overlay-card .live-chat-log::-webkit-scrollbar { display: none; }
#app .live-chat-overlay-card .live-chat-log::before { content: ""; flex: 1 0 0; }
#app .live-chat-overlay-card .live-chat-message {
  flex: 0 0 auto;
  align-self: flex-start;
  width: fit-content;
  max-width: min(90%, 360px);
  min-width: 0;
  margin: 0;
  padding: 3px 7px;
  border-radius: 7px;
  border-left-width: 2px;
  box-shadow: none;
}
#app .live-chat-overlay-card .live-chat-message header { display: inline; margin: 0 5px 0 0; }
#app .live-chat-overlay-card .live-chat-message header strong { font-size: 11px; line-height: 1.2; }
#app .live-chat-overlay-card .live-chat-message time { font-size: 9px; margin-left: 5px; }
#app .live-chat-overlay-card .live-chat-message p { display: inline; margin: 0; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
#app .live-chat-composer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
  margin: 0;
  padding: 12px;
  background: #141210;
  color: #fff;
}
#app .live-chat-composer textarea { min-height: 44px; height: 44px; max-height: 88px; resize: vertical; font-size: 14px; padding: 10px; color: #fff; background: #211e1b; border: 1px solid #5c5046; }
#app .live-chat-composer button { min-height: 44px; padding: 8px 14px; font-size: 14px; }
#app .live-chat-composer small { grid-column: 1 / -1; font-size: 12px; color: #c8bfb8; }
#app .live-chat-composer .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.live-archive-card { padding: 20px; border: 1px solid var(--border, #ddd); border-radius: 16px; background: #fff; min-width: 0; }
.live-archive-card > header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.live-archive-card h2 { margin: 0; }
.live-archive-folder { border: 1px solid #e1d8d0; border-radius: 10px; padding: 12px; margin: 12px 0; }
.live-archive-folder summary { cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.live-archive-folder > p { font-size: 12px; }
.live-archive-messages { max-height: 420px; overflow: auto; }
.live-archive-messages article { padding: 10px 0; border-bottom: 1px solid #eee; overflow-wrap: anywhere; }
.live-archive-messages strong { font-size: 12px; }
.live-archive-messages p { margin: 4px 0; font-size: 14px; }
@media (min-width: 851px) {
  #app .admin-live-panel > .admin-live-preview { grid-column: 1; grid-row: 1; }
  #app .admin-live-panel > .live-chat-composer { grid-column: 1; grid-row: 2; }
  #app .admin-live-panel > .admin-live-controls { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 850px) { #app .admin-live-panel { grid-template-columns: minmax(0, 1fr); } }
