/* Send a Prayer — ivory, gold, Georgia. Calm and reverent. */
.bol-fap {
  --fap-ink: var(--ink, #160f0c);
  --fap-text: var(--text, #2a221c);
  --fap-muted: var(--muted, #6e6256);
  --fap-gold: var(--gold, #c4a35a);
  --fap-gold-soft: var(--gold-soft, #e4d2a3);
  --fap-gold-dark: var(--gold-dark, #a6863e);
  --fap-cream: var(--cream, #fbf6ea);
  --fap-parchment: var(--parchment, #f4ead6);
  --fap-paper: var(--white, #fffdf8);
  --fap-line: var(--line, #d9cbb3);
  --fap-burgundy: var(--burgundy, #5c2a27);
  --fap-display: var(--font-display, Georgia, "Times New Roman", serif);
  --fap-serif: Georgia, "Times New Roman", var(--font-serif, serif);
  max-width: 42rem;
  margin: 0 auto;
  color: var(--fap-text);
  font-family: var(--fap-serif);
}

.bol-fap--hub { max-width: 58rem; }

.bol-fap-page .page-body .prose { max-width: none; }
.bol-fap-page .page-body {
  padding-top: 2rem;
  padding-bottom: 3.4rem;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(196, 163, 90, 0.09), transparent 70%);
}

/* Hero uses the theme's standard page-hero. Plugin only hides the in-body intro when a subtitle is placed in the hero. */
.bol-fap-page.has-hero-sub .bol-fap-intro { display: none; }

.bol-fap-intro {
  margin: 0 0 1.6rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--fap-muted);
  text-align: center;
}

.bol-fap-note {
  margin: 0 0 1.2rem;
  padding: 0.7rem 0.9rem;
  background: var(--fap-parchment);
  border: 1px solid var(--fap-line);
  color: var(--fap-text);
  text-align: center;
}

.bol-fap-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (min-width: 800px) {
  .bol-fap-topics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
}

.bol-fap-topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 12.2rem;
  padding: 1.3rem 0.95rem 1.15rem;
  background: linear-gradient(180deg, #fffdf8 0%, #f6eedc 100%);
  border: 1px solid color-mix(in srgb, var(--fap-gold) 48%, var(--fap-line));
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  color: var(--fap-text);
  box-shadow: 0 8px 18px rgba(22, 15, 12, 0.06), 0 1px 0 rgba(196, 163, 90, 0.28);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.bol-fap-topic-card:hover,
.bol-fap-topic-card:focus-visible {
  color: var(--fap-ink);
  border-color: var(--fap-gold);
  box-shadow: 0 14px 26px rgba(22, 15, 12, 0.11), 0 0 0 1px var(--fap-gold);
  transform: translateY(-4px);
}

.bol-fap-topic-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  color: var(--fap-gold-dark);
}

.bol-fap-topic-icon svg,
.bol-fap-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: block;
}

.bol-fap-topic-name {
  font-family: var(--fap-display);
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--fap-ink);
}

.bol-fap-topic-blurb {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--fap-muted);
}

.bol-fap-topic-ref {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--fap-gold-dark);
}

.bol-fap-back {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.bol-fap-back a {
  color: var(--fap-gold-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.bol-fap-back a:hover { border-bottom-color: var(--fap-gold); color: var(--fap-burgundy); }

/* Verse as an elegant pull quote */
.bol-fap-verse {
  position: relative;
  margin: 0.2rem auto 0.4rem;
  padding: 1.1rem 0.6rem 0.4rem;
  border: 0;
  text-align: center;
  max-width: 36rem;
}

.bol-fap-verse::before {
  content: "“";
  display: block;
  font-family: var(--fap-display);
  font-size: 4.4rem;
  line-height: 0.45;
  color: var(--fap-gold);
  opacity: 0.75;
}

.bol-fap-verse blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.bol-fap-verse blockquote p {
  margin: 0;
  font-family: var(--fap-serif);
  font-style: italic;
  font-size: 1.38rem;
  line-height: 1.55;
  color: var(--fap-ink);
}

.bol-fap-verse figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-sans, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--fap-gold-dark);
}

.bol-fap-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.35rem auto 1.5rem;
  max-width: 22rem;
  color: var(--fap-gold);
}

.bol-fap-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fap-gold), transparent);
  opacity: 0.7;
}

.bol-fap-divider-mark {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--fap-gold-dark);
  opacity: 0.9;
}

/* Prayer on a parchment card */
.bol-fap-prayer {
  margin: 0 0 1.6rem;
  padding: 1.65rem 1.6rem 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.65), transparent 28%),
    linear-gradient(180deg, #fbf6ea 0%, #f3e4c8 100%);
  border: 1px solid var(--fap-gold-soft);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 253, 248, 0.65),
    0 10px 24px rgba(22, 15, 12, 0.06);
}

.bol-fap-page .prose .bol-fap-prayer p,
.bol-fap-prayer p {
  margin: 0 0 0.85em;
  font-family: var(--fap-serif);
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--fap-text);
}

.bol-fap-page .prose .bol-fap-prayer p:last-child,
.bol-fap-prayer p:last-child {
  margin-top: 1em;
  margin-bottom: 0;
  font-style: italic;
  color: var(--fap-muted);
}

.bol-fap-share {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.2rem 1.2rem;
  background: var(--fap-paper);
  border: 1px solid var(--fap-gold);
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--fap-gold) 22%, transparent);
}

.bol-fap-share-label {
  margin: 0 0 0.35rem;
  font-family: var(--fap-display);
  font-size: 1.35rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  line-height: 1.25;
  color: var(--fap-ink);
}

