/* GodTracer.com -- public homepage, "bubble theme".
   APPROACH (changed 2026-10-13, per the user): use the real mockup PNG/JPG
   directly as the background image -- pixel-perfect shapes, colors and
   text, no re-tracing -- with a native HTML image map for the clickable
   regions, the same technique the original Fireworks export used.

   2026-10-14, BACKGROUND-REMOVED PNG SWAP: the user re-exported the
   mockup from Fireworks with the flat white square background stripped
   out (real alpha transparency), to fix the visible white/square edge
   that showed against the page's dark gradient. New file: homepage-bg.png
   (RGBA, 1000x910 -- NOT square; the old homepage-bg.jpg was a padded
   1000x1000). Because the canvas is no longer square, .bubble-stage's
   aspect-ratio now matches the image's real 1000:910 proportions instead
   of forcing 1:1 (forcing 1:1 would have re-introduced empty letterboxed
   space top/bottom, just transparent instead of white). All hotspot
   polygons AND the feed-circle position/size were re-measured directly
   against this new PNG (flood-fill per exact fill color + Hough circle
   detection) rather than reusing the old square-canvas coordinates --
   the crop shifted everything's y-position (the circle's measured center
   moved from y=521.5 to y=433.5, consistent with the top of the old
   square canvas being mostly blank space that's now cropped away).

   IMPORTANT FINDING on "cut off" (still true on the new PNG): the red
   "Not Sure What You Believe?" blob and the blue "HELP NEEDED" blob BOTH
   genuinely touch x=0 of the canvas in the user's own reference art.
   This is a real feature of the mockup's design, not a cropping bug. The
   fix is the same one applied before: real outer page padding (so
   there's breathing room between the image's own edge and the browser
   edge) plus a background gradient so that padding blends in rather than
   showing a seam.

   The ONLY part that is NOT the static image is the center feed circle,
   real DOM content (the live prayer feed) positioned/sized to land
   exactly over the circle drawn into the image -- measured via Hough
   circle detection on the new PNG: center 502.5,433.5px, radius 348.9px
   of the 1000x910 canvas -> left 15.36%, top 9.30%, width 69.78%,
   height 76.68% (width % and height % now differ, since the stage is no
   longer square -- this is correct and keeps the circle visually round,
   because the stage's own aspect-ratio matches the image's real
   proportions). Its internal text layout (two-line title, "Dear GOD,"
   label, multi-line prompt box, AMEN at the right, thick green divider)
   matches the user's own reference circle art, and is unchanged from
   before per the user's explicit instruction to keep it as-is.
   Below ~880px wide, the circle switches to a simple stacked block under
   the image (hotspots still work at any width since HTML image maps
   scale automatically with the image's rendered size). */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  /* Sampled directly from the new square homepage-bg.jpg's own edge
     pixels (median of a narrow left-edge strip per row), so padding
     around the image blends into it rather than showing a seam. */
  background: linear-gradient(180deg,
    #023435 0%,
    #355d5d 10%,
    #678683 20%,
    #9cb0af 30%,
    #d0d8da 40%,
    #eef2f3 50%,
    #517575 60%,
    #0e3431 70%,
    #2b3435 80%,
    #343434 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
}

a { color: inherit; }

/* Real breathing room around the whole composition -- without this the
   image sat flush against the browser edge (see header comment). The
   page background above blends into the image's own edge colors, so this
   padding reads as part of the design rather than a crop. */
body {
  padding: clamp(16px, 4vw, 48px) clamp(16px, 4vw, 40px);
}

/* TRUE-aspect stage: matches the real 1000x910 mockup canvas (the new
   background-removed PNG is not square -- see header comment) exactly so
   the image and the overlaid circle scale together with no distortion,
   AND so the image map hotspot coordinates (measured directly against
   this same 1000x910 pixel space) land correctly -- forcing a 1:1 square
   stage instead would letterbox the image inside it (since the PNG's own
   aspect ratio differs), which shifts every hotspot's effective position
   by the letterbox gap and would misalign every clickable blob. No
   box-shadow here anymore -- a drop-shadow on this element shadows its
   full RECTANGULAR box, which is exactly the visible "square" that
   reappeared once the image itself stopped being an opaque fill: the
   shadow doesn't disappear just because the image inside it is
   transparent now. The feed-circle's own box-shadow (below) still gives
   the live circle its depth; that one actually IS circle-shaped. */
