:root {
  --ink: #241f2e;
  --ink-soft: #6b6476;
  --paper: #fbf9f6;
  --card: #ffffff;
  --accent: #6d5bd0;
  --accent-soft: #ece8fb;
  --border: #e7e2ef;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1eef7;
    --ink-soft: #b7b0c7;
    --paper: #16131d;
    --card: #1f1b29;
    --accent: #9686f0;
    --accent-soft: #2a2440;
    --border: #322c43;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  /* Matches .page-grid's actual content width exactly (620 + 18 + 190 + 18
     + 190 = 1036px) plus this box's own 24px+24px side padding = 1084px.
     Was 1120px, which left ~36px of unused slack on the right because the
     grid's fixed-width tracks don't stretch to fill extra space -- that
     slack was why the top-right corner widgets (auth-widget-corner /
     site-lang-picker-corner, positioned via right:24px/left:24px relative
     to .wrap) visually "floated" past the actual right edge of the visible
     card grid below them. */
  max-width: 1084px;
  margin: 0 auto;
  padding: 72px 24px 48px;
}

/* Keeps the header, search box, and donate section at a comfortable
   reading width even though .wrap itself is wide enough for the
   3-column feed below. */
.narrow {
  max-width: 680px;
  margin: 0 auto;
}

.brand { position: relative; text-align: center; margin-bottom: 40px; }
.brand-mark { font-size: 34px; margin-bottom: 8px; }

/* "Site language" picker -- lets you preview the whole page's own text
   (not just individual prayers) in another language via ?lang=xx.
   -corner pins it to the FAR top-left of the whole page (.wrap, which
   spans the full 1120px content width), not just the centered 680px
   header column -- small and out of the way. */
.site-lang-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-lang-picker-corner {
  position: absolute;
  top: 10px;
  left: 24px;
  font-size: 11px;
}
.site-lang-label {
  font-size: 10.5px;
  color: var(--ink-soft);
}
.site-lang-select {
  font-family: inherit;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
}

/* Sign-in widget. Plain/minimal to match the current site look; this
   gets a visual pass later alongside the rest of the header.
   -corner pins it to the FAR top-right of the whole page (.wrap), lined
   up above the right-hand archive column rather than the centered
   title/tagline. */
.auth-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.5px;
}
.auth-widget-corner {
  position: absolute;
  top: 10px;
  right: 24px;
}
.auth-signin-btn,
.auth-signout-btn {
  font-family: inherit;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.auth-signin-btn:hover,
.auth-signout-btn:hover {
  background: var(--border);
}
.auth-signin-form {
  display: flex;
  align-items: center;
  gap: 6px;
}
.auth-email-input {
  font-family: inherit;
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  width: 170px;
}
.auth-send-link-btn {
  font-family: inherit;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--ink);
  color: var(--card);
  cursor: pointer;
  white-space: nowrap;
}
.auth-signed-in {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-name {
  color: var(--ink-soft);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
}
.auth-name:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
@media (max-width: 920px) {
  /* Below the point where the archive columns collapse out of the
     page-grid (see .page-grid's own breakpoint), there's no "far right
     column" left to line up above -- fall back to a plain centered row
     under the title, same as every other narrow-screen header control. */
  .site-lang-picker-corner,
  .auth-widget-corner {
    position: static;
    margin: 0 auto 10px;
    justify-content: center;
  }
}
@media (max-width: 560px) {
  .auth-widget { justify-content: center; flex-wrap: wrap; }
}

.brand h1 {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.brand h1 span { color: var(--accent); }
.brand h1 .dot { color: var(--ink-soft); font-size: 20px; font-weight: 400; }

.tagline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 10px;
}

.search-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  box-shadow: 0 10px 30px -15px rgba(109, 91, 208, 0.25);
}

.search-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 10px 12px 18px;
}

textarea#prayerInput {
  flex: 1;
  border: none;
  background: transparent;
  resize: vertical;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  min-height: 192px;
  max-height: 640px;
  padding: 4px 0;
}

