/* === Paragraph & list spacing fixes (override legacy resets) === */

/* Paragraph spacing in WPBakery text blocks & main content */
.wpb_text_column p,
.site-main p {
  margin: 0 0 1rem !important;
  line-height: 1.6;
}

/* Add top margin between consecutive paragraphs */
.wpb_text_column p + p,
.site-main p + p {
  margin-top: 1rem !important;
}

/* Headings baseline inside content.
   h1 removed from this rule on 8 Sept. It set 1.2em above and 0.5em below,
   which at the page title's size is 38px above against 16px below - the
   lopsided gap that made the title look like it had dropped onto the content
   ("the H1 rising and eating the white space"). The page title is now styled
   deliberately as .entry-title in components.css.

   NOTE: h2 and h3 here still override the section-heading margins set in
   components.css - same specificity, and this file loads later. Worth
   revisiting, but changing it shifts spacing on every page so it is not a
   drive-by fix. */
.site-main h2,
.site-main h3 {
  margin-top: 1.2em;
  margin-bottom: .5em;
}

/* Lists */
.site-main ul,
.site-main ol,
.wpb_text_column ul,
.wpb_text_column ol {
  margin: 0 0 1rem 1.25rem !important;
}

/* Optional: apply this class to a Text Block's "Extra class name"
   if you want single line-breaks (Enter) treated as visible breaks
   without wrapping each in <p>. */
.preserve-lines { white-space: pre-line; }

/* Paragraph spacing — single, consistent gap */
.wpb_text_column p,
.site-main p {
  margin: 0 0 1rem !important;   /* bottom-only */
  line-height: 1.6;
}

/* No extra top margin on following paragraphs */
.wpb_text_column p + p,
.site-main p + p {
  margin-top: 0 !important;
}

/* Nice edges in text blocks */
.wpb_text_column > *:first-child { margin-top: 0 !important; }
.wpb_text_column > *:last-child  { margin-bottom: 0 !important; }

/* Lists (optional) */
.wpb_text_column ul,
.wpb_text_column ol,
.site-main ul,
.site-main ol {
  margin: 0 0 1rem 1.25rem !important;
}