.bubble-stage {
  position: relative;
  width: min(100%, 1000px);
  aspect-ratio: 1000 / 910;
  margin: 0 auto;
}

.bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---- Center feed circle -- the one piece of real, interactive content.
   Position/size measured directly off the true source image (see header
   comment) so it sits exactly on top of the circle drawn into the
   background image, visually replacing that static mockup content with
   the real feed. */
.feed-circle {
  position: absolute;
  top: 9.30%;
  left: 15.36%;
  width: 69.78%;
  height: 76.68%;
  background: #fff;
  color: #2a2420;
  /* Matched to the actual dark red of the "GOD tracer" wordmark baked
     into the page's own background image -- sampled directly from
     homepage-bg.jpg's wordmark pixels (median ~#93090b), replacing the
     brighter/generic red used before, per explicit feedback ("make the
     red border... the same color red as the word GOD tracer"). */
  border: 2px solid #93090b;
  border-radius: 50%;
  /* Title sits as close to the rim as the text itself allows (it's
     narrow/centered, so it can start much shallower than a full-width
     row without clipping) -- the prompt row below gets its own
     margin-top instead (see .feed-prompt) to push IT down into a wider
     part of the circle, so the two no longer have to share one
     top-padding value that was either too loose for the title or too
     tight for the row. */
  /* Bottom padding trimmed down so the archive link (pinned at the very
     bottom of the flex column, see .feed-archive-link) can sit noticeably
     closer to the circle's own bottom edge, per explicit feedback. */
  padding: 1.8% 10% 2%;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.75);
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Two-line title ("Talk With GOD" / "Request A Prayer") matching the
   user's own reference circle art exactly. */
.feed-title {
  flex: none;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: #1a3fcc;
  /* Bumped two sizes larger per explicit feedback ("one size larger
     font and if two sizes larger fits do that one first") -- tried
     first and verified it still fits without clipping/crowding the
     prompt row below. */
  font-size: clamp(16.5px, 2.45vw, 23.5px);
  text-align: center;
  /* v16 mistakenly read "2 to 3 lines" as asking to grow THIS title
     block's own height (extra margin-bottom) -- the user's annotated
     screenshot this round makes clear the "2 to 3" request was actually
     about the PROMPT TEXTAREA below (now fixed via rows 2->3 on
     .feed-prompt-box, see below), not the title. Reverted back to its
     original tight margin so the title sits where it did in v14, rather
     than pushing everything below it further down. */
  margin: 0 0 4px;
  line-height: 1.25;
}

.feed-prompt-label {
  flex: none;
  display: block;
  /* Bumped one size larger and bold, per explicit feedback. */
  font-size: clamp(10.5px, 1.45vw, 14px);
  font-weight: 700;
  color: #2a2420;
  /* Pushed further right per the user's explicit feedback (not just
     enough to clear the circle's curve, now deliberately offset --
     nudged a bit further still this round). Bottom margin tightened so
     it sits snug against the (now taller) textarea right below it, per
     "move the Dear GOD up too". */
  /* Bottom margin tightened by another 1px, per explicit feedback
     ("move the Dear GOD, up another pixel off above the text box"). */
  margin: 0 0 1px 7.5%;
  /* Nudged 3px right and 2px further up (off/away from the textarea
     below it), per explicit feedback this round -- a small relative
     offset on top of the margin-based positioning above. */
  position: relative;
  left: 3px;
  top: -2px;
}