/* Honeypot: visually hidden but present in the DOM/tab order trap for bots.
   display:none is deliberately avoided -- some bots skip fields hidden that way,
   so this is pulled off-screen instead. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  left: -9999px;
}
textarea#prayerInput:focus { outline: none; }
textarea#prayerInput::placeholder { color: var(--ink-soft); }

#submitBtn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
#submitBtn:hover { transform: scale(1.05); }
#submitBtn:disabled { opacity: 0.35; cursor: default; transform: none; }

.dictate-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 2px;
}
.dictate-btn:hover { color: var(--accent); border-color: var(--accent); }
.dictate-btn.listening {
  color: white;
  background: #e0435c;
  border-color: #e0435c;
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 67, 92, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(224, 67, 92, 0); }
}

.voice-section { margin-top: 10px; }
.voice-toggle-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}
.voice-toggle-btn:hover { color: var(--accent); border-color: var(--accent); }

.voice-record-panel {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
}
.voice-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.voice-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  cursor: pointer;
  min-height: 40px;
}
.voice-btn.recording { background: #e0435c; border-color: #e0435c; }
.voice-btn.voice-remove { background: transparent; color: var(--ink-soft); border-color: var(--border); }
.voice-timer {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.voice-preview { width: 100%; margin-top: 12px; }
.voice-error {
  margin: 10px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.5px;
  color: #c0304a;
}

.search-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 6px 2px;
}

.anon-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.anon-toggle input { accent-color: var(--accent); }

.hint {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  margin: 18px 4px 0;
}

.feed { margin-top: 48px; }

.lang-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--accent-soft);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 14px;
}
.lang-preview select {
  font-family: inherit;
  font-size: 12.5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 6px;
  background: var(--card);
  color: var(--ink);
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.feed-header h2 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.feed-sub { font-size: 12px; color: var(--ink-soft); }

/* The archive columns span the FULL page -- header, search box, feed, and
   donate box -- not just the feed section, so they flank everything top to
   bottom. align-items: stretch (the grid default) makes both side columns
   exactly as tall as the center content; a fixed conveyor keeps the
   content bounded (never taller than center), and justify-content:
   space-between on .archive-col spreads its few cards across that full
   height (with the Prayer Archive box anchored at the very bottom-right)
   instead of leaving empty space below a cluster at the top. */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) 190px 190px;
  gap: 18px;
}
/* Visual order: big center box, then the "left" column, then the "right"
   column -- both narrow columns now sit to the right of center instead of
   flanking it. The underlying HTML/IDs (archiveLeft/archiveRight) and the
   post numbers they hold are unchanged, only where they're drawn. */
.page-main { order: 1; }
#archiveLeft { order: 2; }
#archiveRight { order: 3; }

.feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.archive-col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Top-aligned with a fixed gap, not spread across the full column height --
     space-between stretched 2-3 short cards across three tall center cards'
     worth of height, leaving large empty gaps between them. */
  justify-content: flex-start;
}
.archive-col:empty { display: none; }

@media (max-width: 920px) {
  .wrap { max-width: 680px; }
  .page-grid { grid-template-columns: 1fr; }
  .page-main { order: 1; }
  .archive-col { order: 2; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .archive-col .feed-item { flex: 1 1 260px; }
}
@media (max-width: 480px) {
  .archive-col { flex-direction: column; }
  .archive-col .feed-item { flex: 1 1 auto; }
}

.feed-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  animation: fadeIn 0.3s ease;
}

.feed-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.feed-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.avatar-anon {
  background: var(--accent-soft);
  color: var(--accent);
}
.avatar-anon svg { width: 18px; height: 18px; }

.avatar-named {
  background: var(--accent);
  color: white;
}

