/* Betheme integration: the design header/footer replace Betheme's, and BeBuilder
   sections with the "ex-full" class run edge to edge with no Betheme gutters. */

/* The design is built on Tailwind's defaults (16px / 1.5); Betheme sets 15px / 28px. */
body.ex-be { font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.5; font-weight: 400; letter-spacing: normal; background-color: #fff; color: rgb(58, 64, 71); }

/* Betheme chrome we replace. */
body.ex-be #Header_wrapper,
body.ex-be #Subheader,
body.ex-be #Footer,
body.ex-be .mfn-footer-tmpl,
body.ex-be #back_to_top { display: none !important; }

body.ex-be #Wrapper, body.ex-be #Content { background: #fff; }
body.ex-be #Content { padding-top: 68px !important; }

/* Full-bleed builder sections. */
body.ex-be .section.ex-full { padding: 0 !important; background: none; }
body.ex-be .ex-full > .section_wrapper { max-width: 100% !important; width: 100% !important; padding: 0 !important; }
body.ex-be .ex-full > .section_wrapper > .wrap,
body.ex-be .ex-full .mcb-wrap-inner { padding: 0 !important; margin: 0 !important; }
body.ex-be .ex-full .column, body.ex-be .ex-full .mcb-column { margin: 0 !important; width: 100% !important; }
body.ex-be .ex-full .mcb-column-inner { margin: 0 !important; padding: 0 !important; }
body.ex-be .ex-full .column_attr, body.ex-be .ex-full .mfn-html-editor-wrapper { margin: 0 !important; padding: 0 !important; }

/* Neutralise Betheme's global element styles inside design sections and the
   header/footer. Specificity is kept at (0,0,2)/(0,1,3): enough to beat Betheme's
   element selectors, but below the design's utility classes (0,1,0+) and inline styles. */
body :where(.ex-full, .ex-chrome) :is(h1, h2, h3, h4, h5, h6) { font-family: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; margin: 0; color: inherit; font-size: inherit; text-transform: none; }
body :where(.ex-full, .ex-chrome) p { margin: 0; font-size: inherit; line-height: inherit; }
body :where(.ex-full, .ex-chrome) a { text-decoration: none; color: inherit; }
/* (0,1,2): beats Betheme's `a:hover` (0,1,1) colour; the design's own link colour
   classes are re-emitted as `body a.class` (0,1,2, loaded later) and still win. */
body :where(.ex-full, .ex-chrome) a:hover { color: inherit; text-decoration: none; }
body :where(.ex-full, .ex-chrome) img { max-width: 100%; }
body :where(.ex-full, .ex-chrome) :is(input, select, textarea) { font-family: inherit; box-shadow: none; margin: 0; }
/* Betheme's `input[type="text"]`-style rules are (0,1,1); [class] lifts this to (0,1,2).
   tools/img-utilities.js output (loaded later) still wins for the design's utilities. */
body :where(.ex-full, .ex-chrome) :is(input, select, textarea)[class] { margin: 0; line-height: inherit; box-shadow: none; width: auto; max-width: none; }
body :where(.ex-full, .ex-chrome) select[class] { background-image: none; }
body :where(.ex-full, .ex-chrome) button { font-family: inherit; }
/* Betheme pads every <button> (20px 40px), which stretched the 44px back-to-top button
   and squeezed its icon to nothing. (0,0,2): beats Betheme's `button`, loses to the
   design's padding utilities and component classes. */
body :where(.ex-full, .ex-chrome) button { padding: 0; }