/* The label+row block gets its own top margin, separate from the
   circle's own top padding (which now only controls how close the TITLE
   sits to the rim) -- this pushes the label/textarea/AMEN block down
   into a wider part of the circle on its own, so the title can sit much
   closer to the top without the row below it clipping against the
   circle's curve (a straight-edged full-width row needs the chord to be
   much wider than it is near the very top). */
.feed-prompt {
  flex: none;
  /* Pulled up to sit right under "Request A Prayer", per explicit
     feedback ("move the Dear GOD and text box up to just underneath
     Request A Prayer so there is room underneath the text box for an
     icon or audio recording etc.") -- frees up real vertical room below
     the textarea for that future control. */
  margin-top: 0.4%;
}

/* "Dear GOD," label above a real multi-line textarea, with AMEN sitting
   to its right -- matches the user's reference (label + 2-line box +
   AMEN at the far right of that row), restoring the pattern that the
   one-line placeholder-only version (v9) had collapsed for space. */
.feed-prompt-row {
  flex: none;
  display: flex;
  align-items: stretch;
  gap: 8px;
  /* Inset a bit further than the circle's own side padding, since this
     row now sits higher/shallower (right under the title) where the
     circle's chord is narrower -- without this it visually touched the
     circle's curved wall, per explicit feedback ("make the text box...
     width a little smaller so it's not touching any edge of the
     circle"). */
  margin: 0 3%;
}
.feed-prompt-box {
  flex: 1 1 auto;
  min-width: 0;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 10px;
  /* v41: reverted back to its original size -- the "two lines longer,
     fit the circle's width" feedback was about the XL-tier feed card
     above the removed #0111 row (see .feed-post-xl .feed-excerpt below),
     not this compose box. "I didn't want the Dear God box taller." */
  min-height: 62px;
  background: #fafafa;
  padding: 6px 10px;
  font: inherit;
  font-size: clamp(9.5px, 1.2vw, 12.5px);
  line-height: 1.3;
  color: #333;
}
.feed-prompt-box::placeholder { color: #8a8a8a; }
.amen-btn {
  flex: none;
  align-self: center;
  background: #fff;
  border: 2px solid #1a3fcc;
  color: #1a3fcc;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: clamp(9.5px, 1.2vw, 12.5px);
  cursor: pointer;
}
.amen-btn:hover { background: #1a3fcc; color: #fff; }
.amen-btn:disabled { cursor: default; opacity: 0.6; }

/* v37: real submit confirmation/error line under the "Dear GOD," box --
   posts there now go straight to RequestingPrayer.com. */
.feed-prompt-msg {
  flex-basis: 100%;
  font-size: clamp(8.5px, 1vw, 11px);
  margin: 2px 3% 0;
  min-height: 1.2em;
}
.feed-prompt-msg-success { color: #1e6b2e; }
.feed-prompt-msg-error { color: #a33; }

/* v39: voice-prayer + anonymous toggle row under the AMEN row. */
.feed-prompt-options {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 3% 0;
  flex-wrap: wrap;
}
.feed-voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1.5px solid #1a3fcc;
  color: #1a3fcc;
  border-radius: 999px;
  padding: 4px 12px 4px 10px;
  font-size: clamp(8.5px, 1vw, 11px);
  font-weight: 600;
  cursor: pointer;
}
.feed-voice-btn:hover { background: #eef1ff; }
.feed-mic-icon { width: 13px; height: 13px; flex: none; }
.feed-voice-btn-recording {
  border-color: #c0392b;
  color: #c0392b;
  animation: feedVoicePulse 1.1s ease-in-out infinite;
}
@keyframes feedVoicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(192, 57, 43, 0); }
}
.feed-voice-btn-recorded { border-color: #1e6b2e; color: #1e6b2e; }
.feed-anon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(8.5px, 1vw, 11px);
  color: #555;
  cursor: pointer;
}

/* ---- v40: interactive feed cards -- click anywhere on a card's own
   text to open it up full-size; only one open at a time; clicking
   outside it (or opening a different card) closes it again. The green
   dot is now just a quiet "has responses" indicator, not its own
   control. ---- */
/* v45: cards were made non-clickable (the inline expand panel that used
   to open under a card was removed entirely -- see the big comment on
   renderPosts() in bubble-home.js). v47: clicking a card is back, but
   it now opens the SAME overlay popup the Respond button opens (the
   full prayer text + response form), never anything inline -- so this
   still can't change a card's own height/box size, the thing v45 was
   protecting. */
.feed-post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.feed-pray-btn, .feed-respond-btn {
  font-size: clamp(8.5px, 1vw, 10.5px);
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
  border: 1px solid #1a3fcc;
  background: #fff;
  color: #1a3fcc;
}
.feed-pray-btn:hover, .feed-respond-btn:hover { background: #eef1ff; }
.feed-pray-btn-done {
  border-color: #c7c7c7;
  color: #8a8a8a;
  cursor: default;
}
.feed-pray-btn-done:hover { background: #fff; }
.feed-pray-count { font-weight: 400; }
/* v45: the green "has responses" dot is gone -- the Respond button's own
   "(N)" count (see .feed-pray-count reused on it in bubble-home.js) is
   the replacement, per explicit feedback ("instead show a number (like
   that of the Prayed (1))"). The full inline expand panel (original
   text + every response + its own reply row) is gone too, for the same
   reason -- see the big comment on renderPosts() in bubble-home.js for
   why. Full text and every response now live in Prayer Archive instead. */
.feed-post-audio {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 2px;
}
.feed-reply-anon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(8.5px, 1vw, 10px);
  color: #555;
  cursor: pointer;
}
.feed-reply-voice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #1a3fcc;
  background: #fff;
  color: #1a3fcc;
  cursor: pointer;
  flex: none;
  padding: 0;
}
.feed-reply-voice-btn svg { width: 11px; height: 11px; }
.feed-reply-voice-btn:hover { background: #eef1ff; }
.feed-reply-voice-btn-recording {
  border-color: #c0392b;
  color: #c0392b;
  animation: feedVoicePulse 1.1s ease-in-out infinite;
}
.feed-reply-voice-btn-recorded { border-color: #1e6b2e; color: #1e6b2e; }
/* .feed-reply-box, .feed-reply-msg(-error) below are still used -- by
   the Respond popup (see .feed-response-modal-box/-row in the Respond
   popup section further down), not by any per-card UI any more. */
.feed-reply-box {
  flex: 1 1 auto;
  min-width: 0;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 5px 8px;
  font: inherit;
  font-size: clamp(9.5px, 1.1vw, 11.5px);
}
.feed-reply-msg {
  font-size: clamp(8px, 0.95vw, 10px);
  margin-top: 4px;
  min-height: 1.1em;
}
.feed-reply-msg-error { color: #a33; }

/* Thick green divider, pulled out past the circle's own side padding via
   negative margins so it extends further left/right than the rest of
   the content, per the user's annotated arrows pointing outward past
   where the v10/v12 line stopped. Safe to do here (unlike the title/
   prompt row above) because the divider sits deep enough into the
   circle that the chord is already much wider than the padded content
   box at this depth. */
.feed-divider {
  flex: none;
  border: none;
  border-top: 4px solid #1e6b2e;
  /* v45: width/margin are no longer set here -- a flat CSS percentage
     can't keep an exact, fixed 5px gap from a CURVED (circular) edge at
     every screen size, so fitDividerToCircle() in bubble-home.js
     measures the actual circle and divider position live and sets an
     explicit pixel width + auto left/right margins to center it. These
     two lines are just a safe fallback for the instant before that JS
     runs (or if it can't, for any reason). */
  margin: 8px auto;
  width: 60%;
}

/* Real "Previous Prayer Archives" link, pinned at the very bottom of the
   circle (flex:none, after the scrollable .feed-list, so it sits right
   at the bottom of the flex column) in a distinct green that matches the
   divider rather than the image's old plain white/gray pill -- replaces
   the baked-in image version, which was painted over in homepage-bg.jpg
   so there's only one archive link now, not two. */
.feed-archive-link {
  flex: none;
  display: block;
  margin: 10px auto 0;
  text-align: center;
  /* v16's #4caf50 was a generic Material green, unrelated to the page's
     own palette. Switched to one of the actual teal-green stops from the
     page's own background gradient (html,body's linear-gradient above,
     the #355d5d 10% stop) per explicit feedback -- "one of the green
     colors that is in the background instead of a completely different
     green." Hover is a darker neighboring stop from that same gradient
     (#023435, the 0% stop) rather than an arbitrary darken. */
  background: #355d5d;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  /* Increased per explicit feedback. */
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: 0.3px;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 20px;
}
.feed-archive-link:hover { background: #023435; }

/* Mixed-size rows -- replacing v12's uniform single-column full-width
   bars, per the user's annotated-screenshot request to vary each post's
   box size by how much content it has (several smaller boxes packed
   into a row, occasionally a bigger/full-width one), same as
   requestingprayer.com's own feed. bubble-home.js assigns each post a
   sm/md/lg tier based on its own content length relative to the rest of
   the batch (see sizeTierByIndex()); the tier classes below control how
   many fit per row. flex-wrap packs each row with however many boxes
   fit, same technique as the orange-box reference screenshot. */
.feed-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* Scrolling stays available (cards can still exceed the circle's
     height), but the visible scrollbar is hidden per explicit feedback
     -- it broke the circle's own curved silhouette on the right side. */
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-flow: row wrap;
  align-content: flex-start;
  gap: 8px;
  padding-right: 4px;
  /* Pulled out past the circle's own 10% side padding -- this is deep
     enough into the circle (well past the midpoint) that the chord is
     already close to full width, so the base padding was leaving
     unused white space on both sides instead of letting the boxes fill
     it, per explicit feedback ("that space filled up much more with
     prayers"). */
  /* Pushed all the way to the circle's own wall, per explicit feedback
     ("have the edge of the text boxes to actually touch the circle's
     side wall... this would leave very little white space") -- replaces
     the previous conservative -8%/8% inset (which left 80-100px of
     unused space at these rows' actual height, since the circle's chord
     is much wider here than near the top where that value was
     calibrated). Tuned against a live measurement of the circle's own
     curve at each row's actual rendered y-position, specifically the
     narrowest (topmost) row, so the flat-edged boxes meet the curved
     wall without poking past it. */
  margin: 0 -19%;
  padding-left: 18px;
  padding-right: 18px;
}
.feed-list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.feed-loading, .feed-error {
  color: #8a8a8a;
  font-style: italic;
  text-align: center;
  font-size: clamp(11px, 1.35vw, 13.5px);
}

/* Full-width row layout matches the user's reference: name + country/id
   on one line, the date/time below it, then a truncated excerpt -- same
   fields as before, just stretched across the full available width
   instead of being boxed into a half-width card. */
.feed-post {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.2);
  /* v47: clicking anywhere on a card opens the full-prayer/respond
     popup again (see the comment up near .feed-post-actions). */
  cursor: pointer;
  min-width: 0;
  box-sizing: border-box;
}
/* Three box-size tiers, each fitting a different number per row (gap:8px
   accounted for in each calc()) -- sm packs 3 across, md packs 2, lg
   takes the full row to itself. A min-width keeps sm/md boxes from
   getting too cramped if the circle itself is narrow. */
.feed-post-sm {
  flex: 0 1 calc((100% - 16px) / 3);
  min-width: 128px;
  /* v45: the v44 min-height:120px floor is REMOVED -- per explicit
     feedback ("the extra white space needs to be eliminated"), it was
     forcing every sm card to a fixed 120px even when its own content
     (a 1-line post, an audio player) needed much less, leaving visible
     dead space below the Pray/Respond buttons. Flexbox's default
     align-items:stretch already equalizes the 3 cards WITHIN one
     wrapped row to that row's own tallest card (standard behavior,
     scoped per flex line) -- that's enough to keep a row internally
     consistent without forcing EVERY row in the whole feed to one
     fixed worst-case height. Since no interaction changes a card's
     content/height any more (see the v45 note on renderPosts() in
     bubble-home.js), each row's natural height is also now permanently
     stable on its own, satisfying "fixed size, never changes" without
     needing an artificial floor. */
}
.feed-post-md {
  /* v45: width/margin here are now just a fallback -- for the actual
     render, fitWideRowsToCircle() in bubble-home.js measures the
     circle's true curve at this row's own rendered y-position (same
     half-chord technique as the green divider fix) and sets an exact
     pixel width + margin so the pair (a) never pokes past the circle's
     wall and (b) sits exactly 2px apart, per explicit feedback ("make
     this gap only 2px in the middle... make sure the entire text box
     fits within the circle"). The old hand-tuned 11px/22px here was a
     guess calibrated for one specific row depth; it doesn't track the
     curve as depth changes, which is exactly why it was overshooting
     the wall and leaving an oversized gap. */
  flex: 0 1 calc((100% - 8px) / 2 - 22px);
  margin-left: 11px;
  margin-right: 11px;
}
.feed-post-lg {
  flex: 0 1 100%;
}
/* The "xl" tier is a single big full-width box standing in for what
   used to be a whole row of 3 small boxes -- "turn that into 1 text box
   but make it 3 rows instead" -- so it's tall (via a much higher
   line-clamp below) rather than short like .feed-post-lg.
   v45: width/margin here are likewise just a fallback now --
   fitWideRowsToCircle() (bubble-home.js) sets the real pixel inset from
   a live measurement of the circle's curve at THIS row's own y-position,
   replacing the old fixed 50px guess (which doesn't track the curve as
   the feed's content/order changes what ends up in this slot, or as
   the circle's rendered size changes). */
.feed-post-xl {
  flex: 0 1 100%;
  margin-left: 50px;
  margin-right: 50px;
}
/* A second full-width box right after xl, per explicit feedback --
   same 3-line clamp/full width as xl, just with a shorter excerpt
   allowance (see EXCERPT_LEN_BY_TIER in bubble-home.js) so it reads as
   smaller/less filled ("not as big") without a different box size.
   v45: same fallback-only note as xl above -- fitWideRowsToCircle()
   sets the real inset for this row's own (deeper, narrower) position. */
.feed-post-xl2 {
  flex: 0 1 100%;
  margin-left: 110px;
  margin-right: 110px;
}
.feed-post .feed-post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 6px;
}
.feed-post .feed-author {
  font-weight: 700;
  font-size: clamp(11px, 1.4vw, 13.5px);
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-post .feed-idline {
  flex: none;
  color: #9a9a9a;
  font-size: clamp(9px, 1.1vw, 11px);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.feed-post .feed-when {
  display: block;
  color: #9a9a9a;
  font-size: clamp(9px, 1.1vw, 11px);
  margin: 1px 0 3px;
}
.feed-post .feed-excerpt {
  margin: 0;
  color: #333;
  font-size: clamp(10.5px, 1.3vw, 12.5px);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Trimmed from 3 lines to 2, per explicit feedback ("3rd prayer row...
   CHANGE to 4 lines instead of currently its 5 lines") -- using the
   user's own line-counting convention (author line + date line + excerpt
   lines), 5 total meant a 3-line excerpt; this clamp cuts that to 2,
   matching the sm tier's own excerpt height so rows 1-3 all read as the
   same 4-line card height. */
.feed-post-md .feed-excerpt { -webkit-line-clamp: 2; }
/* The lg (full-width) tier is meant to be a long, LOW box -- "1 long box
   fits towards the bottom with less lines" -- not a tall one, so it
   gets the shortest clamp of the three, not the longest. */
.feed-post-lg .feed-excerpt { -webkit-line-clamp: 1; }
/* xl is deliberately the tallest tier -- one box standing in for a whole
   row of 3 small ones, per "make it 3 rows instead". */
/* v41: this is the card that now sits directly above the removed #0111
   row (freed-up room at the bottom of the circle), so per explicit
   feedback it gets 2 lines of excerpt back instead of none -- "make the
   text box above [the removed one] two lines longer." Every other
   tier's size is explicitly left unchanged ("I wanted the exact same
   size of prayer request boxes that is unchanged"). */
.feed-post-xl .feed-excerpt { display: -webkit-box; -webkit-line-clamp: 2; }
/* Excerpt dropped entirely, per explicit feedback ("CHANGE 5th prayer
   row to 2 lines instead of currently it's 4 Lines") -- same
   author-line + date-line + excerpt-lines convention: 2 total means 0
   excerpt lines, just who and when, for this compact trailing tier.
   (Placed here, after the base .feed-excerpt rule, not up by
   .feed-post-xl2's own block above -- same cascade-order fix as xl's
   override needed, since an earlier placement was getting overridden by
   the base rule that comes later in the file.) */
.feed-post-xl2 .feed-excerpt { display: none; }

/* ---- Login popup -- "pops a login window right there on the homepage"
   per Geoffrey's explicit request, built by bubble-home.js. Matches this
   page's own blue/white look rather than the dashboard's maroon theme. ---- */
.bubble-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.bubble-modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px 30px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.bubble-modal h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #1a3fcc;
}
.bubble-modal-note {
  font-size: 13px;
  color: #6b6b6b;
  margin: 0 0 16px;
}
.bubble-modal-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.bubble-modal-field label {
  font-size: 12.5px;
  color: #6b6b6b;
}
.bubble-modal-field input {
  font-family: inherit;
  font-size: 14.5px;
  padding: 9px 12px;
  border: 1px solid #d8d8e0;
  border-radius: 10px;
}
.bubble-modal-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #1a3fcc;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  margin-right: 8px;
}
.bubble-modal-btn-secondary {
  background: #fff;
  color: #333;
  border: 1px solid #d8d8e0;
}
.bubble-modal-error {
  font-size: 12.5px;
  color: #a33;
  margin: 10px 0 0;
}

/* ---- Respond popup (v44), now also the "read the full prayer" popup
   (v47) -- one and the same modal, opened either by clicking a card
   itself or by its Respond button (see openResponseModal in
   bubble-home.js). Reuses .bubble-modal's base look; max-width is set
   inline per-open from JS to ~75% of the feed circle's own current
   width. ---- */
/* The full original prayer text, shown in full (never truncated like
   the homepage card's own excerpt) above the response form. A generous
   but finite max-height + scroll is just a safety net for an unusually
   long prayer, so the popup itself can't grow taller than the viewport
   -- the text inside it is still complete, just scrollable in that
   rare case. */
.feed-response-modal-fulltext {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  color: #2a2420;
  font-size: 14.5px;
  line-height: 1.5;
  max-height: 40vh;
  overflow-y: auto;
  white-space: pre-wrap;
}
.feed-response-modal-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b6b6b;
  margin: 0 0 6px;
}
.feed-response-modal-box {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid #d8d8e0;
  border-radius: 10px;
  resize: vertical;
  margin-bottom: 10px;
}
.feed-response-modal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.feed-response-modal-row .feed-reply-voice-btn {
  flex: none;
}
.feed-response-modal-anon {
  margin-left: auto;
  font-size: 13px;
  color: #6b6b6b;
}

/* ---- Responsive: below 880px, the image scales down (hotspots scale
   with it automatically) and the circle drops to a plain block below it
   rather than staying absolutely overlaid, since the image gets too
   small for the circle's text to make sense pinned on top of it. */
@media (max-width: 880px) {
  .bubble-stage {
    width: 100%;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .bg-img { width: 100%; height: auto; }
  .feed-circle {
    position: static;
    width: 100% !important;
    height: auto !important;
    min-height: 480px;
    border-radius: 24px !important;
    margin-top: 16px;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6) !important;
  }
}