.feed-who .feed-author {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-where {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.feed-where-main {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.feed-number-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

.feed-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.feed-country {
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.feed-exact-time {
  font-size: 11px;
  color: var(--ink-soft);
  opacity: 0.75;
  white-space: nowrap;
}

.request-audio { width: 100%; margin: 4px 0 2px; }

/* Archived items: the li keeps everything it had in the main feed (the
   .feed-full wrapper), it's just hidden by default and a compact
   .archive-summary button takes its place -- clicking it expands the
   original content right there in the column, translate/respond intact. */
.feed-item.is-archived { padding: 12px 14px; }
.feed-item.is-archived .feed-full { display: none; }
.feed-item.is-archived.is-expanded .feed-full { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

.archive-summary {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.feed-item.is-archived .archive-summary { display: flex; }

/* Expanded archived items are narrower (side column) than the main feed,
   so the I prayed / Respond pills are scaled down to match instead of
   crowding the smaller card. */
.feed-item.is-archived .pray-btn,
.feed-item.is-archived .respond-toggle-btn {
  font-size: 11px;
  padding: 5px 10px;
  min-height: 28px;
}

/* The respond composer (text box + voice recorder) also needs to shrink
   to fit the narrow side-column width -- otherwise the "Start recording"
   pill (sized for the full-width main form) dwarfs everything else. */
.feed-item.is-archived .respond-composer { padding: 8px; }
.feed-item.is-archived .respond-text { font-size: 12px; padding: 6px 8px; }
.feed-item.is-archived .respond-voice .voice-controls { gap: 6px; }
.feed-item.is-archived .respond-voice .voice-btn {
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 9px;
  min-height: 26px;
}
.feed-item.is-archived .respond-voice .voice-timer { font-size: 9.5px; }
.feed-item.is-archived .respond-submit-btn {
  font-size: 11px;
  padding: 6px 12px;
  min-height: 28px;
}

/* Mirrors the big cards' country/time | number pattern: identity on the
   left, a thin vertical separator, then the number on the right. */
.archive-summary-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.archive-identity {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.archive-number-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  flex-shrink: 0;
}
.archive-number {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Country abbreviation sits just left of the "| 0009" number -- compact,
   uppercase, same muted weight as the number beside it. */
.archive-country-abbr {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  opacity: 0.8;
  white-space: nowrap;
}
/* Date/time sits on its own line under the name, above the blurb. */
.archive-summary-time {
  font-size: 10.5px;
  color: var(--ink-soft);
  opacity: 0.75;
  white-space: nowrap;
}
.archive-blurb {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Once expanded, the full card below (feed-full) already shows the complete
   text and its own avatar/name -- so the compact blurb and the duplicate
   country/time/number row in feed-top are hidden to avoid showing the same
   info twice (name + number stay visible via archive-summary-top above). */
.feed-item.is-archived.is-expanded .archive-blurb { display: none; }
.feed-item.is-archived .feed-where { display: none; }

/* The permanent "Prayer Archive" box -- always the last slot in the right
   column, never pushed down by new prayers. */
.archive-link-box { padding: 0; overflow: hidden; }
.archive-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  /* Flipped from the normal card look so it stands out among the prayer
     cards at rest, and settles back to the plain card background on hover. */
  background: var(--accent-soft);
}
.archive-link:hover { background: var(--card); }
.archive-link-icon { font-size: 20px; }
.archive-link-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.archive-link-sub {
  font-size: 10.5px;
  color: var(--ink-soft);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  max-width: calc(100vw - 32px);
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13.5px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.translate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 10px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.translate-btn:hover { opacity: 0.85; }
.translate-btn[data-state="loading"] { opacity: 0.6; cursor: wait; }
.translate-btn[data-state="done"] { background: transparent; color: var(--ink-soft); border-color: transparent; padding-left: 0; }

.feed-text.translated-original {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: -4px;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.feed-text {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.5;
}

.feed-footer {
  display: flex;
  gap: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
}
.feed-responses { color: var(--accent); font-weight: 600; }

.responses-section { margin-top: 12px; }

.responses-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.pray-btn, .respond-toggle-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
}
.pray-btn:hover, .respond-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.pray-btn.prayed { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.respond-composer {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
}
.respond-text {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  padding: 8px 10px;
  resize: vertical;
}
.respond-voice { margin-top: 10px; }
/* Small line above the voice recorder in the full-size composer, offering
   the voice option as an alternative to typing. */
.voice-hint {
  margin: 10px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
}
/* Right-aligns "Post response" under the textarea/voice recorder. */
.respond-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.respond-submit-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  min-height: 38px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
}
/* Full-size composer: match the "Start recording" button's font size to
   the "Post response" button beside it, instead of the larger default. */
.respond-composer .respond-voice .voice-btn.voice-start {
  font-size: 13px;
}

/* Narrow archived composer: label + a very small voice button share one
   row, label on the left, button on the right. */
.respond-voice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.voice-hint-compact {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10.5px;
  color: var(--ink-soft);
}
.respond-voice-row .voice-controls { flex: 0 0 auto; }
.respond-voice-row .voice-timer { display: none; }
.voice-btn-compact {
  font-size: 10px !important;
  padding: 3px 9px !important;
  min-height: 22px !important;
}

.response-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.response-list:empty { display: none; }
.response-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.response-item .avatar { width: 26px; height: 26px; font-size: 11px; }
.response-body { flex: 1; min-width: 0; }
.response-author {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.response-text { margin: 0; font-size: 14.5px; line-height: 1.5; }
.response-body audio { width: 100%; margin-top: 4px; }

.donate-card {
  margin-top: 56px;
  padding: 32px 28px;
  text-align: center;
  background: linear-gradient(180deg, var(--accent-soft), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.donate-mark { font-size: 28px; margin-bottom: 8px; }

.donate-card h2 {
  font-size: 21px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink);
}

.donate-card p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 auto 20px;
}

.donate-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 36px;
  min-height: 46px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(109, 91, 208, 0.55);
}
.donate-btn:hover { opacity: 0.92; }

.site-footer {
  text-align: center;
  margin-top: 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.7;
}

@media (max-width: 480px) {
  .wrap { padding: 48px 16px 32px; }
  .brand h1 { font-size: 28px; }
}

/* Prayer Archive page (archive.html) */
.archive-brand { margin-bottom: 32px; }
.archive-back {
  display: inline-block;
  margin-bottom: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.archive-back:hover { text-decoration: underline; }
.archive-title { font-size: 28px; font-weight: 500; margin: 0; }

.archive-full-list { gap: 16px; }
.archive-empty {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-soft);
  text-align: center;
  padding: 40px 0;
}

/* Pagination strip (number ranges like "1-50", "51-100") above and below
   the full archive list. */
.archive-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.archive-page-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-soft);
  text-decoration: none;
}
.archive-page-link:hover { border-color: var(--accent); color: var(--accent); }
.archive-page-link.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
