/* ================================================================
   .btc-prose — Reusable prose styling for WYSIWYG / richtext content
   ================================================================

   Apply to any wrapper that contains HTML from a richtext field:

     <div class="btc-prose">{{ service.additional_content }}</div>

   Style descendants of .btc-prose are scoped — the rules below
   don't leak into structured content elsewhere.

   This file is the worked example for the SiteSwarm "prose starter"
   pattern. To adapt it for another theme:

     1. Copy this file into your theme's assets/ directory
     2. Rename .btc-prose to .<your-theme>-prose
     3. Swap the CSS variable references for your theme's tokens
        (--font-display, --color-neutral-*, --color-primary-* etc)
     4. Adjust sizing/spacing to match your theme's visual rhythm

   See docs/theme-development/richtext-editor.md for the full guide.
   ================================================================ */

.btc-prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-neutral-800);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Top/bottom flush */
.btc-prose > :first-child { margin-top: 0; }
.btc-prose > :last-child  { margin-bottom: 0; }

/* Headings: theme's display font, tight leading, color-neutral-900.
   font-weight: 700 is synthesized (DM Serif Display ships Regular only)
   — matches .btc-benefits__title and other section headings on the page. */
.btc-prose h1,
.btc-prose h2,
.btc-prose h3,
.btc-prose h4,
.btc-prose h5,
.btc-prose h6 {
  font-family: var(--font-display);
  color: var(--color-neutral-900);
  margin: 2rem 0 0.875rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.btc-prose h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
.btc-prose h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.btc-prose h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.btc-prose h4 { font-size: 1.25rem; }
.btc-prose h5 { font-size: 1.125rem; }
.btc-prose h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Body text */
.btc-prose p {
  margin: 0 0 1.25rem;
}

.btc-prose strong {
  font-weight: 700;
  color: var(--color-neutral-900);
}

.btc-prose em { font-style: italic; }

.btc-prose s { text-decoration: line-through; color: var(--color-neutral-600, #57534e); }

/* Lists */
.btc-prose ul,
.btc-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.btc-prose li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.btc-prose ul li::marker {
  color: var(--color-primary-600, #16a34a);
}

.btc-prose ol li::marker {
  color: var(--color-primary-700, #15803d);
  font-weight: 600;
}

/* Nested lists tighten up */
.btc-prose li > ul,
.btc-prose li > ol {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Blockquote */
.btc-prose blockquote {
  border-left: 4px solid var(--color-primary-600, #16a34a);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-neutral-700, #44403c);
  font-style: italic;
  font-size: 1.125rem;
}

.btc-prose blockquote p { margin-bottom: 0.5rem; }
.btc-prose blockquote > :last-child { margin-bottom: 0; }

/* Links */
.btc-prose a {
  color: var(--color-primary-700, #15803d);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.btc-prose a:hover {
  color: var(--color-primary-900, #14532d);
}

/* Inline code */
.btc-prose code {
  background: var(--color-neutral-100, #f5f5f4);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  color: var(--color-neutral-900);
}

/* Code blocks */
.btc-prose pre {
  background: var(--color-neutral-100, #f5f5f4);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0 0 1.25rem;
  font-size: 0.92em;
  line-height: 1.5;
}

.btc-prose pre code {
  background: transparent;
  padding: 0;
  font-size: 1em;
}

/* Horizontal rule */
.btc-prose hr {
  border: 0;
  border-top: 1px solid var(--color-neutral-200, #e7e5e4);
  margin: 2rem 0;
}

/* Mobile */
@media (max-width: 768px) {
  .btc-prose {
    font-size: 1rem;
  }
  .btc-prose blockquote { font-size: 1rem; }
}
