/*
Theme Name: Abacus Marketing - Divi Child Theme
Theme URI:
Author: Abacus Marketing
Author URI: abacus-marketing.co.uk
Description: A child theme template for Divi from Abacus Marketing. Please note we provide no warranty.
Version: 1.0.2
Template: Divi
*/

/* Custom CSS below this line only - DO NOT EDIT ABOVE THIS LINE APART FROM UPDATING THE VERSION NUMBER */

/* Please make sure you update the 'Version' line above each time you update this file */

/* =========================================
   DIVI 5: FULL TYPOGRAPHY + ELEMENT SPACING RESET
   (Scoped to Divi Builder layouts only)
   ========================================= */

/* 1) Keep your structural reset (sections/rows/modules/columns) */
.et_pb_section,
.et_pb_row,
.et_pb_row_inner,
.et_pb_column,
.et_pb_module {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 2) Reset common “content element” spacing that creates gaps */
.et_pb_pagebuilder_layout #page-container :is(
  h1,h2,h3,h4,h5,h6,
  p,
  ul,ol,li,
  dl,dt,dd,
  blockquote,
  figure,figcaption,
  pre,code,
  hr,
  table,thead,tbody,tfoot,tr,th,td
){
  margin: 0 !important;
  padding: 0 !important;
}

/* 3) Divi-specific text containers sometimes add their own spacing */
.et_pb_pagebuilder_layout #page-container :is(
  .et_pb_text_inner,
  .et_pb_blurb_description,
  .et_pb_toggle_content,
  .et_pb_tab_content,
  .et_pb_accordion_content,
  .et_pb_column,
  .et_pb_module_header
){
  margin: 0 !important;
  padding: 0 !important;
}

/* 4) Lists: remove indentation too (true “zero baseline”) */
.et_pb_pagebuilder_layout #page-container :is(ul,ol) {
  list-style-position: outside;
}

/* 5) Optional: remove the little baseline gap under images */
.et_pb_pagebuilder_layout #page-container img {
  display: block;
}

/* 6) Optional: HR often has default borders/margins */
.et_pb_pagebuilder_layout #page-container hr {
  border: 0 !important;
  height: 0 !important;
}