.bol-fap-free {
  display: inline-block;
  margin-left: 0.2em;
  font-family: var(--fap-serif);
  font-size: 0.72em;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.01em;
  color: var(--fap-muted);
  white-space: nowrap;
  vertical-align: baseline;
}

.bol-fap-share-help {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--fap-muted);
}

.bol-fap-note-box {
  margin: 0 auto 1.05rem;
  max-width: 28rem;
  text-align: left;
}

.bol-fap-note-box label {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--font-sans, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
  font-size: 0.92rem;
  color: var(--fap-text);
}

.bol-fap-note-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 5.2rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--fap-line);
  border-radius: 3px;
  background: var(--fap-cream);
  color: var(--fap-text);
  font-family: var(--fap-serif);
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
}

.bol-fap-note-input:focus {
  outline: 2px solid var(--fap-gold);
  outline-offset: 1px;
  border-color: var(--fap-gold);
}

.bol-fap-note-count {
  margin: 0.3rem 0 0;
  text-align: right;
  font-family: var(--font-sans, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
  font-size: 0.8rem;
  color: var(--fap-muted);
}

.bol-fap-share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.bol-fap-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 7rem;
  padding: 0.65rem 1.2rem;
  background: var(--fap-gold);
  color: var(--fap-ink) !important;
  border: 1px solid var(--fap-gold);
  border-radius: 3px;
  font-family: var(--font-sans, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}

.bol-fap-share-btn:hover,
.bol-fap-share-btn:focus-visible {
  background: var(--fap-gold-soft);
  border-color: var(--fap-gold-soft);
  color: var(--fap-ink) !important;
}

.bol-fap-copy-status {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  color: var(--fap-gold-dark);
}

.bol-fap-after-send {
  margin: 0.9rem 0 0;
  padding: 0.85rem 0.7rem 0.2rem;
  border-top: 1px solid var(--fap-line);
}

.bol-fap-after-send p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fap-text);
}

.bol-fap-upsell {
  margin: 0.35rem auto 0;
  padding: 1.45rem 1.4rem 1.3rem;
  background: linear-gradient(180deg, #fffdf8 0%, #f6ecd4 100%);
  border: 1px solid var(--fap-gold);
  border-radius: 5px;
  text-align: center;
  color: #3d342c;
  box-shadow: 0 8px 20px rgba(22, 15, 12, 0.06), 0 0 0 1px rgba(196, 163, 90, 0.12);
}

.bol-fap-upsell.is-emphasized {
  box-shadow: 0 8px 20px rgba(22, 15, 12, 0.08), 0 0 0 1px var(--fap-gold);
}

.bol-fap-upsell-title {
  margin: 0 0 0.35rem;
  font-family: var(--fap-display);
  font-size: 1.32rem;
  line-height: 1.3;
  font-weight: 600;
  color: #3d342c;
}

.bol-fap-upsell-lead {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #5c534c;
}

.bol-fap-upsell-actions { margin: 0 0 0.95rem; }

.bol-fap-upsell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  background: var(--fap-gold);
  color: var(--fap-ink) !important;
  text-decoration: none;
  border: 1px solid var(--fap-gold);
  border-radius: 3px;
  font-family: var(--font-sans, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 600;
}

.bol-fap-upsell-btn:hover,
.bol-fap-upsell-btn:focus-visible {
  background: var(--fap-gold-soft);
  border-color: var(--fap-gold-soft);
  color: var(--fap-ink) !important;
}

.bol-fap-upsell-quiet {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #8a8580;
}

.bol-fap-upsell-quiet a { color: var(--fap-gold-dark); font-weight: 600; }
.bol-fap-dot { margin: 0 0.45rem; color: #c4b49a; }

.bol-fap-upsell.is-compact {
  margin-top: 0;
  padding: 1.15rem 1.15rem 1.05rem;
}

.bol-fap-upsell.is-compact .bol-fap-upsell-title { font-size: 1.15rem; }
.bol-fap-upsell.is-compact .bol-fap-upsell-lead { margin-bottom: 0.75rem; font-size: 0.96rem; }
.bol-fap-upsell.is-compact .bol-fap-upsell-btn { min-height: 2.7rem; padding: 0.55rem 1.15rem; font-size: 0.98rem; }
.bol-fap--hub .bol-fap-divider { margin-top: 1.8rem; }

@media (max-width: 420px) {
  .bol-fap-intro { font-size: 1.05rem; }
  .bol-fap-topics { gap: 0.7rem; }
  .bol-fap-topic-card { min-height: 11.4rem; padding: 1.05rem 0.65rem 1rem; }
  .bol-fap-topic-name { font-size: 1.05rem; }
  .bol-fap-topic-blurb { font-size: 0.8rem; }
  .bol-fap-verse { padding-top: 0.8rem; }
  .bol-fap-verse blockquote p { font-size: 1.16rem; }
  .bol-fap-prayer p { font-size: 1.06rem; }
  .bol-fap-prayer { padding: 1.2rem 1rem 1.1rem; }
  .bol-fap-share { padding: 1.1rem 0.85rem 1rem; }
  .bol-fap-share-label { font-size: 1.22rem; }
  .bol-fap-free { font-size: 0.78em; }
  .bol-fap-share-row { gap: 0.45rem; }
  .bol-fap-share-btn { flex: 1 1 30%; min-width: 4.8rem; min-height: 2.85rem; font-size: 0.98rem; padding: 0.55rem 0.7rem; }
  .bol-fap-upsell { padding: 1.15rem 1rem 1.05rem; }
  .bol-fap-upsell-btn { width: 100%; }
  .bol-fap-upsell-quiet { display: flex; flex-direction: column; gap: 0.4rem; }
  .bol-fap-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bol-fap-topic-card { transition: none; }
}
