/* =====================================================================
   Here & Beyond 2026 on Divi - neutralises Divi's own wrappers and theme
   typography so the build's styles (loaded right after this file) render as
   designed. Everything is under #page-container: this file only loads on the
   Here & Beyond page. Same-specificity rules in styles.css come later and win.
   ===================================================================== */
/* the site's Theme Builder header + footer: this page brings its own */
body:has(.hab-root) .et-l--header,
body:has(.hab-root) .et-l--footer{ display:none !important; }
body:has(.hab-root) #main-content{ background:transparent; }
html body:has(.hab-root){ background:#1C101C; font-weight:400; }  /* Divi theme sets 300; the design assumes the default */

/* Divi sections -> plain blocks (the build's section classes add their own padding/backgrounds) */
#page-container .et_pb_section{ display:block; padding:0; gap:0; flex-direction:row; flex-wrap:nowrap; justify-content:normal; align-items:normal; background-color:transparent; min-height:0; }
#page-container .hab-contents{ display:contents; }
/* rows/columns are structure only - collapse them, except a row the build uses as a wrapper (.wrap) */
#page-container .et_pb_row{ width:auto; max-width:none; margin:0; padding:0; gap:0; flex-direction:row; flex-wrap:nowrap; justify-content:normal; align-items:normal; }
/* the site's default row preset forces width:90%!important on phones */
#page-container .et_pb_row.wrap{ width:100% !important; }
#page-container .et_pb_row:not(.wrap),
#page-container .et_pb_column{ display:contents; }
/* modules: a text module is the build's wrapper element; code modules + inner wrappers vanish */
#page-container .et_pb_module{ display:block; flex-direction:row; flex-wrap:nowrap; justify-content:normal; align-items:normal; margin:0; padding:0; gap:0; color:inherit; font:inherit; letter-spacing:inherit; text-align:inherit; }
#page-container .et_pb_code,
#page-container .et_pb_code_inner,
#page-container .et_pb_text_inner{ display:contents; }
#page-container .et_pb_text_inner{ font:inherit; line-height:inherit; color:inherit; letter-spacing:inherit; font-weight:inherit; }
/* Divi theme typography */
#page-container :is(h1,h2,h3,h4,h5,h6){ color:inherit; padding:0; line-height:inherit; font-weight:inherit; font-size:inherit; letter-spacing:inherit; }
#page-container p{ padding:0; }
#page-container a{ color:inherit; }
#page-container :is(ul,ol,dl){ padding:0; }
